1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for PCRE 8.45.
4#
5#
6# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7# Inc.
8#
9#
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## -------------------- ##
13## M4sh Initialization. ##
14## -------------------- ##
15
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
18as_nop=:
19if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20then :
21  emulate sh
22  NULLCMD=:
23  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24  # is contrary to our usage.  Disable this feature.
25  alias -g '${1+"$@"}'='"$@"'
26  setopt NO_GLOB_SUBST
27else $as_nop
28  case `(set -o) 2>/dev/null` in #(
29  *posix*) :
30    set -o posix ;; #(
31  *) :
32     ;;
33esac
34fi
35
36
37
38# Reset variables that may have inherited troublesome values from
39# the environment.
40
41# IFS needs to be set, to space, tab, and newline, in precisely that order.
42# (If _AS_PATH_WALK were called with IFS unset, it would have the
43# side effect of setting IFS to empty, thus disabling word splitting.)
44# Quoting is to prevent editors from complaining about space-tab.
45as_nl='
46'
47export as_nl
48IFS=" ""	$as_nl"
49
50PS1='$ '
51PS2='> '
52PS4='+ '
53
54# Ensure predictable behavior from utilities with locale-dependent output.
55LC_ALL=C
56export LC_ALL
57LANGUAGE=C
58export LANGUAGE
59
60# We cannot yet rely on "unset" to work, but we need these variables
61# to be unset--not just set to an empty or harmless value--now, to
62# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
63# also avoids known problems related to "unset" and subshell syntax
64# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66do eval test \${$as_var+y} \
67  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68done
69
70# Ensure that fds 0, 1, and 2 are open.
71if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
74
75# The user is always right.
76if ${PATH_SEPARATOR+false} :; then
77  PATH_SEPARATOR=:
78  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80      PATH_SEPARATOR=';'
81  }
82fi
83
84
85# Find who we are.  Look in the path if we contain no directory separator.
86as_myself=
87case $0 in #((
88  *[\\/]* ) as_myself=$0 ;;
89  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90for as_dir in $PATH
91do
92  IFS=$as_save_IFS
93  case $as_dir in #(((
94    '') as_dir=./ ;;
95    */) ;;
96    *) as_dir=$as_dir/ ;;
97  esac
98    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114
115# Use a proper internal environment variable to ensure we don't fall
116  # into an infinite loop, continuously re-executing ourselves.
117  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118    _as_can_reexec=no; export _as_can_reexec;
119    # We cannot yet assume a decent shell, so we have to provide a
120# neutralization value for shells without unset; and this also
121# works around shells that cannot unset nonexistent variables.
122# Preserve -v and -x to the replacement shell.
123BASH_ENV=/dev/null
124ENV=/dev/null
125(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126case $- in # ((((
127  *v*x* | *x*v* ) as_opts=-vx ;;
128  *v* ) as_opts=-v ;;
129  *x* ) as_opts=-x ;;
130  * ) as_opts= ;;
131esac
132exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133# Admittedly, this is quite paranoid, since all the known shells bail
134# out after a failed `exec'.
135printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136exit 255
137  fi
138  # We don't want this to propagate to other subprocesses.
139          { _as_can_reexec=; unset _as_can_reexec;}
140if test "x$CONFIG_SHELL" = x; then
141  as_bourne_compatible="as_nop=:
142if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143then :
144  emulate sh
145  NULLCMD=:
146  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147  # is contrary to our usage.  Disable this feature.
148  alias -g '\${1+\"\$@\"}'='\"\$@\"'
149  setopt NO_GLOB_SUBST
150else \$as_nop
151  case \`(set -o) 2>/dev/null\` in #(
152  *posix*) :
153    set -o posix ;; #(
154  *) :
155     ;;
156esac
157fi
158"
159  as_required="as_fn_return () { (exit \$1); }
160as_fn_success () { as_fn_return 0; }
161as_fn_failure () { as_fn_return 1; }
162as_fn_ret_success () { return 0; }
163as_fn_ret_failure () { return 1; }
164
165exitcode=0
166as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171then :
172
173else \$as_nop
174  exitcode=1; echo positional parameters were not saved.
175fi
176test x\$exitcode = x0 || exit 1
177blah=\$(echo \$(echo blah))
178test x\"\$blah\" = xblah || exit 1
179test -x / || exit 1"
180  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184
185  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
186    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
187    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
188    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189    PATH=/empty FPATH=/empty; export PATH FPATH
190    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
191      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
192test \$(( 1 + 1 )) = 2 || exit 1"
193  if (eval "$as_required") 2>/dev/null
194then :
195  as_have_required=yes
196else $as_nop
197  as_have_required=no
198fi
199  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
200then :
201
202else $as_nop
203  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
204as_found=false
205for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
206do
207  IFS=$as_save_IFS
208  case $as_dir in #(((
209    '') as_dir=./ ;;
210    */) ;;
211    *) as_dir=$as_dir/ ;;
212  esac
213  as_found=:
214  case $as_dir in #(
215	 /*)
216	   for as_base in sh bash ksh sh5; do
217	     # Try only shells that exist, to save several forks.
218	     as_shell=$as_dir$as_base
219	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
221then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
224then :
225  break 2
226fi
227fi
228	   done;;
229       esac
230  as_found=false
231done
232IFS=$as_save_IFS
233if $as_found
234then :
235
236else $as_nop
237  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
238	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
239then :
240  CONFIG_SHELL=$SHELL as_have_required=yes
241fi
242fi
243
244
245      if test "x$CONFIG_SHELL" != x
246then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno
269then :
270  printf "%s\n" "$0: This script requires a shell more modern than all"
271  printf "%s\n" "$0: the shells that I found on your system."
272  if test ${ZSH_VERSION+y} ; then
273    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
274    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
275  else
276    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
277$0: including any error possibly output before this
278$0: message. Then install a modern shell, or manually run
279$0: the script under such a shell if you do have one."
280  fi
281  exit 1
282fi
283fi
284fi
285SHELL=${CONFIG_SHELL-/bin/sh}
286export SHELL
287# Unset more variables known to interfere with behavior of common tools.
288CLICOLOR_FORCE= GREP_OPTIONS=
289unset CLICOLOR_FORCE GREP_OPTIONS
290
291## --------------------- ##
292## M4sh Shell Functions. ##
293## --------------------- ##
294# as_fn_unset VAR
295# ---------------
296# Portably unset VAR.
297as_fn_unset ()
298{
299  { eval $1=; unset $1;}
300}
301as_unset=as_fn_unset
302
303
304# as_fn_set_status STATUS
305# -----------------------
306# Set $? to STATUS, without forking.
307as_fn_set_status ()
308{
309  return $1
310} # as_fn_set_status
311
312# as_fn_exit STATUS
313# -----------------
314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315as_fn_exit ()
316{
317  set +e
318  as_fn_set_status $1
319  exit $1
320} # as_fn_exit
321# as_fn_nop
322# ---------
323# Do nothing but, unlike ":", preserve the value of $?.
324as_fn_nop ()
325{
326  return $?
327}
328as_nop=as_fn_nop
329
330# as_fn_mkdir_p
331# -------------
332# Create "$as_dir" as a directory, including parents if necessary.
333as_fn_mkdir_p ()
334{
335
336  case $as_dir in #(
337  -*) as_dir=./$as_dir;;
338  esac
339  test -d "$as_dir" || eval $as_mkdir_p || {
340    as_dirs=
341    while :; do
342      case $as_dir in #(
343      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344      *) as_qdir=$as_dir;;
345      esac
346      as_dirs="'$as_qdir' $as_dirs"
347      as_dir=`$as_dirname -- "$as_dir" ||
348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349	 X"$as_dir" : 'X\(//\)[^/]' \| \
350	 X"$as_dir" : 'X\(//\)$' \| \
351	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352printf "%s\n" X"$as_dir" |
353    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\/\)[^/].*/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)$/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\).*/{
366	    s//\1/
367	    q
368	  }
369	  s/.*/./; q'`
370      test -d "$as_dir" && break
371    done
372    test -z "$as_dirs" || eval "mkdir $as_dirs"
373  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376} # as_fn_mkdir_p
377
378# as_fn_executable_p FILE
379# -----------------------
380# Test if FILE is an executable regular file.
381as_fn_executable_p ()
382{
383  test -f "$1" && test -x "$1"
384} # as_fn_executable_p
385# as_fn_append VAR VALUE
386# ----------------------
387# Append the text in VALUE to the end of the definition contained in VAR. Take
388# advantage of any shell optimizations that allow amortized linear growth over
389# repeated appends, instead of the typical quadratic growth present in naive
390# implementations.
391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392then :
393  eval 'as_fn_append ()
394  {
395    eval $1+=\$2
396  }'
397else $as_nop
398  as_fn_append ()
399  {
400    eval $1=\$$1\$2
401  }
402fi # as_fn_append
403
404# as_fn_arith ARG...
405# ------------------
406# Perform arithmetic evaluation on the ARGs, and store the result in the
407# global $as_val. Take advantage of shells that can avoid forks. The arguments
408# must be portable across $(()) and expr.
409if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410then :
411  eval 'as_fn_arith ()
412  {
413    as_val=$(( $* ))
414  }'
415else $as_nop
416  as_fn_arith ()
417  {
418    as_val=`expr "$@" || test $? -eq 1`
419  }
420fi # as_fn_arith
421
422# as_fn_nop
423# ---------
424# Do nothing but, unlike ":", preserve the value of $?.
425as_fn_nop ()
426{
427  return $?
428}
429as_nop=as_fn_nop
430
431# as_fn_error STATUS ERROR [LINENO LOG_FD]
432# ----------------------------------------
433# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
434# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
435# script with STATUS, using 1 if that was 0.
436as_fn_error ()
437{
438  as_status=$1; test $as_status -eq 0 && as_status=1
439  if test "$4"; then
440    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
441    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
442  fi
443  printf "%s\n" "$as_me: error: $2" >&2
444  as_fn_exit $as_status
445} # as_fn_error
446
447if expr a : '\(a\)' >/dev/null 2>&1 &&
448   test "X`expr 00001 : '.*\(...\)'`" = X001; then
449  as_expr=expr
450else
451  as_expr=false
452fi
453
454if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
455  as_basename=basename
456else
457  as_basename=false
458fi
459
460if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461  as_dirname=dirname
462else
463  as_dirname=false
464fi
465
466as_me=`$as_basename -- "$0" ||
467$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
468	 X"$0" : 'X\(//\)$' \| \
469	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
470printf "%s\n" X/"$0" |
471    sed '/^.*\/\([^/][^/]*\)\/*$/{
472	    s//\1/
473	    q
474	  }
475	  /^X\/\(\/\/\)$/{
476	    s//\1/
477	    q
478	  }
479	  /^X\/\(\/\).*/{
480	    s//\1/
481	    q
482	  }
483	  s/.*/./; q'`
484
485# Avoid depending upon Character Ranges.
486as_cr_letters='abcdefghijklmnopqrstuvwxyz'
487as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
488as_cr_Letters=$as_cr_letters$as_cr_LETTERS
489as_cr_digits='0123456789'
490as_cr_alnum=$as_cr_Letters$as_cr_digits
491
492
493  as_lineno_1=$LINENO as_lineno_1a=$LINENO
494  as_lineno_2=$LINENO as_lineno_2a=$LINENO
495  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
496  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
497  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
498  sed -n '
499    p
500    /[$]LINENO/=
501  ' <$as_myself |
502    sed '
503      s/[$]LINENO.*/&-/
504      t lineno
505      b
506      :lineno
507      N
508      :loop
509      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
510      t loop
511      s/-\n.*//
512    ' >$as_me.lineno &&
513  chmod +x "$as_me.lineno" ||
514    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
515
516  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
517  # already done that, so ensure we don't try to do so again and fall
518  # in an infinite loop.  This has already happened in practice.
519  _as_can_reexec=no; export _as_can_reexec
520  # Don't try to exec as it changes $[0], causing all sort of problems
521  # (the dirname of $[0] is not the place where we might find the
522  # original and so on.  Autoconf is especially sensitive to this).
523  . "./$as_me.lineno"
524  # Exit status is that of the last command.
525  exit
526}
527
528
529# Determine whether it's possible to make 'echo' print without a newline.
530# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
531# for compatibility with existing Makefiles.
532ECHO_C= ECHO_N= ECHO_T=
533case `echo -n x` in #(((((
534-n*)
535  case `echo 'xy\c'` in
536  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
537  xy)  ECHO_C='\c';;
538  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
539       ECHO_T='	';;
540  esac;;
541*)
542  ECHO_N='-n';;
543esac
544
545# For backward compatibility with old third-party macros, we provide
546# the shell variables $as_echo and $as_echo_n.  New code should use
547# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
548as_echo='printf %s\n'
549as_echo_n='printf %s'
550
551
552rm -f conf$$ conf$$.exe conf$$.file
553if test -d conf$$.dir; then
554  rm -f conf$$.dir/conf$$.file
555else
556  rm -f conf$$.dir
557  mkdir conf$$.dir 2>/dev/null
558fi
559if (echo >conf$$.file) 2>/dev/null; then
560  if ln -s conf$$.file conf$$ 2>/dev/null; then
561    as_ln_s='ln -s'
562    # ... but there are two gotchas:
563    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
564    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
565    # In both cases, we have to default to `cp -pR'.
566    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
567      as_ln_s='cp -pR'
568  elif ln conf$$.file conf$$ 2>/dev/null; then
569    as_ln_s=ln
570  else
571    as_ln_s='cp -pR'
572  fi
573else
574  as_ln_s='cp -pR'
575fi
576rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
577rmdir conf$$.dir 2>/dev/null
578
579if mkdir -p . 2>/dev/null; then
580  as_mkdir_p='mkdir -p "$as_dir"'
581else
582  test -d ./-p && rmdir ./-p
583  as_mkdir_p=false
584fi
585
586as_test_x='test -x'
587as_executable_p=as_fn_executable_p
588
589# Sed expression to map a string onto a valid CPP name.
590as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
591
592# Sed expression to map a string onto a valid variable name.
593as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
594
595SHELL=${CONFIG_SHELL-/bin/sh}
596
597
598test -n "$DJDIR" || exec 7<&0 </dev/null
599exec 6>&1
600
601# Name of the host.
602# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
603# so uname gets run too.
604ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
605
606#
607# Initializations.
608#
609ac_default_prefix=/usr/local
610ac_clean_files=
611ac_config_libobj_dir=.
612LIBOBJS=
613cross_compiling=no
614subdirs=
615MFLAGS=
616MAKEFLAGS=
617
618# Identity of this package.
619PACKAGE_NAME='PCRE'
620PACKAGE_TARNAME='pcre'
621PACKAGE_VERSION='8.45'
622PACKAGE_STRING='PCRE 8.45'
623PACKAGE_BUGREPORT=''
624PACKAGE_URL=''
625
626ac_unique_file="pcre.h.in"
627# Factoring default headers for most tests.
628ac_includes_default="\
629#include <stddef.h>
630#ifdef HAVE_STDIO_H
631# include <stdio.h>
632#endif
633#ifdef HAVE_STDLIB_H
634# include <stdlib.h>
635#endif
636#ifdef HAVE_STRING_H
637# include <string.h>
638#endif
639#ifdef HAVE_INTTYPES_H
640# include <inttypes.h>
641#endif
642#ifdef HAVE_STDINT_H
643# include <stdint.h>
644#endif
645#ifdef HAVE_STRINGS_H
646# include <strings.h>
647#endif
648#ifdef HAVE_SYS_TYPES_H
649# include <sys/types.h>
650#endif
651#ifdef HAVE_SYS_STAT_H
652# include <sys/stat.h>
653#endif
654#ifdef HAVE_UNISTD_H
655# include <unistd.h>
656#endif"
657
658ac_header_c_list=
659ac_subst_vars='am__EXEEXT_FALSE
660am__EXEEXT_TRUE
661LTLIBOBJS
662LIBOBJS
663WITH_GCOV_FALSE
664WITH_GCOV_TRUE
665GCOV_LIBS
666GCOV_CXXFLAGS
667GCOV_CFLAGS
668GENHTML
669LCOV
670SHTOOL
671VALGRIND_LIBS
672VALGRIND_CFLAGS
673PKG_CONFIG_LIBDIR
674PKG_CONFIG_PATH
675PKG_CONFIG
676LIBBZ2
677LIBZ
678DISTCHECK_CONFIGURE_FLAGS
679EXTRA_LIBPCRECPP_LDFLAGS
680EXTRA_LIBPCREPOSIX_LDFLAGS
681EXTRA_LIBPCRE32_LDFLAGS
682EXTRA_LIBPCRE16_LDFLAGS
683EXTRA_LIBPCRE_LDFLAGS
684PTHREAD_CFLAGS
685PTHREAD_LIBS
686PTHREAD_CC
687ax_pthread_config
688PCRE_STATIC_CFLAG
689LIBREADLINE
690WITH_VALGRIND_FALSE
691WITH_VALGRIND_TRUE
692WITH_UTF_FALSE
693WITH_UTF_TRUE
694WITH_JIT_FALSE
695WITH_JIT_TRUE
696WITH_REBUILD_CHARTABLES_FALSE
697WITH_REBUILD_CHARTABLES_TRUE
698WITH_PCRE_CPP_FALSE
699WITH_PCRE_CPP_TRUE
700WITH_PCRE32_FALSE
701WITH_PCRE32_TRUE
702WITH_PCRE16_FALSE
703WITH_PCRE16_TRUE
704WITH_PCRE8_FALSE
705WITH_PCRE8_TRUE
706pcre_have_bits_type_traits
707pcre_have_type_traits
708pcre_have_ulong_long
709pcre_have_long_long
710enable_cpp
711enable_pcre32
712enable_pcre16
713enable_pcre8
714PCRE_DATE
715PCRE_PRERELEASE
716PCRE_MINOR
717PCRE_MAJOR
718HAVE_VISIBILITY
719VISIBILITY_CXXFLAGS
720VISIBILITY_CFLAGS
721CXXCPP
722LT_SYS_LIBRARY_PATH
723OTOOL64
724OTOOL
725LIPO
726NMEDIT
727DSYMUTIL
728MANIFEST_TOOL
729RANLIB
730LN_S
731NM
732ac_ct_DUMPBIN
733DUMPBIN
734LD
735FGREP
736EGREP
737GREP
738SED
739LIBTOOL
740OBJDUMP
741DLLTOOL
742AS
743host_os
744host_vendor
745host_cpu
746host
747build_os
748build_vendor
749build_cpu
750build
751am__fastdepCXX_FALSE
752am__fastdepCXX_TRUE
753CXXDEPMODE
754ac_ct_CXX
755CXXFLAGS
756CXX
757am__fastdepCC_FALSE
758am__fastdepCC_TRUE
759CCDEPMODE
760am__nodep
761AMDEPBACKSLASH
762AMDEP_FALSE
763AMDEP_TRUE
764am__include
765DEPDIR
766OBJEXT
767EXEEXT
768ac_ct_CC
769CPPFLAGS
770LDFLAGS
771CFLAGS
772CC
773ac_ct_AR
774AR
775AM_BACKSLASH
776AM_DEFAULT_VERBOSITY
777AM_DEFAULT_V
778AM_V
779am__untar
780am__tar
781AMTAR
782am__leading_dot
783SET_MAKE
784AWK
785mkdir_p
786MKDIR_P
787INSTALL_STRIP_PROGRAM
788STRIP
789install_sh
790MAKEINFO
791AUTOHEADER
792AUTOMAKE
793AUTOCONF
794ACLOCAL
795VERSION
796PACKAGE
797CYGPATH_W
798am__isrc
799INSTALL_DATA
800INSTALL_SCRIPT
801INSTALL_PROGRAM
802target_alias
803host_alias
804build_alias
805LIBS
806ECHO_T
807ECHO_N
808ECHO_C
809DEFS
810mandir
811localedir
812libdir
813psdir
814pdfdir
815dvidir
816htmldir
817infodir
818docdir
819oldincludedir
820includedir
821runstatedir
822localstatedir
823sharedstatedir
824sysconfdir
825datadir
826datarootdir
827libexecdir
828sbindir
829bindir
830program_transform_name
831prefix
832exec_prefix
833PACKAGE_URL
834PACKAGE_BUGREPORT
835PACKAGE_STRING
836PACKAGE_VERSION
837PACKAGE_TARNAME
838PACKAGE_NAME
839PATH_SEPARATOR
840SHELL
841am__quote'
842ac_subst_files=''
843ac_user_opts='
844enable_option_checking
845enable_silent_rules
846enable_dependency_tracking
847enable_shared
848enable_static
849with_pic
850enable_fast_install
851with_aix_soname
852with_gnu_ld
853with_sysroot
854enable_libtool_lock
855enable_pcre8
856enable_pcre16
857enable_pcre32
858enable_cpp
859enable_jit
860enable_pcregrep_jit
861enable_rebuild_chartables
862enable_utf8
863enable_utf
864enable_unicode_properties
865enable_newline_is_cr
866enable_newline_is_lf
867enable_newline_is_crlf
868enable_newline_is_anycrlf
869enable_newline_is_any
870enable_bsr_anycrlf
871enable_ebcdic
872enable_ebcdic_nl25
873enable_stack_for_recursion
874enable_pcregrep_libz
875enable_pcregrep_libbz2
876with_pcregrep_bufsize
877enable_pcretest_libedit
878enable_pcretest_libreadline
879with_posix_malloc_threshold
880with_link_size
881with_parens_nest_limit
882with_match_limit
883with_match_limit_recursion
884enable_valgrind
885enable_coverage
886'
887      ac_precious_vars='build_alias
888host_alias
889target_alias
890CC
891CFLAGS
892LDFLAGS
893LIBS
894CPPFLAGS
895CXX
896CXXFLAGS
897CCC
898LT_SYS_LIBRARY_PATH
899CXXCPP
900PKG_CONFIG
901PKG_CONFIG_PATH
902PKG_CONFIG_LIBDIR
903VALGRIND_CFLAGS
904VALGRIND_LIBS
905LCOV
906GENHTML'
907
908
909# Initialize some variables set by options.
910ac_init_help=
911ac_init_version=false
912ac_unrecognized_opts=
913ac_unrecognized_sep=
914# The variables have the same names as the options, with
915# dashes changed to underlines.
916cache_file=/dev/null
917exec_prefix=NONE
918no_create=
919no_recursion=
920prefix=NONE
921program_prefix=NONE
922program_suffix=NONE
923program_transform_name=s,x,x,
924silent=
925site=
926srcdir=
927verbose=
928x_includes=NONE
929x_libraries=NONE
930
931# Installation directory options.
932# These are left unexpanded so users can "make install exec_prefix=/foo"
933# and all the variables that are supposed to be based on exec_prefix
934# by default will actually change.
935# Use braces instead of parens because sh, perl, etc. also accept them.
936# (The list follows the same order as the GNU Coding Standards.)
937bindir='${exec_prefix}/bin'
938sbindir='${exec_prefix}/sbin'
939libexecdir='${exec_prefix}/libexec'
940datarootdir='${prefix}/share'
941datadir='${datarootdir}'
942sysconfdir='${prefix}/etc'
943sharedstatedir='${prefix}/com'
944localstatedir='${prefix}/var'
945runstatedir='${localstatedir}/run'
946includedir='${prefix}/include'
947oldincludedir='/usr/include'
948docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
949infodir='${datarootdir}/info'
950htmldir='${docdir}'
951dvidir='${docdir}'
952pdfdir='${docdir}'
953psdir='${docdir}'
954libdir='${exec_prefix}/lib'
955localedir='${datarootdir}/locale'
956mandir='${datarootdir}/man'
957
958ac_prev=
959ac_dashdash=
960for ac_option
961do
962  # If the previous option needs an argument, assign it.
963  if test -n "$ac_prev"; then
964    eval $ac_prev=\$ac_option
965    ac_prev=
966    continue
967  fi
968
969  case $ac_option in
970  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
971  *=)   ac_optarg= ;;
972  *)    ac_optarg=yes ;;
973  esac
974
975  case $ac_dashdash$ac_option in
976  --)
977    ac_dashdash=yes ;;
978
979  -bindir | --bindir | --bindi | --bind | --bin | --bi)
980    ac_prev=bindir ;;
981  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
982    bindir=$ac_optarg ;;
983
984  -build | --build | --buil | --bui | --bu)
985    ac_prev=build_alias ;;
986  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
987    build_alias=$ac_optarg ;;
988
989  -cache-file | --cache-file | --cache-fil | --cache-fi \
990  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
991    ac_prev=cache_file ;;
992  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
993  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
994    cache_file=$ac_optarg ;;
995
996  --config-cache | -C)
997    cache_file=config.cache ;;
998
999  -datadir | --datadir | --datadi | --datad)
1000    ac_prev=datadir ;;
1001  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1002    datadir=$ac_optarg ;;
1003
1004  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1005  | --dataroo | --dataro | --datar)
1006    ac_prev=datarootdir ;;
1007  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1008  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1009    datarootdir=$ac_optarg ;;
1010
1011  -disable-* | --disable-*)
1012    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013    # Reject names that are not valid shell variable names.
1014    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1016    ac_useropt_orig=$ac_useropt
1017    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1018    case $ac_user_opts in
1019      *"
1020"enable_$ac_useropt"
1021"*) ;;
1022      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1023	 ac_unrecognized_sep=', ';;
1024    esac
1025    eval enable_$ac_useropt=no ;;
1026
1027  -docdir | --docdir | --docdi | --doc | --do)
1028    ac_prev=docdir ;;
1029  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1030    docdir=$ac_optarg ;;
1031
1032  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1033    ac_prev=dvidir ;;
1034  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1035    dvidir=$ac_optarg ;;
1036
1037  -enable-* | --enable-*)
1038    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039    # Reject names that are not valid shell variable names.
1040    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1042    ac_useropt_orig=$ac_useropt
1043    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1044    case $ac_user_opts in
1045      *"
1046"enable_$ac_useropt"
1047"*) ;;
1048      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1049	 ac_unrecognized_sep=', ';;
1050    esac
1051    eval enable_$ac_useropt=\$ac_optarg ;;
1052
1053  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1054  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1055  | --exec | --exe | --ex)
1056    ac_prev=exec_prefix ;;
1057  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1058  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1059  | --exec=* | --exe=* | --ex=*)
1060    exec_prefix=$ac_optarg ;;
1061
1062  -gas | --gas | --ga | --g)
1063    # Obsolete; use --with-gas.
1064    with_gas=yes ;;
1065
1066  -help | --help | --hel | --he | -h)
1067    ac_init_help=long ;;
1068  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1069    ac_init_help=recursive ;;
1070  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1071    ac_init_help=short ;;
1072
1073  -host | --host | --hos | --ho)
1074    ac_prev=host_alias ;;
1075  -host=* | --host=* | --hos=* | --ho=*)
1076    host_alias=$ac_optarg ;;
1077
1078  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1079    ac_prev=htmldir ;;
1080  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1081  | --ht=*)
1082    htmldir=$ac_optarg ;;
1083
1084  -includedir | --includedir | --includedi | --included | --include \
1085  | --includ | --inclu | --incl | --inc)
1086    ac_prev=includedir ;;
1087  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1088  | --includ=* | --inclu=* | --incl=* | --inc=*)
1089    includedir=$ac_optarg ;;
1090
1091  -infodir | --infodir | --infodi | --infod | --info | --inf)
1092    ac_prev=infodir ;;
1093  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1094    infodir=$ac_optarg ;;
1095
1096  -libdir | --libdir | --libdi | --libd)
1097    ac_prev=libdir ;;
1098  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1099    libdir=$ac_optarg ;;
1100
1101  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1102  | --libexe | --libex | --libe)
1103    ac_prev=libexecdir ;;
1104  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1105  | --libexe=* | --libex=* | --libe=*)
1106    libexecdir=$ac_optarg ;;
1107
1108  -localedir | --localedir | --localedi | --localed | --locale)
1109    ac_prev=localedir ;;
1110  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1111    localedir=$ac_optarg ;;
1112
1113  -localstatedir | --localstatedir | --localstatedi | --localstated \
1114  | --localstate | --localstat | --localsta | --localst | --locals)
1115    ac_prev=localstatedir ;;
1116  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1117  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1118    localstatedir=$ac_optarg ;;
1119
1120  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1121    ac_prev=mandir ;;
1122  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1123    mandir=$ac_optarg ;;
1124
1125  -nfp | --nfp | --nf)
1126    # Obsolete; use --without-fp.
1127    with_fp=no ;;
1128
1129  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1130  | --no-cr | --no-c | -n)
1131    no_create=yes ;;
1132
1133  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1134  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1135    no_recursion=yes ;;
1136
1137  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1138  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1139  | --oldin | --oldi | --old | --ol | --o)
1140    ac_prev=oldincludedir ;;
1141  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1142  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1143  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1144    oldincludedir=$ac_optarg ;;
1145
1146  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1147    ac_prev=prefix ;;
1148  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1149    prefix=$ac_optarg ;;
1150
1151  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1152  | --program-pre | --program-pr | --program-p)
1153    ac_prev=program_prefix ;;
1154  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1155  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1156    program_prefix=$ac_optarg ;;
1157
1158  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1159  | --program-suf | --program-su | --program-s)
1160    ac_prev=program_suffix ;;
1161  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1162  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1163    program_suffix=$ac_optarg ;;
1164
1165  -program-transform-name | --program-transform-name \
1166  | --program-transform-nam | --program-transform-na \
1167  | --program-transform-n | --program-transform- \
1168  | --program-transform | --program-transfor \
1169  | --program-transfo | --program-transf \
1170  | --program-trans | --program-tran \
1171  | --progr-tra | --program-tr | --program-t)
1172    ac_prev=program_transform_name ;;
1173  -program-transform-name=* | --program-transform-name=* \
1174  | --program-transform-nam=* | --program-transform-na=* \
1175  | --program-transform-n=* | --program-transform-=* \
1176  | --program-transform=* | --program-transfor=* \
1177  | --program-transfo=* | --program-transf=* \
1178  | --program-trans=* | --program-tran=* \
1179  | --progr-tra=* | --program-tr=* | --program-t=*)
1180    program_transform_name=$ac_optarg ;;
1181
1182  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1183    ac_prev=pdfdir ;;
1184  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1185    pdfdir=$ac_optarg ;;
1186
1187  -psdir | --psdir | --psdi | --psd | --ps)
1188    ac_prev=psdir ;;
1189  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1190    psdir=$ac_optarg ;;
1191
1192  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1193  | -silent | --silent | --silen | --sile | --sil)
1194    silent=yes ;;
1195
1196  -runstatedir | --runstatedir | --runstatedi | --runstated \
1197  | --runstate | --runstat | --runsta | --runst | --runs \
1198  | --run | --ru | --r)
1199    ac_prev=runstatedir ;;
1200  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1201  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1202  | --run=* | --ru=* | --r=*)
1203    runstatedir=$ac_optarg ;;
1204
1205  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1206    ac_prev=sbindir ;;
1207  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1208  | --sbi=* | --sb=*)
1209    sbindir=$ac_optarg ;;
1210
1211  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1212  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213  | --sharedst | --shareds | --shared | --share | --shar \
1214  | --sha | --sh)
1215    ac_prev=sharedstatedir ;;
1216  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1219  | --sha=* | --sh=*)
1220    sharedstatedir=$ac_optarg ;;
1221
1222  -site | --site | --sit)
1223    ac_prev=site ;;
1224  -site=* | --site=* | --sit=*)
1225    site=$ac_optarg ;;
1226
1227  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1228    ac_prev=srcdir ;;
1229  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1230    srcdir=$ac_optarg ;;
1231
1232  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233  | --syscon | --sysco | --sysc | --sys | --sy)
1234    ac_prev=sysconfdir ;;
1235  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1237    sysconfdir=$ac_optarg ;;
1238
1239  -target | --target | --targe | --targ | --tar | --ta | --t)
1240    ac_prev=target_alias ;;
1241  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1242    target_alias=$ac_optarg ;;
1243
1244  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1245    verbose=yes ;;
1246
1247  -version | --version | --versio | --versi | --vers | -V)
1248    ac_init_version=: ;;
1249
1250  -with-* | --with-*)
1251    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252    # Reject names that are not valid shell variable names.
1253    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254      as_fn_error $? "invalid package name: \`$ac_useropt'"
1255    ac_useropt_orig=$ac_useropt
1256    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1257    case $ac_user_opts in
1258      *"
1259"with_$ac_useropt"
1260"*) ;;
1261      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1262	 ac_unrecognized_sep=', ';;
1263    esac
1264    eval with_$ac_useropt=\$ac_optarg ;;
1265
1266  -without-* | --without-*)
1267    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1268    # Reject names that are not valid shell variable names.
1269    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270      as_fn_error $? "invalid package name: \`$ac_useropt'"
1271    ac_useropt_orig=$ac_useropt
1272    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1273    case $ac_user_opts in
1274      *"
1275"with_$ac_useropt"
1276"*) ;;
1277      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1278	 ac_unrecognized_sep=', ';;
1279    esac
1280    eval with_$ac_useropt=no ;;
1281
1282  --x)
1283    # Obsolete; use --with-x.
1284    with_x=yes ;;
1285
1286  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287  | --x-incl | --x-inc | --x-in | --x-i)
1288    ac_prev=x_includes ;;
1289  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291    x_includes=$ac_optarg ;;
1292
1293  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295    ac_prev=x_libraries ;;
1296  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298    x_libraries=$ac_optarg ;;
1299
1300  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1301Try \`$0 --help' for more information"
1302    ;;
1303
1304  *=*)
1305    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1306    # Reject names that are not valid shell variable names.
1307    case $ac_envvar in #(
1308      '' | [0-9]* | *[!_$as_cr_alnum]* )
1309      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1310    esac
1311    eval $ac_envvar=\$ac_optarg
1312    export $ac_envvar ;;
1313
1314  *)
1315    # FIXME: should be removed in autoconf 3.0.
1316    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1317    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1319    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1320    ;;
1321
1322  esac
1323done
1324
1325if test -n "$ac_prev"; then
1326  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327  as_fn_error $? "missing argument to $ac_option"
1328fi
1329
1330if test -n "$ac_unrecognized_opts"; then
1331  case $enable_option_checking in
1332    no) ;;
1333    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1334    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1335  esac
1336fi
1337
1338# Check all directory arguments for consistency.
1339for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1340		datadir sysconfdir sharedstatedir localstatedir includedir \
1341		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1342		libdir localedir mandir runstatedir
1343do
1344  eval ac_val=\$$ac_var
1345  # Remove trailing slashes.
1346  case $ac_val in
1347    */ )
1348      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1349      eval $ac_var=\$ac_val;;
1350  esac
1351  # Be sure to have absolute directory names.
1352  case $ac_val in
1353    [\\/$]* | ?:[\\/]* )  continue;;
1354    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1355  esac
1356  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1357done
1358
1359# There might be people who depend on the old broken behavior: `$host'
1360# used to hold the argument of --host etc.
1361# FIXME: To remove some day.
1362build=$build_alias
1363host=$host_alias
1364target=$target_alias
1365
1366# FIXME: To remove some day.
1367if test "x$host_alias" != x; then
1368  if test "x$build_alias" = x; then
1369    cross_compiling=maybe
1370  elif test "x$build_alias" != "x$host_alias"; then
1371    cross_compiling=yes
1372  fi
1373fi
1374
1375ac_tool_prefix=
1376test -n "$host_alias" && ac_tool_prefix=$host_alias-
1377
1378test "$silent" = yes && exec 6>/dev/null
1379
1380
1381ac_pwd=`pwd` && test -n "$ac_pwd" &&
1382ac_ls_di=`ls -di .` &&
1383ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1384  as_fn_error $? "working directory cannot be determined"
1385test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1386  as_fn_error $? "pwd does not report name of working directory"
1387
1388
1389# Find the source files, if location was not specified.
1390if test -z "$srcdir"; then
1391  ac_srcdir_defaulted=yes
1392  # Try the directory containing this script, then the parent directory.
1393  ac_confdir=`$as_dirname -- "$as_myself" ||
1394$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1395	 X"$as_myself" : 'X\(//\)[^/]' \| \
1396	 X"$as_myself" : 'X\(//\)$' \| \
1397	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1398printf "%s\n" X"$as_myself" |
1399    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1400	    s//\1/
1401	    q
1402	  }
1403	  /^X\(\/\/\)[^/].*/{
1404	    s//\1/
1405	    q
1406	  }
1407	  /^X\(\/\/\)$/{
1408	    s//\1/
1409	    q
1410	  }
1411	  /^X\(\/\).*/{
1412	    s//\1/
1413	    q
1414	  }
1415	  s/.*/./; q'`
1416  srcdir=$ac_confdir
1417  if test ! -r "$srcdir/$ac_unique_file"; then
1418    srcdir=..
1419  fi
1420else
1421  ac_srcdir_defaulted=no
1422fi
1423if test ! -r "$srcdir/$ac_unique_file"; then
1424  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1425  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1426fi
1427ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1428ac_abs_confdir=`(
1429	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1430	pwd)`
1431# When building in place, set srcdir=.
1432if test "$ac_abs_confdir" = "$ac_pwd"; then
1433  srcdir=.
1434fi
1435# Remove unnecessary trailing slashes from srcdir.
1436# Double slashes in file names in object file debugging info
1437# mess up M-x gdb in Emacs.
1438case $srcdir in
1439*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1440esac
1441for ac_var in $ac_precious_vars; do
1442  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1443  eval ac_env_${ac_var}_value=\$${ac_var}
1444  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1445  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1446done
1447
1448#
1449# Report the --help message.
1450#
1451if test "$ac_init_help" = "long"; then
1452  # Omit some internal or obsolete options to make the list less imposing.
1453  # This message is too long to be a string in the A/UX 3.1 sh.
1454  cat <<_ACEOF
1455\`configure' configures PCRE 8.45 to adapt to many kinds of systems.
1456
1457Usage: $0 [OPTION]... [VAR=VALUE]...
1458
1459To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460VAR=VALUE.  See below for descriptions of some of the useful variables.
1461
1462Defaults for the options are specified in brackets.
1463
1464Configuration:
1465  -h, --help              display this help and exit
1466      --help=short        display options specific to this package
1467      --help=recursive    display the short help of all the included packages
1468  -V, --version           display version information and exit
1469  -q, --quiet, --silent   do not print \`checking ...' messages
1470      --cache-file=FILE   cache test results in FILE [disabled]
1471  -C, --config-cache      alias for \`--cache-file=config.cache'
1472  -n, --no-create         do not create output files
1473      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1474
1475Installation directories:
1476  --prefix=PREFIX         install architecture-independent files in PREFIX
1477                          [$ac_default_prefix]
1478  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1479                          [PREFIX]
1480
1481By default, \`make install' will install all the files in
1482\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1483an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1484for instance \`--prefix=\$HOME'.
1485
1486For better control, use the options below.
1487
1488Fine tuning of the installation directories:
1489  --bindir=DIR            user executables [EPREFIX/bin]
1490  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1491  --libexecdir=DIR        program executables [EPREFIX/libexec]
1492  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1493  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1494  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1495  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1496  --libdir=DIR            object code libraries [EPREFIX/lib]
1497  --includedir=DIR        C header files [PREFIX/include]
1498  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1499  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1500  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1501  --infodir=DIR           info documentation [DATAROOTDIR/info]
1502  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1503  --mandir=DIR            man documentation [DATAROOTDIR/man]
1504  --docdir=DIR            documentation root [DATAROOTDIR/doc/pcre]
1505  --htmldir=DIR           html documentation [DOCDIR]
1506  --dvidir=DIR            dvi documentation [DOCDIR]
1507  --pdfdir=DIR            pdf documentation [DOCDIR]
1508  --psdir=DIR             ps documentation [DOCDIR]
1509_ACEOF
1510
1511  cat <<\_ACEOF
1512
1513Program names:
1514  --program-prefix=PREFIX            prepend PREFIX to installed program names
1515  --program-suffix=SUFFIX            append SUFFIX to installed program names
1516  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1517
1518System types:
1519  --build=BUILD     configure for building on BUILD [guessed]
1520  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1521_ACEOF
1522fi
1523
1524if test -n "$ac_init_help"; then
1525  case $ac_init_help in
1526     short | recursive ) echo "Configuration of PCRE 8.45:";;
1527   esac
1528  cat <<\_ACEOF
1529
1530Optional Features:
1531  --disable-option-checking  ignore unrecognized --enable/--with options
1532  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1533  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1534  --enable-silent-rules   less verbose build output (undo: "make V=1")
1535  --disable-silent-rules  verbose build output (undo: "make V=0")
1536  --enable-dependency-tracking
1537                          do not reject slow dependency extractors
1538  --disable-dependency-tracking
1539                          speeds up one-time build
1540  --enable-shared[=PKGS]  build shared libraries [default=yes]
1541  --enable-static[=PKGS]  build static libraries [default=yes]
1542  --enable-fast-install[=PKGS]
1543                          optimize for fast installation [default=yes]
1544  --disable-libtool-lock  avoid locking (might break parallel builds)
1545  --disable-pcre8         disable 8 bit character support
1546  --enable-pcre16         enable 16 bit character support
1547  --enable-pcre32         enable 32 bit character support
1548  --disable-cpp           disable C++ support
1549  --enable-jit            enable Just-In-Time compiling support
1550  --disable-pcregrep-jit  disable JIT support in pcregrep
1551  --enable-rebuild-chartables
1552                          rebuild character tables in current locale
1553  --enable-utf8           another name for --enable-utf. Kept only for
1554                          compatibility reasons
1555  --enable-utf            enable UTF-8/16/32 support (incompatible with
1556                          --enable-ebcdic)
1557  --enable-unicode-properties
1558                          enable Unicode properties support (implies
1559                          --enable-utf)
1560  --enable-newline-is-cr  use CR as newline character
1561  --enable-newline-is-lf  use LF as newline character (default)
1562  --enable-newline-is-crlf
1563                          use CRLF as newline sequence
1564  --enable-newline-is-anycrlf
1565                          use CR, LF, or CRLF as newline sequence
1566  --enable-newline-is-any use any valid Unicode newline sequence
1567  --enable-bsr-anycrlf    \R matches only CR, LF, CRLF by default
1568  --enable-ebcdic         assume EBCDIC coding rather than ASCII; incompatible
1569                          with --enable-utf; use only in (uncommon) EBCDIC
1570                          environments; it implies --enable-rebuild-chartables
1571  --enable-ebcdic-nl25    set EBCDIC code for NL to 0x25 instead of 0x15; it
1572                          implies --enable-ebcdic
1573  --disable-stack-for-recursion
1574                          don't use stack recursion when matching
1575  --enable-pcregrep-libz  link pcregrep with libz to handle .gz files
1576  --enable-pcregrep-libbz2
1577                          link pcregrep with libbz2 to handle .bz2 files
1578  --enable-pcretest-libedit
1579                          link pcretest with libedit
1580  --enable-pcretest-libreadline
1581                          link pcretest with libreadline
1582  --enable-valgrind       valgrind support
1583  --enable-coverage       enable code coverage reports using gcov
1584
1585Optional Packages:
1586  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1587  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1588  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1589                          both]
1590  --with-aix-soname=aix|svr4|both
1591                          shared library versioning (aka "SONAME") variant to
1592                          provide on AIX, [default=aix].
1593  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1594  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1595                          compiler's sysroot if not specified).
1596  --with-pcregrep-bufsize=N
1597                          pcregrep buffer size (default=20480, minimum=8192)
1598  --with-posix-malloc-threshold=NBYTES
1599                          threshold for POSIX malloc usage (default=10)
1600  --with-link-size=N      internal link size (2, 3, or 4 allowed; default=2)
1601  --with-parens-nest-limit=N
1602                          nested parentheses limit (default=250)
1603  --with-match-limit=N    default limit on internal looping (default=10000000)
1604  --with-match-limit-recursion=N
1605                          default limit on internal recursion
1606                          (default=MATCH_LIMIT)
1607
1608Some influential environment variables:
1609  CC          C compiler command
1610  CFLAGS      C compiler flags
1611  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1612              nonstandard directory <lib dir>
1613  LIBS        libraries to pass to the linker, e.g. -l<library>
1614  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1615              you have headers in a nonstandard directory <include dir>
1616  CXX         C++ compiler command
1617  CXXFLAGS    C++ compiler flags
1618  LT_SYS_LIBRARY_PATH
1619              User-defined run-time library search path.
1620  CXXCPP      C++ preprocessor
1621  PKG_CONFIG  path to pkg-config utility
1622  PKG_CONFIG_PATH
1623              directories to add to pkg-config's search path
1624  PKG_CONFIG_LIBDIR
1625              path overriding pkg-config's built-in search path
1626  VALGRIND_CFLAGS
1627              C compiler flags for VALGRIND, overriding pkg-config
1628  VALGRIND_LIBS
1629              linker flags for VALGRIND, overriding pkg-config
1630  LCOV        the ltp lcov program
1631  GENHTML     the ltp genhtml program
1632
1633Use these variables to override the choices made by `configure' or to help
1634it to find libraries and programs with nonstandard names/locations.
1635
1636Report bugs to the package provider.
1637_ACEOF
1638ac_status=$?
1639fi
1640
1641if test "$ac_init_help" = "recursive"; then
1642  # If there are subdirs, report their specific --help.
1643  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1644    test -d "$ac_dir" ||
1645      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1646      continue
1647    ac_builddir=.
1648
1649case "$ac_dir" in
1650.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651*)
1652  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1653  # A ".." for each directory in $ac_dir_suffix.
1654  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1655  case $ac_top_builddir_sub in
1656  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1658  esac ;;
1659esac
1660ac_abs_top_builddir=$ac_pwd
1661ac_abs_builddir=$ac_pwd$ac_dir_suffix
1662# for backward compatibility:
1663ac_top_builddir=$ac_top_build_prefix
1664
1665case $srcdir in
1666  .)  # We are building in place.
1667    ac_srcdir=.
1668    ac_top_srcdir=$ac_top_builddir_sub
1669    ac_abs_top_srcdir=$ac_pwd ;;
1670  [\\/]* | ?:[\\/]* )  # Absolute name.
1671    ac_srcdir=$srcdir$ac_dir_suffix;
1672    ac_top_srcdir=$srcdir
1673    ac_abs_top_srcdir=$srcdir ;;
1674  *) # Relative name.
1675    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1676    ac_top_srcdir=$ac_top_build_prefix$srcdir
1677    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1678esac
1679ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1680
1681    cd "$ac_dir" || { ac_status=$?; continue; }
1682    # Check for configure.gnu first; this name is used for a wrapper for
1683    # Metaconfig's "Configure" on case-insensitive file systems.
1684    if test -f "$ac_srcdir/configure.gnu"; then
1685      echo &&
1686      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1687    elif test -f "$ac_srcdir/configure"; then
1688      echo &&
1689      $SHELL "$ac_srcdir/configure" --help=recursive
1690    else
1691      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1692    fi || ac_status=$?
1693    cd "$ac_pwd" || { ac_status=$?; break; }
1694  done
1695fi
1696
1697test -n "$ac_init_help" && exit $ac_status
1698if $ac_init_version; then
1699  cat <<\_ACEOF
1700PCRE configure 8.45
1701generated by GNU Autoconf 2.71
1702
1703Copyright (C) 2021 Free Software Foundation, Inc.
1704This configure script is free software; the Free Software Foundation
1705gives unlimited permission to copy, distribute and modify it.
1706_ACEOF
1707  exit
1708fi
1709
1710## ------------------------ ##
1711## Autoconf initialization. ##
1712## ------------------------ ##
1713
1714# ac_fn_c_try_compile LINENO
1715# --------------------------
1716# Try to compile conftest.$ac_ext, and return whether this succeeded.
1717ac_fn_c_try_compile ()
1718{
1719  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720  rm -f conftest.$ac_objext conftest.beam
1721  if { { ac_try="$ac_compile"
1722case "(($ac_try" in
1723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724  *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727printf "%s\n" "$ac_try_echo"; } >&5
1728  (eval "$ac_compile") 2>conftest.err
1729  ac_status=$?
1730  if test -s conftest.err; then
1731    grep -v '^ *+' conftest.err >conftest.er1
1732    cat conftest.er1 >&5
1733    mv -f conftest.er1 conftest.err
1734  fi
1735  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736  test $ac_status = 0; } && {
1737	 test -z "$ac_c_werror_flag" ||
1738	 test ! -s conftest.err
1739       } && test -s conftest.$ac_objext
1740then :
1741  ac_retval=0
1742else $as_nop
1743  printf "%s\n" "$as_me: failed program was:" >&5
1744sed 's/^/| /' conftest.$ac_ext >&5
1745
1746	ac_retval=1
1747fi
1748  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749  as_fn_set_status $ac_retval
1750
1751} # ac_fn_c_try_compile
1752
1753# ac_fn_cxx_try_compile LINENO
1754# ----------------------------
1755# Try to compile conftest.$ac_ext, and return whether this succeeded.
1756ac_fn_cxx_try_compile ()
1757{
1758  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759  rm -f conftest.$ac_objext conftest.beam
1760  if { { ac_try="$ac_compile"
1761case "(($ac_try" in
1762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763  *) ac_try_echo=$ac_try;;
1764esac
1765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766printf "%s\n" "$ac_try_echo"; } >&5
1767  (eval "$ac_compile") 2>conftest.err
1768  ac_status=$?
1769  if test -s conftest.err; then
1770    grep -v '^ *+' conftest.err >conftest.er1
1771    cat conftest.er1 >&5
1772    mv -f conftest.er1 conftest.err
1773  fi
1774  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775  test $ac_status = 0; } && {
1776	 test -z "$ac_cxx_werror_flag" ||
1777	 test ! -s conftest.err
1778       } && test -s conftest.$ac_objext
1779then :
1780  ac_retval=0
1781else $as_nop
1782  printf "%s\n" "$as_me: failed program was:" >&5
1783sed 's/^/| /' conftest.$ac_ext >&5
1784
1785	ac_retval=1
1786fi
1787  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788  as_fn_set_status $ac_retval
1789
1790} # ac_fn_cxx_try_compile
1791
1792# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1793# -------------------------------------------------------
1794# Tests whether HEADER exists and can be compiled using the include files in
1795# INCLUDES, setting the cache variable VAR accordingly.
1796ac_fn_c_check_header_compile ()
1797{
1798  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800printf %s "checking for $2... " >&6; }
1801if eval test \${$3+y}
1802then :
1803  printf %s "(cached) " >&6
1804else $as_nop
1805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806/* end confdefs.h.  */
1807$4
1808#include <$2>
1809_ACEOF
1810if ac_fn_c_try_compile "$LINENO"
1811then :
1812  eval "$3=yes"
1813else $as_nop
1814  eval "$3=no"
1815fi
1816rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1817fi
1818eval ac_res=\$$3
1819	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820printf "%s\n" "$ac_res" >&6; }
1821  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822
1823} # ac_fn_c_check_header_compile
1824
1825# ac_fn_c_find_intX_t LINENO BITS VAR
1826# -----------------------------------
1827# Finds a signed integer type with width BITS, setting cache variable VAR
1828# accordingly.
1829ac_fn_c_find_intX_t ()
1830{
1831  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1833printf %s "checking for int$2_t... " >&6; }
1834if eval test \${$3+y}
1835then :
1836  printf %s "(cached) " >&6
1837else $as_nop
1838  eval "$3=no"
1839     # Order is important - never check a type that is potentially smaller
1840     # than half of the expected target width.
1841     for ac_type in int$2_t 'int' 'long int' \
1842	 'long long int' 'short int' 'signed char'; do
1843       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844/* end confdefs.h.  */
1845$ac_includes_default
1846	     enum { N = $2 / 2 - 1 };
1847int
1848main (void)
1849{
1850static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1851test_array [0] = 0;
1852return test_array [0];
1853
1854  ;
1855  return 0;
1856}
1857_ACEOF
1858if ac_fn_c_try_compile "$LINENO"
1859then :
1860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861/* end confdefs.h.  */
1862$ac_includes_default
1863	        enum { N = $2 / 2 - 1 };
1864int
1865main (void)
1866{
1867static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1868		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1869test_array [0] = 0;
1870return test_array [0];
1871
1872  ;
1873  return 0;
1874}
1875_ACEOF
1876if ac_fn_c_try_compile "$LINENO"
1877then :
1878
1879else $as_nop
1880  case $ac_type in #(
1881  int$2_t) :
1882    eval "$3=yes" ;; #(
1883  *) :
1884    eval "$3=\$ac_type" ;;
1885esac
1886fi
1887rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1888fi
1889rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1890       if eval test \"x\$"$3"\" = x"no"
1891then :
1892
1893else $as_nop
1894  break
1895fi
1896     done
1897fi
1898eval ac_res=\$$3
1899	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900printf "%s\n" "$ac_res" >&6; }
1901  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902
1903} # ac_fn_c_find_intX_t
1904
1905# ac_fn_c_try_link LINENO
1906# -----------------------
1907# Try to link conftest.$ac_ext, and return whether this succeeded.
1908ac_fn_c_try_link ()
1909{
1910  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1912  if { { ac_try="$ac_link"
1913case "(($ac_try" in
1914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915  *) ac_try_echo=$ac_try;;
1916esac
1917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918printf "%s\n" "$ac_try_echo"; } >&5
1919  (eval "$ac_link") 2>conftest.err
1920  ac_status=$?
1921  if test -s conftest.err; then
1922    grep -v '^ *+' conftest.err >conftest.er1
1923    cat conftest.er1 >&5
1924    mv -f conftest.er1 conftest.err
1925  fi
1926  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927  test $ac_status = 0; } && {
1928	 test -z "$ac_c_werror_flag" ||
1929	 test ! -s conftest.err
1930       } && test -s conftest$ac_exeext && {
1931	 test "$cross_compiling" = yes ||
1932	 test -x conftest$ac_exeext
1933       }
1934then :
1935  ac_retval=0
1936else $as_nop
1937  printf "%s\n" "$as_me: failed program was:" >&5
1938sed 's/^/| /' conftest.$ac_ext >&5
1939
1940	ac_retval=1
1941fi
1942  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1943  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1944  # interfere with the next link command; also delete a directory that is
1945  # left behind by Apple's compiler.  We do this before executing the actions.
1946  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1947  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948  as_fn_set_status $ac_retval
1949
1950} # ac_fn_c_try_link
1951
1952# ac_fn_c_check_func LINENO FUNC VAR
1953# ----------------------------------
1954# Tests whether FUNC exists, setting the cache variable VAR accordingly
1955ac_fn_c_check_func ()
1956{
1957  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959printf %s "checking for $2... " >&6; }
1960if eval test \${$3+y}
1961then :
1962  printf %s "(cached) " >&6
1963else $as_nop
1964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965/* end confdefs.h.  */
1966/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1967   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1968#define $2 innocuous_$2
1969
1970/* System header to define __stub macros and hopefully few prototypes,
1971   which can conflict with char $2 (); below.  */
1972
1973#include <limits.h>
1974#undef $2
1975
1976/* Override any GCC internal prototype to avoid an error.
1977   Use char because int might match the return type of a GCC
1978   builtin and then its argument prototype would still apply.  */
1979#ifdef __cplusplus
1980extern "C"
1981#endif
1982char $2 ();
1983/* The GNU C library defines this for functions which it implements
1984    to always fail with ENOSYS.  Some functions are actually named
1985    something starting with __ and the normal name is an alias.  */
1986#if defined __stub_$2 || defined __stub___$2
1987choke me
1988#endif
1989
1990int
1991main (void)
1992{
1993return $2 ();
1994  ;
1995  return 0;
1996}
1997_ACEOF
1998if ac_fn_c_try_link "$LINENO"
1999then :
2000  eval "$3=yes"
2001else $as_nop
2002  eval "$3=no"
2003fi
2004rm -f core conftest.err conftest.$ac_objext conftest.beam \
2005    conftest$ac_exeext conftest.$ac_ext
2006fi
2007eval ac_res=\$$3
2008	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009printf "%s\n" "$ac_res" >&6; }
2010  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011
2012} # ac_fn_c_check_func
2013
2014# ac_fn_cxx_try_cpp LINENO
2015# ------------------------
2016# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2017ac_fn_cxx_try_cpp ()
2018{
2019  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020  if { { ac_try="$ac_cpp conftest.$ac_ext"
2021case "(($ac_try" in
2022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2023  *) ac_try_echo=$ac_try;;
2024esac
2025eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2026printf "%s\n" "$ac_try_echo"; } >&5
2027  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2028  ac_status=$?
2029  if test -s conftest.err; then
2030    grep -v '^ *+' conftest.err >conftest.er1
2031    cat conftest.er1 >&5
2032    mv -f conftest.er1 conftest.err
2033  fi
2034  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2035  test $ac_status = 0; } > conftest.i && {
2036	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2037	 test ! -s conftest.err
2038       }
2039then :
2040  ac_retval=0
2041else $as_nop
2042  printf "%s\n" "$as_me: failed program was:" >&5
2043sed 's/^/| /' conftest.$ac_ext >&5
2044
2045    ac_retval=1
2046fi
2047  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048  as_fn_set_status $ac_retval
2049
2050} # ac_fn_cxx_try_cpp
2051
2052# ac_fn_cxx_try_link LINENO
2053# -------------------------
2054# Try to link conftest.$ac_ext, and return whether this succeeded.
2055ac_fn_cxx_try_link ()
2056{
2057  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2059  if { { ac_try="$ac_link"
2060case "(($ac_try" in
2061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2062  *) ac_try_echo=$ac_try;;
2063esac
2064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2065printf "%s\n" "$ac_try_echo"; } >&5
2066  (eval "$ac_link") 2>conftest.err
2067  ac_status=$?
2068  if test -s conftest.err; then
2069    grep -v '^ *+' conftest.err >conftest.er1
2070    cat conftest.er1 >&5
2071    mv -f conftest.er1 conftest.err
2072  fi
2073  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2074  test $ac_status = 0; } && {
2075	 test -z "$ac_cxx_werror_flag" ||
2076	 test ! -s conftest.err
2077       } && test -s conftest$ac_exeext && {
2078	 test "$cross_compiling" = yes ||
2079	 test -x conftest$ac_exeext
2080       }
2081then :
2082  ac_retval=0
2083else $as_nop
2084  printf "%s\n" "$as_me: failed program was:" >&5
2085sed 's/^/| /' conftest.$ac_ext >&5
2086
2087	ac_retval=1
2088fi
2089  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2090  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2091  # interfere with the next link command; also delete a directory that is
2092  # left behind by Apple's compiler.  We do this before executing the actions.
2093  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2094  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095  as_fn_set_status $ac_retval
2096
2097} # ac_fn_cxx_try_link
2098
2099# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2100# ---------------------------------------------------------
2101# Tests whether HEADER exists and can be compiled using the include files in
2102# INCLUDES, setting the cache variable VAR accordingly.
2103ac_fn_cxx_check_header_compile ()
2104{
2105  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2106  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2107printf %s "checking for $2... " >&6; }
2108if eval test \${$3+y}
2109then :
2110  printf %s "(cached) " >&6
2111else $as_nop
2112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113/* end confdefs.h.  */
2114$4
2115#include <$2>
2116_ACEOF
2117if ac_fn_cxx_try_compile "$LINENO"
2118then :
2119  eval "$3=yes"
2120else $as_nop
2121  eval "$3=no"
2122fi
2123rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2124fi
2125eval ac_res=\$$3
2126	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2127printf "%s\n" "$ac_res" >&6; }
2128  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129
2130} # ac_fn_cxx_check_header_compile
2131
2132# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2133# ---------------------------------------------
2134# Tests whether TYPE exists after having included INCLUDES, setting cache
2135# variable VAR accordingly.
2136ac_fn_cxx_check_type ()
2137{
2138  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2140printf %s "checking for $2... " >&6; }
2141if eval test \${$3+y}
2142then :
2143  printf %s "(cached) " >&6
2144else $as_nop
2145  eval "$3=no"
2146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147/* end confdefs.h.  */
2148$4
2149int
2150main (void)
2151{
2152if (sizeof ($2))
2153	 return 0;
2154  ;
2155  return 0;
2156}
2157_ACEOF
2158if ac_fn_cxx_try_compile "$LINENO"
2159then :
2160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161/* end confdefs.h.  */
2162$4
2163int
2164main (void)
2165{
2166if (sizeof (($2)))
2167	    return 0;
2168  ;
2169  return 0;
2170}
2171_ACEOF
2172if ac_fn_cxx_try_compile "$LINENO"
2173then :
2174
2175else $as_nop
2176  eval "$3=yes"
2177fi
2178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2179fi
2180rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2181fi
2182eval ac_res=\$$3
2183	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2184printf "%s\n" "$ac_res" >&6; }
2185  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2186
2187} # ac_fn_cxx_check_type
2188
2189# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2190# -------------------------------------------
2191# Tests whether TYPE exists after having included INCLUDES, setting cache
2192# variable VAR accordingly.
2193ac_fn_c_check_type ()
2194{
2195  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2196  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2197printf %s "checking for $2... " >&6; }
2198if eval test \${$3+y}
2199then :
2200  printf %s "(cached) " >&6
2201else $as_nop
2202  eval "$3=no"
2203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204/* end confdefs.h.  */
2205$4
2206int
2207main (void)
2208{
2209if (sizeof ($2))
2210	 return 0;
2211  ;
2212  return 0;
2213}
2214_ACEOF
2215if ac_fn_c_try_compile "$LINENO"
2216then :
2217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218/* end confdefs.h.  */
2219$4
2220int
2221main (void)
2222{
2223if (sizeof (($2)))
2224	    return 0;
2225  ;
2226  return 0;
2227}
2228_ACEOF
2229if ac_fn_c_try_compile "$LINENO"
2230then :
2231
2232else $as_nop
2233  eval "$3=yes"
2234fi
2235rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2236fi
2237rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2238fi
2239eval ac_res=\$$3
2240	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2241printf "%s\n" "$ac_res" >&6; }
2242  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2243
2244} # ac_fn_c_check_type
2245ac_configure_args_raw=
2246for ac_arg
2247do
2248  case $ac_arg in
2249  *\'*)
2250    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2251  esac
2252  as_fn_append ac_configure_args_raw " '$ac_arg'"
2253done
2254
2255case $ac_configure_args_raw in
2256  *$as_nl*)
2257    ac_safe_unquote= ;;
2258  *)
2259    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2260    ac_unsafe_a="$ac_unsafe_z#~"
2261    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2262    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2263esac
2264
2265cat >config.log <<_ACEOF
2266This file contains any messages produced by compilers while
2267running configure, to aid debugging if configure makes a mistake.
2268
2269It was created by PCRE $as_me 8.45, which was
2270generated by GNU Autoconf 2.71.  Invocation command line was
2271
2272  $ $0$ac_configure_args_raw
2273
2274_ACEOF
2275exec 5>>config.log
2276{
2277cat <<_ASUNAME
2278## --------- ##
2279## Platform. ##
2280## --------- ##
2281
2282hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2283uname -m = `(uname -m) 2>/dev/null || echo unknown`
2284uname -r = `(uname -r) 2>/dev/null || echo unknown`
2285uname -s = `(uname -s) 2>/dev/null || echo unknown`
2286uname -v = `(uname -v) 2>/dev/null || echo unknown`
2287
2288/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2289/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2290
2291/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2292/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2293/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2294/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2295/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2296/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2297/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2298
2299_ASUNAME
2300
2301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302for as_dir in $PATH
2303do
2304  IFS=$as_save_IFS
2305  case $as_dir in #(((
2306    '') as_dir=./ ;;
2307    */) ;;
2308    *) as_dir=$as_dir/ ;;
2309  esac
2310    printf "%s\n" "PATH: $as_dir"
2311  done
2312IFS=$as_save_IFS
2313
2314} >&5
2315
2316cat >&5 <<_ACEOF
2317
2318
2319## ----------- ##
2320## Core tests. ##
2321## ----------- ##
2322
2323_ACEOF
2324
2325
2326# Keep a trace of the command line.
2327# Strip out --no-create and --no-recursion so they do not pile up.
2328# Strip out --silent because we don't want to record it for future runs.
2329# Also quote any args containing shell meta-characters.
2330# Make two passes to allow for proper duplicate-argument suppression.
2331ac_configure_args=
2332ac_configure_args0=
2333ac_configure_args1=
2334ac_must_keep_next=false
2335for ac_pass in 1 2
2336do
2337  for ac_arg
2338  do
2339    case $ac_arg in
2340    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2341    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2342    | -silent | --silent | --silen | --sile | --sil)
2343      continue ;;
2344    *\'*)
2345      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2346    esac
2347    case $ac_pass in
2348    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2349    2)
2350      as_fn_append ac_configure_args1 " '$ac_arg'"
2351      if test $ac_must_keep_next = true; then
2352	ac_must_keep_next=false # Got value, back to normal.
2353      else
2354	case $ac_arg in
2355	  *=* | --config-cache | -C | -disable-* | --disable-* \
2356	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2357	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2358	  | -with-* | --with-* | -without-* | --without-* | --x)
2359	    case "$ac_configure_args0 " in
2360	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2361	    esac
2362	    ;;
2363	  -* ) ac_must_keep_next=true ;;
2364	esac
2365      fi
2366      as_fn_append ac_configure_args " '$ac_arg'"
2367      ;;
2368    esac
2369  done
2370done
2371{ ac_configure_args0=; unset ac_configure_args0;}
2372{ ac_configure_args1=; unset ac_configure_args1;}
2373
2374# When interrupted or exit'd, cleanup temporary files, and complete
2375# config.log.  We remove comments because anyway the quotes in there
2376# would cause problems or look ugly.
2377# WARNING: Use '\'' to represent an apostrophe within the trap.
2378# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2379trap 'exit_status=$?
2380  # Sanitize IFS.
2381  IFS=" ""	$as_nl"
2382  # Save into config.log some information that might help in debugging.
2383  {
2384    echo
2385
2386    printf "%s\n" "## ---------------- ##
2387## Cache variables. ##
2388## ---------------- ##"
2389    echo
2390    # The following way of writing the cache mishandles newlines in values,
2391(
2392  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2393    eval ac_val=\$$ac_var
2394    case $ac_val in #(
2395    *${as_nl}*)
2396      case $ac_var in #(
2397      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2398printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2399      esac
2400      case $ac_var in #(
2401      _ | IFS | as_nl) ;; #(
2402      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2403      *) { eval $ac_var=; unset $ac_var;} ;;
2404      esac ;;
2405    esac
2406  done
2407  (set) 2>&1 |
2408    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2409    *${as_nl}ac_space=\ *)
2410      sed -n \
2411	"s/'\''/'\''\\\\'\'''\''/g;
2412	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2413      ;; #(
2414    *)
2415      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2416      ;;
2417    esac |
2418    sort
2419)
2420    echo
2421
2422    printf "%s\n" "## ----------------- ##
2423## Output variables. ##
2424## ----------------- ##"
2425    echo
2426    for ac_var in $ac_subst_vars
2427    do
2428      eval ac_val=\$$ac_var
2429      case $ac_val in
2430      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2431      esac
2432      printf "%s\n" "$ac_var='\''$ac_val'\''"
2433    done | sort
2434    echo
2435
2436    if test -n "$ac_subst_files"; then
2437      printf "%s\n" "## ------------------- ##
2438## File substitutions. ##
2439## ------------------- ##"
2440      echo
2441      for ac_var in $ac_subst_files
2442      do
2443	eval ac_val=\$$ac_var
2444	case $ac_val in
2445	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2446	esac
2447	printf "%s\n" "$ac_var='\''$ac_val'\''"
2448      done | sort
2449      echo
2450    fi
2451
2452    if test -s confdefs.h; then
2453      printf "%s\n" "## ----------- ##
2454## confdefs.h. ##
2455## ----------- ##"
2456      echo
2457      cat confdefs.h
2458      echo
2459    fi
2460    test "$ac_signal" != 0 &&
2461      printf "%s\n" "$as_me: caught signal $ac_signal"
2462    printf "%s\n" "$as_me: exit $exit_status"
2463  } >&5
2464  rm -f core *.core core.conftest.* &&
2465    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2466    exit $exit_status
2467' 0
2468for ac_signal in 1 2 13 15; do
2469  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2470done
2471ac_signal=0
2472
2473# confdefs.h avoids OS command line length limits that DEFS can exceed.
2474rm -f -r conftest* confdefs.h
2475
2476printf "%s\n" "/* confdefs.h */" > confdefs.h
2477
2478# Predefined preprocessor variables.
2479
2480printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2481
2482printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2483
2484printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2485
2486printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2487
2488printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2489
2490printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2491
2492
2493# Let the site file select an alternate cache file if it wants to.
2494# Prefer an explicitly selected file to automatically selected ones.
2495if test -n "$CONFIG_SITE"; then
2496  ac_site_files="$CONFIG_SITE"
2497elif test "x$prefix" != xNONE; then
2498  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2499else
2500  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2501fi
2502
2503for ac_site_file in $ac_site_files
2504do
2505  case $ac_site_file in #(
2506  */*) :
2507     ;; #(
2508  *) :
2509    ac_site_file=./$ac_site_file ;;
2510esac
2511  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2512    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2513printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2514    sed 's/^/| /' "$ac_site_file" >&5
2515    . "$ac_site_file" \
2516      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2517printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2518as_fn_error $? "failed to load site script $ac_site_file
2519See \`config.log' for more details" "$LINENO" 5; }
2520  fi
2521done
2522
2523if test -r "$cache_file"; then
2524  # Some versions of bash will fail to source /dev/null (special files
2525  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2526  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2527    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2528printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2529    case $cache_file in
2530      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2531      *)                      . "./$cache_file";;
2532    esac
2533  fi
2534else
2535  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2536printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2537  >$cache_file
2538fi
2539
2540# Test code for whether the C compiler supports C89 (global declarations)
2541ac_c_conftest_c89_globals='
2542/* Does the compiler advertise C89 conformance?
2543   Do not test the value of __STDC__, because some compilers set it to 0
2544   while being otherwise adequately conformant. */
2545#if !defined __STDC__
2546# error "Compiler does not advertise C89 conformance"
2547#endif
2548
2549#include <stddef.h>
2550#include <stdarg.h>
2551struct stat;
2552/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2553struct buf { int x; };
2554struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2555static char *e (p, i)
2556     char **p;
2557     int i;
2558{
2559  return p[i];
2560}
2561static char *f (char * (*g) (char **, int), char **p, ...)
2562{
2563  char *s;
2564  va_list v;
2565  va_start (v,p);
2566  s = g (p, va_arg (v,int));
2567  va_end (v);
2568  return s;
2569}
2570
2571/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2572   function prototypes and stuff, but not \xHH hex character constants.
2573   These do not provoke an error unfortunately, instead are silently treated
2574   as an "x".  The following induces an error, until -std is added to get
2575   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2576   array size at least.  It is necessary to write \x00 == 0 to get something
2577   that is true only with -std.  */
2578int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2579
2580/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2581   inside strings and character constants.  */
2582#define FOO(x) '\''x'\''
2583int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2584
2585int test (int i, double x);
2586struct s1 {int (*f) (int a);};
2587struct s2 {int (*f) (double a);};
2588int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2589               int, int);'
2590
2591# Test code for whether the C compiler supports C89 (body of main).
2592ac_c_conftest_c89_main='
2593ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2594'
2595
2596# Test code for whether the C compiler supports C99 (global declarations)
2597ac_c_conftest_c99_globals='
2598// Does the compiler advertise C99 conformance?
2599#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2600# error "Compiler does not advertise C99 conformance"
2601#endif
2602
2603#include <stdbool.h>
2604extern int puts (const char *);
2605extern int printf (const char *, ...);
2606extern int dprintf (int, const char *, ...);
2607extern void *malloc (size_t);
2608
2609// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2610// dprintf is used instead of fprintf to avoid needing to declare
2611// FILE and stderr.
2612#define debug(...) dprintf (2, __VA_ARGS__)
2613#define showlist(...) puts (#__VA_ARGS__)
2614#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2615static void
2616test_varargs_macros (void)
2617{
2618  int x = 1234;
2619  int y = 5678;
2620  debug ("Flag");
2621  debug ("X = %d\n", x);
2622  showlist (The first, second, and third items.);
2623  report (x>y, "x is %d but y is %d", x, y);
2624}
2625
2626// Check long long types.
2627#define BIG64 18446744073709551615ull
2628#define BIG32 4294967295ul
2629#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2630#if !BIG_OK
2631  #error "your preprocessor is broken"
2632#endif
2633#if BIG_OK
2634#else
2635  #error "your preprocessor is broken"
2636#endif
2637static long long int bignum = -9223372036854775807LL;
2638static unsigned long long int ubignum = BIG64;
2639
2640struct incomplete_array
2641{
2642  int datasize;
2643  double data[];
2644};
2645
2646struct named_init {
2647  int number;
2648  const wchar_t *name;
2649  double average;
2650};
2651
2652typedef const char *ccp;
2653
2654static inline int
2655test_restrict (ccp restrict text)
2656{
2657  // See if C++-style comments work.
2658  // Iterate through items via the restricted pointer.
2659  // Also check for declarations in for loops.
2660  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2661    continue;
2662  return 0;
2663}
2664
2665// Check varargs and va_copy.
2666static bool
2667test_varargs (const char *format, ...)
2668{
2669  va_list args;
2670  va_start (args, format);
2671  va_list args_copy;
2672  va_copy (args_copy, args);
2673
2674  const char *str = "";
2675  int number = 0;
2676  float fnumber = 0;
2677
2678  while (*format)
2679    {
2680      switch (*format++)
2681	{
2682	case '\''s'\'': // string
2683	  str = va_arg (args_copy, const char *);
2684	  break;
2685	case '\''d'\'': // int
2686	  number = va_arg (args_copy, int);
2687	  break;
2688	case '\''f'\'': // float
2689	  fnumber = va_arg (args_copy, double);
2690	  break;
2691	default:
2692	  break;
2693	}
2694    }
2695  va_end (args_copy);
2696  va_end (args);
2697
2698  return *str && number && fnumber;
2699}
2700'
2701
2702# Test code for whether the C compiler supports C99 (body of main).
2703ac_c_conftest_c99_main='
2704  // Check bool.
2705  _Bool success = false;
2706  success |= (argc != 0);
2707
2708  // Check restrict.
2709  if (test_restrict ("String literal") == 0)
2710    success = true;
2711  char *restrict newvar = "Another string";
2712
2713  // Check varargs.
2714  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2715  test_varargs_macros ();
2716
2717  // Check flexible array members.
2718  struct incomplete_array *ia =
2719    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2720  ia->datasize = 10;
2721  for (int i = 0; i < ia->datasize; ++i)
2722    ia->data[i] = i * 1.234;
2723
2724  // Check named initializers.
2725  struct named_init ni = {
2726    .number = 34,
2727    .name = L"Test wide string",
2728    .average = 543.34343,
2729  };
2730
2731  ni.number = 58;
2732
2733  int dynamic_array[ni.number];
2734  dynamic_array[0] = argv[0][0];
2735  dynamic_array[ni.number - 1] = 543;
2736
2737  // work around unused variable warnings
2738  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2739	 || dynamic_array[ni.number - 1] != 543);
2740'
2741
2742# Test code for whether the C compiler supports C11 (global declarations)
2743ac_c_conftest_c11_globals='
2744// Does the compiler advertise C11 conformance?
2745#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2746# error "Compiler does not advertise C11 conformance"
2747#endif
2748
2749// Check _Alignas.
2750char _Alignas (double) aligned_as_double;
2751char _Alignas (0) no_special_alignment;
2752extern char aligned_as_int;
2753char _Alignas (0) _Alignas (int) aligned_as_int;
2754
2755// Check _Alignof.
2756enum
2757{
2758  int_alignment = _Alignof (int),
2759  int_array_alignment = _Alignof (int[100]),
2760  char_alignment = _Alignof (char)
2761};
2762_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2763
2764// Check _Noreturn.
2765int _Noreturn does_not_return (void) { for (;;) continue; }
2766
2767// Check _Static_assert.
2768struct test_static_assert
2769{
2770  int x;
2771  _Static_assert (sizeof (int) <= sizeof (long int),
2772                  "_Static_assert does not work in struct");
2773  long int y;
2774};
2775
2776// Check UTF-8 literals.
2777#define u8 syntax error!
2778char const utf8_literal[] = u8"happens to be ASCII" "another string";
2779
2780// Check duplicate typedefs.
2781typedef long *long_ptr;
2782typedef long int *long_ptr;
2783typedef long_ptr long_ptr;
2784
2785// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2786struct anonymous
2787{
2788  union {
2789    struct { int i; int j; };
2790    struct { int k; long int l; } w;
2791  };
2792  int m;
2793} v1;
2794'
2795
2796# Test code for whether the C compiler supports C11 (body of main).
2797ac_c_conftest_c11_main='
2798  _Static_assert ((offsetof (struct anonymous, i)
2799		   == offsetof (struct anonymous, w.k)),
2800		  "Anonymous union alignment botch");
2801  v1.i = 2;
2802  v1.w.k = 5;
2803  ok |= v1.i != 5;
2804'
2805
2806# Test code for whether the C compiler supports C11 (complete).
2807ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2808${ac_c_conftest_c99_globals}
2809${ac_c_conftest_c11_globals}
2810
2811int
2812main (int argc, char **argv)
2813{
2814  int ok = 0;
2815  ${ac_c_conftest_c89_main}
2816  ${ac_c_conftest_c99_main}
2817  ${ac_c_conftest_c11_main}
2818  return ok;
2819}
2820"
2821
2822# Test code for whether the C compiler supports C99 (complete).
2823ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2824${ac_c_conftest_c99_globals}
2825
2826int
2827main (int argc, char **argv)
2828{
2829  int ok = 0;
2830  ${ac_c_conftest_c89_main}
2831  ${ac_c_conftest_c99_main}
2832  return ok;
2833}
2834"
2835
2836# Test code for whether the C compiler supports C89 (complete).
2837ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2838
2839int
2840main (int argc, char **argv)
2841{
2842  int ok = 0;
2843  ${ac_c_conftest_c89_main}
2844  return ok;
2845}
2846"
2847
2848# Test code for whether the C++ compiler supports C++98 (global declarations)
2849ac_cxx_conftest_cxx98_globals='
2850// Does the compiler advertise C++98 conformance?
2851#if !defined __cplusplus || __cplusplus < 199711L
2852# error "Compiler does not advertise C++98 conformance"
2853#endif
2854
2855// These inclusions are to reject old compilers that
2856// lack the unsuffixed header files.
2857#include <cstdlib>
2858#include <exception>
2859
2860// <cassert> and <cstring> are *not* freestanding headers in C++98.
2861extern void assert (int);
2862namespace std {
2863  extern int strcmp (const char *, const char *);
2864}
2865
2866// Namespaces, exceptions, and templates were all added after "C++ 2.0".
2867using std::exception;
2868using std::strcmp;
2869
2870namespace {
2871
2872void test_exception_syntax()
2873{
2874  try {
2875    throw "test";
2876  } catch (const char *s) {
2877    // Extra parentheses suppress a warning when building autoconf itself,
2878    // due to lint rules shared with more typical C programs.
2879    assert (!(strcmp) (s, "test"));
2880  }
2881}
2882
2883template <typename T> struct test_template
2884{
2885  T const val;
2886  explicit test_template(T t) : val(t) {}
2887  template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2888};
2889
2890} // anonymous namespace
2891'
2892
2893# Test code for whether the C++ compiler supports C++98 (body of main)
2894ac_cxx_conftest_cxx98_main='
2895  assert (argc);
2896  assert (! argv[0]);
2897{
2898  test_exception_syntax ();
2899  test_template<double> tt (2.0);
2900  assert (tt.add (4) == 6.0);
2901  assert (true && !false);
2902}
2903'
2904
2905# Test code for whether the C++ compiler supports C++11 (global declarations)
2906ac_cxx_conftest_cxx11_globals='
2907// Does the compiler advertise C++ 2011 conformance?
2908#if !defined __cplusplus || __cplusplus < 201103L
2909# error "Compiler does not advertise C++11 conformance"
2910#endif
2911
2912namespace cxx11test
2913{
2914  constexpr int get_val() { return 20; }
2915
2916  struct testinit
2917  {
2918    int i;
2919    double d;
2920  };
2921
2922  class delegate
2923  {
2924  public:
2925    delegate(int n) : n(n) {}
2926    delegate(): delegate(2354) {}
2927
2928    virtual int getval() { return this->n; };
2929  protected:
2930    int n;
2931  };
2932
2933  class overridden : public delegate
2934  {
2935  public:
2936    overridden(int n): delegate(n) {}
2937    virtual int getval() override final { return this->n * 2; }
2938  };
2939
2940  class nocopy
2941  {
2942  public:
2943    nocopy(int i): i(i) {}
2944    nocopy() = default;
2945    nocopy(const nocopy&) = delete;
2946    nocopy & operator=(const nocopy&) = delete;
2947  private:
2948    int i;
2949  };
2950
2951  // for testing lambda expressions
2952  template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2953  {
2954    return f(v);
2955  }
2956
2957  // for testing variadic templates and trailing return types
2958  template <typename V> auto sum(V first) -> V
2959  {
2960    return first;
2961  }
2962  template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2963  {
2964    return first + sum(rest...);
2965  }
2966}
2967'
2968
2969# Test code for whether the C++ compiler supports C++11 (body of main)
2970ac_cxx_conftest_cxx11_main='
2971{
2972  // Test auto and decltype
2973  auto a1 = 6538;
2974  auto a2 = 48573953.4;
2975  auto a3 = "String literal";
2976
2977  int total = 0;
2978  for (auto i = a3; *i; ++i) { total += *i; }
2979
2980  decltype(a2) a4 = 34895.034;
2981}
2982{
2983  // Test constexpr
2984  short sa[cxx11test::get_val()] = { 0 };
2985}
2986{
2987  // Test initializer lists
2988  cxx11test::testinit il = { 4323, 435234.23544 };
2989}
2990{
2991  // Test range-based for
2992  int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2993                 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2994  for (auto &x : array) { x += 23; }
2995}
2996{
2997  // Test lambda expressions
2998  using cxx11test::eval;
2999  assert (eval ([](int x) { return x*2; }, 21) == 42);
3000  double d = 2.0;
3001  assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3002  assert (d == 5.0);
3003  assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3004  assert (d == 5.0);
3005}
3006{
3007  // Test use of variadic templates
3008  using cxx11test::sum;
3009  auto a = sum(1);
3010  auto b = sum(1, 2);
3011  auto c = sum(1.0, 2.0, 3.0);
3012}
3013{
3014  // Test constructor delegation
3015  cxx11test::delegate d1;
3016  cxx11test::delegate d2();
3017  cxx11test::delegate d3(45);
3018}
3019{
3020  // Test override and final
3021  cxx11test::overridden o1(55464);
3022}
3023{
3024  // Test nullptr
3025  char *c = nullptr;
3026}
3027{
3028  // Test template brackets
3029  test_template<::test_template<int>> v(test_template<int>(12));
3030}
3031{
3032  // Unicode literals
3033  char const *utf8 = u8"UTF-8 string \u2500";
3034  char16_t const *utf16 = u"UTF-8 string \u2500";
3035  char32_t const *utf32 = U"UTF-32 string \u2500";
3036}
3037'
3038
3039# Test code for whether the C compiler supports C++11 (complete).
3040ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3041${ac_cxx_conftest_cxx11_globals}
3042
3043int
3044main (int argc, char **argv)
3045{
3046  int ok = 0;
3047  ${ac_cxx_conftest_cxx98_main}
3048  ${ac_cxx_conftest_cxx11_main}
3049  return ok;
3050}
3051"
3052
3053# Test code for whether the C compiler supports C++98 (complete).
3054ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3055int
3056main (int argc, char **argv)
3057{
3058  int ok = 0;
3059  ${ac_cxx_conftest_cxx98_main}
3060  return ok;
3061}
3062"
3063
3064as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3065as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3066as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3067as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3068as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3069as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3070as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3071as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3072as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3073
3074# Auxiliary files required by this configure script.
3075ac_aux_files="ltmain.sh config.guess config.sub compile ar-lib missing install-sh"
3076
3077# Locations in which to look for auxiliary files.
3078ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3079
3080# Search for a directory containing all of the required auxiliary files,
3081# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3082# If we don't find one directory that contains all the files we need,
3083# we report the set of missing files from the *first* directory in
3084# $ac_aux_dir_candidates and give up.
3085ac_missing_aux_files=""
3086ac_first_candidate=:
3087printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089as_found=false
3090for as_dir in $ac_aux_dir_candidates
3091do
3092  IFS=$as_save_IFS
3093  case $as_dir in #(((
3094    '') as_dir=./ ;;
3095    */) ;;
3096    *) as_dir=$as_dir/ ;;
3097  esac
3098  as_found=:
3099
3100  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3101  ac_aux_dir_found=yes
3102  ac_install_sh=
3103  for ac_aux in $ac_aux_files
3104  do
3105    # As a special case, if "install-sh" is required, that requirement
3106    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3107    # and $ac_install_sh is set appropriately for whichever one is found.
3108    if test x"$ac_aux" = x"install-sh"
3109    then
3110      if test -f "${as_dir}install-sh"; then
3111        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3112        ac_install_sh="${as_dir}install-sh -c"
3113      elif test -f "${as_dir}install.sh"; then
3114        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3115        ac_install_sh="${as_dir}install.sh -c"
3116      elif test -f "${as_dir}shtool"; then
3117        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3118        ac_install_sh="${as_dir}shtool install -c"
3119      else
3120        ac_aux_dir_found=no
3121        if $ac_first_candidate; then
3122          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3123        else
3124          break
3125        fi
3126      fi
3127    else
3128      if test -f "${as_dir}${ac_aux}"; then
3129        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3130      else
3131        ac_aux_dir_found=no
3132        if $ac_first_candidate; then
3133          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3134        else
3135          break
3136        fi
3137      fi
3138    fi
3139  done
3140  if test "$ac_aux_dir_found" = yes; then
3141    ac_aux_dir="$as_dir"
3142    break
3143  fi
3144  ac_first_candidate=false
3145
3146  as_found=false
3147done
3148IFS=$as_save_IFS
3149if $as_found
3150then :
3151
3152else $as_nop
3153  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3154fi
3155
3156
3157# These three variables are undocumented and unsupported,
3158# and are intended to be withdrawn in a future Autoconf release.
3159# They can cause serious problems if a builder's source tree is in a directory
3160# whose full name contains unusual characters.
3161if test -f "${ac_aux_dir}config.guess"; then
3162  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3163fi
3164if test -f "${ac_aux_dir}config.sub"; then
3165  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3166fi
3167if test -f "$ac_aux_dir/configure"; then
3168  ac_configure="$SHELL ${ac_aux_dir}configure"
3169fi
3170
3171# Check that the precious variables saved in the cache have kept the same
3172# value.
3173ac_cache_corrupted=false
3174for ac_var in $ac_precious_vars; do
3175  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3176  eval ac_new_set=\$ac_env_${ac_var}_set
3177  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3178  eval ac_new_val=\$ac_env_${ac_var}_value
3179  case $ac_old_set,$ac_new_set in
3180    set,)
3181      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3182printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3183      ac_cache_corrupted=: ;;
3184    ,set)
3185      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3186printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3187      ac_cache_corrupted=: ;;
3188    ,);;
3189    *)
3190      if test "x$ac_old_val" != "x$ac_new_val"; then
3191	# differences in whitespace do not lead to failure.
3192	ac_old_val_w=`echo x $ac_old_val`
3193	ac_new_val_w=`echo x $ac_new_val`
3194	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3195	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3196printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3197	  ac_cache_corrupted=:
3198	else
3199	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3200printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3201	  eval $ac_var=\$ac_old_val
3202	fi
3203	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3204printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3205	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3206printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3207      fi;;
3208  esac
3209  # Pass precious variables to config.status.
3210  if test "$ac_new_set" = set; then
3211    case $ac_new_val in
3212    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3213    *) ac_arg=$ac_var=$ac_new_val ;;
3214    esac
3215    case " $ac_configure_args " in
3216      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3217      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3218    esac
3219  fi
3220done
3221if $ac_cache_corrupted; then
3222  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3223printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3224  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3225printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3226  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3227	    and start over" "$LINENO" 5
3228fi
3229## -------------------- ##
3230## Main body of script. ##
3231## -------------------- ##
3232
3233ac_ext=c
3234ac_cpp='$CPP $CPPFLAGS'
3235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238
3239
3240
3241am__api_version='1.16'
3242
3243
3244
3245  # Find a good install program.  We prefer a C program (faster),
3246# so one script is as good as another.  But avoid the broken or
3247# incompatible versions:
3248# SysV /etc/install, /usr/sbin/install
3249# SunOS /usr/etc/install
3250# IRIX /sbin/install
3251# AIX /bin/install
3252# AmigaOS /C/install, which installs bootblocks on floppy discs
3253# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3254# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3255# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3256# OS/2's system install, which has a completely different semantic
3257# ./install, which can be erroneously created by make from ./install.sh.
3258# Reject install programs that cannot install multiple files.
3259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3260printf %s "checking for a BSD-compatible install... " >&6; }
3261if test -z "$INSTALL"; then
3262if test ${ac_cv_path_install+y}
3263then :
3264  printf %s "(cached) " >&6
3265else $as_nop
3266  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267for as_dir in $PATH
3268do
3269  IFS=$as_save_IFS
3270  case $as_dir in #(((
3271    '') as_dir=./ ;;
3272    */) ;;
3273    *) as_dir=$as_dir/ ;;
3274  esac
3275    # Account for fact that we put trailing slashes in our PATH walk.
3276case $as_dir in #((
3277  ./ | /[cC]/* | \
3278  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3279  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3280  /usr/ucb/* ) ;;
3281  *)
3282    # OSF1 and SCO ODT 3.0 have their own names for install.
3283    # Don't use installbsd from OSF since it installs stuff as root
3284    # by default.
3285    for ac_prog in ginstall scoinst install; do
3286      for ac_exec_ext in '' $ac_executable_extensions; do
3287	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3288	  if test $ac_prog = install &&
3289	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3290	    # AIX install.  It has an incompatible calling convention.
3291	    :
3292	  elif test $ac_prog = install &&
3293	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3294	    # program-specific install script used by HP pwplus--don't use.
3295	    :
3296	  else
3297	    rm -rf conftest.one conftest.two conftest.dir
3298	    echo one > conftest.one
3299	    echo two > conftest.two
3300	    mkdir conftest.dir
3301	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3302	      test -s conftest.one && test -s conftest.two &&
3303	      test -s conftest.dir/conftest.one &&
3304	      test -s conftest.dir/conftest.two
3305	    then
3306	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3307	      break 3
3308	    fi
3309	  fi
3310	fi
3311      done
3312    done
3313    ;;
3314esac
3315
3316  done
3317IFS=$as_save_IFS
3318
3319rm -rf conftest.one conftest.two conftest.dir
3320
3321fi
3322  if test ${ac_cv_path_install+y}; then
3323    INSTALL=$ac_cv_path_install
3324  else
3325    # As a last resort, use the slow shell script.  Don't cache a
3326    # value for INSTALL within a source directory, because that will
3327    # break other packages using the cache if that directory is
3328    # removed, or if the value is a relative name.
3329    INSTALL=$ac_install_sh
3330  fi
3331fi
3332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3333printf "%s\n" "$INSTALL" >&6; }
3334
3335# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3336# It thinks the first close brace ends the variable substitution.
3337test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3338
3339test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3340
3341test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3342
3343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3344printf %s "checking whether build environment is sane... " >&6; }
3345# Reject unsafe characters in $srcdir or the absolute working directory
3346# name.  Accept space and tab only in the latter.
3347am_lf='
3348'
3349case `pwd` in
3350  *[\\\"\#\$\&\'\`$am_lf]*)
3351    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3352esac
3353case $srcdir in
3354  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3355    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3356esac
3357
3358# Do 'set' in a subshell so we don't clobber the current shell's
3359# arguments.  Must try -L first in case configure is actually a
3360# symlink; some systems play weird games with the mod time of symlinks
3361# (eg FreeBSD returns the mod time of the symlink's containing
3362# directory).
3363if (
3364   am_has_slept=no
3365   for am_try in 1 2; do
3366     echo "timestamp, slept: $am_has_slept" > conftest.file
3367     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3368     if test "$*" = "X"; then
3369	# -L didn't work.
3370	set X `ls -t "$srcdir/configure" conftest.file`
3371     fi
3372     if test "$*" != "X $srcdir/configure conftest.file" \
3373	&& test "$*" != "X conftest.file $srcdir/configure"; then
3374
3375	# If neither matched, then we have a broken ls.  This can happen
3376	# if, for instance, CONFIG_SHELL is bash and it inherits a
3377	# broken ls alias from the environment.  This has actually
3378	# happened.  Such a system could not be considered "sane".
3379	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3380  alias in your environment" "$LINENO" 5
3381     fi
3382     if test "$2" = conftest.file || test $am_try -eq 2; then
3383       break
3384     fi
3385     # Just in case.
3386     sleep 1
3387     am_has_slept=yes
3388   done
3389   test "$2" = conftest.file
3390   )
3391then
3392   # Ok.
3393   :
3394else
3395   as_fn_error $? "newly created file is older than distributed files!
3396Check your system clock" "$LINENO" 5
3397fi
3398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3399printf "%s\n" "yes" >&6; }
3400# If we didn't sleep, we still need to ensure time stamps of config.status and
3401# generated files are strictly newer.
3402am_sleep_pid=
3403if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3404  ( sleep 1 ) &
3405  am_sleep_pid=$!
3406fi
3407
3408rm -f conftest.file
3409
3410test "$program_prefix" != NONE &&
3411  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3412# Use a double $ so make ignores it.
3413test "$program_suffix" != NONE &&
3414  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3415# Double any \ or $.
3416# By default was `s,x,x', remove it if useless.
3417ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3418program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3419
3420
3421# Expand $ac_aux_dir to an absolute path.
3422am_aux_dir=`cd "$ac_aux_dir" && pwd`
3423
3424
3425  if test x"${MISSING+set}" != xset; then
3426  MISSING="\${SHELL} '$am_aux_dir/missing'"
3427fi
3428# Use eval to expand $SHELL
3429if eval "$MISSING --is-lightweight"; then
3430  am_missing_run="$MISSING "
3431else
3432  am_missing_run=
3433  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3434printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3435fi
3436
3437if test x"${install_sh+set}" != xset; then
3438  case $am_aux_dir in
3439  *\ * | *\	*)
3440    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3441  *)
3442    install_sh="\${SHELL} $am_aux_dir/install-sh"
3443  esac
3444fi
3445
3446# Installed binaries are usually stripped using 'strip' when the user
3447# run "make install-strip".  However 'strip' might not be the right
3448# tool to use in cross-compilation environments, therefore Automake
3449# will honor the 'STRIP' environment variable to overrule this program.
3450if test "$cross_compiling" != no; then
3451  if test -n "$ac_tool_prefix"; then
3452  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3453set dummy ${ac_tool_prefix}strip; ac_word=$2
3454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455printf %s "checking for $ac_word... " >&6; }
3456if test ${ac_cv_prog_STRIP+y}
3457then :
3458  printf %s "(cached) " >&6
3459else $as_nop
3460  if test -n "$STRIP"; then
3461  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3462else
3463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464for as_dir in $PATH
3465do
3466  IFS=$as_save_IFS
3467  case $as_dir in #(((
3468    '') as_dir=./ ;;
3469    */) ;;
3470    *) as_dir=$as_dir/ ;;
3471  esac
3472    for ac_exec_ext in '' $ac_executable_extensions; do
3473  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3474    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3475    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3476    break 2
3477  fi
3478done
3479  done
3480IFS=$as_save_IFS
3481
3482fi
3483fi
3484STRIP=$ac_cv_prog_STRIP
3485if test -n "$STRIP"; then
3486  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3487printf "%s\n" "$STRIP" >&6; }
3488else
3489  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3490printf "%s\n" "no" >&6; }
3491fi
3492
3493
3494fi
3495if test -z "$ac_cv_prog_STRIP"; then
3496  ac_ct_STRIP=$STRIP
3497  # Extract the first word of "strip", so it can be a program name with args.
3498set dummy strip; ac_word=$2
3499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500printf %s "checking for $ac_word... " >&6; }
3501if test ${ac_cv_prog_ac_ct_STRIP+y}
3502then :
3503  printf %s "(cached) " >&6
3504else $as_nop
3505  if test -n "$ac_ct_STRIP"; then
3506  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3507else
3508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509for as_dir in $PATH
3510do
3511  IFS=$as_save_IFS
3512  case $as_dir in #(((
3513    '') as_dir=./ ;;
3514    */) ;;
3515    *) as_dir=$as_dir/ ;;
3516  esac
3517    for ac_exec_ext in '' $ac_executable_extensions; do
3518  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3519    ac_cv_prog_ac_ct_STRIP="strip"
3520    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3521    break 2
3522  fi
3523done
3524  done
3525IFS=$as_save_IFS
3526
3527fi
3528fi
3529ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3530if test -n "$ac_ct_STRIP"; then
3531  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3532printf "%s\n" "$ac_ct_STRIP" >&6; }
3533else
3534  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535printf "%s\n" "no" >&6; }
3536fi
3537
3538  if test "x$ac_ct_STRIP" = x; then
3539    STRIP=":"
3540  else
3541    case $cross_compiling:$ac_tool_warned in
3542yes:)
3543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3544printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3545ac_tool_warned=yes ;;
3546esac
3547    STRIP=$ac_ct_STRIP
3548  fi
3549else
3550  STRIP="$ac_cv_prog_STRIP"
3551fi
3552
3553fi
3554INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3555
3556
3557  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3558printf %s "checking for a race-free mkdir -p... " >&6; }
3559if test -z "$MKDIR_P"; then
3560  if test ${ac_cv_path_mkdir+y}
3561then :
3562  printf %s "(cached) " >&6
3563else $as_nop
3564  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3566do
3567  IFS=$as_save_IFS
3568  case $as_dir in #(((
3569    '') as_dir=./ ;;
3570    */) ;;
3571    *) as_dir=$as_dir/ ;;
3572  esac
3573    for ac_prog in mkdir gmkdir; do
3574	 for ac_exec_ext in '' $ac_executable_extensions; do
3575	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3576	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3577	     'mkdir ('*'coreutils) '* | \
3578	     'BusyBox '* | \
3579	     'mkdir (fileutils) '4.1*)
3580	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3581	       break 3;;
3582	   esac
3583	 done
3584       done
3585  done
3586IFS=$as_save_IFS
3587
3588fi
3589
3590  test -d ./--version && rmdir ./--version
3591  if test ${ac_cv_path_mkdir+y}; then
3592    MKDIR_P="$ac_cv_path_mkdir -p"
3593  else
3594    # As a last resort, use the slow shell script.  Don't cache a
3595    # value for MKDIR_P within a source directory, because that will
3596    # break other packages using the cache if that directory is
3597    # removed, or if the value is a relative name.
3598    MKDIR_P="$ac_install_sh -d"
3599  fi
3600fi
3601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3602printf "%s\n" "$MKDIR_P" >&6; }
3603
3604for ac_prog in gawk mawk nawk awk
3605do
3606  # Extract the first word of "$ac_prog", so it can be a program name with args.
3607set dummy $ac_prog; ac_word=$2
3608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3609printf %s "checking for $ac_word... " >&6; }
3610if test ${ac_cv_prog_AWK+y}
3611then :
3612  printf %s "(cached) " >&6
3613else $as_nop
3614  if test -n "$AWK"; then
3615  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3616else
3617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618for as_dir in $PATH
3619do
3620  IFS=$as_save_IFS
3621  case $as_dir in #(((
3622    '') as_dir=./ ;;
3623    */) ;;
3624    *) as_dir=$as_dir/ ;;
3625  esac
3626    for ac_exec_ext in '' $ac_executable_extensions; do
3627  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3628    ac_cv_prog_AWK="$ac_prog"
3629    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3630    break 2
3631  fi
3632done
3633  done
3634IFS=$as_save_IFS
3635
3636fi
3637fi
3638AWK=$ac_cv_prog_AWK
3639if test -n "$AWK"; then
3640  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3641printf "%s\n" "$AWK" >&6; }
3642else
3643  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644printf "%s\n" "no" >&6; }
3645fi
3646
3647
3648  test -n "$AWK" && break
3649done
3650
3651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3652printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3653set x ${MAKE-make}
3654ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3655if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3656then :
3657  printf %s "(cached) " >&6
3658else $as_nop
3659  cat >conftest.make <<\_ACEOF
3660SHELL = /bin/sh
3661all:
3662	@echo '@@@%%%=$(MAKE)=@@@%%%'
3663_ACEOF
3664# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3665case `${MAKE-make} -f conftest.make 2>/dev/null` in
3666  *@@@%%%=?*=@@@%%%*)
3667    eval ac_cv_prog_make_${ac_make}_set=yes;;
3668  *)
3669    eval ac_cv_prog_make_${ac_make}_set=no;;
3670esac
3671rm -f conftest.make
3672fi
3673if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3674  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3675printf "%s\n" "yes" >&6; }
3676  SET_MAKE=
3677else
3678  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679printf "%s\n" "no" >&6; }
3680  SET_MAKE="MAKE=${MAKE-make}"
3681fi
3682
3683rm -rf .tst 2>/dev/null
3684mkdir .tst 2>/dev/null
3685if test -d .tst; then
3686  am__leading_dot=.
3687else
3688  am__leading_dot=_
3689fi
3690rmdir .tst 2>/dev/null
3691
3692# Check whether --enable-silent-rules was given.
3693if test ${enable_silent_rules+y}
3694then :
3695  enableval=$enable_silent_rules;
3696fi
3697
3698case $enable_silent_rules in # (((
3699  yes) AM_DEFAULT_VERBOSITY=0;;
3700   no) AM_DEFAULT_VERBOSITY=1;;
3701    *) AM_DEFAULT_VERBOSITY=1;;
3702esac
3703am_make=${MAKE-make}
3704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3705printf %s "checking whether $am_make supports nested variables... " >&6; }
3706if test ${am_cv_make_support_nested_variables+y}
3707then :
3708  printf %s "(cached) " >&6
3709else $as_nop
3710  if printf "%s\n" 'TRUE=$(BAR$(V))
3711BAR0=false
3712BAR1=true
3713V=1
3714am__doit:
3715	@$(TRUE)
3716.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3717  am_cv_make_support_nested_variables=yes
3718else
3719  am_cv_make_support_nested_variables=no
3720fi
3721fi
3722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3723printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3724if test $am_cv_make_support_nested_variables = yes; then
3725    AM_V='$(V)'
3726  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3727else
3728  AM_V=$AM_DEFAULT_VERBOSITY
3729  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3730fi
3731AM_BACKSLASH='\'
3732
3733if test "`cd $srcdir && pwd`" != "`pwd`"; then
3734  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3735  # is not polluted with repeated "-I."
3736  am__isrc=' -I$(srcdir)'
3737  # test to see if srcdir already configured
3738  if test -f $srcdir/config.status; then
3739    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3740  fi
3741fi
3742
3743# test whether we have cygpath
3744if test -z "$CYGPATH_W"; then
3745  if (cygpath --version) >/dev/null 2>/dev/null; then
3746    CYGPATH_W='cygpath -w'
3747  else
3748    CYGPATH_W=echo
3749  fi
3750fi
3751
3752
3753# Define the identity of the package.
3754 PACKAGE='pcre'
3755 VERSION='8.45'
3756
3757
3758printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3759
3760
3761printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3762
3763# Some tools Automake needs.
3764
3765ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3766
3767
3768AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3769
3770
3771AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3772
3773
3774AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3775
3776
3777MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3778
3779# For better backward compatibility.  To be removed once Automake 1.9.x
3780# dies out for good.  For more background, see:
3781# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3782# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3783mkdir_p='$(MKDIR_P)'
3784
3785# We need awk for the "check" target (and possibly the TAP driver).  The
3786# system "awk" is bad on some platforms.
3787# Always define AMTAR for backward compatibility.  Yes, it's still used
3788# in the wild :-(  We should find a proper way to deprecate it ...
3789AMTAR='$${TAR-tar}'
3790
3791
3792# We'll loop over all known methods to create a tar archive until one works.
3793_am_tools='gnutar  pax cpio none'
3794
3795am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3796
3797
3798
3799
3800
3801
3802# POSIX will say in a future version that running "rm -f" with no argument
3803# is OK; and we want to be able to make that assumption in our Makefile
3804# recipes.  So use an aggressive probe to check that the usage we want is
3805# actually supported "in the wild" to an acceptable degree.
3806# See automake bug#10828.
3807# To make any issue more visible, cause the running configure to be aborted
3808# by default if the 'rm' program in use doesn't match our expectations; the
3809# user can still override this though.
3810if rm -f && rm -fr && rm -rf; then : OK; else
3811  cat >&2 <<'END'
3812Oops!
3813
3814Your 'rm' program seems unable to run without file operands specified
3815on the command line, even when the '-f' option is present.  This is contrary
3816to the behaviour of most rm programs out there, and not conforming with
3817the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3818
3819Please tell bug-automake@gnu.org about your system, including the value
3820of your $PATH and any error possibly output before this message.  This
3821can help us improve future automake versions.
3822
3823END
3824  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3825    echo 'Configuration will proceed anyway, since you have set the' >&2
3826    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3827    echo >&2
3828  else
3829    cat >&2 <<'END'
3830Aborting the configuration process, to ensure you take notice of the issue.
3831
3832You can download and install GNU coreutils to get an 'rm' implementation
3833that behaves properly: <https://www.gnu.org/software/coreutils/>.
3834
3835If you want to complete the configuration process using your problematic
3836'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3837to "yes", and re-run configure.
3838
3839END
3840    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3841  fi
3842fi
3843
3844# Check whether --enable-silent-rules was given.
3845if test ${enable_silent_rules+y}
3846then :
3847  enableval=$enable_silent_rules;
3848fi
3849
3850case $enable_silent_rules in # (((
3851  yes) AM_DEFAULT_VERBOSITY=0;;
3852   no) AM_DEFAULT_VERBOSITY=1;;
3853    *) AM_DEFAULT_VERBOSITY=0;;
3854esac
3855am_make=${MAKE-make}
3856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3857printf %s "checking whether $am_make supports nested variables... " >&6; }
3858if test ${am_cv_make_support_nested_variables+y}
3859then :
3860  printf %s "(cached) " >&6
3861else $as_nop
3862  if printf "%s\n" 'TRUE=$(BAR$(V))
3863BAR0=false
3864BAR1=true
3865V=1
3866am__doit:
3867	@$(TRUE)
3868.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3869  am_cv_make_support_nested_variables=yes
3870else
3871  am_cv_make_support_nested_variables=no
3872fi
3873fi
3874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3875printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3876if test $am_cv_make_support_nested_variables = yes; then
3877    AM_V='$(V)'
3878  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3879else
3880  AM_V=$AM_DEFAULT_VERBOSITY
3881  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3882fi
3883AM_BACKSLASH='\'
3884
3885ac_config_headers="$ac_config_headers config.h"
3886
3887
3888# This is a new thing required to stop a warning from automake 1.12
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898DEPDIR="${am__leading_dot}deps"
3899
3900ac_config_commands="$ac_config_commands depfiles"
3901
3902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3903printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3904cat > confinc.mk << 'END'
3905am__doit:
3906	@echo this is the am__doit target >confinc.out
3907.PHONY: am__doit
3908END
3909am__include="#"
3910am__quote=
3911# BSD make does it like this.
3912echo '.include "confinc.mk" # ignored' > confmf.BSD
3913# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3914echo 'include confinc.mk # ignored' > confmf.GNU
3915_am_result=no
3916for s in GNU BSD; do
3917  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3918   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3919   ac_status=$?
3920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921   (exit $ac_status); }
3922  case $?:`cat confinc.out 2>/dev/null` in #(
3923  '0:this is the am__doit target') :
3924    case $s in #(
3925  BSD) :
3926    am__include='.include' am__quote='"' ;; #(
3927  *) :
3928    am__include='include' am__quote='' ;;
3929esac ;; #(
3930  *) :
3931     ;;
3932esac
3933  if test "$am__include" != "#"; then
3934    _am_result="yes ($s style)"
3935    break
3936  fi
3937done
3938rm -f confinc.* confmf.*
3939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3940printf "%s\n" "${_am_result}" >&6; }
3941
3942# Check whether --enable-dependency-tracking was given.
3943if test ${enable_dependency_tracking+y}
3944then :
3945  enableval=$enable_dependency_tracking;
3946fi
3947
3948if test "x$enable_dependency_tracking" != xno; then
3949  am_depcomp="$ac_aux_dir/depcomp"
3950  AMDEPBACKSLASH='\'
3951  am__nodep='_no'
3952fi
3953 if test "x$enable_dependency_tracking" != xno; then
3954  AMDEP_TRUE=
3955  AMDEP_FALSE='#'
3956else
3957  AMDEP_TRUE='#'
3958  AMDEP_FALSE=
3959fi
3960
3961
3962ac_ext=c
3963ac_cpp='$CPP $CPPFLAGS'
3964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3966ac_compiler_gnu=$ac_cv_c_compiler_gnu
3967if test -n "$ac_tool_prefix"; then
3968  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3969set dummy ${ac_tool_prefix}gcc; ac_word=$2
3970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3971printf %s "checking for $ac_word... " >&6; }
3972if test ${ac_cv_prog_CC+y}
3973then :
3974  printf %s "(cached) " >&6
3975else $as_nop
3976  if test -n "$CC"; then
3977  ac_cv_prog_CC="$CC" # Let the user override the test.
3978else
3979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980for as_dir in $PATH
3981do
3982  IFS=$as_save_IFS
3983  case $as_dir in #(((
3984    '') as_dir=./ ;;
3985    */) ;;
3986    *) as_dir=$as_dir/ ;;
3987  esac
3988    for ac_exec_ext in '' $ac_executable_extensions; do
3989  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3990    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3991    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3992    break 2
3993  fi
3994done
3995  done
3996IFS=$as_save_IFS
3997
3998fi
3999fi
4000CC=$ac_cv_prog_CC
4001if test -n "$CC"; then
4002  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4003printf "%s\n" "$CC" >&6; }
4004else
4005  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006printf "%s\n" "no" >&6; }
4007fi
4008
4009
4010fi
4011if test -z "$ac_cv_prog_CC"; then
4012  ac_ct_CC=$CC
4013  # Extract the first word of "gcc", so it can be a program name with args.
4014set dummy gcc; ac_word=$2
4015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4016printf %s "checking for $ac_word... " >&6; }
4017if test ${ac_cv_prog_ac_ct_CC+y}
4018then :
4019  printf %s "(cached) " >&6
4020else $as_nop
4021  if test -n "$ac_ct_CC"; then
4022  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4023else
4024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025for as_dir in $PATH
4026do
4027  IFS=$as_save_IFS
4028  case $as_dir in #(((
4029    '') as_dir=./ ;;
4030    */) ;;
4031    *) as_dir=$as_dir/ ;;
4032  esac
4033    for ac_exec_ext in '' $ac_executable_extensions; do
4034  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4035    ac_cv_prog_ac_ct_CC="gcc"
4036    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4037    break 2
4038  fi
4039done
4040  done
4041IFS=$as_save_IFS
4042
4043fi
4044fi
4045ac_ct_CC=$ac_cv_prog_ac_ct_CC
4046if test -n "$ac_ct_CC"; then
4047  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4048printf "%s\n" "$ac_ct_CC" >&6; }
4049else
4050  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051printf "%s\n" "no" >&6; }
4052fi
4053
4054  if test "x$ac_ct_CC" = x; then
4055    CC=""
4056  else
4057    case $cross_compiling:$ac_tool_warned in
4058yes:)
4059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4060printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4061ac_tool_warned=yes ;;
4062esac
4063    CC=$ac_ct_CC
4064  fi
4065else
4066  CC="$ac_cv_prog_CC"
4067fi
4068
4069if test -z "$CC"; then
4070          if test -n "$ac_tool_prefix"; then
4071    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4072set dummy ${ac_tool_prefix}cc; ac_word=$2
4073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4074printf %s "checking for $ac_word... " >&6; }
4075if test ${ac_cv_prog_CC+y}
4076then :
4077  printf %s "(cached) " >&6
4078else $as_nop
4079  if test -n "$CC"; then
4080  ac_cv_prog_CC="$CC" # Let the user override the test.
4081else
4082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083for as_dir in $PATH
4084do
4085  IFS=$as_save_IFS
4086  case $as_dir in #(((
4087    '') as_dir=./ ;;
4088    */) ;;
4089    *) as_dir=$as_dir/ ;;
4090  esac
4091    for ac_exec_ext in '' $ac_executable_extensions; do
4092  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4093    ac_cv_prog_CC="${ac_tool_prefix}cc"
4094    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4095    break 2
4096  fi
4097done
4098  done
4099IFS=$as_save_IFS
4100
4101fi
4102fi
4103CC=$ac_cv_prog_CC
4104if test -n "$CC"; then
4105  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4106printf "%s\n" "$CC" >&6; }
4107else
4108  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109printf "%s\n" "no" >&6; }
4110fi
4111
4112
4113  fi
4114fi
4115if test -z "$CC"; then
4116  # Extract the first word of "cc", so it can be a program name with args.
4117set dummy cc; ac_word=$2
4118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4119printf %s "checking for $ac_word... " >&6; }
4120if test ${ac_cv_prog_CC+y}
4121then :
4122  printf %s "(cached) " >&6
4123else $as_nop
4124  if test -n "$CC"; then
4125  ac_cv_prog_CC="$CC" # Let the user override the test.
4126else
4127  ac_prog_rejected=no
4128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129for as_dir in $PATH
4130do
4131  IFS=$as_save_IFS
4132  case $as_dir in #(((
4133    '') as_dir=./ ;;
4134    */) ;;
4135    *) as_dir=$as_dir/ ;;
4136  esac
4137    for ac_exec_ext in '' $ac_executable_extensions; do
4138  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4139    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4140       ac_prog_rejected=yes
4141       continue
4142     fi
4143    ac_cv_prog_CC="cc"
4144    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4145    break 2
4146  fi
4147done
4148  done
4149IFS=$as_save_IFS
4150
4151if test $ac_prog_rejected = yes; then
4152  # We found a bogon in the path, so make sure we never use it.
4153  set dummy $ac_cv_prog_CC
4154  shift
4155  if test $# != 0; then
4156    # We chose a different compiler from the bogus one.
4157    # However, it has the same basename, so the bogon will be chosen
4158    # first if we set CC to just the basename; use the full file name.
4159    shift
4160    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4161  fi
4162fi
4163fi
4164fi
4165CC=$ac_cv_prog_CC
4166if test -n "$CC"; then
4167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4168printf "%s\n" "$CC" >&6; }
4169else
4170  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171printf "%s\n" "no" >&6; }
4172fi
4173
4174
4175fi
4176if test -z "$CC"; then
4177  if test -n "$ac_tool_prefix"; then
4178  for ac_prog in cl.exe
4179  do
4180    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4181set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183printf %s "checking for $ac_word... " >&6; }
4184if test ${ac_cv_prog_CC+y}
4185then :
4186  printf %s "(cached) " >&6
4187else $as_nop
4188  if test -n "$CC"; then
4189  ac_cv_prog_CC="$CC" # Let the user override the test.
4190else
4191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192for as_dir in $PATH
4193do
4194  IFS=$as_save_IFS
4195  case $as_dir in #(((
4196    '') as_dir=./ ;;
4197    */) ;;
4198    *) as_dir=$as_dir/ ;;
4199  esac
4200    for ac_exec_ext in '' $ac_executable_extensions; do
4201  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4202    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4203    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4204    break 2
4205  fi
4206done
4207  done
4208IFS=$as_save_IFS
4209
4210fi
4211fi
4212CC=$ac_cv_prog_CC
4213if test -n "$CC"; then
4214  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4215printf "%s\n" "$CC" >&6; }
4216else
4217  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4218printf "%s\n" "no" >&6; }
4219fi
4220
4221
4222    test -n "$CC" && break
4223  done
4224fi
4225if test -z "$CC"; then
4226  ac_ct_CC=$CC
4227  for ac_prog in cl.exe
4228do
4229  # Extract the first word of "$ac_prog", so it can be a program name with args.
4230set dummy $ac_prog; ac_word=$2
4231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4232printf %s "checking for $ac_word... " >&6; }
4233if test ${ac_cv_prog_ac_ct_CC+y}
4234then :
4235  printf %s "(cached) " >&6
4236else $as_nop
4237  if test -n "$ac_ct_CC"; then
4238  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4239else
4240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241for as_dir in $PATH
4242do
4243  IFS=$as_save_IFS
4244  case $as_dir in #(((
4245    '') as_dir=./ ;;
4246    */) ;;
4247    *) as_dir=$as_dir/ ;;
4248  esac
4249    for ac_exec_ext in '' $ac_executable_extensions; do
4250  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4251    ac_cv_prog_ac_ct_CC="$ac_prog"
4252    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4253    break 2
4254  fi
4255done
4256  done
4257IFS=$as_save_IFS
4258
4259fi
4260fi
4261ac_ct_CC=$ac_cv_prog_ac_ct_CC
4262if test -n "$ac_ct_CC"; then
4263  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4264printf "%s\n" "$ac_ct_CC" >&6; }
4265else
4266  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267printf "%s\n" "no" >&6; }
4268fi
4269
4270
4271  test -n "$ac_ct_CC" && break
4272done
4273
4274  if test "x$ac_ct_CC" = x; then
4275    CC=""
4276  else
4277    case $cross_compiling:$ac_tool_warned in
4278yes:)
4279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4280printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4281ac_tool_warned=yes ;;
4282esac
4283    CC=$ac_ct_CC
4284  fi
4285fi
4286
4287fi
4288if test -z "$CC"; then
4289  if test -n "$ac_tool_prefix"; then
4290  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4291set dummy ${ac_tool_prefix}clang; ac_word=$2
4292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4293printf %s "checking for $ac_word... " >&6; }
4294if test ${ac_cv_prog_CC+y}
4295then :
4296  printf %s "(cached) " >&6
4297else $as_nop
4298  if test -n "$CC"; then
4299  ac_cv_prog_CC="$CC" # Let the user override the test.
4300else
4301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302for as_dir in $PATH
4303do
4304  IFS=$as_save_IFS
4305  case $as_dir in #(((
4306    '') as_dir=./ ;;
4307    */) ;;
4308    *) as_dir=$as_dir/ ;;
4309  esac
4310    for ac_exec_ext in '' $ac_executable_extensions; do
4311  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4312    ac_cv_prog_CC="${ac_tool_prefix}clang"
4313    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4314    break 2
4315  fi
4316done
4317  done
4318IFS=$as_save_IFS
4319
4320fi
4321fi
4322CC=$ac_cv_prog_CC
4323if test -n "$CC"; then
4324  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4325printf "%s\n" "$CC" >&6; }
4326else
4327  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328printf "%s\n" "no" >&6; }
4329fi
4330
4331
4332fi
4333if test -z "$ac_cv_prog_CC"; then
4334  ac_ct_CC=$CC
4335  # Extract the first word of "clang", so it can be a program name with args.
4336set dummy clang; ac_word=$2
4337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4338printf %s "checking for $ac_word... " >&6; }
4339if test ${ac_cv_prog_ac_ct_CC+y}
4340then :
4341  printf %s "(cached) " >&6
4342else $as_nop
4343  if test -n "$ac_ct_CC"; then
4344  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4345else
4346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347for as_dir in $PATH
4348do
4349  IFS=$as_save_IFS
4350  case $as_dir in #(((
4351    '') as_dir=./ ;;
4352    */) ;;
4353    *) as_dir=$as_dir/ ;;
4354  esac
4355    for ac_exec_ext in '' $ac_executable_extensions; do
4356  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4357    ac_cv_prog_ac_ct_CC="clang"
4358    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4359    break 2
4360  fi
4361done
4362  done
4363IFS=$as_save_IFS
4364
4365fi
4366fi
4367ac_ct_CC=$ac_cv_prog_ac_ct_CC
4368if test -n "$ac_ct_CC"; then
4369  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4370printf "%s\n" "$ac_ct_CC" >&6; }
4371else
4372  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4373printf "%s\n" "no" >&6; }
4374fi
4375
4376  if test "x$ac_ct_CC" = x; then
4377    CC=""
4378  else
4379    case $cross_compiling:$ac_tool_warned in
4380yes:)
4381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4382printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4383ac_tool_warned=yes ;;
4384esac
4385    CC=$ac_ct_CC
4386  fi
4387else
4388  CC="$ac_cv_prog_CC"
4389fi
4390
4391fi
4392
4393
4394test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4395printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4396as_fn_error $? "no acceptable C compiler found in \$PATH
4397See \`config.log' for more details" "$LINENO" 5; }
4398
4399# Provide some information about the compiler.
4400printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4401set X $ac_compile
4402ac_compiler=$2
4403for ac_option in --version -v -V -qversion -version; do
4404  { { ac_try="$ac_compiler $ac_option >&5"
4405case "(($ac_try" in
4406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407  *) ac_try_echo=$ac_try;;
4408esac
4409eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4410printf "%s\n" "$ac_try_echo"; } >&5
4411  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4412  ac_status=$?
4413  if test -s conftest.err; then
4414    sed '10a\
4415... rest of stderr output deleted ...
4416         10q' conftest.err >conftest.er1
4417    cat conftest.er1 >&5
4418  fi
4419  rm -f conftest.er1 conftest.err
4420  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4421  test $ac_status = 0; }
4422done
4423
4424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425/* end confdefs.h.  */
4426
4427int
4428main (void)
4429{
4430
4431  ;
4432  return 0;
4433}
4434_ACEOF
4435ac_clean_files_save=$ac_clean_files
4436ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4437# Try to create an executable without -o first, disregard a.out.
4438# It will help us diagnose broken compilers, and finding out an intuition
4439# of exeext.
4440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4441printf %s "checking whether the C compiler works... " >&6; }
4442ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4443
4444# The possible output files:
4445ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4446
4447ac_rmfiles=
4448for ac_file in $ac_files
4449do
4450  case $ac_file in
4451    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4452    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4453  esac
4454done
4455rm -f $ac_rmfiles
4456
4457if { { ac_try="$ac_link_default"
4458case "(($ac_try" in
4459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460  *) ac_try_echo=$ac_try;;
4461esac
4462eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4463printf "%s\n" "$ac_try_echo"; } >&5
4464  (eval "$ac_link_default") 2>&5
4465  ac_status=$?
4466  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4467  test $ac_status = 0; }
4468then :
4469  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4470# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4471# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4472# so that the user can short-circuit this test for compilers unknown to
4473# Autoconf.
4474for ac_file in $ac_files ''
4475do
4476  test -f "$ac_file" || continue
4477  case $ac_file in
4478    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4479	;;
4480    [ab].out )
4481	# We found the default executable, but exeext='' is most
4482	# certainly right.
4483	break;;
4484    *.* )
4485	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4486	then :; else
4487	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4488	fi
4489	# We set ac_cv_exeext here because the later test for it is not
4490	# safe: cross compilers may not add the suffix if given an `-o'
4491	# argument, so we may need to know it at that point already.
4492	# Even if this section looks crufty: it has the advantage of
4493	# actually working.
4494	break;;
4495    * )
4496	break;;
4497  esac
4498done
4499test "$ac_cv_exeext" = no && ac_cv_exeext=
4500
4501else $as_nop
4502  ac_file=''
4503fi
4504if test -z "$ac_file"
4505then :
4506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4507printf "%s\n" "no" >&6; }
4508printf "%s\n" "$as_me: failed program was:" >&5
4509sed 's/^/| /' conftest.$ac_ext >&5
4510
4511{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4512printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4513as_fn_error 77 "C compiler cannot create executables
4514See \`config.log' for more details" "$LINENO" 5; }
4515else $as_nop
4516  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4517printf "%s\n" "yes" >&6; }
4518fi
4519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4520printf %s "checking for C compiler default output file name... " >&6; }
4521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4522printf "%s\n" "$ac_file" >&6; }
4523ac_exeext=$ac_cv_exeext
4524
4525rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4526ac_clean_files=$ac_clean_files_save
4527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4528printf %s "checking for suffix of executables... " >&6; }
4529if { { ac_try="$ac_link"
4530case "(($ac_try" in
4531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532  *) ac_try_echo=$ac_try;;
4533esac
4534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4535printf "%s\n" "$ac_try_echo"; } >&5
4536  (eval "$ac_link") 2>&5
4537  ac_status=$?
4538  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4539  test $ac_status = 0; }
4540then :
4541  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4542# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4543# work properly (i.e., refer to `conftest.exe'), while it won't with
4544# `rm'.
4545for ac_file in conftest.exe conftest conftest.*; do
4546  test -f "$ac_file" || continue
4547  case $ac_file in
4548    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4549    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4550	  break;;
4551    * ) break;;
4552  esac
4553done
4554else $as_nop
4555  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4556printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4557as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4558See \`config.log' for more details" "$LINENO" 5; }
4559fi
4560rm -f conftest conftest$ac_cv_exeext
4561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4562printf "%s\n" "$ac_cv_exeext" >&6; }
4563
4564rm -f conftest.$ac_ext
4565EXEEXT=$ac_cv_exeext
4566ac_exeext=$EXEEXT
4567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568/* end confdefs.h.  */
4569#include <stdio.h>
4570int
4571main (void)
4572{
4573FILE *f = fopen ("conftest.out", "w");
4574 return ferror (f) || fclose (f) != 0;
4575
4576  ;
4577  return 0;
4578}
4579_ACEOF
4580ac_clean_files="$ac_clean_files conftest.out"
4581# Check that the compiler produces executables we can run.  If not, either
4582# the compiler is broken, or we cross compile.
4583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4584printf %s "checking whether we are cross compiling... " >&6; }
4585if test "$cross_compiling" != yes; then
4586  { { ac_try="$ac_link"
4587case "(($ac_try" in
4588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589  *) ac_try_echo=$ac_try;;
4590esac
4591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4592printf "%s\n" "$ac_try_echo"; } >&5
4593  (eval "$ac_link") 2>&5
4594  ac_status=$?
4595  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4596  test $ac_status = 0; }
4597  if { ac_try='./conftest$ac_cv_exeext'
4598  { { case "(($ac_try" in
4599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600  *) ac_try_echo=$ac_try;;
4601esac
4602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4603printf "%s\n" "$ac_try_echo"; } >&5
4604  (eval "$ac_try") 2>&5
4605  ac_status=$?
4606  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4607  test $ac_status = 0; }; }; then
4608    cross_compiling=no
4609  else
4610    if test "$cross_compiling" = maybe; then
4611	cross_compiling=yes
4612    else
4613	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4614printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4615as_fn_error 77 "cannot run C compiled programs.
4616If you meant to cross compile, use \`--host'.
4617See \`config.log' for more details" "$LINENO" 5; }
4618    fi
4619  fi
4620fi
4621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4622printf "%s\n" "$cross_compiling" >&6; }
4623
4624rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4625ac_clean_files=$ac_clean_files_save
4626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4627printf %s "checking for suffix of object files... " >&6; }
4628if test ${ac_cv_objext+y}
4629then :
4630  printf %s "(cached) " >&6
4631else $as_nop
4632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633/* end confdefs.h.  */
4634
4635int
4636main (void)
4637{
4638
4639  ;
4640  return 0;
4641}
4642_ACEOF
4643rm -f conftest.o conftest.obj
4644if { { ac_try="$ac_compile"
4645case "(($ac_try" in
4646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647  *) ac_try_echo=$ac_try;;
4648esac
4649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4650printf "%s\n" "$ac_try_echo"; } >&5
4651  (eval "$ac_compile") 2>&5
4652  ac_status=$?
4653  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4654  test $ac_status = 0; }
4655then :
4656  for ac_file in conftest.o conftest.obj conftest.*; do
4657  test -f "$ac_file" || continue;
4658  case $ac_file in
4659    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4660    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4661       break;;
4662  esac
4663done
4664else $as_nop
4665  printf "%s\n" "$as_me: failed program was:" >&5
4666sed 's/^/| /' conftest.$ac_ext >&5
4667
4668{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4669printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4670as_fn_error $? "cannot compute suffix of object files: cannot compile
4671See \`config.log' for more details" "$LINENO" 5; }
4672fi
4673rm -f conftest.$ac_cv_objext conftest.$ac_ext
4674fi
4675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4676printf "%s\n" "$ac_cv_objext" >&6; }
4677OBJEXT=$ac_cv_objext
4678ac_objext=$OBJEXT
4679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4680printf %s "checking whether the compiler supports GNU C... " >&6; }
4681if test ${ac_cv_c_compiler_gnu+y}
4682then :
4683  printf %s "(cached) " >&6
4684else $as_nop
4685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686/* end confdefs.h.  */
4687
4688int
4689main (void)
4690{
4691#ifndef __GNUC__
4692       choke me
4693#endif
4694
4695  ;
4696  return 0;
4697}
4698_ACEOF
4699if ac_fn_c_try_compile "$LINENO"
4700then :
4701  ac_compiler_gnu=yes
4702else $as_nop
4703  ac_compiler_gnu=no
4704fi
4705rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4706ac_cv_c_compiler_gnu=$ac_compiler_gnu
4707
4708fi
4709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4710printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4711ac_compiler_gnu=$ac_cv_c_compiler_gnu
4712
4713if test $ac_compiler_gnu = yes; then
4714  GCC=yes
4715else
4716  GCC=
4717fi
4718ac_test_CFLAGS=${CFLAGS+y}
4719ac_save_CFLAGS=$CFLAGS
4720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4721printf %s "checking whether $CC accepts -g... " >&6; }
4722if test ${ac_cv_prog_cc_g+y}
4723then :
4724  printf %s "(cached) " >&6
4725else $as_nop
4726  ac_save_c_werror_flag=$ac_c_werror_flag
4727   ac_c_werror_flag=yes
4728   ac_cv_prog_cc_g=no
4729   CFLAGS="-g"
4730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731/* end confdefs.h.  */
4732
4733int
4734main (void)
4735{
4736
4737  ;
4738  return 0;
4739}
4740_ACEOF
4741if ac_fn_c_try_compile "$LINENO"
4742then :
4743  ac_cv_prog_cc_g=yes
4744else $as_nop
4745  CFLAGS=""
4746      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747/* end confdefs.h.  */
4748
4749int
4750main (void)
4751{
4752
4753  ;
4754  return 0;
4755}
4756_ACEOF
4757if ac_fn_c_try_compile "$LINENO"
4758then :
4759
4760else $as_nop
4761  ac_c_werror_flag=$ac_save_c_werror_flag
4762	 CFLAGS="-g"
4763	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764/* end confdefs.h.  */
4765
4766int
4767main (void)
4768{
4769
4770  ;
4771  return 0;
4772}
4773_ACEOF
4774if ac_fn_c_try_compile "$LINENO"
4775then :
4776  ac_cv_prog_cc_g=yes
4777fi
4778rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4779fi
4780rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4781fi
4782rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4783   ac_c_werror_flag=$ac_save_c_werror_flag
4784fi
4785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4786printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4787if test $ac_test_CFLAGS; then
4788  CFLAGS=$ac_save_CFLAGS
4789elif test $ac_cv_prog_cc_g = yes; then
4790  if test "$GCC" = yes; then
4791    CFLAGS="-g -O2"
4792  else
4793    CFLAGS="-g"
4794  fi
4795else
4796  if test "$GCC" = yes; then
4797    CFLAGS="-O2"
4798  else
4799    CFLAGS=
4800  fi
4801fi
4802ac_prog_cc_stdc=no
4803if test x$ac_prog_cc_stdc = xno
4804then :
4805  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4806printf %s "checking for $CC option to enable C11 features... " >&6; }
4807if test ${ac_cv_prog_cc_c11+y}
4808then :
4809  printf %s "(cached) " >&6
4810else $as_nop
4811  ac_cv_prog_cc_c11=no
4812ac_save_CC=$CC
4813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814/* end confdefs.h.  */
4815$ac_c_conftest_c11_program
4816_ACEOF
4817for ac_arg in '' -std=gnu11
4818do
4819  CC="$ac_save_CC $ac_arg"
4820  if ac_fn_c_try_compile "$LINENO"
4821then :
4822  ac_cv_prog_cc_c11=$ac_arg
4823fi
4824rm -f core conftest.err conftest.$ac_objext conftest.beam
4825  test "x$ac_cv_prog_cc_c11" != "xno" && break
4826done
4827rm -f conftest.$ac_ext
4828CC=$ac_save_CC
4829fi
4830
4831if test "x$ac_cv_prog_cc_c11" = xno
4832then :
4833  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4834printf "%s\n" "unsupported" >&6; }
4835else $as_nop
4836  if test "x$ac_cv_prog_cc_c11" = x
4837then :
4838  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4839printf "%s\n" "none needed" >&6; }
4840else $as_nop
4841  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4842printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4843     CC="$CC $ac_cv_prog_cc_c11"
4844fi
4845  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4846  ac_prog_cc_stdc=c11
4847fi
4848fi
4849if test x$ac_prog_cc_stdc = xno
4850then :
4851  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4852printf %s "checking for $CC option to enable C99 features... " >&6; }
4853if test ${ac_cv_prog_cc_c99+y}
4854then :
4855  printf %s "(cached) " >&6
4856else $as_nop
4857  ac_cv_prog_cc_c99=no
4858ac_save_CC=$CC
4859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860/* end confdefs.h.  */
4861$ac_c_conftest_c99_program
4862_ACEOF
4863for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4864do
4865  CC="$ac_save_CC $ac_arg"
4866  if ac_fn_c_try_compile "$LINENO"
4867then :
4868  ac_cv_prog_cc_c99=$ac_arg
4869fi
4870rm -f core conftest.err conftest.$ac_objext conftest.beam
4871  test "x$ac_cv_prog_cc_c99" != "xno" && break
4872done
4873rm -f conftest.$ac_ext
4874CC=$ac_save_CC
4875fi
4876
4877if test "x$ac_cv_prog_cc_c99" = xno
4878then :
4879  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4880printf "%s\n" "unsupported" >&6; }
4881else $as_nop
4882  if test "x$ac_cv_prog_cc_c99" = x
4883then :
4884  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4885printf "%s\n" "none needed" >&6; }
4886else $as_nop
4887  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4888printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4889     CC="$CC $ac_cv_prog_cc_c99"
4890fi
4891  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4892  ac_prog_cc_stdc=c99
4893fi
4894fi
4895if test x$ac_prog_cc_stdc = xno
4896then :
4897  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4898printf %s "checking for $CC option to enable C89 features... " >&6; }
4899if test ${ac_cv_prog_cc_c89+y}
4900then :
4901  printf %s "(cached) " >&6
4902else $as_nop
4903  ac_cv_prog_cc_c89=no
4904ac_save_CC=$CC
4905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906/* end confdefs.h.  */
4907$ac_c_conftest_c89_program
4908_ACEOF
4909for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4910do
4911  CC="$ac_save_CC $ac_arg"
4912  if ac_fn_c_try_compile "$LINENO"
4913then :
4914  ac_cv_prog_cc_c89=$ac_arg
4915fi
4916rm -f core conftest.err conftest.$ac_objext conftest.beam
4917  test "x$ac_cv_prog_cc_c89" != "xno" && break
4918done
4919rm -f conftest.$ac_ext
4920CC=$ac_save_CC
4921fi
4922
4923if test "x$ac_cv_prog_cc_c89" = xno
4924then :
4925  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4926printf "%s\n" "unsupported" >&6; }
4927else $as_nop
4928  if test "x$ac_cv_prog_cc_c89" = x
4929then :
4930  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4931printf "%s\n" "none needed" >&6; }
4932else $as_nop
4933  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4934printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4935     CC="$CC $ac_cv_prog_cc_c89"
4936fi
4937  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4938  ac_prog_cc_stdc=c89
4939fi
4940fi
4941
4942ac_ext=c
4943ac_cpp='$CPP $CPPFLAGS'
4944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4946ac_compiler_gnu=$ac_cv_c_compiler_gnu
4947
4948
4949  ac_ext=c
4950ac_cpp='$CPP $CPPFLAGS'
4951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4953ac_compiler_gnu=$ac_cv_c_compiler_gnu
4954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4955printf %s "checking whether $CC understands -c and -o together... " >&6; }
4956if test ${am_cv_prog_cc_c_o+y}
4957then :
4958  printf %s "(cached) " >&6
4959else $as_nop
4960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961/* end confdefs.h.  */
4962
4963int
4964main (void)
4965{
4966
4967  ;
4968  return 0;
4969}
4970_ACEOF
4971  # Make sure it works both with $CC and with simple cc.
4972  # Following AC_PROG_CC_C_O, we do the test twice because some
4973  # compilers refuse to overwrite an existing .o file with -o,
4974  # though they will create one.
4975  am_cv_prog_cc_c_o=yes
4976  for am_i in 1 2; do
4977    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4978   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4979   ac_status=$?
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); } \
4982         && test -f conftest2.$ac_objext; then
4983      : OK
4984    else
4985      am_cv_prog_cc_c_o=no
4986      break
4987    fi
4988  done
4989  rm -f core conftest*
4990  unset am_i
4991fi
4992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4993printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4994if test "$am_cv_prog_cc_c_o" != yes; then
4995   # Losing compiler, so override with the script.
4996   # FIXME: It is wrong to rewrite CC.
4997   # But if we don't then we get into trouble of one sort or another.
4998   # A longer-term fix would be to have automake use am__CC in this case,
4999   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5000   CC="$am_aux_dir/compile $CC"
5001fi
5002ac_ext=c
5003ac_cpp='$CPP $CPPFLAGS'
5004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5006ac_compiler_gnu=$ac_cv_c_compiler_gnu
5007
5008
5009depcc="$CC"   am_compiler_list=
5010
5011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5012printf %s "checking dependency style of $depcc... " >&6; }
5013if test ${am_cv_CC_dependencies_compiler_type+y}
5014then :
5015  printf %s "(cached) " >&6
5016else $as_nop
5017  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5018  # We make a subdir and do the tests there.  Otherwise we can end up
5019  # making bogus files that we don't know about and never remove.  For
5020  # instance it was reported that on HP-UX the gcc test will end up
5021  # making a dummy file named 'D' -- because '-MD' means "put the output
5022  # in D".
5023  rm -rf conftest.dir
5024  mkdir conftest.dir
5025  # Copy depcomp to subdir because otherwise we won't find it if we're
5026  # using a relative directory.
5027  cp "$am_depcomp" conftest.dir
5028  cd conftest.dir
5029  # We will build objects and dependencies in a subdirectory because
5030  # it helps to detect inapplicable dependency modes.  For instance
5031  # both Tru64's cc and ICC support -MD to output dependencies as a
5032  # side effect of compilation, but ICC will put the dependencies in
5033  # the current directory while Tru64 will put them in the object
5034  # directory.
5035  mkdir sub
5036
5037  am_cv_CC_dependencies_compiler_type=none
5038  if test "$am_compiler_list" = ""; then
5039     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5040  fi
5041  am__universal=false
5042  case " $depcc " in #(
5043     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5044     esac
5045
5046  for depmode in $am_compiler_list; do
5047    # Setup a source with many dependencies, because some compilers
5048    # like to wrap large dependency lists on column 80 (with \), and
5049    # we should not choose a depcomp mode which is confused by this.
5050    #
5051    # We need to recreate these files for each test, as the compiler may
5052    # overwrite some of them when testing with obscure command lines.
5053    # This happens at least with the AIX C compiler.
5054    : > sub/conftest.c
5055    for i in 1 2 3 4 5 6; do
5056      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5057      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5058      # Solaris 10 /bin/sh.
5059      echo '/* dummy */' > sub/conftst$i.h
5060    done
5061    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5062
5063    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5064    # mode.  It turns out that the SunPro C++ compiler does not properly
5065    # handle '-M -o', and we need to detect this.  Also, some Intel
5066    # versions had trouble with output in subdirs.
5067    am__obj=sub/conftest.${OBJEXT-o}
5068    am__minus_obj="-o $am__obj"
5069    case $depmode in
5070    gcc)
5071      # This depmode causes a compiler race in universal mode.
5072      test "$am__universal" = false || continue
5073      ;;
5074    nosideeffect)
5075      # After this tag, mechanisms are not by side-effect, so they'll
5076      # only be used when explicitly requested.
5077      if test "x$enable_dependency_tracking" = xyes; then
5078	continue
5079      else
5080	break
5081      fi
5082      ;;
5083    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5084      # This compiler won't grok '-c -o', but also, the minuso test has
5085      # not run yet.  These depmodes are late enough in the game, and
5086      # so weak that their functioning should not be impacted.
5087      am__obj=conftest.${OBJEXT-o}
5088      am__minus_obj=
5089      ;;
5090    none) break ;;
5091    esac
5092    if depmode=$depmode \
5093       source=sub/conftest.c object=$am__obj \
5094       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5095       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5096         >/dev/null 2>conftest.err &&
5097       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5098       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5099       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5100       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5101      # icc doesn't choke on unknown options, it will just issue warnings
5102      # or remarks (even with -Werror).  So we grep stderr for any message
5103      # that says an option was ignored or not supported.
5104      # When given -MP, icc 7.0 and 7.1 complain thusly:
5105      #   icc: Command line warning: ignoring option '-M'; no argument required
5106      # The diagnosis changed in icc 8.0:
5107      #   icc: Command line remark: option '-MP' not supported
5108      if (grep 'ignoring option' conftest.err ||
5109          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5110        am_cv_CC_dependencies_compiler_type=$depmode
5111        break
5112      fi
5113    fi
5114  done
5115
5116  cd ..
5117  rm -rf conftest.dir
5118else
5119  am_cv_CC_dependencies_compiler_type=none
5120fi
5121
5122fi
5123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5124printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5125CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5126
5127 if
5128  test "x$enable_dependency_tracking" != xno \
5129  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5130  am__fastdepCC_TRUE=
5131  am__fastdepCC_FALSE='#'
5132else
5133  am__fastdepCC_TRUE='#'
5134  am__fastdepCC_FALSE=
5135fi
5136
5137
5138
5139
5140  if test -n "$ac_tool_prefix"; then
5141  for ac_prog in ar lib "link -lib"
5142  do
5143    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5144set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146printf %s "checking for $ac_word... " >&6; }
5147if test ${ac_cv_prog_AR+y}
5148then :
5149  printf %s "(cached) " >&6
5150else $as_nop
5151  if test -n "$AR"; then
5152  ac_cv_prog_AR="$AR" # Let the user override the test.
5153else
5154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155for as_dir in $PATH
5156do
5157  IFS=$as_save_IFS
5158  case $as_dir in #(((
5159    '') as_dir=./ ;;
5160    */) ;;
5161    *) as_dir=$as_dir/ ;;
5162  esac
5163    for ac_exec_ext in '' $ac_executable_extensions; do
5164  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5165    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5166    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5167    break 2
5168  fi
5169done
5170  done
5171IFS=$as_save_IFS
5172
5173fi
5174fi
5175AR=$ac_cv_prog_AR
5176if test -n "$AR"; then
5177  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5178printf "%s\n" "$AR" >&6; }
5179else
5180  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181printf "%s\n" "no" >&6; }
5182fi
5183
5184
5185    test -n "$AR" && break
5186  done
5187fi
5188if test -z "$AR"; then
5189  ac_ct_AR=$AR
5190  for ac_prog in ar lib "link -lib"
5191do
5192  # Extract the first word of "$ac_prog", so it can be a program name with args.
5193set dummy $ac_prog; ac_word=$2
5194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5195printf %s "checking for $ac_word... " >&6; }
5196if test ${ac_cv_prog_ac_ct_AR+y}
5197then :
5198  printf %s "(cached) " >&6
5199else $as_nop
5200  if test -n "$ac_ct_AR"; then
5201  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5202else
5203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204for as_dir in $PATH
5205do
5206  IFS=$as_save_IFS
5207  case $as_dir in #(((
5208    '') as_dir=./ ;;
5209    */) ;;
5210    *) as_dir=$as_dir/ ;;
5211  esac
5212    for ac_exec_ext in '' $ac_executable_extensions; do
5213  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5214    ac_cv_prog_ac_ct_AR="$ac_prog"
5215    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5216    break 2
5217  fi
5218done
5219  done
5220IFS=$as_save_IFS
5221
5222fi
5223fi
5224ac_ct_AR=$ac_cv_prog_ac_ct_AR
5225if test -n "$ac_ct_AR"; then
5226  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5227printf "%s\n" "$ac_ct_AR" >&6; }
5228else
5229  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230printf "%s\n" "no" >&6; }
5231fi
5232
5233
5234  test -n "$ac_ct_AR" && break
5235done
5236
5237  if test "x$ac_ct_AR" = x; then
5238    AR="false"
5239  else
5240    case $cross_compiling:$ac_tool_warned in
5241yes:)
5242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5243printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5244ac_tool_warned=yes ;;
5245esac
5246    AR=$ac_ct_AR
5247  fi
5248fi
5249
5250: ${AR=ar}
5251
5252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5253printf %s "checking the archiver ($AR) interface... " >&6; }
5254if test ${am_cv_ar_interface+y}
5255then :
5256  printf %s "(cached) " >&6
5257else $as_nop
5258  ac_ext=c
5259ac_cpp='$CPP $CPPFLAGS'
5260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5262ac_compiler_gnu=$ac_cv_c_compiler_gnu
5263
5264   am_cv_ar_interface=ar
5265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266/* end confdefs.h.  */
5267int some_variable = 0;
5268_ACEOF
5269if ac_fn_c_try_compile "$LINENO"
5270then :
5271  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5272      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5273  (eval $am_ar_try) 2>&5
5274  ac_status=$?
5275  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5276  test $ac_status = 0; }
5277      if test "$ac_status" -eq 0; then
5278        am_cv_ar_interface=ar
5279      else
5280        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5281        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5282  (eval $am_ar_try) 2>&5
5283  ac_status=$?
5284  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5285  test $ac_status = 0; }
5286        if test "$ac_status" -eq 0; then
5287          am_cv_ar_interface=lib
5288        else
5289          am_cv_ar_interface=unknown
5290        fi
5291      fi
5292      rm -f conftest.lib libconftest.a
5293
5294fi
5295rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5296   ac_ext=c
5297ac_cpp='$CPP $CPPFLAGS'
5298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5300ac_compiler_gnu=$ac_cv_c_compiler_gnu
5301
5302fi
5303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5304printf "%s\n" "$am_cv_ar_interface" >&6; }
5305
5306case $am_cv_ar_interface in
5307ar)
5308  ;;
5309lib)
5310  # Microsoft lib, so override with the ar-lib wrapper script.
5311  # FIXME: It is wrong to rewrite AR.
5312  # But if we don't then we get into trouble of one sort or another.
5313  # A longer-term fix would be to have automake use am__AR in this case,
5314  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5315  # similar.
5316  AR="$am_aux_dir/ar-lib $AR"
5317  ;;
5318unknown)
5319  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5320  ;;
5321esac
5322
5323
5324# This was added at the suggestion of libtoolize (03-Jan-10)
5325
5326
5327# The default CFLAGS and CXXFLAGS in Autoconf are "-g -O2" for gcc and just
5328# "-g" for any other compiler. There doesn't seem to be a standard way of
5329# getting rid of the -g (which I don't think is needed for a production
5330# library). This fudge seems to achieve the necessary. First, we remember the
5331# externally set values of CFLAGS and CXXFLAGS. Then call the AC_PROG_CC and
5332# AC_PROG_CXX macros to find the compilers - if CFLAGS and CXXFLAGS are not
5333# set, they will be set to Autoconf's defaults. Afterwards, if the original
5334# values were not set, remove the -g from the Autoconf defaults.
5335# (PH 02-May-07)
5336
5337remember_set_CFLAGS="$CFLAGS"
5338remember_set_CXXFLAGS="$CXXFLAGS"
5339
5340ac_ext=c
5341ac_cpp='$CPP $CPPFLAGS'
5342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5344ac_compiler_gnu=$ac_cv_c_compiler_gnu
5345if test -n "$ac_tool_prefix"; then
5346  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5347set dummy ${ac_tool_prefix}gcc; ac_word=$2
5348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349printf %s "checking for $ac_word... " >&6; }
5350if test ${ac_cv_prog_CC+y}
5351then :
5352  printf %s "(cached) " >&6
5353else $as_nop
5354  if test -n "$CC"; then
5355  ac_cv_prog_CC="$CC" # Let the user override the test.
5356else
5357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358for as_dir in $PATH
5359do
5360  IFS=$as_save_IFS
5361  case $as_dir in #(((
5362    '') as_dir=./ ;;
5363    */) ;;
5364    *) as_dir=$as_dir/ ;;
5365  esac
5366    for ac_exec_ext in '' $ac_executable_extensions; do
5367  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5368    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5369    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5370    break 2
5371  fi
5372done
5373  done
5374IFS=$as_save_IFS
5375
5376fi
5377fi
5378CC=$ac_cv_prog_CC
5379if test -n "$CC"; then
5380  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5381printf "%s\n" "$CC" >&6; }
5382else
5383  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384printf "%s\n" "no" >&6; }
5385fi
5386
5387
5388fi
5389if test -z "$ac_cv_prog_CC"; then
5390  ac_ct_CC=$CC
5391  # Extract the first word of "gcc", so it can be a program name with args.
5392set dummy gcc; ac_word=$2
5393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5394printf %s "checking for $ac_word... " >&6; }
5395if test ${ac_cv_prog_ac_ct_CC+y}
5396then :
5397  printf %s "(cached) " >&6
5398else $as_nop
5399  if test -n "$ac_ct_CC"; then
5400  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5401else
5402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403for as_dir in $PATH
5404do
5405  IFS=$as_save_IFS
5406  case $as_dir in #(((
5407    '') as_dir=./ ;;
5408    */) ;;
5409    *) as_dir=$as_dir/ ;;
5410  esac
5411    for ac_exec_ext in '' $ac_executable_extensions; do
5412  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5413    ac_cv_prog_ac_ct_CC="gcc"
5414    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5415    break 2
5416  fi
5417done
5418  done
5419IFS=$as_save_IFS
5420
5421fi
5422fi
5423ac_ct_CC=$ac_cv_prog_ac_ct_CC
5424if test -n "$ac_ct_CC"; then
5425  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5426printf "%s\n" "$ac_ct_CC" >&6; }
5427else
5428  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429printf "%s\n" "no" >&6; }
5430fi
5431
5432  if test "x$ac_ct_CC" = x; then
5433    CC=""
5434  else
5435    case $cross_compiling:$ac_tool_warned in
5436yes:)
5437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5438printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5439ac_tool_warned=yes ;;
5440esac
5441    CC=$ac_ct_CC
5442  fi
5443else
5444  CC="$ac_cv_prog_CC"
5445fi
5446
5447if test -z "$CC"; then
5448          if test -n "$ac_tool_prefix"; then
5449    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5450set dummy ${ac_tool_prefix}cc; 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_prog_CC+y}
5454then :
5455  printf %s "(cached) " >&6
5456else $as_nop
5457  if test -n "$CC"; then
5458  ac_cv_prog_CC="$CC" # Let the user override the test.
5459else
5460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461for as_dir in $PATH
5462do
5463  IFS=$as_save_IFS
5464  case $as_dir in #(((
5465    '') as_dir=./ ;;
5466    */) ;;
5467    *) as_dir=$as_dir/ ;;
5468  esac
5469    for ac_exec_ext in '' $ac_executable_extensions; do
5470  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5471    ac_cv_prog_CC="${ac_tool_prefix}cc"
5472    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5473    break 2
5474  fi
5475done
5476  done
5477IFS=$as_save_IFS
5478
5479fi
5480fi
5481CC=$ac_cv_prog_CC
5482if test -n "$CC"; then
5483  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5484printf "%s\n" "$CC" >&6; }
5485else
5486  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487printf "%s\n" "no" >&6; }
5488fi
5489
5490
5491  fi
5492fi
5493if test -z "$CC"; then
5494  # Extract the first word of "cc", so it can be a program name with args.
5495set dummy cc; ac_word=$2
5496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497printf %s "checking for $ac_word... " >&6; }
5498if test ${ac_cv_prog_CC+y}
5499then :
5500  printf %s "(cached) " >&6
5501else $as_nop
5502  if test -n "$CC"; then
5503  ac_cv_prog_CC="$CC" # Let the user override the test.
5504else
5505  ac_prog_rejected=no
5506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507for as_dir in $PATH
5508do
5509  IFS=$as_save_IFS
5510  case $as_dir in #(((
5511    '') as_dir=./ ;;
5512    */) ;;
5513    *) as_dir=$as_dir/ ;;
5514  esac
5515    for ac_exec_ext in '' $ac_executable_extensions; do
5516  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5517    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5518       ac_prog_rejected=yes
5519       continue
5520     fi
5521    ac_cv_prog_CC="cc"
5522    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5523    break 2
5524  fi
5525done
5526  done
5527IFS=$as_save_IFS
5528
5529if test $ac_prog_rejected = yes; then
5530  # We found a bogon in the path, so make sure we never use it.
5531  set dummy $ac_cv_prog_CC
5532  shift
5533  if test $# != 0; then
5534    # We chose a different compiler from the bogus one.
5535    # However, it has the same basename, so the bogon will be chosen
5536    # first if we set CC to just the basename; use the full file name.
5537    shift
5538    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5539  fi
5540fi
5541fi
5542fi
5543CC=$ac_cv_prog_CC
5544if test -n "$CC"; then
5545  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5546printf "%s\n" "$CC" >&6; }
5547else
5548  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549printf "%s\n" "no" >&6; }
5550fi
5551
5552
5553fi
5554if test -z "$CC"; then
5555  if test -n "$ac_tool_prefix"; then
5556  for ac_prog in cl.exe
5557  do
5558    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5559set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561printf %s "checking for $ac_word... " >&6; }
5562if test ${ac_cv_prog_CC+y}
5563then :
5564  printf %s "(cached) " >&6
5565else $as_nop
5566  if test -n "$CC"; then
5567  ac_cv_prog_CC="$CC" # Let the user override the test.
5568else
5569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570for as_dir in $PATH
5571do
5572  IFS=$as_save_IFS
5573  case $as_dir in #(((
5574    '') as_dir=./ ;;
5575    */) ;;
5576    *) as_dir=$as_dir/ ;;
5577  esac
5578    for ac_exec_ext in '' $ac_executable_extensions; do
5579  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5580    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5581    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5582    break 2
5583  fi
5584done
5585  done
5586IFS=$as_save_IFS
5587
5588fi
5589fi
5590CC=$ac_cv_prog_CC
5591if test -n "$CC"; then
5592  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5593printf "%s\n" "$CC" >&6; }
5594else
5595  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596printf "%s\n" "no" >&6; }
5597fi
5598
5599
5600    test -n "$CC" && break
5601  done
5602fi
5603if test -z "$CC"; then
5604  ac_ct_CC=$CC
5605  for ac_prog in cl.exe
5606do
5607  # Extract the first word of "$ac_prog", so it can be a program name with args.
5608set dummy $ac_prog; ac_word=$2
5609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5610printf %s "checking for $ac_word... " >&6; }
5611if test ${ac_cv_prog_ac_ct_CC+y}
5612then :
5613  printf %s "(cached) " >&6
5614else $as_nop
5615  if test -n "$ac_ct_CC"; then
5616  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5617else
5618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619for as_dir in $PATH
5620do
5621  IFS=$as_save_IFS
5622  case $as_dir in #(((
5623    '') as_dir=./ ;;
5624    */) ;;
5625    *) as_dir=$as_dir/ ;;
5626  esac
5627    for ac_exec_ext in '' $ac_executable_extensions; do
5628  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5629    ac_cv_prog_ac_ct_CC="$ac_prog"
5630    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5631    break 2
5632  fi
5633done
5634  done
5635IFS=$as_save_IFS
5636
5637fi
5638fi
5639ac_ct_CC=$ac_cv_prog_ac_ct_CC
5640if test -n "$ac_ct_CC"; then
5641  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5642printf "%s\n" "$ac_ct_CC" >&6; }
5643else
5644  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5645printf "%s\n" "no" >&6; }
5646fi
5647
5648
5649  test -n "$ac_ct_CC" && break
5650done
5651
5652  if test "x$ac_ct_CC" = x; then
5653    CC=""
5654  else
5655    case $cross_compiling:$ac_tool_warned in
5656yes:)
5657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5658printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5659ac_tool_warned=yes ;;
5660esac
5661    CC=$ac_ct_CC
5662  fi
5663fi
5664
5665fi
5666if test -z "$CC"; then
5667  if test -n "$ac_tool_prefix"; then
5668  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5669set dummy ${ac_tool_prefix}clang; ac_word=$2
5670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5671printf %s "checking for $ac_word... " >&6; }
5672if test ${ac_cv_prog_CC+y}
5673then :
5674  printf %s "(cached) " >&6
5675else $as_nop
5676  if test -n "$CC"; then
5677  ac_cv_prog_CC="$CC" # Let the user override the test.
5678else
5679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680for as_dir in $PATH
5681do
5682  IFS=$as_save_IFS
5683  case $as_dir in #(((
5684    '') as_dir=./ ;;
5685    */) ;;
5686    *) as_dir=$as_dir/ ;;
5687  esac
5688    for ac_exec_ext in '' $ac_executable_extensions; do
5689  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5690    ac_cv_prog_CC="${ac_tool_prefix}clang"
5691    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5692    break 2
5693  fi
5694done
5695  done
5696IFS=$as_save_IFS
5697
5698fi
5699fi
5700CC=$ac_cv_prog_CC
5701if test -n "$CC"; then
5702  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5703printf "%s\n" "$CC" >&6; }
5704else
5705  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706printf "%s\n" "no" >&6; }
5707fi
5708
5709
5710fi
5711if test -z "$ac_cv_prog_CC"; then
5712  ac_ct_CC=$CC
5713  # Extract the first word of "clang", so it can be a program name with args.
5714set dummy clang; ac_word=$2
5715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5716printf %s "checking for $ac_word... " >&6; }
5717if test ${ac_cv_prog_ac_ct_CC+y}
5718then :
5719  printf %s "(cached) " >&6
5720else $as_nop
5721  if test -n "$ac_ct_CC"; then
5722  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5723else
5724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725for as_dir in $PATH
5726do
5727  IFS=$as_save_IFS
5728  case $as_dir in #(((
5729    '') as_dir=./ ;;
5730    */) ;;
5731    *) as_dir=$as_dir/ ;;
5732  esac
5733    for ac_exec_ext in '' $ac_executable_extensions; do
5734  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5735    ac_cv_prog_ac_ct_CC="clang"
5736    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5737    break 2
5738  fi
5739done
5740  done
5741IFS=$as_save_IFS
5742
5743fi
5744fi
5745ac_ct_CC=$ac_cv_prog_ac_ct_CC
5746if test -n "$ac_ct_CC"; then
5747  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5748printf "%s\n" "$ac_ct_CC" >&6; }
5749else
5750  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5751printf "%s\n" "no" >&6; }
5752fi
5753
5754  if test "x$ac_ct_CC" = x; then
5755    CC=""
5756  else
5757    case $cross_compiling:$ac_tool_warned in
5758yes:)
5759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5760printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5761ac_tool_warned=yes ;;
5762esac
5763    CC=$ac_ct_CC
5764  fi
5765else
5766  CC="$ac_cv_prog_CC"
5767fi
5768
5769fi
5770
5771
5772test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5773printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5774as_fn_error $? "no acceptable C compiler found in \$PATH
5775See \`config.log' for more details" "$LINENO" 5; }
5776
5777# Provide some information about the compiler.
5778printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5779set X $ac_compile
5780ac_compiler=$2
5781for ac_option in --version -v -V -qversion -version; do
5782  { { ac_try="$ac_compiler $ac_option >&5"
5783case "(($ac_try" in
5784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785  *) ac_try_echo=$ac_try;;
5786esac
5787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5788printf "%s\n" "$ac_try_echo"; } >&5
5789  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5790  ac_status=$?
5791  if test -s conftest.err; then
5792    sed '10a\
5793... rest of stderr output deleted ...
5794         10q' conftest.err >conftest.er1
5795    cat conftest.er1 >&5
5796  fi
5797  rm -f conftest.er1 conftest.err
5798  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5799  test $ac_status = 0; }
5800done
5801
5802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5803printf %s "checking whether the compiler supports GNU C... " >&6; }
5804if test ${ac_cv_c_compiler_gnu+y}
5805then :
5806  printf %s "(cached) " >&6
5807else $as_nop
5808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809/* end confdefs.h.  */
5810
5811int
5812main (void)
5813{
5814#ifndef __GNUC__
5815       choke me
5816#endif
5817
5818  ;
5819  return 0;
5820}
5821_ACEOF
5822if ac_fn_c_try_compile "$LINENO"
5823then :
5824  ac_compiler_gnu=yes
5825else $as_nop
5826  ac_compiler_gnu=no
5827fi
5828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5829ac_cv_c_compiler_gnu=$ac_compiler_gnu
5830
5831fi
5832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5833printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5834ac_compiler_gnu=$ac_cv_c_compiler_gnu
5835
5836if test $ac_compiler_gnu = yes; then
5837  GCC=yes
5838else
5839  GCC=
5840fi
5841ac_test_CFLAGS=${CFLAGS+y}
5842ac_save_CFLAGS=$CFLAGS
5843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5844printf %s "checking whether $CC accepts -g... " >&6; }
5845if test ${ac_cv_prog_cc_g+y}
5846then :
5847  printf %s "(cached) " >&6
5848else $as_nop
5849  ac_save_c_werror_flag=$ac_c_werror_flag
5850   ac_c_werror_flag=yes
5851   ac_cv_prog_cc_g=no
5852   CFLAGS="-g"
5853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854/* end confdefs.h.  */
5855
5856int
5857main (void)
5858{
5859
5860  ;
5861  return 0;
5862}
5863_ACEOF
5864if ac_fn_c_try_compile "$LINENO"
5865then :
5866  ac_cv_prog_cc_g=yes
5867else $as_nop
5868  CFLAGS=""
5869      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870/* end confdefs.h.  */
5871
5872int
5873main (void)
5874{
5875
5876  ;
5877  return 0;
5878}
5879_ACEOF
5880if ac_fn_c_try_compile "$LINENO"
5881then :
5882
5883else $as_nop
5884  ac_c_werror_flag=$ac_save_c_werror_flag
5885	 CFLAGS="-g"
5886	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5887/* end confdefs.h.  */
5888
5889int
5890main (void)
5891{
5892
5893  ;
5894  return 0;
5895}
5896_ACEOF
5897if ac_fn_c_try_compile "$LINENO"
5898then :
5899  ac_cv_prog_cc_g=yes
5900fi
5901rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5902fi
5903rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5904fi
5905rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5906   ac_c_werror_flag=$ac_save_c_werror_flag
5907fi
5908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5909printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5910if test $ac_test_CFLAGS; then
5911  CFLAGS=$ac_save_CFLAGS
5912elif test $ac_cv_prog_cc_g = yes; then
5913  if test "$GCC" = yes; then
5914    CFLAGS="-g -O2"
5915  else
5916    CFLAGS="-g"
5917  fi
5918else
5919  if test "$GCC" = yes; then
5920    CFLAGS="-O2"
5921  else
5922    CFLAGS=
5923  fi
5924fi
5925ac_prog_cc_stdc=no
5926if test x$ac_prog_cc_stdc = xno
5927then :
5928  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5929printf %s "checking for $CC option to enable C11 features... " >&6; }
5930if test ${ac_cv_prog_cc_c11+y}
5931then :
5932  printf %s "(cached) " >&6
5933else $as_nop
5934  ac_cv_prog_cc_c11=no
5935ac_save_CC=$CC
5936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5937/* end confdefs.h.  */
5938$ac_c_conftest_c11_program
5939_ACEOF
5940for ac_arg in '' -std=gnu11
5941do
5942  CC="$ac_save_CC $ac_arg"
5943  if ac_fn_c_try_compile "$LINENO"
5944then :
5945  ac_cv_prog_cc_c11=$ac_arg
5946fi
5947rm -f core conftest.err conftest.$ac_objext conftest.beam
5948  test "x$ac_cv_prog_cc_c11" != "xno" && break
5949done
5950rm -f conftest.$ac_ext
5951CC=$ac_save_CC
5952fi
5953
5954if test "x$ac_cv_prog_cc_c11" = xno
5955then :
5956  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5957printf "%s\n" "unsupported" >&6; }
5958else $as_nop
5959  if test "x$ac_cv_prog_cc_c11" = x
5960then :
5961  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5962printf "%s\n" "none needed" >&6; }
5963else $as_nop
5964  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5965printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5966     CC="$CC $ac_cv_prog_cc_c11"
5967fi
5968  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5969  ac_prog_cc_stdc=c11
5970fi
5971fi
5972if test x$ac_prog_cc_stdc = xno
5973then :
5974  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5975printf %s "checking for $CC option to enable C99 features... " >&6; }
5976if test ${ac_cv_prog_cc_c99+y}
5977then :
5978  printf %s "(cached) " >&6
5979else $as_nop
5980  ac_cv_prog_cc_c99=no
5981ac_save_CC=$CC
5982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983/* end confdefs.h.  */
5984$ac_c_conftest_c99_program
5985_ACEOF
5986for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5987do
5988  CC="$ac_save_CC $ac_arg"
5989  if ac_fn_c_try_compile "$LINENO"
5990then :
5991  ac_cv_prog_cc_c99=$ac_arg
5992fi
5993rm -f core conftest.err conftest.$ac_objext conftest.beam
5994  test "x$ac_cv_prog_cc_c99" != "xno" && break
5995done
5996rm -f conftest.$ac_ext
5997CC=$ac_save_CC
5998fi
5999
6000if test "x$ac_cv_prog_cc_c99" = xno
6001then :
6002  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6003printf "%s\n" "unsupported" >&6; }
6004else $as_nop
6005  if test "x$ac_cv_prog_cc_c99" = x
6006then :
6007  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6008printf "%s\n" "none needed" >&6; }
6009else $as_nop
6010  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6011printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
6012     CC="$CC $ac_cv_prog_cc_c99"
6013fi
6014  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6015  ac_prog_cc_stdc=c99
6016fi
6017fi
6018if test x$ac_prog_cc_stdc = xno
6019then :
6020  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6021printf %s "checking for $CC option to enable C89 features... " >&6; }
6022if test ${ac_cv_prog_cc_c89+y}
6023then :
6024  printf %s "(cached) " >&6
6025else $as_nop
6026  ac_cv_prog_cc_c89=no
6027ac_save_CC=$CC
6028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029/* end confdefs.h.  */
6030$ac_c_conftest_c89_program
6031_ACEOF
6032for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6033do
6034  CC="$ac_save_CC $ac_arg"
6035  if ac_fn_c_try_compile "$LINENO"
6036then :
6037  ac_cv_prog_cc_c89=$ac_arg
6038fi
6039rm -f core conftest.err conftest.$ac_objext conftest.beam
6040  test "x$ac_cv_prog_cc_c89" != "xno" && break
6041done
6042rm -f conftest.$ac_ext
6043CC=$ac_save_CC
6044fi
6045
6046if test "x$ac_cv_prog_cc_c89" = xno
6047then :
6048  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6049printf "%s\n" "unsupported" >&6; }
6050else $as_nop
6051  if test "x$ac_cv_prog_cc_c89" = x
6052then :
6053  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6054printf "%s\n" "none needed" >&6; }
6055else $as_nop
6056  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6057printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6058     CC="$CC $ac_cv_prog_cc_c89"
6059fi
6060  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6061  ac_prog_cc_stdc=c89
6062fi
6063fi
6064
6065ac_ext=c
6066ac_cpp='$CPP $CPPFLAGS'
6067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6069ac_compiler_gnu=$ac_cv_c_compiler_gnu
6070
6071
6072  ac_ext=c
6073ac_cpp='$CPP $CPPFLAGS'
6074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6076ac_compiler_gnu=$ac_cv_c_compiler_gnu
6077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6078printf %s "checking whether $CC understands -c and -o together... " >&6; }
6079if test ${am_cv_prog_cc_c_o+y}
6080then :
6081  printf %s "(cached) " >&6
6082else $as_nop
6083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084/* end confdefs.h.  */
6085
6086int
6087main (void)
6088{
6089
6090  ;
6091  return 0;
6092}
6093_ACEOF
6094  # Make sure it works both with $CC and with simple cc.
6095  # Following AC_PROG_CC_C_O, we do the test twice because some
6096  # compilers refuse to overwrite an existing .o file with -o,
6097  # though they will create one.
6098  am_cv_prog_cc_c_o=yes
6099  for am_i in 1 2; do
6100    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6101   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6102   ac_status=$?
6103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104   (exit $ac_status); } \
6105         && test -f conftest2.$ac_objext; then
6106      : OK
6107    else
6108      am_cv_prog_cc_c_o=no
6109      break
6110    fi
6111  done
6112  rm -f core conftest*
6113  unset am_i
6114fi
6115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6116printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6117if test "$am_cv_prog_cc_c_o" != yes; then
6118   # Losing compiler, so override with the script.
6119   # FIXME: It is wrong to rewrite CC.
6120   # But if we don't then we get into trouble of one sort or another.
6121   # A longer-term fix would be to have automake use am__CC in this case,
6122   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6123   CC="$am_aux_dir/compile $CC"
6124fi
6125ac_ext=c
6126ac_cpp='$CPP $CPPFLAGS'
6127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6129ac_compiler_gnu=$ac_cv_c_compiler_gnu
6130
6131
6132depcc="$CC"   am_compiler_list=
6133
6134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6135printf %s "checking dependency style of $depcc... " >&6; }
6136if test ${am_cv_CC_dependencies_compiler_type+y}
6137then :
6138  printf %s "(cached) " >&6
6139else $as_nop
6140  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6141  # We make a subdir and do the tests there.  Otherwise we can end up
6142  # making bogus files that we don't know about and never remove.  For
6143  # instance it was reported that on HP-UX the gcc test will end up
6144  # making a dummy file named 'D' -- because '-MD' means "put the output
6145  # in D".
6146  rm -rf conftest.dir
6147  mkdir conftest.dir
6148  # Copy depcomp to subdir because otherwise we won't find it if we're
6149  # using a relative directory.
6150  cp "$am_depcomp" conftest.dir
6151  cd conftest.dir
6152  # We will build objects and dependencies in a subdirectory because
6153  # it helps to detect inapplicable dependency modes.  For instance
6154  # both Tru64's cc and ICC support -MD to output dependencies as a
6155  # side effect of compilation, but ICC will put the dependencies in
6156  # the current directory while Tru64 will put them in the object
6157  # directory.
6158  mkdir sub
6159
6160  am_cv_CC_dependencies_compiler_type=none
6161  if test "$am_compiler_list" = ""; then
6162     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6163  fi
6164  am__universal=false
6165  case " $depcc " in #(
6166     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6167     esac
6168
6169  for depmode in $am_compiler_list; do
6170    # Setup a source with many dependencies, because some compilers
6171    # like to wrap large dependency lists on column 80 (with \), and
6172    # we should not choose a depcomp mode which is confused by this.
6173    #
6174    # We need to recreate these files for each test, as the compiler may
6175    # overwrite some of them when testing with obscure command lines.
6176    # This happens at least with the AIX C compiler.
6177    : > sub/conftest.c
6178    for i in 1 2 3 4 5 6; do
6179      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6180      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6181      # Solaris 10 /bin/sh.
6182      echo '/* dummy */' > sub/conftst$i.h
6183    done
6184    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6185
6186    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6187    # mode.  It turns out that the SunPro C++ compiler does not properly
6188    # handle '-M -o', and we need to detect this.  Also, some Intel
6189    # versions had trouble with output in subdirs.
6190    am__obj=sub/conftest.${OBJEXT-o}
6191    am__minus_obj="-o $am__obj"
6192    case $depmode in
6193    gcc)
6194      # This depmode causes a compiler race in universal mode.
6195      test "$am__universal" = false || continue
6196      ;;
6197    nosideeffect)
6198      # After this tag, mechanisms are not by side-effect, so they'll
6199      # only be used when explicitly requested.
6200      if test "x$enable_dependency_tracking" = xyes; then
6201	continue
6202      else
6203	break
6204      fi
6205      ;;
6206    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6207      # This compiler won't grok '-c -o', but also, the minuso test has
6208      # not run yet.  These depmodes are late enough in the game, and
6209      # so weak that their functioning should not be impacted.
6210      am__obj=conftest.${OBJEXT-o}
6211      am__minus_obj=
6212      ;;
6213    none) break ;;
6214    esac
6215    if depmode=$depmode \
6216       source=sub/conftest.c object=$am__obj \
6217       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6218       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6219         >/dev/null 2>conftest.err &&
6220       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6221       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6222       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6223       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6224      # icc doesn't choke on unknown options, it will just issue warnings
6225      # or remarks (even with -Werror).  So we grep stderr for any message
6226      # that says an option was ignored or not supported.
6227      # When given -MP, icc 7.0 and 7.1 complain thusly:
6228      #   icc: Command line warning: ignoring option '-M'; no argument required
6229      # The diagnosis changed in icc 8.0:
6230      #   icc: Command line remark: option '-MP' not supported
6231      if (grep 'ignoring option' conftest.err ||
6232          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6233        am_cv_CC_dependencies_compiler_type=$depmode
6234        break
6235      fi
6236    fi
6237  done
6238
6239  cd ..
6240  rm -rf conftest.dir
6241else
6242  am_cv_CC_dependencies_compiler_type=none
6243fi
6244
6245fi
6246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6247printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6248CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6249
6250 if
6251  test "x$enable_dependency_tracking" != xno \
6252  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6253  am__fastdepCC_TRUE=
6254  am__fastdepCC_FALSE='#'
6255else
6256  am__fastdepCC_TRUE='#'
6257  am__fastdepCC_FALSE=
6258fi
6259
6260
6261
6262
6263
6264
6265
6266
6267ac_ext=cpp
6268ac_cpp='$CXXCPP $CPPFLAGS'
6269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6272if test -z "$CXX"; then
6273  if test -n "$CCC"; then
6274    CXX=$CCC
6275  else
6276    if test -n "$ac_tool_prefix"; then
6277  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6278  do
6279    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6280set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6282printf %s "checking for $ac_word... " >&6; }
6283if test ${ac_cv_prog_CXX+y}
6284then :
6285  printf %s "(cached) " >&6
6286else $as_nop
6287  if test -n "$CXX"; then
6288  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6289else
6290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291for as_dir in $PATH
6292do
6293  IFS=$as_save_IFS
6294  case $as_dir in #(((
6295    '') as_dir=./ ;;
6296    */) ;;
6297    *) as_dir=$as_dir/ ;;
6298  esac
6299    for ac_exec_ext in '' $ac_executable_extensions; do
6300  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6301    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6302    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6303    break 2
6304  fi
6305done
6306  done
6307IFS=$as_save_IFS
6308
6309fi
6310fi
6311CXX=$ac_cv_prog_CXX
6312if test -n "$CXX"; then
6313  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6314printf "%s\n" "$CXX" >&6; }
6315else
6316  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317printf "%s\n" "no" >&6; }
6318fi
6319
6320
6321    test -n "$CXX" && break
6322  done
6323fi
6324if test -z "$CXX"; then
6325  ac_ct_CXX=$CXX
6326  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6327do
6328  # Extract the first word of "$ac_prog", so it can be a program name with args.
6329set dummy $ac_prog; ac_word=$2
6330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331printf %s "checking for $ac_word... " >&6; }
6332if test ${ac_cv_prog_ac_ct_CXX+y}
6333then :
6334  printf %s "(cached) " >&6
6335else $as_nop
6336  if test -n "$ac_ct_CXX"; then
6337  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6338else
6339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340for as_dir in $PATH
6341do
6342  IFS=$as_save_IFS
6343  case $as_dir in #(((
6344    '') as_dir=./ ;;
6345    */) ;;
6346    *) as_dir=$as_dir/ ;;
6347  esac
6348    for ac_exec_ext in '' $ac_executable_extensions; do
6349  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6350    ac_cv_prog_ac_ct_CXX="$ac_prog"
6351    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6352    break 2
6353  fi
6354done
6355  done
6356IFS=$as_save_IFS
6357
6358fi
6359fi
6360ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6361if test -n "$ac_ct_CXX"; then
6362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6363printf "%s\n" "$ac_ct_CXX" >&6; }
6364else
6365  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366printf "%s\n" "no" >&6; }
6367fi
6368
6369
6370  test -n "$ac_ct_CXX" && break
6371done
6372
6373  if test "x$ac_ct_CXX" = x; then
6374    CXX="g++"
6375  else
6376    case $cross_compiling:$ac_tool_warned in
6377yes:)
6378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6379printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6380ac_tool_warned=yes ;;
6381esac
6382    CXX=$ac_ct_CXX
6383  fi
6384fi
6385
6386  fi
6387fi
6388# Provide some information about the compiler.
6389printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6390set X $ac_compile
6391ac_compiler=$2
6392for ac_option in --version -v -V -qversion; do
6393  { { ac_try="$ac_compiler $ac_option >&5"
6394case "(($ac_try" in
6395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6396  *) ac_try_echo=$ac_try;;
6397esac
6398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6399printf "%s\n" "$ac_try_echo"; } >&5
6400  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6401  ac_status=$?
6402  if test -s conftest.err; then
6403    sed '10a\
6404... rest of stderr output deleted ...
6405         10q' conftest.err >conftest.er1
6406    cat conftest.er1 >&5
6407  fi
6408  rm -f conftest.er1 conftest.err
6409  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6410  test $ac_status = 0; }
6411done
6412
6413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
6414printf %s "checking whether the compiler supports GNU C++... " >&6; }
6415if test ${ac_cv_cxx_compiler_gnu+y}
6416then :
6417  printf %s "(cached) " >&6
6418else $as_nop
6419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420/* end confdefs.h.  */
6421
6422int
6423main (void)
6424{
6425#ifndef __GNUC__
6426       choke me
6427#endif
6428
6429  ;
6430  return 0;
6431}
6432_ACEOF
6433if ac_fn_cxx_try_compile "$LINENO"
6434then :
6435  ac_compiler_gnu=yes
6436else $as_nop
6437  ac_compiler_gnu=no
6438fi
6439rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6440ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6441
6442fi
6443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6444printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
6445ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6446
6447if test $ac_compiler_gnu = yes; then
6448  GXX=yes
6449else
6450  GXX=
6451fi
6452ac_test_CXXFLAGS=${CXXFLAGS+y}
6453ac_save_CXXFLAGS=$CXXFLAGS
6454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6455printf %s "checking whether $CXX accepts -g... " >&6; }
6456if test ${ac_cv_prog_cxx_g+y}
6457then :
6458  printf %s "(cached) " >&6
6459else $as_nop
6460  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6461   ac_cxx_werror_flag=yes
6462   ac_cv_prog_cxx_g=no
6463   CXXFLAGS="-g"
6464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465/* end confdefs.h.  */
6466
6467int
6468main (void)
6469{
6470
6471  ;
6472  return 0;
6473}
6474_ACEOF
6475if ac_fn_cxx_try_compile "$LINENO"
6476then :
6477  ac_cv_prog_cxx_g=yes
6478else $as_nop
6479  CXXFLAGS=""
6480      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6481/* end confdefs.h.  */
6482
6483int
6484main (void)
6485{
6486
6487  ;
6488  return 0;
6489}
6490_ACEOF
6491if ac_fn_cxx_try_compile "$LINENO"
6492then :
6493
6494else $as_nop
6495  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6496	 CXXFLAGS="-g"
6497	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498/* end confdefs.h.  */
6499
6500int
6501main (void)
6502{
6503
6504  ;
6505  return 0;
6506}
6507_ACEOF
6508if ac_fn_cxx_try_compile "$LINENO"
6509then :
6510  ac_cv_prog_cxx_g=yes
6511fi
6512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6513fi
6514rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6515fi
6516rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6517   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6518fi
6519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6520printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
6521if test $ac_test_CXXFLAGS; then
6522  CXXFLAGS=$ac_save_CXXFLAGS
6523elif test $ac_cv_prog_cxx_g = yes; then
6524  if test "$GXX" = yes; then
6525    CXXFLAGS="-g -O2"
6526  else
6527    CXXFLAGS="-g"
6528  fi
6529else
6530  if test "$GXX" = yes; then
6531    CXXFLAGS="-O2"
6532  else
6533    CXXFLAGS=
6534  fi
6535fi
6536ac_prog_cxx_stdcxx=no
6537if test x$ac_prog_cxx_stdcxx = xno
6538then :
6539  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
6540printf %s "checking for $CXX option to enable C++11 features... " >&6; }
6541if test ${ac_cv_prog_cxx_11+y}
6542then :
6543  printf %s "(cached) " >&6
6544else $as_nop
6545  ac_cv_prog_cxx_11=no
6546ac_save_CXX=$CXX
6547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548/* end confdefs.h.  */
6549$ac_cxx_conftest_cxx11_program
6550_ACEOF
6551for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
6552do
6553  CXX="$ac_save_CXX $ac_arg"
6554  if ac_fn_cxx_try_compile "$LINENO"
6555then :
6556  ac_cv_prog_cxx_cxx11=$ac_arg
6557fi
6558rm -f core conftest.err conftest.$ac_objext conftest.beam
6559  test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
6560done
6561rm -f conftest.$ac_ext
6562CXX=$ac_save_CXX
6563fi
6564
6565if test "x$ac_cv_prog_cxx_cxx11" = xno
6566then :
6567  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6568printf "%s\n" "unsupported" >&6; }
6569else $as_nop
6570  if test "x$ac_cv_prog_cxx_cxx11" = x
6571then :
6572  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6573printf "%s\n" "none needed" >&6; }
6574else $as_nop
6575  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
6576printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
6577     CXX="$CXX $ac_cv_prog_cxx_cxx11"
6578fi
6579  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
6580  ac_prog_cxx_stdcxx=cxx11
6581fi
6582fi
6583if test x$ac_prog_cxx_stdcxx = xno
6584then :
6585  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
6586printf %s "checking for $CXX option to enable C++98 features... " >&6; }
6587if test ${ac_cv_prog_cxx_98+y}
6588then :
6589  printf %s "(cached) " >&6
6590else $as_nop
6591  ac_cv_prog_cxx_98=no
6592ac_save_CXX=$CXX
6593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594/* end confdefs.h.  */
6595$ac_cxx_conftest_cxx98_program
6596_ACEOF
6597for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
6598do
6599  CXX="$ac_save_CXX $ac_arg"
6600  if ac_fn_cxx_try_compile "$LINENO"
6601then :
6602  ac_cv_prog_cxx_cxx98=$ac_arg
6603fi
6604rm -f core conftest.err conftest.$ac_objext conftest.beam
6605  test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
6606done
6607rm -f conftest.$ac_ext
6608CXX=$ac_save_CXX
6609fi
6610
6611if test "x$ac_cv_prog_cxx_cxx98" = xno
6612then :
6613  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6614printf "%s\n" "unsupported" >&6; }
6615else $as_nop
6616  if test "x$ac_cv_prog_cxx_cxx98" = x
6617then :
6618  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6619printf "%s\n" "none needed" >&6; }
6620else $as_nop
6621  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
6622printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
6623     CXX="$CXX $ac_cv_prog_cxx_cxx98"
6624fi
6625  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
6626  ac_prog_cxx_stdcxx=cxx98
6627fi
6628fi
6629
6630ac_ext=c
6631ac_cpp='$CPP $CPPFLAGS'
6632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6634ac_compiler_gnu=$ac_cv_c_compiler_gnu
6635
6636depcc="$CXX"  am_compiler_list=
6637
6638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6639printf %s "checking dependency style of $depcc... " >&6; }
6640if test ${am_cv_CXX_dependencies_compiler_type+y}
6641then :
6642  printf %s "(cached) " >&6
6643else $as_nop
6644  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6645  # We make a subdir and do the tests there.  Otherwise we can end up
6646  # making bogus files that we don't know about and never remove.  For
6647  # instance it was reported that on HP-UX the gcc test will end up
6648  # making a dummy file named 'D' -- because '-MD' means "put the output
6649  # in D".
6650  rm -rf conftest.dir
6651  mkdir conftest.dir
6652  # Copy depcomp to subdir because otherwise we won't find it if we're
6653  # using a relative directory.
6654  cp "$am_depcomp" conftest.dir
6655  cd conftest.dir
6656  # We will build objects and dependencies in a subdirectory because
6657  # it helps to detect inapplicable dependency modes.  For instance
6658  # both Tru64's cc and ICC support -MD to output dependencies as a
6659  # side effect of compilation, but ICC will put the dependencies in
6660  # the current directory while Tru64 will put them in the object
6661  # directory.
6662  mkdir sub
6663
6664  am_cv_CXX_dependencies_compiler_type=none
6665  if test "$am_compiler_list" = ""; then
6666     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6667  fi
6668  am__universal=false
6669  case " $depcc " in #(
6670     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6671     esac
6672
6673  for depmode in $am_compiler_list; do
6674    # Setup a source with many dependencies, because some compilers
6675    # like to wrap large dependency lists on column 80 (with \), and
6676    # we should not choose a depcomp mode which is confused by this.
6677    #
6678    # We need to recreate these files for each test, as the compiler may
6679    # overwrite some of them when testing with obscure command lines.
6680    # This happens at least with the AIX C compiler.
6681    : > sub/conftest.c
6682    for i in 1 2 3 4 5 6; do
6683      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6684      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6685      # Solaris 10 /bin/sh.
6686      echo '/* dummy */' > sub/conftst$i.h
6687    done
6688    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6689
6690    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6691    # mode.  It turns out that the SunPro C++ compiler does not properly
6692    # handle '-M -o', and we need to detect this.  Also, some Intel
6693    # versions had trouble with output in subdirs.
6694    am__obj=sub/conftest.${OBJEXT-o}
6695    am__minus_obj="-o $am__obj"
6696    case $depmode in
6697    gcc)
6698      # This depmode causes a compiler race in universal mode.
6699      test "$am__universal" = false || continue
6700      ;;
6701    nosideeffect)
6702      # After this tag, mechanisms are not by side-effect, so they'll
6703      # only be used when explicitly requested.
6704      if test "x$enable_dependency_tracking" = xyes; then
6705	continue
6706      else
6707	break
6708      fi
6709      ;;
6710    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6711      # This compiler won't grok '-c -o', but also, the minuso test has
6712      # not run yet.  These depmodes are late enough in the game, and
6713      # so weak that their functioning should not be impacted.
6714      am__obj=conftest.${OBJEXT-o}
6715      am__minus_obj=
6716      ;;
6717    none) break ;;
6718    esac
6719    if depmode=$depmode \
6720       source=sub/conftest.c object=$am__obj \
6721       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6722       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6723         >/dev/null 2>conftest.err &&
6724       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6725       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6726       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6727       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6728      # icc doesn't choke on unknown options, it will just issue warnings
6729      # or remarks (even with -Werror).  So we grep stderr for any message
6730      # that says an option was ignored or not supported.
6731      # When given -MP, icc 7.0 and 7.1 complain thusly:
6732      #   icc: Command line warning: ignoring option '-M'; no argument required
6733      # The diagnosis changed in icc 8.0:
6734      #   icc: Command line remark: option '-MP' not supported
6735      if (grep 'ignoring option' conftest.err ||
6736          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6737        am_cv_CXX_dependencies_compiler_type=$depmode
6738        break
6739      fi
6740    fi
6741  done
6742
6743  cd ..
6744  rm -rf conftest.dir
6745else
6746  am_cv_CXX_dependencies_compiler_type=none
6747fi
6748
6749fi
6750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6751printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
6752CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6753
6754 if
6755  test "x$enable_dependency_tracking" != xno \
6756  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6757  am__fastdepCXX_TRUE=
6758  am__fastdepCXX_FALSE='#'
6759else
6760  am__fastdepCXX_TRUE='#'
6761  am__fastdepCXX_FALSE=
6762fi
6763
6764
6765
6766
6767if test "x$remember_set_CFLAGS" = "x"
6768then
6769  if test "$CFLAGS" = "-g -O2"
6770  then
6771    CFLAGS="-O2"
6772  elif test "$CFLAGS" = "-g"
6773  then
6774    CFLAGS=""
6775  fi
6776fi
6777
6778if test "x$remember_set_CXXFLAGS" = "x"
6779then
6780  if test "$CXXFLAGS" = "-g -O2"
6781  then
6782    CXXFLAGS="-O2"
6783  elif test "$CXXFLAGS" = "-g"
6784  then
6785    CXXFLAGS=""
6786  fi
6787fi
6788
6789# AC_PROG_CXX will return "g++" even if no c++ compiler is installed.
6790# Check for that case, and just disable c++ code if g++ doesn't run.
6791ac_ext=cpp
6792ac_cpp='$CXXCPP $CPPFLAGS'
6793ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6794ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6795ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6796
6797
6798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799/* end confdefs.h.  */
6800
6801int
6802main (void)
6803{
6804
6805  ;
6806  return 0;
6807}
6808_ACEOF
6809if ac_fn_cxx_try_compile "$LINENO"
6810then :
6811
6812else $as_nop
6813  CXX=""; CXXCP=""; CXXFLAGS=""
6814fi
6815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6816ac_ext=c
6817ac_cpp='$CPP $CPPFLAGS'
6818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6820ac_compiler_gnu=$ac_cv_c_compiler_gnu
6821
6822
6823# Check for a 64-bit integer type
6824ac_header= ac_cache=
6825for ac_item in $ac_header_c_list
6826do
6827  if test $ac_cache; then
6828    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
6829    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
6830      printf "%s\n" "#define $ac_item 1" >> confdefs.h
6831    fi
6832    ac_header= ac_cache=
6833  elif test $ac_header; then
6834    ac_cache=$ac_item
6835  else
6836    ac_header=$ac_item
6837  fi
6838done
6839
6840
6841
6842
6843
6844
6845
6846
6847if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
6848then :
6849
6850printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6851
6852fi
6853ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6854case $ac_cv_c_int64_t in #(
6855  no|yes) ;; #(
6856  *)
6857
6858printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
6859;;
6860esac
6861
6862
6863
6864
6865
6866  # Make sure we can run config.sub.
6867$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6868  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6869
6870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6871printf %s "checking build system type... " >&6; }
6872if test ${ac_cv_build+y}
6873then :
6874  printf %s "(cached) " >&6
6875else $as_nop
6876  ac_build_alias=$build_alias
6877test "x$ac_build_alias" = x &&
6878  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6879test "x$ac_build_alias" = x &&
6880  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6881ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6882  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6883
6884fi
6885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6886printf "%s\n" "$ac_cv_build" >&6; }
6887case $ac_cv_build in
6888*-*-*) ;;
6889*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6890esac
6891build=$ac_cv_build
6892ac_save_IFS=$IFS; IFS='-'
6893set x $ac_cv_build
6894shift
6895build_cpu=$1
6896build_vendor=$2
6897shift; shift
6898# Remember, the first character of IFS is used to create $*,
6899# except with old shells:
6900build_os=$*
6901IFS=$ac_save_IFS
6902case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6903
6904
6905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6906printf %s "checking host system type... " >&6; }
6907if test ${ac_cv_host+y}
6908then :
6909  printf %s "(cached) " >&6
6910else $as_nop
6911  if test "x$host_alias" = x; then
6912  ac_cv_host=$ac_cv_build
6913else
6914  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6915    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6916fi
6917
6918fi
6919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6920printf "%s\n" "$ac_cv_host" >&6; }
6921case $ac_cv_host in
6922*-*-*) ;;
6923*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6924esac
6925host=$ac_cv_host
6926ac_save_IFS=$IFS; IFS='-'
6927set x $ac_cv_host
6928shift
6929host_cpu=$1
6930host_vendor=$2
6931shift; shift
6932# Remember, the first character of IFS is used to create $*,
6933# except with old shells:
6934host_os=$*
6935IFS=$ac_save_IFS
6936case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6937
6938
6939enable_win32_dll=yes
6940
6941case $host in
6942*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
6943  if test -n "$ac_tool_prefix"; then
6944  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6945set dummy ${ac_tool_prefix}as; ac_word=$2
6946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6947printf %s "checking for $ac_word... " >&6; }
6948if test ${ac_cv_prog_AS+y}
6949then :
6950  printf %s "(cached) " >&6
6951else $as_nop
6952  if test -n "$AS"; then
6953  ac_cv_prog_AS="$AS" # Let the user override the test.
6954else
6955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956for as_dir in $PATH
6957do
6958  IFS=$as_save_IFS
6959  case $as_dir in #(((
6960    '') as_dir=./ ;;
6961    */) ;;
6962    *) as_dir=$as_dir/ ;;
6963  esac
6964    for ac_exec_ext in '' $ac_executable_extensions; do
6965  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6966    ac_cv_prog_AS="${ac_tool_prefix}as"
6967    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6968    break 2
6969  fi
6970done
6971  done
6972IFS=$as_save_IFS
6973
6974fi
6975fi
6976AS=$ac_cv_prog_AS
6977if test -n "$AS"; then
6978  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6979printf "%s\n" "$AS" >&6; }
6980else
6981  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982printf "%s\n" "no" >&6; }
6983fi
6984
6985
6986fi
6987if test -z "$ac_cv_prog_AS"; then
6988  ac_ct_AS=$AS
6989  # Extract the first word of "as", so it can be a program name with args.
6990set dummy as; ac_word=$2
6991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6992printf %s "checking for $ac_word... " >&6; }
6993if test ${ac_cv_prog_ac_ct_AS+y}
6994then :
6995  printf %s "(cached) " >&6
6996else $as_nop
6997  if test -n "$ac_ct_AS"; then
6998  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6999else
7000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001for as_dir in $PATH
7002do
7003  IFS=$as_save_IFS
7004  case $as_dir in #(((
7005    '') as_dir=./ ;;
7006    */) ;;
7007    *) as_dir=$as_dir/ ;;
7008  esac
7009    for ac_exec_ext in '' $ac_executable_extensions; do
7010  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7011    ac_cv_prog_ac_ct_AS="as"
7012    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7013    break 2
7014  fi
7015done
7016  done
7017IFS=$as_save_IFS
7018
7019fi
7020fi
7021ac_ct_AS=$ac_cv_prog_ac_ct_AS
7022if test -n "$ac_ct_AS"; then
7023  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7024printf "%s\n" "$ac_ct_AS" >&6; }
7025else
7026  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7027printf "%s\n" "no" >&6; }
7028fi
7029
7030  if test "x$ac_ct_AS" = x; then
7031    AS="false"
7032  else
7033    case $cross_compiling:$ac_tool_warned in
7034yes:)
7035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7036printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7037ac_tool_warned=yes ;;
7038esac
7039    AS=$ac_ct_AS
7040  fi
7041else
7042  AS="$ac_cv_prog_AS"
7043fi
7044
7045  if test -n "$ac_tool_prefix"; then
7046  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7047set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7049printf %s "checking for $ac_word... " >&6; }
7050if test ${ac_cv_prog_DLLTOOL+y}
7051then :
7052  printf %s "(cached) " >&6
7053else $as_nop
7054  if test -n "$DLLTOOL"; then
7055  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7056else
7057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058for as_dir in $PATH
7059do
7060  IFS=$as_save_IFS
7061  case $as_dir in #(((
7062    '') as_dir=./ ;;
7063    */) ;;
7064    *) as_dir=$as_dir/ ;;
7065  esac
7066    for ac_exec_ext in '' $ac_executable_extensions; do
7067  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7068    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7069    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7070    break 2
7071  fi
7072done
7073  done
7074IFS=$as_save_IFS
7075
7076fi
7077fi
7078DLLTOOL=$ac_cv_prog_DLLTOOL
7079if test -n "$DLLTOOL"; then
7080  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7081printf "%s\n" "$DLLTOOL" >&6; }
7082else
7083  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7084printf "%s\n" "no" >&6; }
7085fi
7086
7087
7088fi
7089if test -z "$ac_cv_prog_DLLTOOL"; then
7090  ac_ct_DLLTOOL=$DLLTOOL
7091  # Extract the first word of "dlltool", so it can be a program name with args.
7092set dummy dlltool; ac_word=$2
7093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7094printf %s "checking for $ac_word... " >&6; }
7095if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7096then :
7097  printf %s "(cached) " >&6
7098else $as_nop
7099  if test -n "$ac_ct_DLLTOOL"; then
7100  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7101else
7102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103for as_dir in $PATH
7104do
7105  IFS=$as_save_IFS
7106  case $as_dir in #(((
7107    '') as_dir=./ ;;
7108    */) ;;
7109    *) as_dir=$as_dir/ ;;
7110  esac
7111    for ac_exec_ext in '' $ac_executable_extensions; do
7112  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7113    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7114    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7115    break 2
7116  fi
7117done
7118  done
7119IFS=$as_save_IFS
7120
7121fi
7122fi
7123ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7124if test -n "$ac_ct_DLLTOOL"; then
7125  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7126printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7127else
7128  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129printf "%s\n" "no" >&6; }
7130fi
7131
7132  if test "x$ac_ct_DLLTOOL" = x; then
7133    DLLTOOL="false"
7134  else
7135    case $cross_compiling:$ac_tool_warned in
7136yes:)
7137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7138printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7139ac_tool_warned=yes ;;
7140esac
7141    DLLTOOL=$ac_ct_DLLTOOL
7142  fi
7143else
7144  DLLTOOL="$ac_cv_prog_DLLTOOL"
7145fi
7146
7147  if test -n "$ac_tool_prefix"; then
7148  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7149set dummy ${ac_tool_prefix}objdump; 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_OBJDUMP+y}
7153then :
7154  printf %s "(cached) " >&6
7155else $as_nop
7156  if test -n "$OBJDUMP"; then
7157  ac_cv_prog_OBJDUMP="$OBJDUMP" # 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_OBJDUMP="${ac_tool_prefix}objdump"
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
7180OBJDUMP=$ac_cv_prog_OBJDUMP
7181if test -n "$OBJDUMP"; then
7182  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7183printf "%s\n" "$OBJDUMP" >&6; }
7184else
7185  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186printf "%s\n" "no" >&6; }
7187fi
7188
7189
7190fi
7191if test -z "$ac_cv_prog_OBJDUMP"; then
7192  ac_ct_OBJDUMP=$OBJDUMP
7193  # Extract the first word of "objdump", so it can be a program name with args.
7194set dummy objdump; ac_word=$2
7195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7196printf %s "checking for $ac_word... " >&6; }
7197if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7198then :
7199  printf %s "(cached) " >&6
7200else $as_nop
7201  if test -n "$ac_ct_OBJDUMP"; then
7202  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7203else
7204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205for as_dir in $PATH
7206do
7207  IFS=$as_save_IFS
7208  case $as_dir in #(((
7209    '') as_dir=./ ;;
7210    */) ;;
7211    *) as_dir=$as_dir/ ;;
7212  esac
7213    for ac_exec_ext in '' $ac_executable_extensions; do
7214  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7215    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7216    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7217    break 2
7218  fi
7219done
7220  done
7221IFS=$as_save_IFS
7222
7223fi
7224fi
7225ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7226if test -n "$ac_ct_OBJDUMP"; then
7227  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7228printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7229else
7230  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7231printf "%s\n" "no" >&6; }
7232fi
7233
7234  if test "x$ac_ct_OBJDUMP" = x; then
7235    OBJDUMP="false"
7236  else
7237    case $cross_compiling:$ac_tool_warned in
7238yes:)
7239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7240printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7241ac_tool_warned=yes ;;
7242esac
7243    OBJDUMP=$ac_ct_OBJDUMP
7244  fi
7245else
7246  OBJDUMP="$ac_cv_prog_OBJDUMP"
7247fi
7248
7249  ;;
7250esac
7251
7252test -z "$AS" && AS=as
7253
7254
7255
7256
7257
7258test -z "$DLLTOOL" && DLLTOOL=dlltool
7259
7260
7261
7262
7263
7264test -z "$OBJDUMP" && OBJDUMP=objdump
7265
7266
7267
7268
7269
7270
7271
7272case `pwd` in
7273  *\ * | *\	*)
7274    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7275printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7276esac
7277
7278
7279
7280macro_version='2.4.6.42-b88ce-dirty'
7281macro_revision='2.4.6.42'
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296ltmain=$ac_aux_dir/ltmain.sh
7297
7298# Backslashify metacharacters that are still active within
7299# double-quoted strings.
7300sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7301
7302# Same as above, but do not quote variable references.
7303double_quote_subst='s/\(["`\\]\)/\\\1/g'
7304
7305# Sed substitution to delay expansion of an escaped shell variable in a
7306# double_quote_subst'ed string.
7307delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7308
7309# Sed substitution to delay expansion of an escaped single quote.
7310delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7311
7312# Sed substitution to avoid accidental globbing in evaled expressions
7313no_glob_subst='s/\*/\\\*/g'
7314
7315ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7316ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7317ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7318
7319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7320printf %s "checking how to print strings... " >&6; }
7321# Test print first, because it will be a builtin if present.
7322if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7323   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7324  ECHO='print -r --'
7325elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7326  ECHO='printf %s\n'
7327else
7328  # Use this function as a fallback that always works.
7329  func_fallback_echo ()
7330  {
7331    eval 'cat <<_LTECHO_EOF
7332$1
7333_LTECHO_EOF'
7334  }
7335  ECHO='func_fallback_echo'
7336fi
7337
7338# func_echo_all arg...
7339# Invoke $ECHO with all args, space-separated.
7340func_echo_all ()
7341{
7342    $ECHO ""
7343}
7344
7345case $ECHO in
7346  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7347printf "%s\n" "printf" >&6; } ;;
7348  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7349printf "%s\n" "print -r" >&6; } ;;
7350  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7351printf "%s\n" "cat" >&6; } ;;
7352esac
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7368printf %s "checking for a sed that does not truncate output... " >&6; }
7369if test ${ac_cv_path_SED+y}
7370then :
7371  printf %s "(cached) " >&6
7372else $as_nop
7373            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7374     for ac_i in 1 2 3 4 5 6 7; do
7375       ac_script="$ac_script$as_nl$ac_script"
7376     done
7377     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7378     { ac_script=; unset ac_script;}
7379     if test -z "$SED"; then
7380  ac_path_SED_found=false
7381  # Loop through the user's path and test for each of PROGNAME-LIST
7382  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383for as_dir in $PATH
7384do
7385  IFS=$as_save_IFS
7386  case $as_dir in #(((
7387    '') as_dir=./ ;;
7388    */) ;;
7389    *) as_dir=$as_dir/ ;;
7390  esac
7391    for ac_prog in sed gsed
7392   do
7393    for ac_exec_ext in '' $ac_executable_extensions; do
7394      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
7395      as_fn_executable_p "$ac_path_SED" || continue
7396# Check for GNU ac_path_SED and select it if it is found.
7397  # Check for GNU $ac_path_SED
7398case `"$ac_path_SED" --version 2>&1` in
7399*GNU*)
7400  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7401*)
7402  ac_count=0
7403  printf %s 0123456789 >"conftest.in"
7404  while :
7405  do
7406    cat "conftest.in" "conftest.in" >"conftest.tmp"
7407    mv "conftest.tmp" "conftest.in"
7408    cp "conftest.in" "conftest.nl"
7409    printf "%s\n" '' >> "conftest.nl"
7410    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7411    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7412    as_fn_arith $ac_count + 1 && ac_count=$as_val
7413    if test $ac_count -gt ${ac_path_SED_max-0}; then
7414      # Best one so far, save it but keep looking for a better one
7415      ac_cv_path_SED="$ac_path_SED"
7416      ac_path_SED_max=$ac_count
7417    fi
7418    # 10*(2^10) chars as input seems more than enough
7419    test $ac_count -gt 10 && break
7420  done
7421  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7422esac
7423
7424      $ac_path_SED_found && break 3
7425    done
7426  done
7427  done
7428IFS=$as_save_IFS
7429  if test -z "$ac_cv_path_SED"; then
7430    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7431  fi
7432else
7433  ac_cv_path_SED=$SED
7434fi
7435
7436fi
7437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7438printf "%s\n" "$ac_cv_path_SED" >&6; }
7439 SED="$ac_cv_path_SED"
7440  rm -f conftest.sed
7441
7442test -z "$SED" && SED=sed
7443Xsed="$SED -e 1s/^X//"
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7456printf %s "checking for grep that handles long lines and -e... " >&6; }
7457if test ${ac_cv_path_GREP+y}
7458then :
7459  printf %s "(cached) " >&6
7460else $as_nop
7461  if test -z "$GREP"; then
7462  ac_path_GREP_found=false
7463  # Loop through the user's path and test for each of PROGNAME-LIST
7464  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7466do
7467  IFS=$as_save_IFS
7468  case $as_dir in #(((
7469    '') as_dir=./ ;;
7470    */) ;;
7471    *) as_dir=$as_dir/ ;;
7472  esac
7473    for ac_prog in grep ggrep
7474   do
7475    for ac_exec_ext in '' $ac_executable_extensions; do
7476      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7477      as_fn_executable_p "$ac_path_GREP" || continue
7478# Check for GNU ac_path_GREP and select it if it is found.
7479  # Check for GNU $ac_path_GREP
7480case `"$ac_path_GREP" --version 2>&1` in
7481*GNU*)
7482  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7483*)
7484  ac_count=0
7485  printf %s 0123456789 >"conftest.in"
7486  while :
7487  do
7488    cat "conftest.in" "conftest.in" >"conftest.tmp"
7489    mv "conftest.tmp" "conftest.in"
7490    cp "conftest.in" "conftest.nl"
7491    printf "%s\n" 'GREP' >> "conftest.nl"
7492    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7493    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7494    as_fn_arith $ac_count + 1 && ac_count=$as_val
7495    if test $ac_count -gt ${ac_path_GREP_max-0}; then
7496      # Best one so far, save it but keep looking for a better one
7497      ac_cv_path_GREP="$ac_path_GREP"
7498      ac_path_GREP_max=$ac_count
7499    fi
7500    # 10*(2^10) chars as input seems more than enough
7501    test $ac_count -gt 10 && break
7502  done
7503  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7504esac
7505
7506      $ac_path_GREP_found && break 3
7507    done
7508  done
7509  done
7510IFS=$as_save_IFS
7511  if test -z "$ac_cv_path_GREP"; then
7512    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7513  fi
7514else
7515  ac_cv_path_GREP=$GREP
7516fi
7517
7518fi
7519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7520printf "%s\n" "$ac_cv_path_GREP" >&6; }
7521 GREP="$ac_cv_path_GREP"
7522
7523
7524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7525printf %s "checking for egrep... " >&6; }
7526if test ${ac_cv_path_EGREP+y}
7527then :
7528  printf %s "(cached) " >&6
7529else $as_nop
7530  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7531   then ac_cv_path_EGREP="$GREP -E"
7532   else
7533     if test -z "$EGREP"; then
7534  ac_path_EGREP_found=false
7535  # Loop through the user's path and test for each of PROGNAME-LIST
7536  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7538do
7539  IFS=$as_save_IFS
7540  case $as_dir in #(((
7541    '') as_dir=./ ;;
7542    */) ;;
7543    *) as_dir=$as_dir/ ;;
7544  esac
7545    for ac_prog in egrep
7546   do
7547    for ac_exec_ext in '' $ac_executable_extensions; do
7548      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7549      as_fn_executable_p "$ac_path_EGREP" || continue
7550# Check for GNU ac_path_EGREP and select it if it is found.
7551  # Check for GNU $ac_path_EGREP
7552case `"$ac_path_EGREP" --version 2>&1` in
7553*GNU*)
7554  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7555*)
7556  ac_count=0
7557  printf %s 0123456789 >"conftest.in"
7558  while :
7559  do
7560    cat "conftest.in" "conftest.in" >"conftest.tmp"
7561    mv "conftest.tmp" "conftest.in"
7562    cp "conftest.in" "conftest.nl"
7563    printf "%s\n" 'EGREP' >> "conftest.nl"
7564    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7565    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7566    as_fn_arith $ac_count + 1 && ac_count=$as_val
7567    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7568      # Best one so far, save it but keep looking for a better one
7569      ac_cv_path_EGREP="$ac_path_EGREP"
7570      ac_path_EGREP_max=$ac_count
7571    fi
7572    # 10*(2^10) chars as input seems more than enough
7573    test $ac_count -gt 10 && break
7574  done
7575  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7576esac
7577
7578      $ac_path_EGREP_found && break 3
7579    done
7580  done
7581  done
7582IFS=$as_save_IFS
7583  if test -z "$ac_cv_path_EGREP"; then
7584    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7585  fi
7586else
7587  ac_cv_path_EGREP=$EGREP
7588fi
7589
7590   fi
7591fi
7592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7593printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7594 EGREP="$ac_cv_path_EGREP"
7595
7596
7597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7598printf %s "checking for fgrep... " >&6; }
7599if test ${ac_cv_path_FGREP+y}
7600then :
7601  printf %s "(cached) " >&6
7602else $as_nop
7603  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7604   then ac_cv_path_FGREP="$GREP -F"
7605   else
7606     if test -z "$FGREP"; then
7607  ac_path_FGREP_found=false
7608  # Loop through the user's path and test for each of PROGNAME-LIST
7609  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7611do
7612  IFS=$as_save_IFS
7613  case $as_dir in #(((
7614    '') as_dir=./ ;;
7615    */) ;;
7616    *) as_dir=$as_dir/ ;;
7617  esac
7618    for ac_prog in fgrep
7619   do
7620    for ac_exec_ext in '' $ac_executable_extensions; do
7621      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
7622      as_fn_executable_p "$ac_path_FGREP" || continue
7623# Check for GNU ac_path_FGREP and select it if it is found.
7624  # Check for GNU $ac_path_FGREP
7625case `"$ac_path_FGREP" --version 2>&1` in
7626*GNU*)
7627  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7628*)
7629  ac_count=0
7630  printf %s 0123456789 >"conftest.in"
7631  while :
7632  do
7633    cat "conftest.in" "conftest.in" >"conftest.tmp"
7634    mv "conftest.tmp" "conftest.in"
7635    cp "conftest.in" "conftest.nl"
7636    printf "%s\n" 'FGREP' >> "conftest.nl"
7637    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7638    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7639    as_fn_arith $ac_count + 1 && ac_count=$as_val
7640    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7641      # Best one so far, save it but keep looking for a better one
7642      ac_cv_path_FGREP="$ac_path_FGREP"
7643      ac_path_FGREP_max=$ac_count
7644    fi
7645    # 10*(2^10) chars as input seems more than enough
7646    test $ac_count -gt 10 && break
7647  done
7648  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7649esac
7650
7651      $ac_path_FGREP_found && break 3
7652    done
7653  done
7654  done
7655IFS=$as_save_IFS
7656  if test -z "$ac_cv_path_FGREP"; then
7657    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7658  fi
7659else
7660  ac_cv_path_FGREP=$FGREP
7661fi
7662
7663   fi
7664fi
7665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7666printf "%s\n" "$ac_cv_path_FGREP" >&6; }
7667 FGREP="$ac_cv_path_FGREP"
7668
7669
7670test -z "$GREP" && GREP=grep
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690# Check whether --with-gnu-ld was given.
7691if test ${with_gnu_ld+y}
7692then :
7693  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7694else $as_nop
7695  with_gnu_ld=no
7696fi
7697
7698ac_prog=ld
7699if test yes = "$GCC"; then
7700  # Check if gcc -print-prog-name=ld gives a path.
7701  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7702printf %s "checking for ld used by $CC... " >&6; }
7703  case $host in
7704  *-*-mingw*)
7705    # gcc leaves a trailing carriage return, which upsets mingw
7706    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7707  *)
7708    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7709  esac
7710  case $ac_prog in
7711    # Accept absolute paths.
7712    [\\/]* | ?:[\\/]*)
7713      re_direlt='/[^/][^/]*/\.\./'
7714      # Canonicalize the pathname of ld
7715      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7716      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7717	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7718      done
7719      test -z "$LD" && LD=$ac_prog
7720      ;;
7721  "")
7722    # If it fails, then pretend we aren't using GCC.
7723    ac_prog=ld
7724    ;;
7725  *)
7726    # If it is relative, then search for the first ld in PATH.
7727    with_gnu_ld=unknown
7728    ;;
7729  esac
7730elif test yes = "$with_gnu_ld"; then
7731  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7732printf %s "checking for GNU ld... " >&6; }
7733else
7734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7735printf %s "checking for non-GNU ld... " >&6; }
7736fi
7737if test ${lt_cv_path_LD+y}
7738then :
7739  printf %s "(cached) " >&6
7740else $as_nop
7741  if test -z "$LD"; then
7742  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7743  for ac_dir in $PATH; do
7744    IFS=$lt_save_ifs
7745    test -z "$ac_dir" && ac_dir=.
7746    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7747      lt_cv_path_LD=$ac_dir/$ac_prog
7748      # Check to see if the program is GNU ld.  I'd rather use --version,
7749      # but apparently some variants of GNU ld only accept -v.
7750      # Break only if it was the GNU/non-GNU ld that we prefer.
7751      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7752      *GNU* | *'with BFD'*)
7753	test no != "$with_gnu_ld" && break
7754	;;
7755      *)
7756	test yes != "$with_gnu_ld" && break
7757	;;
7758      esac
7759    fi
7760  done
7761  IFS=$lt_save_ifs
7762else
7763  lt_cv_path_LD=$LD # Let the user override the test with a path.
7764fi
7765fi
7766
7767LD=$lt_cv_path_LD
7768if test -n "$LD"; then
7769  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7770printf "%s\n" "$LD" >&6; }
7771else
7772  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773printf "%s\n" "no" >&6; }
7774fi
7775test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7777printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
7778if test ${lt_cv_prog_gnu_ld+y}
7779then :
7780  printf %s "(cached) " >&6
7781else $as_nop
7782  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7783case `$LD -v 2>&1 </dev/null` in
7784*GNU* | *'with BFD'*)
7785  lt_cv_prog_gnu_ld=yes
7786  ;;
7787*)
7788  lt_cv_prog_gnu_ld=no
7789  ;;
7790esac
7791fi
7792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7793printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
7794with_gnu_ld=$lt_cv_prog_gnu_ld
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7805printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7806if test ${lt_cv_path_NM+y}
7807then :
7808  printf %s "(cached) " >&6
7809else $as_nop
7810  if test -n "$NM"; then
7811  # Let the user override the test.
7812  lt_cv_path_NM=$NM
7813else
7814  lt_nm_to_check=${ac_tool_prefix}nm
7815  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7816    lt_nm_to_check="$lt_nm_to_check nm"
7817  fi
7818  for lt_tmp_nm in $lt_nm_to_check; do
7819    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7820    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7821      IFS=$lt_save_ifs
7822      test -z "$ac_dir" && ac_dir=.
7823      tmp_nm=$ac_dir/$lt_tmp_nm
7824      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7825	# Check to see if the nm accepts a BSD-compat flag.
7826	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7827	#   nm: unknown option "B" ignored
7828	# Tru64's nm complains that /dev/null is an invalid object file
7829	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7830	case $build_os in
7831	mingw*) lt_bad_file=conftest.nm/nofile ;;
7832	*) lt_bad_file=/dev/null ;;
7833	esac
7834	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7835	*$lt_bad_file* | *'Invalid file or object type'*)
7836	  lt_cv_path_NM="$tmp_nm -B"
7837	  break 2
7838	  ;;
7839	*)
7840	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7841	  */dev/null*)
7842	    lt_cv_path_NM="$tmp_nm -p"
7843	    break 2
7844	    ;;
7845	  *)
7846	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7847	    continue # so that we can try to find one that supports BSD flags
7848	    ;;
7849	  esac
7850	  ;;
7851	esac
7852      fi
7853    done
7854    IFS=$lt_save_ifs
7855  done
7856  : ${lt_cv_path_NM=no}
7857fi
7858fi
7859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7860printf "%s\n" "$lt_cv_path_NM" >&6; }
7861if test no != "$lt_cv_path_NM"; then
7862  NM=$lt_cv_path_NM
7863else
7864  # Didn't find any BSD compatible name lister, look for dumpbin.
7865  if test -n "$DUMPBIN"; then :
7866    # Let the user override the test.
7867  else
7868    if test -n "$ac_tool_prefix"; then
7869  for ac_prog in dumpbin "link -dump"
7870  do
7871    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7872set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7874printf %s "checking for $ac_word... " >&6; }
7875if test ${ac_cv_prog_DUMPBIN+y}
7876then :
7877  printf %s "(cached) " >&6
7878else $as_nop
7879  if test -n "$DUMPBIN"; then
7880  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7881else
7882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883for as_dir in $PATH
7884do
7885  IFS=$as_save_IFS
7886  case $as_dir in #(((
7887    '') as_dir=./ ;;
7888    */) ;;
7889    *) as_dir=$as_dir/ ;;
7890  esac
7891    for ac_exec_ext in '' $ac_executable_extensions; do
7892  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7893    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7894    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7895    break 2
7896  fi
7897done
7898  done
7899IFS=$as_save_IFS
7900
7901fi
7902fi
7903DUMPBIN=$ac_cv_prog_DUMPBIN
7904if test -n "$DUMPBIN"; then
7905  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7906printf "%s\n" "$DUMPBIN" >&6; }
7907else
7908  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7909printf "%s\n" "no" >&6; }
7910fi
7911
7912
7913    test -n "$DUMPBIN" && break
7914  done
7915fi
7916if test -z "$DUMPBIN"; then
7917  ac_ct_DUMPBIN=$DUMPBIN
7918  for ac_prog in dumpbin "link -dump"
7919do
7920  # Extract the first word of "$ac_prog", so it can be a program name with args.
7921set dummy $ac_prog; ac_word=$2
7922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7923printf %s "checking for $ac_word... " >&6; }
7924if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
7925then :
7926  printf %s "(cached) " >&6
7927else $as_nop
7928  if test -n "$ac_ct_DUMPBIN"; then
7929  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7930else
7931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932for as_dir in $PATH
7933do
7934  IFS=$as_save_IFS
7935  case $as_dir in #(((
7936    '') as_dir=./ ;;
7937    */) ;;
7938    *) as_dir=$as_dir/ ;;
7939  esac
7940    for ac_exec_ext in '' $ac_executable_extensions; do
7941  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7942    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7943    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7944    break 2
7945  fi
7946done
7947  done
7948IFS=$as_save_IFS
7949
7950fi
7951fi
7952ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7953if test -n "$ac_ct_DUMPBIN"; then
7954  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7955printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
7956else
7957  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958printf "%s\n" "no" >&6; }
7959fi
7960
7961
7962  test -n "$ac_ct_DUMPBIN" && break
7963done
7964
7965  if test "x$ac_ct_DUMPBIN" = x; then
7966    DUMPBIN=":"
7967  else
7968    case $cross_compiling:$ac_tool_warned in
7969yes:)
7970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7971printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7972ac_tool_warned=yes ;;
7973esac
7974    DUMPBIN=$ac_ct_DUMPBIN
7975  fi
7976fi
7977
7978    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7979    *COFF*)
7980      DUMPBIN="$DUMPBIN -symbols -headers"
7981      ;;
7982    *)
7983      DUMPBIN=:
7984      ;;
7985    esac
7986  fi
7987
7988  if test : != "$DUMPBIN"; then
7989    NM=$DUMPBIN
7990  fi
7991fi
7992test -z "$NM" && NM=nm
7993
7994
7995
7996
7997
7998
7999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8000printf %s "checking the name lister ($NM) interface... " >&6; }
8001if test ${lt_cv_nm_interface+y}
8002then :
8003  printf %s "(cached) " >&6
8004else $as_nop
8005  lt_cv_nm_interface="BSD nm"
8006  echo "int some_variable = 0;" > conftest.$ac_ext
8007  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8008  (eval "$ac_compile" 2>conftest.err)
8009  cat conftest.err >&5
8010  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8011  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8012  cat conftest.err >&5
8013  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8014  cat conftest.out >&5
8015  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8016    lt_cv_nm_interface="MS dumpbin"
8017  fi
8018  rm -f conftest*
8019fi
8020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8021printf "%s\n" "$lt_cv_nm_interface" >&6; }
8022
8023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8024printf %s "checking whether ln -s works... " >&6; }
8025LN_S=$as_ln_s
8026if test "$LN_S" = "ln -s"; then
8027  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8028printf "%s\n" "yes" >&6; }
8029else
8030  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8031printf "%s\n" "no, using $LN_S" >&6; }
8032fi
8033
8034# find the maximum length of command line arguments
8035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8036printf %s "checking the maximum length of command line arguments... " >&6; }
8037if test ${lt_cv_sys_max_cmd_len+y}
8038then :
8039  printf %s "(cached) " >&6
8040else $as_nop
8041    i=0
8042  teststring=ABCD
8043
8044  case $build_os in
8045  msdosdjgpp*)
8046    # On DJGPP, this test can blow up pretty badly due to problems in libc
8047    # (any single argument exceeding 2000 bytes causes a buffer overrun
8048    # during glob expansion).  Even if it were fixed, the result of this
8049    # check would be larger than it should be.
8050    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8051    ;;
8052
8053  gnu*)
8054    # Under GNU Hurd, this test is not required because there is
8055    # no limit to the length of command line arguments.
8056    # Libtool will interpret -1 as no limit whatsoever
8057    lt_cv_sys_max_cmd_len=-1;
8058    ;;
8059
8060  cygwin* | mingw* | cegcc*)
8061    # On Win9x/ME, this test blows up -- it succeeds, but takes
8062    # about 5 minutes as the teststring grows exponentially.
8063    # Worse, since 9x/ME are not pre-emptively multitasking,
8064    # you end up with a "frozen" computer, even though with patience
8065    # the test eventually succeeds (with a max line length of 256k).
8066    # Instead, let's just punt: use the minimum linelength reported by
8067    # all of the supported platforms: 8192 (on NT/2K/XP).
8068    lt_cv_sys_max_cmd_len=8192;
8069    ;;
8070
8071  mint*)
8072    # On MiNT this can take a long time and run out of memory.
8073    lt_cv_sys_max_cmd_len=8192;
8074    ;;
8075
8076  amigaos*)
8077    # On AmigaOS with pdksh, this test takes hours, literally.
8078    # So we just punt and use a minimum line length of 8192.
8079    lt_cv_sys_max_cmd_len=8192;
8080    ;;
8081
8082  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8083    # This has been around since 386BSD, at least.  Likely further.
8084    if test -x /sbin/sysctl; then
8085      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8086    elif test -x /usr/sbin/sysctl; then
8087      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8088    else
8089      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
8090    fi
8091    # And add a safety zone
8092    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8093    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8094    ;;
8095
8096  interix*)
8097    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8098    lt_cv_sys_max_cmd_len=196608
8099    ;;
8100
8101  os2*)
8102    # The test takes a long time on OS/2.
8103    lt_cv_sys_max_cmd_len=8192
8104    ;;
8105
8106  osf*)
8107    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8108    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8109    # nice to cause kernel panics so lets avoid the loop below.
8110    # First set a reasonable default.
8111    lt_cv_sys_max_cmd_len=16384
8112    #
8113    if test -x /sbin/sysconfig; then
8114      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8115        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8116      esac
8117    fi
8118    ;;
8119  sco3.2v5*)
8120    lt_cv_sys_max_cmd_len=102400
8121    ;;
8122  sysv5* | sco5v6* | sysv4.2uw2*)
8123    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8124    if test -n "$kargmax"; then
8125      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
8126    else
8127      lt_cv_sys_max_cmd_len=32768
8128    fi
8129    ;;
8130  *)
8131    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8132    if test -n "$lt_cv_sys_max_cmd_len" && \
8133       test undefined != "$lt_cv_sys_max_cmd_len"; then
8134      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8135      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8136    else
8137      # Make teststring a little bigger before we do anything with it.
8138      # a 1K string should be a reasonable start.
8139      for i in 1 2 3 4 5 6 7 8; do
8140        teststring=$teststring$teststring
8141      done
8142      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8143      # If test is not a shell built-in, we'll probably end up computing a
8144      # maximum length that is only half of the actual maximum length, but
8145      # we can't tell.
8146      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8147	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8148	      test 17 != "$i" # 1/2 MB should be enough
8149      do
8150        i=`expr $i + 1`
8151        teststring=$teststring$teststring
8152      done
8153      # Only check the string length outside the loop.
8154      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8155      teststring=
8156      # Add a significant safety factor because C++ compilers can tack on
8157      # massive amounts of additional arguments before passing them to the
8158      # linker.  It appears as though 1/2 is a usable value.
8159      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8160    fi
8161    ;;
8162  esac
8163
8164fi
8165
8166if test -n "$lt_cv_sys_max_cmd_len"; then
8167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8168printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
8169else
8170  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8171printf "%s\n" "none" >&6; }
8172fi
8173max_cmd_len=$lt_cv_sys_max_cmd_len
8174
8175
8176
8177
8178
8179
8180: ${CP="cp -f"}
8181: ${MV="mv -f"}
8182: ${RM="rm -f"}
8183
8184if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8185  lt_unset=unset
8186else
8187  lt_unset=false
8188fi
8189
8190
8191
8192
8193
8194# test EBCDIC or ASCII
8195case `echo X|tr X '\101'` in
8196 A) # ASCII based system
8197    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8198  lt_SP2NL='tr \040 \012'
8199  lt_NL2SP='tr \015\012 \040\040'
8200  ;;
8201 *) # EBCDIC based system
8202  lt_SP2NL='tr \100 \n'
8203  lt_NL2SP='tr \r\n \100\100'
8204  ;;
8205esac
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8216printf %s "checking how to convert $build file names to $host format... " >&6; }
8217if test ${lt_cv_to_host_file_cmd+y}
8218then :
8219  printf %s "(cached) " >&6
8220else $as_nop
8221  case $host in
8222  *-*-mingw* )
8223    case $build in
8224      *-*-mingw* ) # actually msys
8225        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8226        ;;
8227      *-*-cygwin* )
8228        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8229        ;;
8230      * ) # otherwise, assume *nix
8231        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8232        ;;
8233    esac
8234    ;;
8235  *-*-cygwin* )
8236    case $build in
8237      *-*-mingw* ) # actually msys
8238        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8239        ;;
8240      *-*-cygwin* )
8241        lt_cv_to_host_file_cmd=func_convert_file_noop
8242        ;;
8243      * ) # otherwise, assume *nix
8244        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8245        ;;
8246    esac
8247    ;;
8248  * ) # unhandled hosts (and "normal" native builds)
8249    lt_cv_to_host_file_cmd=func_convert_file_noop
8250    ;;
8251esac
8252
8253fi
8254
8255to_host_file_cmd=$lt_cv_to_host_file_cmd
8256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8257printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
8258
8259
8260
8261
8262
8263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8264printf %s "checking how to convert $build file names to toolchain format... " >&6; }
8265if test ${lt_cv_to_tool_file_cmd+y}
8266then :
8267  printf %s "(cached) " >&6
8268else $as_nop
8269  #assume ordinary cross tools, or native build.
8270lt_cv_to_tool_file_cmd=func_convert_file_noop
8271case $host in
8272  *-*-mingw* )
8273    case $build in
8274      *-*-mingw* ) # actually msys
8275        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8276        ;;
8277    esac
8278    ;;
8279esac
8280
8281fi
8282
8283to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8285printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
8286
8287
8288
8289
8290
8291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8292printf %s "checking for $LD option to reload object files... " >&6; }
8293if test ${lt_cv_ld_reload_flag+y}
8294then :
8295  printf %s "(cached) " >&6
8296else $as_nop
8297  lt_cv_ld_reload_flag='-r'
8298fi
8299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8300printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
8301reload_flag=$lt_cv_ld_reload_flag
8302case $reload_flag in
8303"" | " "*) ;;
8304*) reload_flag=" $reload_flag" ;;
8305esac
8306reload_cmds='$LD$reload_flag -o $output$reload_objs'
8307case $host_os in
8308  cygwin* | mingw* | pw32* | cegcc*)
8309    if test yes != "$GCC"; then
8310      reload_cmds=false
8311    fi
8312    ;;
8313  darwin*)
8314    if test yes = "$GCC"; then
8315      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8316    else
8317      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8318    fi
8319    ;;
8320esac
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330if test -n "$ac_tool_prefix"; then
8331  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8332set dummy ${ac_tool_prefix}objdump; ac_word=$2
8333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334printf %s "checking for $ac_word... " >&6; }
8335if test ${ac_cv_prog_OBJDUMP+y}
8336then :
8337  printf %s "(cached) " >&6
8338else $as_nop
8339  if test -n "$OBJDUMP"; then
8340  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8341else
8342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8343for as_dir in $PATH
8344do
8345  IFS=$as_save_IFS
8346  case $as_dir in #(((
8347    '') as_dir=./ ;;
8348    */) ;;
8349    *) as_dir=$as_dir/ ;;
8350  esac
8351    for ac_exec_ext in '' $ac_executable_extensions; do
8352  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8353    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8354    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8355    break 2
8356  fi
8357done
8358  done
8359IFS=$as_save_IFS
8360
8361fi
8362fi
8363OBJDUMP=$ac_cv_prog_OBJDUMP
8364if test -n "$OBJDUMP"; then
8365  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8366printf "%s\n" "$OBJDUMP" >&6; }
8367else
8368  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369printf "%s\n" "no" >&6; }
8370fi
8371
8372
8373fi
8374if test -z "$ac_cv_prog_OBJDUMP"; then
8375  ac_ct_OBJDUMP=$OBJDUMP
8376  # Extract the first word of "objdump", so it can be a program name with args.
8377set dummy objdump; ac_word=$2
8378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8379printf %s "checking for $ac_word... " >&6; }
8380if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8381then :
8382  printf %s "(cached) " >&6
8383else $as_nop
8384  if test -n "$ac_ct_OBJDUMP"; then
8385  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8386else
8387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388for as_dir in $PATH
8389do
8390  IFS=$as_save_IFS
8391  case $as_dir in #(((
8392    '') as_dir=./ ;;
8393    */) ;;
8394    *) as_dir=$as_dir/ ;;
8395  esac
8396    for ac_exec_ext in '' $ac_executable_extensions; do
8397  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8398    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8399    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8400    break 2
8401  fi
8402done
8403  done
8404IFS=$as_save_IFS
8405
8406fi
8407fi
8408ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8409if test -n "$ac_ct_OBJDUMP"; then
8410  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8411printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8412else
8413  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8414printf "%s\n" "no" >&6; }
8415fi
8416
8417  if test "x$ac_ct_OBJDUMP" = x; then
8418    OBJDUMP="false"
8419  else
8420    case $cross_compiling:$ac_tool_warned in
8421yes:)
8422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8423printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8424ac_tool_warned=yes ;;
8425esac
8426    OBJDUMP=$ac_ct_OBJDUMP
8427  fi
8428else
8429  OBJDUMP="$ac_cv_prog_OBJDUMP"
8430fi
8431
8432test -z "$OBJDUMP" && OBJDUMP=objdump
8433
8434
8435
8436
8437
8438
8439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8440printf %s "checking how to recognize dependent libraries... " >&6; }
8441if test ${lt_cv_deplibs_check_method+y}
8442then :
8443  printf %s "(cached) " >&6
8444else $as_nop
8445  lt_cv_file_magic_cmd='$MAGIC_CMD'
8446lt_cv_file_magic_test_file=
8447lt_cv_deplibs_check_method='unknown'
8448# Need to set the preceding variable on all platforms that support
8449# interlibrary dependencies.
8450# 'none' -- dependencies not supported.
8451# 'unknown' -- same as none, but documents that we really don't know.
8452# 'pass_all' -- all dependencies passed with no checks.
8453# 'test_compile' -- check by making test program.
8454# 'file_magic [[regex]]' -- check by looking for files in library path
8455# that responds to the $file_magic_cmd with a given extended regex.
8456# If you have 'file' or equivalent on your system and you're not sure
8457# whether 'pass_all' will *always* work, you probably want this one.
8458
8459case $host_os in
8460aix[4-9]*)
8461  lt_cv_deplibs_check_method=pass_all
8462  ;;
8463
8464beos*)
8465  lt_cv_deplibs_check_method=pass_all
8466  ;;
8467
8468bsdi[45]*)
8469  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8470  lt_cv_file_magic_cmd='/usr/bin/file -L'
8471  lt_cv_file_magic_test_file=/shlib/libc.so
8472  ;;
8473
8474cygwin*)
8475  # func_win32_libid is a shell function defined in ltmain.sh
8476  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8477  lt_cv_file_magic_cmd='func_win32_libid'
8478  ;;
8479
8480mingw* | pw32*)
8481  # Base MSYS/MinGW do not provide the 'file' command needed by
8482  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8483  # unless we find 'file', for example because we are cross-compiling.
8484  if ( file / ) >/dev/null 2>&1; then
8485    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8486    lt_cv_file_magic_cmd='func_win32_libid'
8487  else
8488    # Keep this pattern in sync with the one in func_win32_libid.
8489    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8490    lt_cv_file_magic_cmd='$OBJDUMP -f'
8491  fi
8492  ;;
8493
8494cegcc*)
8495  # use the weaker test based on 'objdump'. See mingw*.
8496  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8497  lt_cv_file_magic_cmd='$OBJDUMP -f'
8498  ;;
8499
8500darwin* | rhapsody*)
8501  lt_cv_deplibs_check_method=pass_all
8502  ;;
8503
8504freebsd* | dragonfly*)
8505  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8506    case $host_cpu in
8507    i*86 )
8508      # Not sure whether the presence of OpenBSD here was a mistake.
8509      # Let's accept both of them until this is cleared up.
8510      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8511      lt_cv_file_magic_cmd=/usr/bin/file
8512      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8513      ;;
8514    esac
8515  else
8516    lt_cv_deplibs_check_method=pass_all
8517  fi
8518  ;;
8519
8520haiku*)
8521  lt_cv_deplibs_check_method=pass_all
8522  ;;
8523
8524hpux10.20* | hpux11*)
8525  lt_cv_file_magic_cmd=/usr/bin/file
8526  case $host_cpu in
8527  ia64*)
8528    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8529    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8530    ;;
8531  hppa*64*)
8532    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]'
8533    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8534    ;;
8535  *)
8536    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8537    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8538    ;;
8539  esac
8540  ;;
8541
8542interix[3-9]*)
8543  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8544  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8545  ;;
8546
8547irix5* | irix6* | nonstopux*)
8548  case $LD in
8549  *-32|*"-32 ") libmagic=32-bit;;
8550  *-n32|*"-n32 ") libmagic=N32;;
8551  *-64|*"-64 ") libmagic=64-bit;;
8552  *) libmagic=never-match;;
8553  esac
8554  lt_cv_deplibs_check_method=pass_all
8555  ;;
8556
8557# This must be glibc/ELF.
8558linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8559  lt_cv_deplibs_check_method=pass_all
8560  ;;
8561
8562netbsd*)
8563  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8564    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8565  else
8566    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8567  fi
8568  ;;
8569
8570newos6*)
8571  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8572  lt_cv_file_magic_cmd=/usr/bin/file
8573  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8574  ;;
8575
8576*nto* | *qnx*)
8577  lt_cv_deplibs_check_method=pass_all
8578  ;;
8579
8580openbsd* | bitrig*)
8581  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8582    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8583  else
8584    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8585  fi
8586  ;;
8587
8588osf3* | osf4* | osf5*)
8589  lt_cv_deplibs_check_method=pass_all
8590  ;;
8591
8592rdos*)
8593  lt_cv_deplibs_check_method=pass_all
8594  ;;
8595
8596solaris*)
8597  lt_cv_deplibs_check_method=pass_all
8598  ;;
8599
8600sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8601  lt_cv_deplibs_check_method=pass_all
8602  ;;
8603
8604sysv4 | sysv4.3*)
8605  case $host_vendor in
8606  motorola)
8607    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]'
8608    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8609    ;;
8610  ncr)
8611    lt_cv_deplibs_check_method=pass_all
8612    ;;
8613  sequent)
8614    lt_cv_file_magic_cmd='/bin/file'
8615    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8616    ;;
8617  sni)
8618    lt_cv_file_magic_cmd='/bin/file'
8619    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8620    lt_cv_file_magic_test_file=/lib/libc.so
8621    ;;
8622  siemens)
8623    lt_cv_deplibs_check_method=pass_all
8624    ;;
8625  pc)
8626    lt_cv_deplibs_check_method=pass_all
8627    ;;
8628  esac
8629  ;;
8630
8631tpf*)
8632  lt_cv_deplibs_check_method=pass_all
8633  ;;
8634os2*)
8635  lt_cv_deplibs_check_method=pass_all
8636  ;;
8637esac
8638
8639fi
8640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8641printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
8642
8643file_magic_glob=
8644want_nocaseglob=no
8645if test "$build" = "$host"; then
8646  case $host_os in
8647  mingw* | pw32*)
8648    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8649      want_nocaseglob=yes
8650    else
8651      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8652    fi
8653    ;;
8654  esac
8655fi
8656
8657file_magic_cmd=$lt_cv_file_magic_cmd
8658deplibs_check_method=$lt_cv_deplibs_check_method
8659test -z "$deplibs_check_method" && deplibs_check_method=unknown
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682if test -n "$ac_tool_prefix"; then
8683  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8684set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8686printf %s "checking for $ac_word... " >&6; }
8687if test ${ac_cv_prog_DLLTOOL+y}
8688then :
8689  printf %s "(cached) " >&6
8690else $as_nop
8691  if test -n "$DLLTOOL"; then
8692  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8693else
8694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695for as_dir in $PATH
8696do
8697  IFS=$as_save_IFS
8698  case $as_dir in #(((
8699    '') as_dir=./ ;;
8700    */) ;;
8701    *) as_dir=$as_dir/ ;;
8702  esac
8703    for ac_exec_ext in '' $ac_executable_extensions; do
8704  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8705    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8706    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8707    break 2
8708  fi
8709done
8710  done
8711IFS=$as_save_IFS
8712
8713fi
8714fi
8715DLLTOOL=$ac_cv_prog_DLLTOOL
8716if test -n "$DLLTOOL"; then
8717  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8718printf "%s\n" "$DLLTOOL" >&6; }
8719else
8720  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721printf "%s\n" "no" >&6; }
8722fi
8723
8724
8725fi
8726if test -z "$ac_cv_prog_DLLTOOL"; then
8727  ac_ct_DLLTOOL=$DLLTOOL
8728  # Extract the first word of "dlltool", so it can be a program name with args.
8729set dummy dlltool; 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_ac_ct_DLLTOOL+y}
8733then :
8734  printf %s "(cached) " >&6
8735else $as_nop
8736  if test -n "$ac_ct_DLLTOOL"; then
8737  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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_ac_ct_DLLTOOL="dlltool"
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
8760ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8761if test -n "$ac_ct_DLLTOOL"; then
8762  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8763printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8764else
8765  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8766printf "%s\n" "no" >&6; }
8767fi
8768
8769  if test "x$ac_ct_DLLTOOL" = x; then
8770    DLLTOOL="false"
8771  else
8772    case $cross_compiling:$ac_tool_warned in
8773yes:)
8774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8775printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8776ac_tool_warned=yes ;;
8777esac
8778    DLLTOOL=$ac_ct_DLLTOOL
8779  fi
8780else
8781  DLLTOOL="$ac_cv_prog_DLLTOOL"
8782fi
8783
8784test -z "$DLLTOOL" && DLLTOOL=dlltool
8785
8786
8787
8788
8789
8790
8791
8792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8793printf %s "checking how to associate runtime and link libraries... " >&6; }
8794if test ${lt_cv_sharedlib_from_linklib_cmd+y}
8795then :
8796  printf %s "(cached) " >&6
8797else $as_nop
8798  lt_cv_sharedlib_from_linklib_cmd='unknown'
8799
8800case $host_os in
8801cygwin* | mingw* | pw32* | cegcc*)
8802  # two different shell functions defined in ltmain.sh;
8803  # decide which one to use based on capabilities of $DLLTOOL
8804  case `$DLLTOOL --help 2>&1` in
8805  *--identify-strict*)
8806    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8807    ;;
8808  *)
8809    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8810    ;;
8811  esac
8812  ;;
8813*)
8814  # fallback: assume linklib IS sharedlib
8815  lt_cv_sharedlib_from_linklib_cmd=$ECHO
8816  ;;
8817esac
8818
8819fi
8820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8821printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8822sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8823test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8824
8825
8826
8827
8828
8829
8830
8831if test -n "$ac_tool_prefix"; then
8832  for ac_prog in ar
8833  do
8834    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8835set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8837printf %s "checking for $ac_word... " >&6; }
8838if test ${ac_cv_prog_AR+y}
8839then :
8840  printf %s "(cached) " >&6
8841else $as_nop
8842  if test -n "$AR"; then
8843  ac_cv_prog_AR="$AR" # Let the user override the test.
8844else
8845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846for as_dir in $PATH
8847do
8848  IFS=$as_save_IFS
8849  case $as_dir in #(((
8850    '') as_dir=./ ;;
8851    */) ;;
8852    *) as_dir=$as_dir/ ;;
8853  esac
8854    for ac_exec_ext in '' $ac_executable_extensions; do
8855  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8856    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8857    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8858    break 2
8859  fi
8860done
8861  done
8862IFS=$as_save_IFS
8863
8864fi
8865fi
8866AR=$ac_cv_prog_AR
8867if test -n "$AR"; then
8868  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8869printf "%s\n" "$AR" >&6; }
8870else
8871  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8872printf "%s\n" "no" >&6; }
8873fi
8874
8875
8876    test -n "$AR" && break
8877  done
8878fi
8879if test -z "$AR"; then
8880  ac_ct_AR=$AR
8881  for ac_prog in ar
8882do
8883  # Extract the first word of "$ac_prog", so it can be a program name with args.
8884set dummy $ac_prog; ac_word=$2
8885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8886printf %s "checking for $ac_word... " >&6; }
8887if test ${ac_cv_prog_ac_ct_AR+y}
8888then :
8889  printf %s "(cached) " >&6
8890else $as_nop
8891  if test -n "$ac_ct_AR"; then
8892  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8893else
8894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8895for as_dir in $PATH
8896do
8897  IFS=$as_save_IFS
8898  case $as_dir in #(((
8899    '') as_dir=./ ;;
8900    */) ;;
8901    *) as_dir=$as_dir/ ;;
8902  esac
8903    for ac_exec_ext in '' $ac_executable_extensions; do
8904  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8905    ac_cv_prog_ac_ct_AR="$ac_prog"
8906    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8907    break 2
8908  fi
8909done
8910  done
8911IFS=$as_save_IFS
8912
8913fi
8914fi
8915ac_ct_AR=$ac_cv_prog_ac_ct_AR
8916if test -n "$ac_ct_AR"; then
8917  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8918printf "%s\n" "$ac_ct_AR" >&6; }
8919else
8920  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8921printf "%s\n" "no" >&6; }
8922fi
8923
8924
8925  test -n "$ac_ct_AR" && break
8926done
8927
8928  if test "x$ac_ct_AR" = x; then
8929    AR="false"
8930  else
8931    case $cross_compiling:$ac_tool_warned in
8932yes:)
8933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8934printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8935ac_tool_warned=yes ;;
8936esac
8937    AR=$ac_ct_AR
8938  fi
8939fi
8940
8941: ${AR=ar}
8942
8943
8944
8945
8946
8947
8948# Use ARFLAGS variable as AR's operation code to sync the variable naming with
8949# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
8950# higher priority because thats what people were doing historically (setting
8951# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
8952# variable obsoleted/removed.
8953
8954test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
8955lt_ar_flags=$AR_FLAGS
8956
8957
8958
8959
8960
8961
8962# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
8963# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
8964
8965
8966
8967
8968
8969
8970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8971printf %s "checking for archiver @FILE support... " >&6; }
8972if test ${lt_cv_ar_at_file+y}
8973then :
8974  printf %s "(cached) " >&6
8975else $as_nop
8976  lt_cv_ar_at_file=no
8977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8978/* end confdefs.h.  */
8979
8980int
8981main (void)
8982{
8983
8984  ;
8985  return 0;
8986}
8987_ACEOF
8988if ac_fn_c_try_compile "$LINENO"
8989then :
8990  echo conftest.$ac_objext > conftest.lst
8991      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8992      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8993  (eval $lt_ar_try) 2>&5
8994  ac_status=$?
8995  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8996  test $ac_status = 0; }
8997      if test 0 -eq "$ac_status"; then
8998	# Ensure the archiver fails upon bogus file names.
8999	rm -f conftest.$ac_objext libconftest.a
9000	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9001  (eval $lt_ar_try) 2>&5
9002  ac_status=$?
9003  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9004  test $ac_status = 0; }
9005	if test 0 -ne "$ac_status"; then
9006          lt_cv_ar_at_file=@
9007        fi
9008      fi
9009      rm -f conftest.* libconftest.a
9010
9011fi
9012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9013
9014fi
9015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9016printf "%s\n" "$lt_cv_ar_at_file" >&6; }
9017
9018if test no = "$lt_cv_ar_at_file"; then
9019  archiver_list_spec=
9020else
9021  archiver_list_spec=$lt_cv_ar_at_file
9022fi
9023
9024
9025
9026
9027
9028
9029
9030if test -n "$ac_tool_prefix"; then
9031  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9032set dummy ${ac_tool_prefix}strip; ac_word=$2
9033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9034printf %s "checking for $ac_word... " >&6; }
9035if test ${ac_cv_prog_STRIP+y}
9036then :
9037  printf %s "(cached) " >&6
9038else $as_nop
9039  if test -n "$STRIP"; then
9040  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9041else
9042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9043for as_dir in $PATH
9044do
9045  IFS=$as_save_IFS
9046  case $as_dir in #(((
9047    '') as_dir=./ ;;
9048    */) ;;
9049    *) as_dir=$as_dir/ ;;
9050  esac
9051    for ac_exec_ext in '' $ac_executable_extensions; do
9052  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9053    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9054    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9055    break 2
9056  fi
9057done
9058  done
9059IFS=$as_save_IFS
9060
9061fi
9062fi
9063STRIP=$ac_cv_prog_STRIP
9064if test -n "$STRIP"; then
9065  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9066printf "%s\n" "$STRIP" >&6; }
9067else
9068  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9069printf "%s\n" "no" >&6; }
9070fi
9071
9072
9073fi
9074if test -z "$ac_cv_prog_STRIP"; then
9075  ac_ct_STRIP=$STRIP
9076  # Extract the first word of "strip", so it can be a program name with args.
9077set dummy strip; ac_word=$2
9078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9079printf %s "checking for $ac_word... " >&6; }
9080if test ${ac_cv_prog_ac_ct_STRIP+y}
9081then :
9082  printf %s "(cached) " >&6
9083else $as_nop
9084  if test -n "$ac_ct_STRIP"; then
9085  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9086else
9087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9088for as_dir in $PATH
9089do
9090  IFS=$as_save_IFS
9091  case $as_dir in #(((
9092    '') as_dir=./ ;;
9093    */) ;;
9094    *) as_dir=$as_dir/ ;;
9095  esac
9096    for ac_exec_ext in '' $ac_executable_extensions; do
9097  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9098    ac_cv_prog_ac_ct_STRIP="strip"
9099    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9100    break 2
9101  fi
9102done
9103  done
9104IFS=$as_save_IFS
9105
9106fi
9107fi
9108ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9109if test -n "$ac_ct_STRIP"; then
9110  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9111printf "%s\n" "$ac_ct_STRIP" >&6; }
9112else
9113  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9114printf "%s\n" "no" >&6; }
9115fi
9116
9117  if test "x$ac_ct_STRIP" = x; then
9118    STRIP=":"
9119  else
9120    case $cross_compiling:$ac_tool_warned in
9121yes:)
9122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9123printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9124ac_tool_warned=yes ;;
9125esac
9126    STRIP=$ac_ct_STRIP
9127  fi
9128else
9129  STRIP="$ac_cv_prog_STRIP"
9130fi
9131
9132test -z "$STRIP" && STRIP=:
9133
9134
9135
9136
9137
9138
9139if test -n "$ac_tool_prefix"; then
9140  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9141set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9143printf %s "checking for $ac_word... " >&6; }
9144if test ${ac_cv_prog_RANLIB+y}
9145then :
9146  printf %s "(cached) " >&6
9147else $as_nop
9148  if test -n "$RANLIB"; then
9149  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9150else
9151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9152for as_dir in $PATH
9153do
9154  IFS=$as_save_IFS
9155  case $as_dir in #(((
9156    '') as_dir=./ ;;
9157    */) ;;
9158    *) as_dir=$as_dir/ ;;
9159  esac
9160    for ac_exec_ext in '' $ac_executable_extensions; do
9161  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9162    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9163    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9164    break 2
9165  fi
9166done
9167  done
9168IFS=$as_save_IFS
9169
9170fi
9171fi
9172RANLIB=$ac_cv_prog_RANLIB
9173if test -n "$RANLIB"; then
9174  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9175printf "%s\n" "$RANLIB" >&6; }
9176else
9177  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9178printf "%s\n" "no" >&6; }
9179fi
9180
9181
9182fi
9183if test -z "$ac_cv_prog_RANLIB"; then
9184  ac_ct_RANLIB=$RANLIB
9185  # Extract the first word of "ranlib", so it can be a program name with args.
9186set dummy ranlib; ac_word=$2
9187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9188printf %s "checking for $ac_word... " >&6; }
9189if test ${ac_cv_prog_ac_ct_RANLIB+y}
9190then :
9191  printf %s "(cached) " >&6
9192else $as_nop
9193  if test -n "$ac_ct_RANLIB"; then
9194  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9195else
9196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9197for as_dir in $PATH
9198do
9199  IFS=$as_save_IFS
9200  case $as_dir in #(((
9201    '') as_dir=./ ;;
9202    */) ;;
9203    *) as_dir=$as_dir/ ;;
9204  esac
9205    for ac_exec_ext in '' $ac_executable_extensions; do
9206  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9207    ac_cv_prog_ac_ct_RANLIB="ranlib"
9208    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9209    break 2
9210  fi
9211done
9212  done
9213IFS=$as_save_IFS
9214
9215fi
9216fi
9217ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9218if test -n "$ac_ct_RANLIB"; then
9219  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9220printf "%s\n" "$ac_ct_RANLIB" >&6; }
9221else
9222  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9223printf "%s\n" "no" >&6; }
9224fi
9225
9226  if test "x$ac_ct_RANLIB" = x; then
9227    RANLIB=":"
9228  else
9229    case $cross_compiling:$ac_tool_warned in
9230yes:)
9231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9232printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9233ac_tool_warned=yes ;;
9234esac
9235    RANLIB=$ac_ct_RANLIB
9236  fi
9237else
9238  RANLIB="$ac_cv_prog_RANLIB"
9239fi
9240
9241test -z "$RANLIB" && RANLIB=:
9242
9243
9244
9245
9246
9247
9248# Determine commands to create old-style static archives.
9249old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9250old_postinstall_cmds='chmod 644 $oldlib'
9251old_postuninstall_cmds=
9252
9253if test -n "$RANLIB"; then
9254  case $host_os in
9255  bitrig* | openbsd*)
9256    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9257    ;;
9258  *)
9259    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9260    ;;
9261  esac
9262  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9263fi
9264
9265case $host_os in
9266  darwin*)
9267    lock_old_archive_extraction=yes ;;
9268  *)
9269    lock_old_archive_extraction=no ;;
9270esac
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310# If no C compiler was specified, use CC.
9311LTCC=${LTCC-"$CC"}
9312
9313# If no C compiler flags were specified, use CFLAGS.
9314LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9315
9316# Allow CC to be a program name with arguments.
9317compiler=$CC
9318
9319
9320# Check for command to grab the raw symbol name followed by C symbol from nm.
9321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9322printf %s "checking command to parse $NM output from $compiler object... " >&6; }
9323if test ${lt_cv_sys_global_symbol_pipe+y}
9324then :
9325  printf %s "(cached) " >&6
9326else $as_nop
9327
9328# These are sane defaults that work on at least a few old systems.
9329# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9330
9331# Character class describing NM global symbol codes.
9332symcode='[BCDEGRST]'
9333
9334# Regexp to match symbols that can be accessed directly from C.
9335sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9336
9337# Define system-specific variables.
9338case $host_os in
9339aix*)
9340  symcode='[BCDT]'
9341  ;;
9342cygwin* | mingw* | pw32* | cegcc*)
9343  symcode='[ABCDGISTW]'
9344  ;;
9345hpux*)
9346  if test ia64 = "$host_cpu"; then
9347    symcode='[ABCDEGRST]'
9348  fi
9349  ;;
9350irix* | nonstopux*)
9351  symcode='[BCDEGRST]'
9352  ;;
9353osf*)
9354  symcode='[BCDEGQRST]'
9355  ;;
9356solaris*)
9357  symcode='[BDRT]'
9358  ;;
9359sco3.2v5*)
9360  symcode='[DT]'
9361  ;;
9362sysv4.2uw2*)
9363  symcode='[DT]'
9364  ;;
9365sysv5* | sco5v6* | unixware* | OpenUNIX*)
9366  symcode='[ABDT]'
9367  ;;
9368sysv4)
9369  symcode='[DFNSTU]'
9370  ;;
9371esac
9372
9373# If we're using GNU nm, then use its standard symbol codes.
9374case `$NM -V 2>&1` in
9375*GNU* | *'with BFD'*)
9376  symcode='[ABCDGIRSTW]' ;;
9377esac
9378
9379if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9380  # Gets list of data symbols to import.
9381  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9382  # Adjust the below global symbol transforms to fixup imported variables.
9383  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9384  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9385  lt_c_name_lib_hook="\
9386  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9387  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9388else
9389  # Disable hooks by default.
9390  lt_cv_sys_global_symbol_to_import=
9391  lt_cdecl_hook=
9392  lt_c_name_hook=
9393  lt_c_name_lib_hook=
9394fi
9395
9396# Transform an extracted symbol line into a proper C declaration.
9397# Some systems (esp. on ia64) link data and code symbols differently,
9398# so use this general approach.
9399lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9400$lt_cdecl_hook\
9401" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9402" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9403
9404# Transform an extracted symbol line into symbol name and symbol address
9405lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9406$lt_c_name_hook\
9407" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9408" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9409
9410# Transform an extracted symbol line into symbol name with lib prefix and
9411# symbol address.
9412lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9413$lt_c_name_lib_hook\
9414" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9415" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9416" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9417
9418# Handle CRLF in mingw tool chain
9419opt_cr=
9420case $build_os in
9421mingw*)
9422  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9423  ;;
9424esac
9425
9426# Try without a prefix underscore, then with it.
9427for ac_symprfx in "" "_"; do
9428
9429  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9430  symxfrm="\\1 $ac_symprfx\\2 \\2"
9431
9432  # Write the raw and C identifiers.
9433  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9434    # Fake it for dumpbin and say T for any non-static function,
9435    # D for any global variable and I for any imported variable.
9436    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
9437    # which start with @ or ?.
9438    lt_cv_sys_global_symbol_pipe="$AWK '"\
9439"     {last_section=section; section=\$ 3};"\
9440"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9441"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9442"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9443"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9444"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9445"     \$ 0!~/External *\|/{next};"\
9446"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9447"     {if(hide[section]) next};"\
9448"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9449"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9450"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9451"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9452"     ' prfx=^$ac_symprfx"
9453  else
9454    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9455  fi
9456  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9457
9458  # Check to see that the pipe works correctly.
9459  pipe_works=no
9460
9461  rm -f conftest*
9462  cat > conftest.$ac_ext <<_LT_EOF
9463#ifdef __cplusplus
9464extern "C" {
9465#endif
9466char nm_test_var;
9467void nm_test_func(void);
9468void nm_test_func(void){}
9469#ifdef __cplusplus
9470}
9471#endif
9472int main(){nm_test_var='a';nm_test_func();return(0);}
9473_LT_EOF
9474
9475  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9476  (eval $ac_compile) 2>&5
9477  ac_status=$?
9478  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9479  test $ac_status = 0; }; then
9480    # Now try to grab the symbols.
9481    nlist=conftest.nm
9482    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9483  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9484  ac_status=$?
9485  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9486  test $ac_status = 0; } && test -s "$nlist"; then
9487      # Try sorting and uniquifying the output.
9488      if sort "$nlist" | uniq > "$nlist"T; then
9489	mv -f "$nlist"T "$nlist"
9490      else
9491	rm -f "$nlist"T
9492      fi
9493
9494      # Make sure that we snagged all the symbols we need.
9495      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9496	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9497	  cat <<_LT_EOF > conftest.$ac_ext
9498/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9499#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9500/* DATA imports from DLLs on WIN32 can't be const, because runtime
9501   relocations are performed -- see ld's documentation on pseudo-relocs.  */
9502# define LT_DLSYM_CONST
9503#elif defined __osf__
9504/* This system does not cope well with relocations in const data.  */
9505# define LT_DLSYM_CONST
9506#else
9507# define LT_DLSYM_CONST const
9508#endif
9509
9510#ifdef __cplusplus
9511extern "C" {
9512#endif
9513
9514_LT_EOF
9515	  # Now generate the symbol file.
9516	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9517
9518	  cat <<_LT_EOF >> conftest.$ac_ext
9519
9520/* The mapping between symbol names and symbols.  */
9521LT_DLSYM_CONST struct {
9522  const char *name;
9523  void       *address;
9524}
9525lt__PROGRAM__LTX_preloaded_symbols[] =
9526{
9527  { "@PROGRAM@", (void *) 0 },
9528_LT_EOF
9529	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9530	  cat <<\_LT_EOF >> conftest.$ac_ext
9531  {0, (void *) 0}
9532};
9533
9534/* This works around a problem in FreeBSD linker */
9535#ifdef FREEBSD_WORKAROUND
9536static const void *lt_preloaded_setup() {
9537  return lt__PROGRAM__LTX_preloaded_symbols;
9538}
9539#endif
9540
9541#ifdef __cplusplus
9542}
9543#endif
9544_LT_EOF
9545	  # Now try linking the two files.
9546	  mv conftest.$ac_objext conftstm.$ac_objext
9547	  lt_globsym_save_LIBS=$LIBS
9548	  lt_globsym_save_CFLAGS=$CFLAGS
9549	  LIBS=conftstm.$ac_objext
9550	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9551	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9552  (eval $ac_link) 2>&5
9553  ac_status=$?
9554  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9555  test $ac_status = 0; } && test -s conftest$ac_exeext; then
9556	    pipe_works=yes
9557	  fi
9558	  LIBS=$lt_globsym_save_LIBS
9559	  CFLAGS=$lt_globsym_save_CFLAGS
9560	else
9561	  echo "cannot find nm_test_func in $nlist" >&5
9562	fi
9563      else
9564	echo "cannot find nm_test_var in $nlist" >&5
9565      fi
9566    else
9567      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9568    fi
9569  else
9570    echo "$progname: failed program was:" >&5
9571    cat conftest.$ac_ext >&5
9572  fi
9573  rm -rf conftest* conftst*
9574
9575  # Do not use the global_symbol_pipe unless it works.
9576  if test yes = "$pipe_works"; then
9577    break
9578  else
9579    lt_cv_sys_global_symbol_pipe=
9580  fi
9581done
9582
9583fi
9584
9585if test -z "$lt_cv_sys_global_symbol_pipe"; then
9586  lt_cv_sys_global_symbol_to_cdecl=
9587fi
9588if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9589  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9590printf "%s\n" "failed" >&6; }
9591else
9592  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9593printf "%s\n" "ok" >&6; }
9594fi
9595
9596# Response file support.
9597if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9598  nm_file_list_spec='@'
9599elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9600  nm_file_list_spec='@'
9601fi
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9640printf %s "checking for sysroot... " >&6; }
9641
9642# Check whether --with-sysroot was given.
9643if test ${with_sysroot+y}
9644then :
9645  withval=$with_sysroot;
9646else $as_nop
9647  with_sysroot=no
9648fi
9649
9650
9651lt_sysroot=
9652case $with_sysroot in #(
9653 yes)
9654   if test yes = "$GCC"; then
9655     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9656   fi
9657   ;; #(
9658 /*)
9659   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9660   ;; #(
9661 no|'')
9662   ;; #(
9663 *)
9664   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9665printf "%s\n" "$with_sysroot" >&6; }
9666   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9667   ;;
9668esac
9669
9670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9671printf "%s\n" "${lt_sysroot:-no}" >&6; }
9672
9673
9674
9675
9676
9677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9678printf %s "checking for a working dd... " >&6; }
9679if test ${ac_cv_path_lt_DD+y}
9680then :
9681  printf %s "(cached) " >&6
9682else $as_nop
9683  printf 0123456789abcdef0123456789abcdef >conftest.i
9684cat conftest.i conftest.i >conftest2.i
9685: ${lt_DD:=$DD}
9686if test -z "$lt_DD"; then
9687  ac_path_lt_DD_found=false
9688  # Loop through the user's path and test for each of PROGNAME-LIST
9689  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9690for as_dir in $PATH
9691do
9692  IFS=$as_save_IFS
9693  case $as_dir in #(((
9694    '') as_dir=./ ;;
9695    */) ;;
9696    *) as_dir=$as_dir/ ;;
9697  esac
9698    for ac_prog in dd
9699   do
9700    for ac_exec_ext in '' $ac_executable_extensions; do
9701      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
9702      as_fn_executable_p "$ac_path_lt_DD" || continue
9703if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9704  cmp -s conftest.i conftest.out \
9705  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9706fi
9707      $ac_path_lt_DD_found && break 3
9708    done
9709  done
9710  done
9711IFS=$as_save_IFS
9712  if test -z "$ac_cv_path_lt_DD"; then
9713    :
9714  fi
9715else
9716  ac_cv_path_lt_DD=$lt_DD
9717fi
9718
9719rm -f conftest.i conftest2.i conftest.out
9720fi
9721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9722printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
9723
9724
9725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9726printf %s "checking how to truncate binary pipes... " >&6; }
9727if test ${lt_cv_truncate_bin+y}
9728then :
9729  printf %s "(cached) " >&6
9730else $as_nop
9731  printf 0123456789abcdef0123456789abcdef >conftest.i
9732cat conftest.i conftest.i >conftest2.i
9733lt_cv_truncate_bin=
9734if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9735  cmp -s conftest.i conftest.out \
9736  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9737fi
9738rm -f conftest.i conftest2.i conftest.out
9739test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9740fi
9741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9742printf "%s\n" "$lt_cv_truncate_bin" >&6; }
9743
9744
9745
9746
9747
9748
9749
9750# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9751func_cc_basename ()
9752{
9753    for cc_temp in $*""; do
9754      case $cc_temp in
9755        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9756        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9757        \-*) ;;
9758        *) break;;
9759      esac
9760    done
9761    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9762}
9763
9764# Check whether --enable-libtool-lock was given.
9765if test ${enable_libtool_lock+y}
9766then :
9767  enableval=$enable_libtool_lock;
9768fi
9769
9770test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9771
9772# Some flags need to be propagated to the compiler or linker for good
9773# libtool support.
9774case $host in
9775ia64-*-hpux*)
9776  # Find out what ABI is being produced by ac_compile, and set mode
9777  # options accordingly.
9778  echo 'int i;' > conftest.$ac_ext
9779  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9780  (eval $ac_compile) 2>&5
9781  ac_status=$?
9782  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9783  test $ac_status = 0; }; then
9784    case `/usr/bin/file conftest.$ac_objext` in
9785      *ELF-32*)
9786	HPUX_IA64_MODE=32
9787	;;
9788      *ELF-64*)
9789	HPUX_IA64_MODE=64
9790	;;
9791    esac
9792  fi
9793  rm -rf conftest*
9794  ;;
9795*-*-irix6*)
9796  # Find out what ABI is being produced by ac_compile, and set linker
9797  # options accordingly.
9798  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9799  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9800  (eval $ac_compile) 2>&5
9801  ac_status=$?
9802  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9803  test $ac_status = 0; }; then
9804    if test yes = "$lt_cv_prog_gnu_ld"; then
9805      case `/usr/bin/file conftest.$ac_objext` in
9806	*32-bit*)
9807	  LD="${LD-ld} -melf32bsmip"
9808	  ;;
9809	*N32*)
9810	  LD="${LD-ld} -melf32bmipn32"
9811	  ;;
9812	*64-bit*)
9813	  LD="${LD-ld} -melf64bmip"
9814	;;
9815      esac
9816    else
9817      case `/usr/bin/file conftest.$ac_objext` in
9818	*32-bit*)
9819	  LD="${LD-ld} -32"
9820	  ;;
9821	*N32*)
9822	  LD="${LD-ld} -n32"
9823	  ;;
9824	*64-bit*)
9825	  LD="${LD-ld} -64"
9826	  ;;
9827      esac
9828    fi
9829  fi
9830  rm -rf conftest*
9831  ;;
9832
9833mips64*-*linux*)
9834  # Find out what ABI is being produced by ac_compile, and set linker
9835  # options accordingly.
9836  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9837  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9838  (eval $ac_compile) 2>&5
9839  ac_status=$?
9840  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9841  test $ac_status = 0; }; then
9842    emul=elf
9843    case `/usr/bin/file conftest.$ac_objext` in
9844      *32-bit*)
9845	emul="${emul}32"
9846	;;
9847      *64-bit*)
9848	emul="${emul}64"
9849	;;
9850    esac
9851    case `/usr/bin/file conftest.$ac_objext` in
9852      *MSB*)
9853	emul="${emul}btsmip"
9854	;;
9855      *LSB*)
9856	emul="${emul}ltsmip"
9857	;;
9858    esac
9859    case `/usr/bin/file conftest.$ac_objext` in
9860      *N32*)
9861	emul="${emul}n32"
9862	;;
9863    esac
9864    LD="${LD-ld} -m $emul"
9865  fi
9866  rm -rf conftest*
9867  ;;
9868
9869x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9870s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9871  # Find out what ABI is being produced by ac_compile, and set linker
9872  # options accordingly.  Note that the listed cases only cover the
9873  # situations where additional linker options are needed (such as when
9874  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9875  # vice versa); the common cases where no linker options are needed do
9876  # not appear in the list.
9877  echo 'int i;' > conftest.$ac_ext
9878  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9879  (eval $ac_compile) 2>&5
9880  ac_status=$?
9881  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9882  test $ac_status = 0; }; then
9883    case `/usr/bin/file conftest.o` in
9884      *32-bit*)
9885	case $host in
9886	  x86_64-*kfreebsd*-gnu)
9887	    LD="${LD-ld} -m elf_i386_fbsd"
9888	    ;;
9889	  x86_64-*linux*)
9890	    case `/usr/bin/file conftest.o` in
9891	      *x86-64*)
9892		LD="${LD-ld} -m elf32_x86_64"
9893		;;
9894	      *)
9895		LD="${LD-ld} -m elf_i386"
9896		;;
9897	    esac
9898	    ;;
9899	  powerpc64le-*linux*)
9900	    LD="${LD-ld} -m elf32lppclinux"
9901	    ;;
9902	  powerpc64-*linux*)
9903	    LD="${LD-ld} -m elf32ppclinux"
9904	    ;;
9905	  s390x-*linux*)
9906	    LD="${LD-ld} -m elf_s390"
9907	    ;;
9908	  sparc64-*linux*)
9909	    LD="${LD-ld} -m elf32_sparc"
9910	    ;;
9911	esac
9912	;;
9913      *64-bit*)
9914	case $host in
9915	  x86_64-*kfreebsd*-gnu)
9916	    LD="${LD-ld} -m elf_x86_64_fbsd"
9917	    ;;
9918	  x86_64-*linux*)
9919	    LD="${LD-ld} -m elf_x86_64"
9920	    ;;
9921	  powerpcle-*linux*)
9922	    LD="${LD-ld} -m elf64lppc"
9923	    ;;
9924	  powerpc-*linux*)
9925	    LD="${LD-ld} -m elf64ppc"
9926	    ;;
9927	  s390*-*linux*|s390*-*tpf*)
9928	    LD="${LD-ld} -m elf64_s390"
9929	    ;;
9930	  sparc*-*linux*)
9931	    LD="${LD-ld} -m elf64_sparc"
9932	    ;;
9933	esac
9934	;;
9935    esac
9936  fi
9937  rm -rf conftest*
9938  ;;
9939
9940*-*-sco3.2v5*)
9941  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9942  SAVE_CFLAGS=$CFLAGS
9943  CFLAGS="$CFLAGS -belf"
9944  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9945printf %s "checking whether the C compiler needs -belf... " >&6; }
9946if test ${lt_cv_cc_needs_belf+y}
9947then :
9948  printf %s "(cached) " >&6
9949else $as_nop
9950  ac_ext=c
9951ac_cpp='$CPP $CPPFLAGS'
9952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9954ac_compiler_gnu=$ac_cv_c_compiler_gnu
9955
9956     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9957/* end confdefs.h.  */
9958
9959int
9960main (void)
9961{
9962
9963  ;
9964  return 0;
9965}
9966_ACEOF
9967if ac_fn_c_try_link "$LINENO"
9968then :
9969  lt_cv_cc_needs_belf=yes
9970else $as_nop
9971  lt_cv_cc_needs_belf=no
9972fi
9973rm -f core conftest.err conftest.$ac_objext conftest.beam \
9974    conftest$ac_exeext conftest.$ac_ext
9975     ac_ext=c
9976ac_cpp='$CPP $CPPFLAGS'
9977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9979ac_compiler_gnu=$ac_cv_c_compiler_gnu
9980
9981fi
9982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9983printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
9984  if test yes != "$lt_cv_cc_needs_belf"; then
9985    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9986    CFLAGS=$SAVE_CFLAGS
9987  fi
9988  ;;
9989*-*solaris*)
9990  # Find out what ABI is being produced by ac_compile, and set linker
9991  # options accordingly.
9992  echo 'int i;' > conftest.$ac_ext
9993  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9994  (eval $ac_compile) 2>&5
9995  ac_status=$?
9996  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9997  test $ac_status = 0; }; then
9998    case `/usr/bin/file conftest.o` in
9999    *64-bit*)
10000      case $lt_cv_prog_gnu_ld in
10001      yes*)
10002        case $host in
10003        i?86-*-solaris*|x86_64-*-solaris*)
10004          LD="${LD-ld} -m elf_x86_64"
10005          ;;
10006        sparc*-*-solaris*)
10007          LD="${LD-ld} -m elf64_sparc"
10008          ;;
10009        esac
10010        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
10011        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10012          LD=${LD-ld}_sol2
10013        fi
10014        ;;
10015      *)
10016	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10017	  LD="${LD-ld} -64"
10018	fi
10019	;;
10020      esac
10021      ;;
10022    esac
10023  fi
10024  rm -rf conftest*
10025  ;;
10026esac
10027
10028need_locks=$enable_libtool_lock
10029
10030if test -n "$ac_tool_prefix"; then
10031  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10032set dummy ${ac_tool_prefix}mt; ac_word=$2
10033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10034printf %s "checking for $ac_word... " >&6; }
10035if test ${ac_cv_prog_MANIFEST_TOOL+y}
10036then :
10037  printf %s "(cached) " >&6
10038else $as_nop
10039  if test -n "$MANIFEST_TOOL"; then
10040  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10041else
10042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10043for as_dir in $PATH
10044do
10045  IFS=$as_save_IFS
10046  case $as_dir in #(((
10047    '') as_dir=./ ;;
10048    */) ;;
10049    *) as_dir=$as_dir/ ;;
10050  esac
10051    for ac_exec_ext in '' $ac_executable_extensions; do
10052  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10053    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10054    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10055    break 2
10056  fi
10057done
10058  done
10059IFS=$as_save_IFS
10060
10061fi
10062fi
10063MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10064if test -n "$MANIFEST_TOOL"; then
10065  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10066printf "%s\n" "$MANIFEST_TOOL" >&6; }
10067else
10068  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10069printf "%s\n" "no" >&6; }
10070fi
10071
10072
10073fi
10074if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10075  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10076  # Extract the first word of "mt", so it can be a program name with args.
10077set dummy mt; ac_word=$2
10078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10079printf %s "checking for $ac_word... " >&6; }
10080if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
10081then :
10082  printf %s "(cached) " >&6
10083else $as_nop
10084  if test -n "$ac_ct_MANIFEST_TOOL"; then
10085  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10086else
10087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10088for as_dir in $PATH
10089do
10090  IFS=$as_save_IFS
10091  case $as_dir in #(((
10092    '') as_dir=./ ;;
10093    */) ;;
10094    *) as_dir=$as_dir/ ;;
10095  esac
10096    for ac_exec_ext in '' $ac_executable_extensions; do
10097  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10098    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10099    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10100    break 2
10101  fi
10102done
10103  done
10104IFS=$as_save_IFS
10105
10106fi
10107fi
10108ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10109if test -n "$ac_ct_MANIFEST_TOOL"; then
10110  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10111printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
10112else
10113  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10114printf "%s\n" "no" >&6; }
10115fi
10116
10117  if test "x$ac_ct_MANIFEST_TOOL" = x; then
10118    MANIFEST_TOOL=":"
10119  else
10120    case $cross_compiling:$ac_tool_warned in
10121yes:)
10122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10123printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10124ac_tool_warned=yes ;;
10125esac
10126    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10127  fi
10128else
10129  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10130fi
10131
10132test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10134printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10135if test ${lt_cv_path_mainfest_tool+y}
10136then :
10137  printf %s "(cached) " >&6
10138else $as_nop
10139  lt_cv_path_mainfest_tool=no
10140  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10141  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10142  cat conftest.err >&5
10143  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10144    lt_cv_path_mainfest_tool=yes
10145  fi
10146  rm -f conftest*
10147fi
10148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10149printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
10150if test yes != "$lt_cv_path_mainfest_tool"; then
10151  MANIFEST_TOOL=:
10152fi
10153
10154
10155
10156
10157
10158
10159  case $host_os in
10160    rhapsody* | darwin*)
10161    if test -n "$ac_tool_prefix"; then
10162  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10163set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10165printf %s "checking for $ac_word... " >&6; }
10166if test ${ac_cv_prog_DSYMUTIL+y}
10167then :
10168  printf %s "(cached) " >&6
10169else $as_nop
10170  if test -n "$DSYMUTIL"; then
10171  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10172else
10173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10174for as_dir in $PATH
10175do
10176  IFS=$as_save_IFS
10177  case $as_dir in #(((
10178    '') as_dir=./ ;;
10179    */) ;;
10180    *) as_dir=$as_dir/ ;;
10181  esac
10182    for ac_exec_ext in '' $ac_executable_extensions; do
10183  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10184    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10185    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10186    break 2
10187  fi
10188done
10189  done
10190IFS=$as_save_IFS
10191
10192fi
10193fi
10194DSYMUTIL=$ac_cv_prog_DSYMUTIL
10195if test -n "$DSYMUTIL"; then
10196  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10197printf "%s\n" "$DSYMUTIL" >&6; }
10198else
10199  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10200printf "%s\n" "no" >&6; }
10201fi
10202
10203
10204fi
10205if test -z "$ac_cv_prog_DSYMUTIL"; then
10206  ac_ct_DSYMUTIL=$DSYMUTIL
10207  # Extract the first word of "dsymutil", so it can be a program name with args.
10208set dummy dsymutil; ac_word=$2
10209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10210printf %s "checking for $ac_word... " >&6; }
10211if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
10212then :
10213  printf %s "(cached) " >&6
10214else $as_nop
10215  if test -n "$ac_ct_DSYMUTIL"; then
10216  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10217else
10218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10219for as_dir in $PATH
10220do
10221  IFS=$as_save_IFS
10222  case $as_dir in #(((
10223    '') as_dir=./ ;;
10224    */) ;;
10225    *) as_dir=$as_dir/ ;;
10226  esac
10227    for ac_exec_ext in '' $ac_executable_extensions; do
10228  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10229    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10230    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10231    break 2
10232  fi
10233done
10234  done
10235IFS=$as_save_IFS
10236
10237fi
10238fi
10239ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10240if test -n "$ac_ct_DSYMUTIL"; then
10241  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10242printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
10243else
10244  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10245printf "%s\n" "no" >&6; }
10246fi
10247
10248  if test "x$ac_ct_DSYMUTIL" = x; then
10249    DSYMUTIL=":"
10250  else
10251    case $cross_compiling:$ac_tool_warned in
10252yes:)
10253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10254printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10255ac_tool_warned=yes ;;
10256esac
10257    DSYMUTIL=$ac_ct_DSYMUTIL
10258  fi
10259else
10260  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10261fi
10262
10263    if test -n "$ac_tool_prefix"; then
10264  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10265set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10267printf %s "checking for $ac_word... " >&6; }
10268if test ${ac_cv_prog_NMEDIT+y}
10269then :
10270  printf %s "(cached) " >&6
10271else $as_nop
10272  if test -n "$NMEDIT"; then
10273  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10274else
10275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10276for as_dir in $PATH
10277do
10278  IFS=$as_save_IFS
10279  case $as_dir in #(((
10280    '') as_dir=./ ;;
10281    */) ;;
10282    *) as_dir=$as_dir/ ;;
10283  esac
10284    for ac_exec_ext in '' $ac_executable_extensions; do
10285  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10286    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10287    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10288    break 2
10289  fi
10290done
10291  done
10292IFS=$as_save_IFS
10293
10294fi
10295fi
10296NMEDIT=$ac_cv_prog_NMEDIT
10297if test -n "$NMEDIT"; then
10298  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10299printf "%s\n" "$NMEDIT" >&6; }
10300else
10301  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10302printf "%s\n" "no" >&6; }
10303fi
10304
10305
10306fi
10307if test -z "$ac_cv_prog_NMEDIT"; then
10308  ac_ct_NMEDIT=$NMEDIT
10309  # Extract the first word of "nmedit", so it can be a program name with args.
10310set dummy nmedit; ac_word=$2
10311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10312printf %s "checking for $ac_word... " >&6; }
10313if test ${ac_cv_prog_ac_ct_NMEDIT+y}
10314then :
10315  printf %s "(cached) " >&6
10316else $as_nop
10317  if test -n "$ac_ct_NMEDIT"; then
10318  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10319else
10320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10321for as_dir in $PATH
10322do
10323  IFS=$as_save_IFS
10324  case $as_dir in #(((
10325    '') as_dir=./ ;;
10326    */) ;;
10327    *) as_dir=$as_dir/ ;;
10328  esac
10329    for ac_exec_ext in '' $ac_executable_extensions; do
10330  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10331    ac_cv_prog_ac_ct_NMEDIT="nmedit"
10332    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10333    break 2
10334  fi
10335done
10336  done
10337IFS=$as_save_IFS
10338
10339fi
10340fi
10341ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10342if test -n "$ac_ct_NMEDIT"; then
10343  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10344printf "%s\n" "$ac_ct_NMEDIT" >&6; }
10345else
10346  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10347printf "%s\n" "no" >&6; }
10348fi
10349
10350  if test "x$ac_ct_NMEDIT" = x; then
10351    NMEDIT=":"
10352  else
10353    case $cross_compiling:$ac_tool_warned in
10354yes:)
10355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10356printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10357ac_tool_warned=yes ;;
10358esac
10359    NMEDIT=$ac_ct_NMEDIT
10360  fi
10361else
10362  NMEDIT="$ac_cv_prog_NMEDIT"
10363fi
10364
10365    if test -n "$ac_tool_prefix"; then
10366  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10367set dummy ${ac_tool_prefix}lipo; ac_word=$2
10368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10369printf %s "checking for $ac_word... " >&6; }
10370if test ${ac_cv_prog_LIPO+y}
10371then :
10372  printf %s "(cached) " >&6
10373else $as_nop
10374  if test -n "$LIPO"; then
10375  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10376else
10377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10378for as_dir in $PATH
10379do
10380  IFS=$as_save_IFS
10381  case $as_dir in #(((
10382    '') as_dir=./ ;;
10383    */) ;;
10384    *) as_dir=$as_dir/ ;;
10385  esac
10386    for ac_exec_ext in '' $ac_executable_extensions; do
10387  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10388    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10389    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10390    break 2
10391  fi
10392done
10393  done
10394IFS=$as_save_IFS
10395
10396fi
10397fi
10398LIPO=$ac_cv_prog_LIPO
10399if test -n "$LIPO"; then
10400  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10401printf "%s\n" "$LIPO" >&6; }
10402else
10403  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10404printf "%s\n" "no" >&6; }
10405fi
10406
10407
10408fi
10409if test -z "$ac_cv_prog_LIPO"; then
10410  ac_ct_LIPO=$LIPO
10411  # Extract the first word of "lipo", so it can be a program name with args.
10412set dummy lipo; ac_word=$2
10413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10414printf %s "checking for $ac_word... " >&6; }
10415if test ${ac_cv_prog_ac_ct_LIPO+y}
10416then :
10417  printf %s "(cached) " >&6
10418else $as_nop
10419  if test -n "$ac_ct_LIPO"; then
10420  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10421else
10422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10423for as_dir in $PATH
10424do
10425  IFS=$as_save_IFS
10426  case $as_dir in #(((
10427    '') as_dir=./ ;;
10428    */) ;;
10429    *) as_dir=$as_dir/ ;;
10430  esac
10431    for ac_exec_ext in '' $ac_executable_extensions; do
10432  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10433    ac_cv_prog_ac_ct_LIPO="lipo"
10434    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10435    break 2
10436  fi
10437done
10438  done
10439IFS=$as_save_IFS
10440
10441fi
10442fi
10443ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10444if test -n "$ac_ct_LIPO"; then
10445  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10446printf "%s\n" "$ac_ct_LIPO" >&6; }
10447else
10448  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10449printf "%s\n" "no" >&6; }
10450fi
10451
10452  if test "x$ac_ct_LIPO" = x; then
10453    LIPO=":"
10454  else
10455    case $cross_compiling:$ac_tool_warned in
10456yes:)
10457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10458printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10459ac_tool_warned=yes ;;
10460esac
10461    LIPO=$ac_ct_LIPO
10462  fi
10463else
10464  LIPO="$ac_cv_prog_LIPO"
10465fi
10466
10467    if test -n "$ac_tool_prefix"; then
10468  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10469set dummy ${ac_tool_prefix}otool; ac_word=$2
10470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10471printf %s "checking for $ac_word... " >&6; }
10472if test ${ac_cv_prog_OTOOL+y}
10473then :
10474  printf %s "(cached) " >&6
10475else $as_nop
10476  if test -n "$OTOOL"; then
10477  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10478else
10479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10480for as_dir in $PATH
10481do
10482  IFS=$as_save_IFS
10483  case $as_dir in #(((
10484    '') as_dir=./ ;;
10485    */) ;;
10486    *) as_dir=$as_dir/ ;;
10487  esac
10488    for ac_exec_ext in '' $ac_executable_extensions; do
10489  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10490    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10491    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10492    break 2
10493  fi
10494done
10495  done
10496IFS=$as_save_IFS
10497
10498fi
10499fi
10500OTOOL=$ac_cv_prog_OTOOL
10501if test -n "$OTOOL"; then
10502  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10503printf "%s\n" "$OTOOL" >&6; }
10504else
10505  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10506printf "%s\n" "no" >&6; }
10507fi
10508
10509
10510fi
10511if test -z "$ac_cv_prog_OTOOL"; then
10512  ac_ct_OTOOL=$OTOOL
10513  # Extract the first word of "otool", so it can be a program name with args.
10514set dummy otool; ac_word=$2
10515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10516printf %s "checking for $ac_word... " >&6; }
10517if test ${ac_cv_prog_ac_ct_OTOOL+y}
10518then :
10519  printf %s "(cached) " >&6
10520else $as_nop
10521  if test -n "$ac_ct_OTOOL"; then
10522  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10523else
10524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10525for as_dir in $PATH
10526do
10527  IFS=$as_save_IFS
10528  case $as_dir in #(((
10529    '') as_dir=./ ;;
10530    */) ;;
10531    *) as_dir=$as_dir/ ;;
10532  esac
10533    for ac_exec_ext in '' $ac_executable_extensions; do
10534  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10535    ac_cv_prog_ac_ct_OTOOL="otool"
10536    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10537    break 2
10538  fi
10539done
10540  done
10541IFS=$as_save_IFS
10542
10543fi
10544fi
10545ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10546if test -n "$ac_ct_OTOOL"; then
10547  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10548printf "%s\n" "$ac_ct_OTOOL" >&6; }
10549else
10550  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10551printf "%s\n" "no" >&6; }
10552fi
10553
10554  if test "x$ac_ct_OTOOL" = x; then
10555    OTOOL=":"
10556  else
10557    case $cross_compiling:$ac_tool_warned in
10558yes:)
10559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10560printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10561ac_tool_warned=yes ;;
10562esac
10563    OTOOL=$ac_ct_OTOOL
10564  fi
10565else
10566  OTOOL="$ac_cv_prog_OTOOL"
10567fi
10568
10569    if test -n "$ac_tool_prefix"; then
10570  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10571set dummy ${ac_tool_prefix}otool64; ac_word=$2
10572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10573printf %s "checking for $ac_word... " >&6; }
10574if test ${ac_cv_prog_OTOOL64+y}
10575then :
10576  printf %s "(cached) " >&6
10577else $as_nop
10578  if test -n "$OTOOL64"; then
10579  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10580else
10581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10582for as_dir in $PATH
10583do
10584  IFS=$as_save_IFS
10585  case $as_dir in #(((
10586    '') as_dir=./ ;;
10587    */) ;;
10588    *) as_dir=$as_dir/ ;;
10589  esac
10590    for ac_exec_ext in '' $ac_executable_extensions; do
10591  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10592    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10593    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10594    break 2
10595  fi
10596done
10597  done
10598IFS=$as_save_IFS
10599
10600fi
10601fi
10602OTOOL64=$ac_cv_prog_OTOOL64
10603if test -n "$OTOOL64"; then
10604  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10605printf "%s\n" "$OTOOL64" >&6; }
10606else
10607  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10608printf "%s\n" "no" >&6; }
10609fi
10610
10611
10612fi
10613if test -z "$ac_cv_prog_OTOOL64"; then
10614  ac_ct_OTOOL64=$OTOOL64
10615  # Extract the first word of "otool64", so it can be a program name with args.
10616set dummy otool64; ac_word=$2
10617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10618printf %s "checking for $ac_word... " >&6; }
10619if test ${ac_cv_prog_ac_ct_OTOOL64+y}
10620then :
10621  printf %s "(cached) " >&6
10622else $as_nop
10623  if test -n "$ac_ct_OTOOL64"; then
10624  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10625else
10626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10627for as_dir in $PATH
10628do
10629  IFS=$as_save_IFS
10630  case $as_dir in #(((
10631    '') as_dir=./ ;;
10632    */) ;;
10633    *) as_dir=$as_dir/ ;;
10634  esac
10635    for ac_exec_ext in '' $ac_executable_extensions; do
10636  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10637    ac_cv_prog_ac_ct_OTOOL64="otool64"
10638    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10639    break 2
10640  fi
10641done
10642  done
10643IFS=$as_save_IFS
10644
10645fi
10646fi
10647ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10648if test -n "$ac_ct_OTOOL64"; then
10649  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10650printf "%s\n" "$ac_ct_OTOOL64" >&6; }
10651else
10652  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10653printf "%s\n" "no" >&6; }
10654fi
10655
10656  if test "x$ac_ct_OTOOL64" = x; then
10657    OTOOL64=":"
10658  else
10659    case $cross_compiling:$ac_tool_warned in
10660yes:)
10661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10662printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10663ac_tool_warned=yes ;;
10664esac
10665    OTOOL64=$ac_ct_OTOOL64
10666  fi
10667else
10668  OTOOL64="$ac_cv_prog_OTOOL64"
10669fi
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10698printf %s "checking for -single_module linker flag... " >&6; }
10699if test ${lt_cv_apple_cc_single_mod+y}
10700then :
10701  printf %s "(cached) " >&6
10702else $as_nop
10703  lt_cv_apple_cc_single_mod=no
10704      if test -z "$LT_MULTI_MODULE"; then
10705	# By default we will add the -single_module flag. You can override
10706	# by either setting the environment variable LT_MULTI_MODULE
10707	# non-empty at configure time, or by adding -multi_module to the
10708	# link flags.
10709	rm -rf libconftest.dylib*
10710	echo "int foo(void){return 1;}" > conftest.c
10711	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10712-dynamiclib -Wl,-single_module conftest.c" >&5
10713	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10714	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10715        _lt_result=$?
10716	# If there is a non-empty error log, and "single_module"
10717	# appears in it, assume the flag caused a linker warning
10718        if test -s conftest.err && $GREP single_module conftest.err; then
10719	  cat conftest.err >&5
10720	# Otherwise, if the output was created with a 0 exit code from
10721	# the compiler, it worked.
10722	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10723	  lt_cv_apple_cc_single_mod=yes
10724	else
10725	  cat conftest.err >&5
10726	fi
10727	rm -rf libconftest.dylib*
10728	rm -f conftest.*
10729      fi
10730fi
10731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10732printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
10733
10734    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10735printf %s "checking for -exported_symbols_list linker flag... " >&6; }
10736if test ${lt_cv_ld_exported_symbols_list+y}
10737then :
10738  printf %s "(cached) " >&6
10739else $as_nop
10740  lt_cv_ld_exported_symbols_list=no
10741      save_LDFLAGS=$LDFLAGS
10742      echo "_main" > conftest.sym
10743      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10744      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745/* end confdefs.h.  */
10746
10747int
10748main (void)
10749{
10750
10751  ;
10752  return 0;
10753}
10754_ACEOF
10755if ac_fn_c_try_link "$LINENO"
10756then :
10757  lt_cv_ld_exported_symbols_list=yes
10758else $as_nop
10759  lt_cv_ld_exported_symbols_list=no
10760fi
10761rm -f core conftest.err conftest.$ac_objext conftest.beam \
10762    conftest$ac_exeext conftest.$ac_ext
10763	LDFLAGS=$save_LDFLAGS
10764
10765fi
10766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10767printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
10768
10769    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10770printf %s "checking for -force_load linker flag... " >&6; }
10771if test ${lt_cv_ld_force_load+y}
10772then :
10773  printf %s "(cached) " >&6
10774else $as_nop
10775  lt_cv_ld_force_load=no
10776      cat > conftest.c << _LT_EOF
10777int forced_loaded() { return 2;}
10778_LT_EOF
10779      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10780      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10781      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
10782      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
10783      echo "$RANLIB libconftest.a" >&5
10784      $RANLIB libconftest.a 2>&5
10785      cat > conftest.c << _LT_EOF
10786int main() { return 0;}
10787_LT_EOF
10788      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10789      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10790      _lt_result=$?
10791      if test -s conftest.err && $GREP force_load conftest.err; then
10792	cat conftest.err >&5
10793      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10794	lt_cv_ld_force_load=yes
10795      else
10796	cat conftest.err >&5
10797      fi
10798        rm -f conftest.err libconftest.a conftest conftest.c
10799        rm -rf conftest.dSYM
10800
10801fi
10802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10803printf "%s\n" "$lt_cv_ld_force_load" >&6; }
10804    case $host_os in
10805    rhapsody* | darwin1.[012])
10806      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10807    darwin1.*)
10808      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10809    darwin*) # darwin 5.x on
10810      # if running on 10.5 or later, the deployment target defaults
10811      # to the OS version, if on x86, and 10.4, the deployment
10812      # target defaults to 10.4. Don't you love it?
10813      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10814	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10815	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10816	10.[012][,.]*)
10817	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10818	10.*)
10819	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10820      esac
10821    ;;
10822  esac
10823    if test yes = "$lt_cv_apple_cc_single_mod"; then
10824      _lt_dar_single_mod='$single_module'
10825    fi
10826    if test yes = "$lt_cv_ld_exported_symbols_list"; then
10827      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10828    else
10829      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10830    fi
10831    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10832      _lt_dsymutil='~$DSYMUTIL $lib || :'
10833    else
10834      _lt_dsymutil=
10835    fi
10836    ;;
10837  esac
10838
10839# func_munge_path_list VARIABLE PATH
10840# -----------------------------------
10841# VARIABLE is name of variable containing _space_ separated list of
10842# directories to be munged by the contents of PATH, which is string
10843# having a format:
10844# "DIR[:DIR]:"
10845#       string "DIR[ DIR]" will be prepended to VARIABLE
10846# ":DIR[:DIR]"
10847#       string "DIR[ DIR]" will be appended to VARIABLE
10848# "DIRP[:DIRP]::[DIRA:]DIRA"
10849#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10850#       "DIRA[ DIRA]" will be appended to VARIABLE
10851# "DIR[:DIR]"
10852#       VARIABLE will be replaced by "DIR[ DIR]"
10853func_munge_path_list ()
10854{
10855    case x$2 in
10856    x)
10857        ;;
10858    *:)
10859        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10860        ;;
10861    x:*)
10862        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10863        ;;
10864    *::*)
10865        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10866        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10867        ;;
10868    *)
10869        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10870        ;;
10871    esac
10872}
10873
10874ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10875"
10876if test "x$ac_cv_header_dlfcn_h" = xyes
10877then :
10878  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
10879
10880fi
10881
10882
10883
10884func_stripname_cnf ()
10885{
10886  case $2 in
10887  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10888  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
10889  esac
10890} # func_stripname_cnf
10891
10892
10893
10894
10895
10896# Set options
10897
10898
10899
10900        enable_dlopen=no
10901
10902
10903
10904            # Check whether --enable-shared was given.
10905if test ${enable_shared+y}
10906then :
10907  enableval=$enable_shared; p=${PACKAGE-default}
10908    case $enableval in
10909    yes) enable_shared=yes ;;
10910    no) enable_shared=no ;;
10911    *)
10912      enable_shared=no
10913      # Look at the argument we got.  We use all the common list separators.
10914      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10915      for pkg in $enableval; do
10916	IFS=$lt_save_ifs
10917	if test "X$pkg" = "X$p"; then
10918	  enable_shared=yes
10919	fi
10920      done
10921      IFS=$lt_save_ifs
10922      ;;
10923    esac
10924else $as_nop
10925  enable_shared=yes
10926fi
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936  # Check whether --enable-static was given.
10937if test ${enable_static+y}
10938then :
10939  enableval=$enable_static; p=${PACKAGE-default}
10940    case $enableval in
10941    yes) enable_static=yes ;;
10942    no) enable_static=no ;;
10943    *)
10944     enable_static=no
10945      # Look at the argument we got.  We use all the common list separators.
10946      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10947      for pkg in $enableval; do
10948	IFS=$lt_save_ifs
10949	if test "X$pkg" = "X$p"; then
10950	  enable_static=yes
10951	fi
10952      done
10953      IFS=$lt_save_ifs
10954      ;;
10955    esac
10956else $as_nop
10957  enable_static=yes
10958fi
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969# Check whether --with-pic was given.
10970if test ${with_pic+y}
10971then :
10972  withval=$with_pic; lt_p=${PACKAGE-default}
10973    case $withval in
10974    yes|no) pic_mode=$withval ;;
10975    *)
10976      pic_mode=default
10977      # Look at the argument we got.  We use all the common list separators.
10978      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10979      for lt_pkg in $withval; do
10980	IFS=$lt_save_ifs
10981	if test "X$lt_pkg" = "X$lt_p"; then
10982	  pic_mode=yes
10983	fi
10984      done
10985      IFS=$lt_save_ifs
10986      ;;
10987    esac
10988else $as_nop
10989  pic_mode=default
10990fi
10991
10992
10993
10994
10995
10996
10997
10998
10999  # Check whether --enable-fast-install was given.
11000if test ${enable_fast_install+y}
11001then :
11002  enableval=$enable_fast_install; p=${PACKAGE-default}
11003    case $enableval in
11004    yes) enable_fast_install=yes ;;
11005    no) enable_fast_install=no ;;
11006    *)
11007      enable_fast_install=no
11008      # Look at the argument we got.  We use all the common list separators.
11009      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11010      for pkg in $enableval; do
11011	IFS=$lt_save_ifs
11012	if test "X$pkg" = "X$p"; then
11013	  enable_fast_install=yes
11014	fi
11015      done
11016      IFS=$lt_save_ifs
11017      ;;
11018    esac
11019else $as_nop
11020  enable_fast_install=yes
11021fi
11022
11023
11024
11025
11026
11027
11028
11029
11030  shared_archive_member_spec=
11031case $host,$enable_shared in
11032power*-*-aix[5-9]*,yes)
11033  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11034printf %s "checking which variant of shared library versioning to provide... " >&6; }
11035
11036# Check whether --with-aix-soname was given.
11037if test ${with_aix_soname+y}
11038then :
11039  withval=$with_aix_soname; case $withval in
11040    aix|svr4|both)
11041      ;;
11042    *)
11043      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11044      ;;
11045    esac
11046    lt_cv_with_aix_soname=$with_aix_soname
11047else $as_nop
11048  if test ${lt_cv_with_aix_soname+y}
11049then :
11050  printf %s "(cached) " >&6
11051else $as_nop
11052  lt_cv_with_aix_soname=aix
11053fi
11054
11055    with_aix_soname=$lt_cv_with_aix_soname
11056fi
11057
11058  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11059printf "%s\n" "$with_aix_soname" >&6; }
11060  if test aix != "$with_aix_soname"; then
11061    # For the AIX way of multilib, we name the shared archive member
11062    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11063    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11064    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11065    # the AIX toolchain works better with OBJECT_MODE set (default 32).
11066    if test 64 = "${OBJECT_MODE-32}"; then
11067      shared_archive_member_spec=shr_64
11068    else
11069      shared_archive_member_spec=shr
11070    fi
11071  fi
11072  ;;
11073*)
11074  with_aix_soname=aix
11075  ;;
11076esac
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087# This can be used to rebuild libtool when needed
11088LIBTOOL_DEPS=$ltmain
11089
11090# Always use our own libtool.
11091LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122test -z "$LN_S" && LN_S="ln -s"
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137if test -n "${ZSH_VERSION+set}"; then
11138   setopt NO_GLOB_SUBST
11139fi
11140
11141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11142printf %s "checking for objdir... " >&6; }
11143if test ${lt_cv_objdir+y}
11144then :
11145  printf %s "(cached) " >&6
11146else $as_nop
11147  rm -f .libs 2>/dev/null
11148mkdir .libs 2>/dev/null
11149if test -d .libs; then
11150  lt_cv_objdir=.libs
11151else
11152  # MS-DOS does not allow filenames that begin with a dot.
11153  lt_cv_objdir=_libs
11154fi
11155rmdir .libs 2>/dev/null
11156fi
11157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11158printf "%s\n" "$lt_cv_objdir" >&6; }
11159objdir=$lt_cv_objdir
11160
11161
11162
11163
11164
11165printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
11166
11167
11168
11169
11170case $host_os in
11171aix3*)
11172  # AIX sometimes has problems with the GCC collect2 program.  For some
11173  # reason, if we set the COLLECT_NAMES environment variable, the problems
11174  # vanish in a puff of smoke.
11175  if test set != "${COLLECT_NAMES+set}"; then
11176    COLLECT_NAMES=
11177    export COLLECT_NAMES
11178  fi
11179  ;;
11180esac
11181
11182# Global variables:
11183ofile=libtool
11184can_build_shared=yes
11185
11186# All known linkers require a '.a' archive for static linking (except MSVC and
11187# ICC, which need '.lib').
11188libext=a
11189
11190with_gnu_ld=$lt_cv_prog_gnu_ld
11191
11192old_CC=$CC
11193old_CFLAGS=$CFLAGS
11194
11195# Set sane defaults for various variables
11196test -z "$CC" && CC=cc
11197test -z "$LTCC" && LTCC=$CC
11198test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11199test -z "$LD" && LD=ld
11200test -z "$ac_objext" && ac_objext=o
11201
11202func_cc_basename $compiler
11203cc_basename=$func_cc_basename_result
11204
11205
11206# Only perform the check for file, if the check method requires it
11207test -z "$MAGIC_CMD" && MAGIC_CMD=file
11208case $deplibs_check_method in
11209file_magic*)
11210  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11211    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11212printf %s "checking for ${ac_tool_prefix}file... " >&6; }
11213if test ${lt_cv_path_MAGIC_CMD+y}
11214then :
11215  printf %s "(cached) " >&6
11216else $as_nop
11217  case $MAGIC_CMD in
11218[\\/*] |  ?:[\\/]*)
11219  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11220  ;;
11221*)
11222  lt_save_MAGIC_CMD=$MAGIC_CMD
11223  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11224  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11225  for ac_dir in $ac_dummy; do
11226    IFS=$lt_save_ifs
11227    test -z "$ac_dir" && ac_dir=.
11228    if test -f "$ac_dir/${ac_tool_prefix}file"; then
11229      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11230      if test -n "$file_magic_test_file"; then
11231	case $deplibs_check_method in
11232	"file_magic "*)
11233	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11234	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11235	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11236	    $EGREP "$file_magic_regex" > /dev/null; then
11237	    :
11238	  else
11239	    cat <<_LT_EOF 1>&2
11240
11241*** Warning: the command libtool uses to detect shared libraries,
11242*** $file_magic_cmd, produces output that libtool cannot recognize.
11243*** The result is that libtool may fail to recognize shared libraries
11244*** as such.  This will affect the creation of libtool libraries that
11245*** depend on shared libraries, but programs linked with such libtool
11246*** libraries will work regardless of this problem.  Nevertheless, you
11247*** may want to report the problem to your system manager and/or to
11248*** bug-libtool@gnu.org
11249
11250_LT_EOF
11251	  fi ;;
11252	esac
11253      fi
11254      break
11255    fi
11256  done
11257  IFS=$lt_save_ifs
11258  MAGIC_CMD=$lt_save_MAGIC_CMD
11259  ;;
11260esac
11261fi
11262
11263MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11264if test -n "$MAGIC_CMD"; then
11265  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11266printf "%s\n" "$MAGIC_CMD" >&6; }
11267else
11268  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269printf "%s\n" "no" >&6; }
11270fi
11271
11272
11273
11274
11275
11276if test -z "$lt_cv_path_MAGIC_CMD"; then
11277  if test -n "$ac_tool_prefix"; then
11278    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11279printf %s "checking for file... " >&6; }
11280if test ${lt_cv_path_MAGIC_CMD+y}
11281then :
11282  printf %s "(cached) " >&6
11283else $as_nop
11284  case $MAGIC_CMD in
11285[\\/*] |  ?:[\\/]*)
11286  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11287  ;;
11288*)
11289  lt_save_MAGIC_CMD=$MAGIC_CMD
11290  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11291  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11292  for ac_dir in $ac_dummy; do
11293    IFS=$lt_save_ifs
11294    test -z "$ac_dir" && ac_dir=.
11295    if test -f "$ac_dir/file"; then
11296      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11297      if test -n "$file_magic_test_file"; then
11298	case $deplibs_check_method in
11299	"file_magic "*)
11300	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11301	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11302	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11303	    $EGREP "$file_magic_regex" > /dev/null; then
11304	    :
11305	  else
11306	    cat <<_LT_EOF 1>&2
11307
11308*** Warning: the command libtool uses to detect shared libraries,
11309*** $file_magic_cmd, produces output that libtool cannot recognize.
11310*** The result is that libtool may fail to recognize shared libraries
11311*** as such.  This will affect the creation of libtool libraries that
11312*** depend on shared libraries, but programs linked with such libtool
11313*** libraries will work regardless of this problem.  Nevertheless, you
11314*** may want to report the problem to your system manager and/or to
11315*** bug-libtool@gnu.org
11316
11317_LT_EOF
11318	  fi ;;
11319	esac
11320      fi
11321      break
11322    fi
11323  done
11324  IFS=$lt_save_ifs
11325  MAGIC_CMD=$lt_save_MAGIC_CMD
11326  ;;
11327esac
11328fi
11329
11330MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11331if test -n "$MAGIC_CMD"; then
11332  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11333printf "%s\n" "$MAGIC_CMD" >&6; }
11334else
11335  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11336printf "%s\n" "no" >&6; }
11337fi
11338
11339
11340  else
11341    MAGIC_CMD=:
11342  fi
11343fi
11344
11345  fi
11346  ;;
11347esac
11348
11349# Use C for the default configuration in the libtool script
11350
11351lt_save_CC=$CC
11352ac_ext=c
11353ac_cpp='$CPP $CPPFLAGS'
11354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11356ac_compiler_gnu=$ac_cv_c_compiler_gnu
11357
11358
11359# Source file extension for C test sources.
11360ac_ext=c
11361
11362# Object file extension for compiled C test sources.
11363objext=o
11364objext=$objext
11365
11366# Code to be used in simple compile tests
11367lt_simple_compile_test_code="int some_variable = 0;"
11368
11369# Code to be used in simple link tests
11370lt_simple_link_test_code='int main(){return(0);}'
11371
11372
11373
11374
11375
11376
11377
11378# If no C compiler was specified, use CC.
11379LTCC=${LTCC-"$CC"}
11380
11381# If no C compiler flags were specified, use CFLAGS.
11382LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11383
11384# Allow CC to be a program name with arguments.
11385compiler=$CC
11386
11387# Save the default compiler, since it gets overwritten when the other
11388# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11389compiler_DEFAULT=$CC
11390
11391# save warnings/boilerplate of simple test code
11392ac_outfile=conftest.$ac_objext
11393echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11394eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11395_lt_compiler_boilerplate=`cat conftest.err`
11396$RM conftest*
11397
11398ac_outfile=conftest.$ac_objext
11399echo "$lt_simple_link_test_code" >conftest.$ac_ext
11400eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11401_lt_linker_boilerplate=`cat conftest.err`
11402$RM -r conftest*
11403
11404
11405## CAVEAT EMPTOR:
11406## There is no encapsulation within the following macros, do not change
11407## the running order or otherwise move them around unless you know exactly
11408## what you are doing...
11409if test -n "$compiler"; then
11410
11411lt_prog_compiler_no_builtin_flag=
11412
11413if test yes = "$GCC"; then
11414  case $cc_basename in
11415  nvcc*)
11416    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11417  *)
11418    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11419  esac
11420
11421  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11422printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11423if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11424then :
11425  printf %s "(cached) " >&6
11426else $as_nop
11427  lt_cv_prog_compiler_rtti_exceptions=no
11428   ac_outfile=conftest.$ac_objext
11429   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11430   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11431   # Insert the option either (1) after the last *FLAGS variable, or
11432   # (2) before a word containing "conftest.", or (3) at the end.
11433   # Note that $ac_compile itself does not contain backslashes and begins
11434   # with a dollar sign (not a hyphen), so the echo should work correctly.
11435   # The option is referenced via a variable to avoid confusing sed.
11436   lt_compile=`echo "$ac_compile" | $SED \
11437   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11438   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11439   -e 's:$: $lt_compiler_flag:'`
11440   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11441   (eval "$lt_compile" 2>conftest.err)
11442   ac_status=$?
11443   cat conftest.err >&5
11444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445   if (exit $ac_status) && test -s "$ac_outfile"; then
11446     # The compiler can only warn and ignore the option if not recognized
11447     # So say no if there are warnings other than the usual output.
11448     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11449     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11450     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11451       lt_cv_prog_compiler_rtti_exceptions=yes
11452     fi
11453   fi
11454   $RM conftest*
11455
11456fi
11457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11458printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11459
11460if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11461    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11462else
11463    :
11464fi
11465
11466fi
11467
11468
11469
11470
11471
11472
11473  lt_prog_compiler_wl=
11474lt_prog_compiler_pic=
11475lt_prog_compiler_static=
11476
11477
11478  if test yes = "$GCC"; then
11479    lt_prog_compiler_wl='-Wl,'
11480    lt_prog_compiler_static='-static'
11481
11482    case $host_os in
11483      aix*)
11484      # All AIX code is PIC.
11485      if test ia64 = "$host_cpu"; then
11486	# AIX 5 now supports IA64 processor
11487	lt_prog_compiler_static='-Bstatic'
11488      fi
11489      lt_prog_compiler_pic='-fPIC'
11490      ;;
11491
11492    amigaos*)
11493      case $host_cpu in
11494      powerpc)
11495            # see comment about AmigaOS4 .so support
11496            lt_prog_compiler_pic='-fPIC'
11497        ;;
11498      m68k)
11499            # FIXME: we need at least 68020 code to build shared libraries, but
11500            # adding the '-m68020' flag to GCC prevents building anything better,
11501            # like '-m68040'.
11502            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11503        ;;
11504      esac
11505      ;;
11506
11507    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11508      # PIC is the default for these OSes.
11509      ;;
11510
11511    mingw* | cygwin* | pw32* | os2* | cegcc*)
11512      # This hack is so that the source file can tell whether it is being
11513      # built for inclusion in a dll (and should export symbols for example).
11514      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11515      # (--disable-auto-import) libraries
11516      lt_prog_compiler_pic='-DDLL_EXPORT'
11517      case $host_os in
11518      os2*)
11519	lt_prog_compiler_static='$wl-static'
11520	;;
11521      esac
11522      ;;
11523
11524    darwin* | rhapsody*)
11525      # PIC is the default on this platform
11526      # Common symbols not allowed in MH_DYLIB files
11527      lt_prog_compiler_pic='-fno-common'
11528      ;;
11529
11530    haiku*)
11531      # PIC is the default for Haiku.
11532      # The "-static" flag exists, but is broken.
11533      lt_prog_compiler_static=
11534      ;;
11535
11536    hpux*)
11537      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11538      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11539      # sets the default TLS model and affects inlining.
11540      case $host_cpu in
11541      hppa*64*)
11542	# +Z the default
11543	;;
11544      *)
11545	lt_prog_compiler_pic='-fPIC'
11546	;;
11547      esac
11548      ;;
11549
11550    interix[3-9]*)
11551      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11552      # Instead, we relocate shared libraries at runtime.
11553      ;;
11554
11555    msdosdjgpp*)
11556      # Just because we use GCC doesn't mean we suddenly get shared libraries
11557      # on systems that don't support them.
11558      lt_prog_compiler_can_build_shared=no
11559      enable_shared=no
11560      ;;
11561
11562    *nto* | *qnx*)
11563      # QNX uses GNU C++, but need to define -shared option too, otherwise
11564      # it will coredump.
11565      lt_prog_compiler_pic='-fPIC -shared'
11566      ;;
11567
11568    sysv4*MP*)
11569      if test -d /usr/nec; then
11570	lt_prog_compiler_pic=-Kconform_pic
11571      fi
11572      ;;
11573
11574    *)
11575      lt_prog_compiler_pic='-fPIC'
11576      ;;
11577    esac
11578
11579    case $cc_basename in
11580    nvcc*) # Cuda Compiler Driver 2.2
11581      lt_prog_compiler_wl='-Xlinker '
11582      if test -n "$lt_prog_compiler_pic"; then
11583        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11584      fi
11585      ;;
11586    esac
11587  else
11588    # PORTME Check for flag to pass linker flags through the system compiler.
11589    case $host_os in
11590    aix*)
11591      lt_prog_compiler_wl='-Wl,'
11592      if test ia64 = "$host_cpu"; then
11593	# AIX 5 now supports IA64 processor
11594	lt_prog_compiler_static='-Bstatic'
11595      else
11596	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11597      fi
11598      ;;
11599
11600    darwin* | rhapsody*)
11601      # PIC is the default on this platform
11602      # Common symbols not allowed in MH_DYLIB files
11603      lt_prog_compiler_pic='-fno-common'
11604      case $cc_basename in
11605      nagfor*)
11606        # NAG Fortran compiler
11607        lt_prog_compiler_wl='-Wl,-Wl,,'
11608        lt_prog_compiler_pic='-PIC'
11609        lt_prog_compiler_static='-Bstatic'
11610        ;;
11611      esac
11612      ;;
11613
11614    mingw* | cygwin* | pw32* | os2* | cegcc*)
11615      # This hack is so that the source file can tell whether it is being
11616      # built for inclusion in a dll (and should export symbols for example).
11617      lt_prog_compiler_pic='-DDLL_EXPORT'
11618      case $host_os in
11619      os2*)
11620	lt_prog_compiler_static='$wl-static'
11621	;;
11622      esac
11623      ;;
11624
11625    hpux9* | hpux10* | hpux11*)
11626      lt_prog_compiler_wl='-Wl,'
11627      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11628      # not for PA HP-UX.
11629      case $host_cpu in
11630      hppa*64*|ia64*)
11631	# +Z the default
11632	;;
11633      *)
11634	lt_prog_compiler_pic='+Z'
11635	;;
11636      esac
11637      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11638      lt_prog_compiler_static='$wl-a ${wl}archive'
11639      ;;
11640
11641    irix5* | irix6* | nonstopux*)
11642      lt_prog_compiler_wl='-Wl,'
11643      # PIC (with -KPIC) is the default.
11644      lt_prog_compiler_static='-non_shared'
11645      ;;
11646
11647    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11648      case $cc_basename in
11649      # old Intel for x86_64, which still supported -KPIC.
11650      ecc*)
11651	lt_prog_compiler_wl='-Wl,'
11652	lt_prog_compiler_pic='-KPIC'
11653	lt_prog_compiler_static='-static'
11654        ;;
11655      # icc used to be incompatible with GCC.
11656      # ICC 10 doesn't accept -KPIC any more.
11657      icc* | ifort*)
11658	lt_prog_compiler_wl='-Wl,'
11659	lt_prog_compiler_pic='-fPIC'
11660	lt_prog_compiler_static='-static'
11661        ;;
11662      # Lahey Fortran 8.1.
11663      lf95*)
11664	lt_prog_compiler_wl='-Wl,'
11665	lt_prog_compiler_pic='--shared'
11666	lt_prog_compiler_static='--static'
11667	;;
11668      nagfor*)
11669	# NAG Fortran compiler
11670	lt_prog_compiler_wl='-Wl,-Wl,,'
11671	lt_prog_compiler_pic='-PIC'
11672	lt_prog_compiler_static='-Bstatic'
11673	;;
11674      tcc*)
11675	# Fabrice Bellard et al's Tiny C Compiler
11676	lt_prog_compiler_wl='-Wl,'
11677	lt_prog_compiler_pic='-fPIC'
11678	lt_prog_compiler_static='-static'
11679	;;
11680      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11681        # Portland Group compilers (*not* the Pentium gcc compiler,
11682	# which looks to be a dead project)
11683	lt_prog_compiler_wl='-Wl,'
11684	lt_prog_compiler_pic='-fpic'
11685	lt_prog_compiler_static='-Bstatic'
11686        ;;
11687      ccc*)
11688        lt_prog_compiler_wl='-Wl,'
11689        # All Alpha code is PIC.
11690        lt_prog_compiler_static='-non_shared'
11691        ;;
11692      xl* | bgxl* | bgf* | mpixl*)
11693	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11694	lt_prog_compiler_wl='-Wl,'
11695	lt_prog_compiler_pic='-qpic'
11696	lt_prog_compiler_static='-qstaticlink'
11697	;;
11698      *)
11699	case `$CC -V 2>&1 | sed 5q` in
11700	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11701	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11702	  lt_prog_compiler_pic='-KPIC'
11703	  lt_prog_compiler_static='-Bstatic'
11704	  lt_prog_compiler_wl=''
11705	  ;;
11706	*Sun\ F* | *Sun*Fortran*)
11707	  lt_prog_compiler_pic='-KPIC'
11708	  lt_prog_compiler_static='-Bstatic'
11709	  lt_prog_compiler_wl='-Qoption ld '
11710	  ;;
11711	*Sun\ C*)
11712	  # Sun C 5.9
11713	  lt_prog_compiler_pic='-KPIC'
11714	  lt_prog_compiler_static='-Bstatic'
11715	  lt_prog_compiler_wl='-Wl,'
11716	  ;;
11717        *Intel*\ [CF]*Compiler*)
11718	  lt_prog_compiler_wl='-Wl,'
11719	  lt_prog_compiler_pic='-fPIC'
11720	  lt_prog_compiler_static='-static'
11721	  ;;
11722	*Portland\ Group*)
11723	  lt_prog_compiler_wl='-Wl,'
11724	  lt_prog_compiler_pic='-fpic'
11725	  lt_prog_compiler_static='-Bstatic'
11726	  ;;
11727	esac
11728	;;
11729      esac
11730      ;;
11731
11732    newsos6)
11733      lt_prog_compiler_pic='-KPIC'
11734      lt_prog_compiler_static='-Bstatic'
11735      ;;
11736
11737    *nto* | *qnx*)
11738      # QNX uses GNU C++, but need to define -shared option too, otherwise
11739      # it will coredump.
11740      lt_prog_compiler_pic='-fPIC -shared'
11741      ;;
11742
11743    osf3* | osf4* | osf5*)
11744      lt_prog_compiler_wl='-Wl,'
11745      # All OSF/1 code is PIC.
11746      lt_prog_compiler_static='-non_shared'
11747      ;;
11748
11749    rdos*)
11750      lt_prog_compiler_static='-non_shared'
11751      ;;
11752
11753    solaris*)
11754      lt_prog_compiler_pic='-KPIC'
11755      lt_prog_compiler_static='-Bstatic'
11756      case $cc_basename in
11757      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11758	lt_prog_compiler_wl='-Qoption ld ';;
11759      *)
11760	lt_prog_compiler_wl='-Wl,';;
11761      esac
11762      ;;
11763
11764    sunos4*)
11765      lt_prog_compiler_wl='-Qoption ld '
11766      lt_prog_compiler_pic='-PIC'
11767      lt_prog_compiler_static='-Bstatic'
11768      ;;
11769
11770    sysv4 | sysv4.2uw2* | sysv4.3*)
11771      lt_prog_compiler_wl='-Wl,'
11772      lt_prog_compiler_pic='-KPIC'
11773      lt_prog_compiler_static='-Bstatic'
11774      ;;
11775
11776    sysv4*MP*)
11777      if test -d /usr/nec; then
11778	lt_prog_compiler_pic='-Kconform_pic'
11779	lt_prog_compiler_static='-Bstatic'
11780      fi
11781      ;;
11782
11783    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11784      lt_prog_compiler_wl='-Wl,'
11785      lt_prog_compiler_pic='-KPIC'
11786      lt_prog_compiler_static='-Bstatic'
11787      ;;
11788
11789    unicos*)
11790      lt_prog_compiler_wl='-Wl,'
11791      lt_prog_compiler_can_build_shared=no
11792      ;;
11793
11794    uts4*)
11795      lt_prog_compiler_pic='-pic'
11796      lt_prog_compiler_static='-Bstatic'
11797      ;;
11798
11799    *)
11800      lt_prog_compiler_can_build_shared=no
11801      ;;
11802    esac
11803  fi
11804
11805case $host_os in
11806  # For platforms that do not support PIC, -DPIC is meaningless:
11807  *djgpp*)
11808    lt_prog_compiler_pic=
11809    ;;
11810  *)
11811    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11812    ;;
11813esac
11814
11815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11816printf %s "checking for $compiler option to produce PIC... " >&6; }
11817if test ${lt_cv_prog_compiler_pic+y}
11818then :
11819  printf %s "(cached) " >&6
11820else $as_nop
11821  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11822fi
11823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11824printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11825lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11826
11827#
11828# Check to make sure the PIC flag actually works.
11829#
11830if test -n "$lt_prog_compiler_pic"; then
11831  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11832printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11833if test ${lt_cv_prog_compiler_pic_works+y}
11834then :
11835  printf %s "(cached) " >&6
11836else $as_nop
11837  lt_cv_prog_compiler_pic_works=no
11838   ac_outfile=conftest.$ac_objext
11839   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11840   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11841   # Insert the option either (1) after the last *FLAGS variable, or
11842   # (2) before a word containing "conftest.", or (3) at the end.
11843   # Note that $ac_compile itself does not contain backslashes and begins
11844   # with a dollar sign (not a hyphen), so the echo should work correctly.
11845   # The option is referenced via a variable to avoid confusing sed.
11846   lt_compile=`echo "$ac_compile" | $SED \
11847   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11848   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11849   -e 's:$: $lt_compiler_flag:'`
11850   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11851   (eval "$lt_compile" 2>conftest.err)
11852   ac_status=$?
11853   cat conftest.err >&5
11854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855   if (exit $ac_status) && test -s "$ac_outfile"; then
11856     # The compiler can only warn and ignore the option if not recognized
11857     # So say no if there are warnings other than the usual output.
11858     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11859     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11860     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11861       lt_cv_prog_compiler_pic_works=yes
11862     fi
11863   fi
11864   $RM conftest*
11865
11866fi
11867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11868printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11869
11870if test yes = "$lt_cv_prog_compiler_pic_works"; then
11871    case $lt_prog_compiler_pic in
11872     "" | " "*) ;;
11873     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11874     esac
11875else
11876    lt_prog_compiler_pic=
11877     lt_prog_compiler_can_build_shared=no
11878fi
11879
11880fi
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892#
11893# Check to make sure the static flag actually works.
11894#
11895wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11897printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11898if test ${lt_cv_prog_compiler_static_works+y}
11899then :
11900  printf %s "(cached) " >&6
11901else $as_nop
11902  lt_cv_prog_compiler_static_works=no
11903   save_LDFLAGS=$LDFLAGS
11904   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11905   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11906   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11907     # The linker can only warn and ignore the option if not recognized
11908     # So say no if there are warnings
11909     if test -s conftest.err; then
11910       # Append any errors to the config.log.
11911       cat conftest.err 1>&5
11912       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11913       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11914       if diff conftest.exp conftest.er2 >/dev/null; then
11915         lt_cv_prog_compiler_static_works=yes
11916       fi
11917     else
11918       lt_cv_prog_compiler_static_works=yes
11919     fi
11920   fi
11921   $RM -r conftest*
11922   LDFLAGS=$save_LDFLAGS
11923
11924fi
11925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11926printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11927
11928if test yes = "$lt_cv_prog_compiler_static_works"; then
11929    :
11930else
11931    lt_prog_compiler_static=
11932fi
11933
11934
11935
11936
11937
11938
11939
11940  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11941printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11942if test ${lt_cv_prog_compiler_c_o+y}
11943then :
11944  printf %s "(cached) " >&6
11945else $as_nop
11946  lt_cv_prog_compiler_c_o=no
11947   $RM -r conftest 2>/dev/null
11948   mkdir conftest
11949   cd conftest
11950   mkdir out
11951   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11952
11953   lt_compiler_flag="-o out/conftest2.$ac_objext"
11954   # Insert the option either (1) after the last *FLAGS variable, or
11955   # (2) before a word containing "conftest.", or (3) at the end.
11956   # Note that $ac_compile itself does not contain backslashes and begins
11957   # with a dollar sign (not a hyphen), so the echo should work correctly.
11958   lt_compile=`echo "$ac_compile" | $SED \
11959   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11960   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11961   -e 's:$: $lt_compiler_flag:'`
11962   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11963   (eval "$lt_compile" 2>out/conftest.err)
11964   ac_status=$?
11965   cat out/conftest.err >&5
11966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11968   then
11969     # The compiler can only warn and ignore the option if not recognized
11970     # So say no if there are warnings
11971     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11972     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11973     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11974       lt_cv_prog_compiler_c_o=yes
11975     fi
11976   fi
11977   chmod u+w . 2>&5
11978   $RM conftest*
11979   # SGI C++ compiler will create directory out/ii_files/ for
11980   # template instantiation
11981   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11982   $RM out/* && rmdir out
11983   cd ..
11984   $RM -r conftest
11985   $RM conftest*
11986
11987fi
11988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11989printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11990
11991
11992
11993
11994
11995
11996  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11997printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11998if test ${lt_cv_prog_compiler_c_o+y}
11999then :
12000  printf %s "(cached) " >&6
12001else $as_nop
12002  lt_cv_prog_compiler_c_o=no
12003   $RM -r conftest 2>/dev/null
12004   mkdir conftest
12005   cd conftest
12006   mkdir out
12007   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12008
12009   lt_compiler_flag="-o out/conftest2.$ac_objext"
12010   # Insert the option either (1) after the last *FLAGS variable, or
12011   # (2) before a word containing "conftest.", or (3) at the end.
12012   # Note that $ac_compile itself does not contain backslashes and begins
12013   # with a dollar sign (not a hyphen), so the echo should work correctly.
12014   lt_compile=`echo "$ac_compile" | $SED \
12015   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12016   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12017   -e 's:$: $lt_compiler_flag:'`
12018   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12019   (eval "$lt_compile" 2>out/conftest.err)
12020   ac_status=$?
12021   cat out/conftest.err >&5
12022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12024   then
12025     # The compiler can only warn and ignore the option if not recognized
12026     # So say no if there are warnings
12027     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12028     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12029     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12030       lt_cv_prog_compiler_c_o=yes
12031     fi
12032   fi
12033   chmod u+w . 2>&5
12034   $RM conftest*
12035   # SGI C++ compiler will create directory out/ii_files/ for
12036   # template instantiation
12037   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12038   $RM out/* && rmdir out
12039   cd ..
12040   $RM -r conftest
12041   $RM conftest*
12042
12043fi
12044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12045printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12046
12047
12048
12049
12050hard_links=nottested
12051if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12052  # do not overwrite the value of need_locks provided by the user
12053  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12054printf %s "checking if we can lock with hard links... " >&6; }
12055  hard_links=yes
12056  $RM conftest*
12057  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12058  touch conftest.a
12059  ln conftest.a conftest.b 2>&5 || hard_links=no
12060  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12061  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12062printf "%s\n" "$hard_links" >&6; }
12063  if test no = "$hard_links"; then
12064    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12065printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12066    need_locks=warn
12067  fi
12068else
12069  need_locks=no
12070fi
12071
12072
12073
12074
12075
12076
12077  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12078printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12079
12080  runpath_var=
12081  allow_undefined_flag=
12082  always_export_symbols=no
12083  archive_cmds=
12084  archive_expsym_cmds=
12085  compiler_needs_object=no
12086  enable_shared_with_static_runtimes=no
12087  export_dynamic_flag_spec=
12088  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12089  hardcode_automatic=no
12090  hardcode_direct=no
12091  hardcode_direct_absolute=no
12092  hardcode_libdir_flag_spec=
12093  hardcode_libdir_separator=
12094  hardcode_minus_L=no
12095  hardcode_shlibpath_var=unsupported
12096  inherit_rpath=no
12097  link_all_deplibs=unknown
12098  module_cmds=
12099  module_expsym_cmds=
12100  old_archive_from_new_cmds=
12101  old_archive_from_expsyms_cmds=
12102  thread_safe_flag_spec=
12103  whole_archive_flag_spec=
12104  # include_expsyms should be a list of space-separated symbols to be *always*
12105  # included in the symbol list
12106  include_expsyms=
12107  # exclude_expsyms can be an extended regexp of symbols to exclude
12108  # it will be wrapped by ' (' and ')$', so one must not match beginning or
12109  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12110  # as well as any symbol that contains 'd'.
12111  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12112  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12113  # platforms (ab)use it in PIC code, but their linkers get confused if
12114  # the symbol is explicitly referenced.  Since portable code cannot
12115  # rely on this symbol name, it's probably fine to never include it in
12116  # preloaded symbol tables.
12117  # Exclude shared library initialization/finalization symbols.
12118  extract_expsyms_cmds=
12119
12120  case $host_os in
12121  cygwin* | mingw* | pw32* | cegcc*)
12122    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
12123    # When not using gcc, we currently assume that we are using
12124    # Microsoft Visual C++ or Intel C++ Compiler.
12125    if test yes != "$GCC"; then
12126      with_gnu_ld=no
12127    fi
12128    ;;
12129  interix*)
12130    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
12131    with_gnu_ld=yes
12132    ;;
12133  openbsd* | bitrig*)
12134    with_gnu_ld=no
12135    ;;
12136  esac
12137
12138  ld_shlibs=yes
12139
12140  # On some targets, GNU ld is compatible enough with the native linker
12141  # that we're better off using the native interface for both.
12142  lt_use_gnu_ld_interface=no
12143  if test yes = "$with_gnu_ld"; then
12144    case $host_os in
12145      aix*)
12146	# The AIX port of GNU ld has always aspired to compatibility
12147	# with the native linker.  However, as the warning in the GNU ld
12148	# block says, versions before 2.19.5* couldn't really create working
12149	# shared libraries, regardless of the interface used.
12150	case `$LD -v 2>&1` in
12151	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12152	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12153	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12154	  *)
12155	    lt_use_gnu_ld_interface=yes
12156	    ;;
12157	esac
12158	;;
12159      *)
12160	lt_use_gnu_ld_interface=yes
12161	;;
12162    esac
12163  fi
12164
12165  if test yes = "$lt_use_gnu_ld_interface"; then
12166    # If archive_cmds runs LD, not CC, wlarc should be empty
12167    wlarc='$wl'
12168
12169    # Set some defaults for GNU ld with shared library support. These
12170    # are reset later if shared libraries are not supported. Putting them
12171    # here allows them to be overridden if necessary.
12172    runpath_var=LD_RUN_PATH
12173    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12174    export_dynamic_flag_spec='$wl--export-dynamic'
12175    # ancient GNU ld didn't support --whole-archive et. al.
12176    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12177      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12178    else
12179      whole_archive_flag_spec=
12180    fi
12181    supports_anon_versioning=no
12182    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12183      *GNU\ gold*) supports_anon_versioning=yes ;;
12184      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12185      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12186      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12187      *\ 2.11.*) ;; # other 2.11 versions
12188      *) supports_anon_versioning=yes ;;
12189    esac
12190
12191    # See if GNU ld supports shared libraries.
12192    case $host_os in
12193    aix[3-9]*)
12194      # On AIX/PPC, the GNU linker is very broken
12195      if test ia64 != "$host_cpu"; then
12196	ld_shlibs=no
12197	cat <<_LT_EOF 1>&2
12198
12199*** Warning: the GNU linker, at least up to release 2.19, is reported
12200*** to be unable to reliably create shared libraries on AIX.
12201*** Therefore, libtool is disabling shared libraries support.  If you
12202*** really care for shared libraries, you may want to install binutils
12203*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12204*** You will then need to restart the configuration process.
12205
12206_LT_EOF
12207      fi
12208      ;;
12209
12210    amigaos*)
12211      case $host_cpu in
12212      powerpc)
12213            # see comment about AmigaOS4 .so support
12214            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12215            archive_expsym_cmds=''
12216        ;;
12217      m68k)
12218            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)'
12219            hardcode_libdir_flag_spec='-L$libdir'
12220            hardcode_minus_L=yes
12221        ;;
12222      esac
12223      ;;
12224
12225    beos*)
12226      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12227	allow_undefined_flag=unsupported
12228	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12229	# support --undefined.  This deserves some investigation.  FIXME
12230	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12231      else
12232	ld_shlibs=no
12233      fi
12234      ;;
12235
12236    cygwin* | mingw* | pw32* | cegcc*)
12237      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12238      # as there is no search path for DLLs.
12239      hardcode_libdir_flag_spec='-L$libdir'
12240      export_dynamic_flag_spec='$wl--export-all-symbols'
12241      allow_undefined_flag=unsupported
12242      always_export_symbols=no
12243      enable_shared_with_static_runtimes=yes
12244      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'
12245      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12246
12247      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12248        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12249	# If the export-symbols file already is a .def file, use it as
12250	# is; otherwise, prepend EXPORTS...
12251	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12252          cp $export_symbols $output_objdir/$soname.def;
12253        else
12254          echo EXPORTS > $output_objdir/$soname.def;
12255          cat $export_symbols >> $output_objdir/$soname.def;
12256        fi~
12257        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12258      else
12259	ld_shlibs=no
12260      fi
12261      ;;
12262
12263    haiku*)
12264      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12265      link_all_deplibs=yes
12266      ;;
12267
12268    os2*)
12269      hardcode_libdir_flag_spec='-L$libdir'
12270      hardcode_minus_L=yes
12271      allow_undefined_flag=unsupported
12272      shrext_cmds=.dll
12273      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12274	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12275	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12276	$ECHO EXPORTS >> $output_objdir/$libname.def~
12277	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12278	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12279	emximp -o $lib $output_objdir/$libname.def'
12280      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12281	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12282	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12283	$ECHO EXPORTS >> $output_objdir/$libname.def~
12284	prefix_cmds="$SED"~
12285	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12286	  prefix_cmds="$prefix_cmds -e 1d";
12287	fi~
12288	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12289	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12290	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12291	emximp -o $lib $output_objdir/$libname.def'
12292      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12293      enable_shared_with_static_runtimes=yes
12294      file_list_spec='@'
12295      ;;
12296
12297    interix[3-9]*)
12298      hardcode_direct=no
12299      hardcode_shlibpath_var=no
12300      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12301      export_dynamic_flag_spec='$wl-E'
12302      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12303      # Instead, shared libraries are loaded at an image base (0x10000000 by
12304      # default) and relocated if they conflict, which is a slow very memory
12305      # consuming and fragmenting process.  To avoid this, we pick a random,
12306      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12307      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12308      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12309      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'
12310      ;;
12311
12312    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12313      tmp_diet=no
12314      if test linux-dietlibc = "$host_os"; then
12315	case $cc_basename in
12316	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12317	esac
12318      fi
12319      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12320	 && test no = "$tmp_diet"
12321      then
12322	tmp_addflag=' $pic_flag'
12323	tmp_sharedflag='-shared'
12324	case $cc_basename,$host_cpu in
12325        pgcc*)				# Portland Group C compiler
12326	  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'
12327	  tmp_addflag=' $pic_flag'
12328	  ;;
12329	pgf77* | pgf90* | pgf95* | pgfortran*)
12330					# Portland Group f77 and f90 compilers
12331	  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'
12332	  tmp_addflag=' $pic_flag -Mnomain' ;;
12333	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12334	  tmp_addflag=' -i_dynamic' ;;
12335	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12336	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12337	ifc* | ifort*)			# Intel Fortran compiler
12338	  tmp_addflag=' -nofor_main' ;;
12339	lf95*)				# Lahey Fortran 8.1
12340	  whole_archive_flag_spec=
12341	  tmp_sharedflag='--shared' ;;
12342        nagfor*)                        # NAGFOR 5.3
12343          tmp_sharedflag='-Wl,-shared' ;;
12344	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12345	  tmp_sharedflag='-qmkshrobj'
12346	  tmp_addflag= ;;
12347	nvcc*)	# Cuda Compiler Driver 2.2
12348	  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'
12349	  compiler_needs_object=yes
12350	  ;;
12351	esac
12352	case `$CC -V 2>&1 | sed 5q` in
12353	*Sun\ C*)			# Sun C 5.9
12354	  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'
12355	  compiler_needs_object=yes
12356	  tmp_sharedflag='-G' ;;
12357	*Sun\ F*)			# Sun Fortran 8.3
12358	  tmp_sharedflag='-G' ;;
12359	esac
12360	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12361
12362        if test yes = "$supports_anon_versioning"; then
12363          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12364            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12365            echo "local: *; };" >> $output_objdir/$libname.ver~
12366            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12367        fi
12368
12369	case $cc_basename in
12370	tcc*)
12371	  export_dynamic_flag_spec='-rdynamic'
12372	  ;;
12373	xlf* | bgf* | bgxlf* | mpixlf*)
12374	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12375	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12376	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12377	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12378	  if test yes = "$supports_anon_versioning"; then
12379	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12380              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12381              echo "local: *; };" >> $output_objdir/$libname.ver~
12382              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12383	  fi
12384	  ;;
12385	esac
12386      else
12387        ld_shlibs=no
12388      fi
12389      ;;
12390
12391    netbsd*)
12392      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12393	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12394	wlarc=
12395      else
12396	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12397	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12398      fi
12399      ;;
12400
12401    solaris*)
12402      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12403	ld_shlibs=no
12404	cat <<_LT_EOF 1>&2
12405
12406*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12407*** create shared libraries on Solaris systems.  Therefore, libtool
12408*** is disabling shared libraries support.  We urge you to upgrade GNU
12409*** binutils to release 2.9.1 or newer.  Another option is to modify
12410*** your PATH or compiler configuration so that the native linker is
12411*** used, and then restart.
12412
12413_LT_EOF
12414      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12415	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12416	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12417      else
12418	ld_shlibs=no
12419      fi
12420      ;;
12421
12422    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12423      case `$LD -v 2>&1` in
12424        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12425	ld_shlibs=no
12426	cat <<_LT_EOF 1>&2
12427
12428*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12429*** reliably create shared libraries on SCO systems.  Therefore, libtool
12430*** is disabling shared libraries support.  We urge you to upgrade GNU
12431*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12432*** your PATH or compiler configuration so that the native linker is
12433*** used, and then restart.
12434
12435_LT_EOF
12436	;;
12437	*)
12438	  # For security reasons, it is highly recommended that you always
12439	  # use absolute paths for naming shared libraries, and exclude the
12440	  # DT_RUNPATH tag from executables and libraries.  But doing so
12441	  # requires that you compile everything twice, which is a pain.
12442	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12443	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12444	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12445	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12446	  else
12447	    ld_shlibs=no
12448	  fi
12449	;;
12450      esac
12451      ;;
12452
12453    sunos4*)
12454      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12455      wlarc=
12456      hardcode_direct=yes
12457      hardcode_shlibpath_var=no
12458      ;;
12459
12460    *)
12461      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12462	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12463	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12464      else
12465	ld_shlibs=no
12466      fi
12467      ;;
12468    esac
12469
12470    if test no = "$ld_shlibs"; then
12471      runpath_var=
12472      hardcode_libdir_flag_spec=
12473      export_dynamic_flag_spec=
12474      whole_archive_flag_spec=
12475    fi
12476  else
12477    # PORTME fill in a description of your system's linker (not GNU ld)
12478    case $host_os in
12479    aix3*)
12480      allow_undefined_flag=unsupported
12481      always_export_symbols=yes
12482      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'
12483      # Note: this linker hardcodes the directories in LIBPATH if there
12484      # are no directories specified by -L.
12485      hardcode_minus_L=yes
12486      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12487	# Neither direct hardcoding nor static linking is supported with a
12488	# broken collect2.
12489	hardcode_direct=unsupported
12490      fi
12491      ;;
12492
12493    aix[4-9]*)
12494      if test ia64 = "$host_cpu"; then
12495	# On IA64, the linker does run time linking by default, so we don't
12496	# have to do anything special.
12497	aix_use_runtimelinking=no
12498	exp_sym_flag='-Bexport'
12499	no_entry_flag=
12500      else
12501	# If we're using GNU nm, then we don't want the "-C" option.
12502	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
12503	# Without the "-l" option, or with the "-B" option, AIX nm treats
12504	# weak defined symbols like other global defined symbols, whereas
12505	# GNU nm marks them as "W".
12506	# While the 'weak' keyword is ignored in the Export File, we need
12507	# it in the Import File for the 'aix-soname' feature, so we have
12508	# to replace the "-B" option with "-P" for AIX nm.
12509	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12510	  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'
12511	else
12512	  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 == "L") || (\$ 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'
12513	fi
12514	aix_use_runtimelinking=no
12515
12516	# Test if we are trying to use run time linking or normal
12517	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12518	# have runtime linking enabled, and use it for executables.
12519	# For shared libraries, we enable/disable runtime linking
12520	# depending on the kind of the shared library created -
12521	# when "with_aix_soname,aix_use_runtimelinking" is:
12522	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12523	# "aix,yes"  lib.so          shared, rtl:yes, for executables
12524	#            lib.a           static archive
12525	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
12526	#            lib.a(lib.so.V) shared, rtl:no,  for executables
12527	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12528	#            lib.a(lib.so.V) shared, rtl:no
12529	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12530	#            lib.a           static archive
12531	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12532	  for ld_flag in $LDFLAGS; do
12533	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12534	    aix_use_runtimelinking=yes
12535	    break
12536	  fi
12537	  done
12538	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12539	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
12540	    # so we don't have lib.a shared libs to link our executables.
12541	    # We have to force runtime linking in this case.
12542	    aix_use_runtimelinking=yes
12543	    LDFLAGS="$LDFLAGS -Wl,-brtl"
12544	  fi
12545	  ;;
12546	esac
12547
12548	exp_sym_flag='-bexport'
12549	no_entry_flag='-bnoentry'
12550      fi
12551
12552      # When large executables or shared objects are built, AIX ld can
12553      # have problems creating the table of contents.  If linking a library
12554      # or program results in "error TOC overflow" add -mminimal-toc to
12555      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12556      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12557
12558      archive_cmds=''
12559      hardcode_direct=yes
12560      hardcode_direct_absolute=yes
12561      hardcode_libdir_separator=':'
12562      link_all_deplibs=yes
12563      file_list_spec='$wl-f,'
12564      case $with_aix_soname,$aix_use_runtimelinking in
12565      aix,*) ;; # traditional, no import file
12566      svr4,* | *,yes) # use import file
12567	# The Import File defines what to hardcode.
12568	hardcode_direct=no
12569	hardcode_direct_absolute=no
12570	;;
12571      esac
12572
12573      if test yes = "$GCC"; then
12574	case $host_os in aix4.[012]|aix4.[012].*)
12575	# We only want to do this on AIX 4.2 and lower, the check
12576	# below for broken collect2 doesn't work under 4.3+
12577	  collect2name=`$CC -print-prog-name=collect2`
12578	  if test -f "$collect2name" &&
12579	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12580	  then
12581	  # We have reworked collect2
12582	  :
12583	  else
12584	  # We have old collect2
12585	  hardcode_direct=unsupported
12586	  # It fails to find uninstalled libraries when the uninstalled
12587	  # path is not listed in the libpath.  Setting hardcode_minus_L
12588	  # to unsupported forces relinking
12589	  hardcode_minus_L=yes
12590	  hardcode_libdir_flag_spec='-L$libdir'
12591	  hardcode_libdir_separator=
12592	  fi
12593	  ;;
12594	esac
12595	shared_flag='-shared'
12596	if test yes = "$aix_use_runtimelinking"; then
12597	  shared_flag="$shared_flag "'$wl-G'
12598	fi
12599	# Need to ensure runtime linking is disabled for the traditional
12600	# shared library, or the linker may eventually find shared libraries
12601	# /with/ Import File - we do not want to mix them.
12602	shared_flag_aix='-shared'
12603	shared_flag_svr4='-shared $wl-G'
12604      else
12605	# not using gcc
12606	if test ia64 = "$host_cpu"; then
12607	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12608	# chokes on -Wl,-G. The following line is correct:
12609	  shared_flag='-G'
12610	else
12611	  if test yes = "$aix_use_runtimelinking"; then
12612	    shared_flag='$wl-G'
12613	  else
12614	    shared_flag='$wl-bM:SRE'
12615	  fi
12616	  shared_flag_aix='$wl-bM:SRE'
12617	  shared_flag_svr4='$wl-G'
12618	fi
12619      fi
12620
12621      export_dynamic_flag_spec='$wl-bexpall'
12622      # It seems that -bexpall does not export symbols beginning with
12623      # underscore (_), so it is better to generate a list of symbols to export.
12624      always_export_symbols=yes
12625      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12626	# Warning - without using the other runtime loading flags (-brtl),
12627	# -berok will link without error, but may produce a broken library.
12628	allow_undefined_flag='-berok'
12629        # Determine the default libpath from the value encoded in an
12630        # empty executable.
12631        if test set = "${lt_cv_aix_libpath+set}"; then
12632  aix_libpath=$lt_cv_aix_libpath
12633else
12634  if test ${lt_cv_aix_libpath_+y}
12635then :
12636  printf %s "(cached) " >&6
12637else $as_nop
12638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12639/* end confdefs.h.  */
12640
12641int
12642main (void)
12643{
12644
12645  ;
12646  return 0;
12647}
12648_ACEOF
12649if ac_fn_c_try_link "$LINENO"
12650then :
12651
12652  lt_aix_libpath_sed='
12653      /Import File Strings/,/^$/ {
12654	  /^0/ {
12655	      s/^0  *\([^ ]*\) *$/\1/
12656	      p
12657	  }
12658      }'
12659  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12660  # Check for a 64-bit object if we didn't find anything.
12661  if test -z "$lt_cv_aix_libpath_"; then
12662    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12663  fi
12664fi
12665rm -f core conftest.err conftest.$ac_objext conftest.beam \
12666    conftest$ac_exeext conftest.$ac_ext
12667  if test -z "$lt_cv_aix_libpath_"; then
12668    lt_cv_aix_libpath_=/usr/lib:/lib
12669  fi
12670
12671fi
12672
12673  aix_libpath=$lt_cv_aix_libpath_
12674fi
12675
12676        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12677        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
12678      else
12679	if test ia64 = "$host_cpu"; then
12680	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12681	  allow_undefined_flag="-z nodefs"
12682	  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"
12683	else
12684	 # Determine the default libpath from the value encoded in an
12685	 # empty executable.
12686	 if test set = "${lt_cv_aix_libpath+set}"; then
12687  aix_libpath=$lt_cv_aix_libpath
12688else
12689  if test ${lt_cv_aix_libpath_+y}
12690then :
12691  printf %s "(cached) " >&6
12692else $as_nop
12693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12694/* end confdefs.h.  */
12695
12696int
12697main (void)
12698{
12699
12700  ;
12701  return 0;
12702}
12703_ACEOF
12704if ac_fn_c_try_link "$LINENO"
12705then :
12706
12707  lt_aix_libpath_sed='
12708      /Import File Strings/,/^$/ {
12709	  /^0/ {
12710	      s/^0  *\([^ ]*\) *$/\1/
12711	      p
12712	  }
12713      }'
12714  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12715  # Check for a 64-bit object if we didn't find anything.
12716  if test -z "$lt_cv_aix_libpath_"; then
12717    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12718  fi
12719fi
12720rm -f core conftest.err conftest.$ac_objext conftest.beam \
12721    conftest$ac_exeext conftest.$ac_ext
12722  if test -z "$lt_cv_aix_libpath_"; then
12723    lt_cv_aix_libpath_=/usr/lib:/lib
12724  fi
12725
12726fi
12727
12728  aix_libpath=$lt_cv_aix_libpath_
12729fi
12730
12731	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12732	  # Warning - without using the other run time loading flags,
12733	  # -berok will link without error, but may produce a broken library.
12734	  no_undefined_flag=' $wl-bernotok'
12735	  allow_undefined_flag=' $wl-berok'
12736	  if test yes = "$with_gnu_ld"; then
12737	    # We only use this code for GNU lds that support --whole-archive.
12738	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12739	  else
12740	    # Exported symbols can be pulled into shared objects from archives
12741	    whole_archive_flag_spec='$convenience'
12742	  fi
12743	  archive_cmds_need_lc=yes
12744	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12745	  # -brtl affects multiple linker settings, -berok does not and is overridden later
12746	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12747	  if test svr4 != "$with_aix_soname"; then
12748	    # This is similar to how AIX traditionally builds its shared libraries.
12749	    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'
12750	  fi
12751	  if test aix != "$with_aix_soname"; then
12752	    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'
12753	  else
12754	    # used by -dlpreopen to get the symbols
12755	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12756	  fi
12757	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12758	fi
12759      fi
12760      ;;
12761
12762    amigaos*)
12763      case $host_cpu in
12764      powerpc)
12765            # see comment about AmigaOS4 .so support
12766            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12767            archive_expsym_cmds=''
12768        ;;
12769      m68k)
12770            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)'
12771            hardcode_libdir_flag_spec='-L$libdir'
12772            hardcode_minus_L=yes
12773        ;;
12774      esac
12775      ;;
12776
12777    bsdi[45]*)
12778      export_dynamic_flag_spec=-rdynamic
12779      ;;
12780
12781    cygwin* | mingw* | pw32* | cegcc*)
12782      # When not using gcc, we currently assume that we are using
12783      # Microsoft Visual C++ or Intel C++ Compiler.
12784      # hardcode_libdir_flag_spec is actually meaningless, as there is
12785      # no search path for DLLs.
12786      case $cc_basename in
12787      cl* | icl*)
12788	# Native MSVC or ICC
12789	hardcode_libdir_flag_spec=' '
12790	allow_undefined_flag=unsupported
12791	always_export_symbols=yes
12792	file_list_spec='@'
12793	# Tell ltmain to make .lib files, not .a files.
12794	libext=lib
12795	# Tell ltmain to make .dll files, not .so files.
12796	shrext_cmds=.dll
12797	# FIXME: Setting linknames here is a bad hack.
12798	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12799	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12800            cp "$export_symbols" "$output_objdir/$soname.def";
12801            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12802          else
12803            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12804          fi~
12805          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12806          linknames='
12807	# The linker will not automatically build a static lib if we build a DLL.
12808	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12809	enable_shared_with_static_runtimes=yes
12810	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12811	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12812	# Don't use ranlib
12813	old_postinstall_cmds='chmod 644 $oldlib'
12814	postlink_cmds='lt_outputfile="@OUTPUT@"~
12815          lt_tool_outputfile="@TOOL_OUTPUT@"~
12816          case $lt_outputfile in
12817            *.exe|*.EXE) ;;
12818            *)
12819              lt_outputfile=$lt_outputfile.exe
12820              lt_tool_outputfile=$lt_tool_outputfile.exe
12821              ;;
12822          esac~
12823          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12824            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12825            $RM "$lt_outputfile.manifest";
12826          fi'
12827	;;
12828      *)
12829	# Assume MSVC and ICC wrapper
12830	hardcode_libdir_flag_spec=' '
12831	allow_undefined_flag=unsupported
12832	# Tell ltmain to make .lib files, not .a files.
12833	libext=lib
12834	# Tell ltmain to make .dll files, not .so files.
12835	shrext_cmds=.dll
12836	# FIXME: Setting linknames here is a bad hack.
12837	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12838	# The linker will automatically build a .lib file if we build a DLL.
12839	old_archive_from_new_cmds='true'
12840	# FIXME: Should let the user specify the lib program.
12841	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12842	enable_shared_with_static_runtimes=yes
12843	;;
12844      esac
12845      ;;
12846
12847    darwin* | rhapsody*)
12848
12849
12850  archive_cmds_need_lc=no
12851  hardcode_direct=no
12852  hardcode_automatic=yes
12853  hardcode_shlibpath_var=unsupported
12854  if test yes = "$lt_cv_ld_force_load"; then
12855    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\"`'
12856
12857  else
12858    whole_archive_flag_spec=''
12859  fi
12860  link_all_deplibs=yes
12861  allow_undefined_flag=$_lt_dar_allow_undefined
12862  case $cc_basename in
12863     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12864     *) _lt_dar_can_shared=$GCC ;;
12865  esac
12866  if test yes = "$_lt_dar_can_shared"; then
12867    output_verbose_link_cmd=func_echo_all
12868    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12869    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12870    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"
12871    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"
12872
12873  else
12874  ld_shlibs=no
12875  fi
12876
12877      ;;
12878
12879    dgux*)
12880      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12881      hardcode_libdir_flag_spec='-L$libdir'
12882      hardcode_shlibpath_var=no
12883      ;;
12884
12885    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12886    # support.  Future versions do this automatically, but an explicit c++rt0.o
12887    # does not break anything, and helps significantly (at the cost of a little
12888    # extra space).
12889    freebsd2.2*)
12890      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12891      hardcode_libdir_flag_spec='-R$libdir'
12892      hardcode_direct=yes
12893      hardcode_shlibpath_var=no
12894      ;;
12895
12896    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12897    freebsd2.*)
12898      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12899      hardcode_direct=yes
12900      hardcode_minus_L=yes
12901      hardcode_shlibpath_var=no
12902      ;;
12903
12904    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12905    freebsd* | dragonfly*)
12906      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12907      hardcode_libdir_flag_spec='-R$libdir'
12908      hardcode_direct=yes
12909      hardcode_shlibpath_var=no
12910      ;;
12911
12912    hpux9*)
12913      if test yes = "$GCC"; then
12914	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'
12915      else
12916	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'
12917      fi
12918      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12919      hardcode_libdir_separator=:
12920      hardcode_direct=yes
12921
12922      # hardcode_minus_L: Not really in the search PATH,
12923      # but as the default location of the library.
12924      hardcode_minus_L=yes
12925      export_dynamic_flag_spec='$wl-E'
12926      ;;
12927
12928    hpux10*)
12929      if test yes,no = "$GCC,$with_gnu_ld"; then
12930	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12931      else
12932	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12933      fi
12934      if test no = "$with_gnu_ld"; then
12935	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12936	hardcode_libdir_separator=:
12937	hardcode_direct=yes
12938	hardcode_direct_absolute=yes
12939	export_dynamic_flag_spec='$wl-E'
12940	# hardcode_minus_L: Not really in the search PATH,
12941	# but as the default location of the library.
12942	hardcode_minus_L=yes
12943      fi
12944      ;;
12945
12946    hpux11*)
12947      if test yes,no = "$GCC,$with_gnu_ld"; then
12948	case $host_cpu in
12949	hppa*64*)
12950	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12951	  ;;
12952	ia64*)
12953	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12954	  ;;
12955	*)
12956	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12957	  ;;
12958	esac
12959      else
12960	case $host_cpu in
12961	hppa*64*)
12962	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12963	  ;;
12964	ia64*)
12965	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12966	  ;;
12967	*)
12968
12969	  # Older versions of the 11.00 compiler do not understand -b yet
12970	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12971	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12972printf %s "checking if $CC understands -b... " >&6; }
12973if test ${lt_cv_prog_compiler__b+y}
12974then :
12975  printf %s "(cached) " >&6
12976else $as_nop
12977  lt_cv_prog_compiler__b=no
12978   save_LDFLAGS=$LDFLAGS
12979   LDFLAGS="$LDFLAGS -b"
12980   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12981   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12982     # The linker can only warn and ignore the option if not recognized
12983     # So say no if there are warnings
12984     if test -s conftest.err; then
12985       # Append any errors to the config.log.
12986       cat conftest.err 1>&5
12987       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12988       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12989       if diff conftest.exp conftest.er2 >/dev/null; then
12990         lt_cv_prog_compiler__b=yes
12991       fi
12992     else
12993       lt_cv_prog_compiler__b=yes
12994     fi
12995   fi
12996   $RM -r conftest*
12997   LDFLAGS=$save_LDFLAGS
12998
12999fi
13000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13001printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
13002
13003if test yes = "$lt_cv_prog_compiler__b"; then
13004    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13005else
13006    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13007fi
13008
13009	  ;;
13010	esac
13011      fi
13012      if test no = "$with_gnu_ld"; then
13013	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13014	hardcode_libdir_separator=:
13015
13016	case $host_cpu in
13017	hppa*64*|ia64*)
13018	  hardcode_direct=no
13019	  hardcode_shlibpath_var=no
13020	  ;;
13021	*)
13022	  hardcode_direct=yes
13023	  hardcode_direct_absolute=yes
13024	  export_dynamic_flag_spec='$wl-E'
13025
13026	  # hardcode_minus_L: Not really in the search PATH,
13027	  # but as the default location of the library.
13028	  hardcode_minus_L=yes
13029	  ;;
13030	esac
13031      fi
13032      ;;
13033
13034    irix5* | irix6* | nonstopux*)
13035      if test yes = "$GCC"; then
13036	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'
13037	# Try to use the -exported_symbol ld option, if it does not
13038	# work, assume that -exports_file does not work either and
13039	# implicitly export all symbols.
13040	# This should be the same for all languages, so no per-tag cache variable.
13041	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13042printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13043if test ${lt_cv_irix_exported_symbol+y}
13044then :
13045  printf %s "(cached) " >&6
13046else $as_nop
13047  save_LDFLAGS=$LDFLAGS
13048	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13049	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050/* end confdefs.h.  */
13051int foo (void) { return 0; }
13052_ACEOF
13053if ac_fn_c_try_link "$LINENO"
13054then :
13055  lt_cv_irix_exported_symbol=yes
13056else $as_nop
13057  lt_cv_irix_exported_symbol=no
13058fi
13059rm -f core conftest.err conftest.$ac_objext conftest.beam \
13060    conftest$ac_exeext conftest.$ac_ext
13061           LDFLAGS=$save_LDFLAGS
13062fi
13063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13064printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
13065	if test yes = "$lt_cv_irix_exported_symbol"; then
13066          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'
13067	fi
13068      else
13069	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'
13070	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'
13071      fi
13072      archive_cmds_need_lc='no'
13073      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13074      hardcode_libdir_separator=:
13075      inherit_rpath=yes
13076      link_all_deplibs=yes
13077      ;;
13078
13079    linux*)
13080      case $cc_basename in
13081      tcc*)
13082	# Fabrice Bellard et al's Tiny C Compiler
13083	ld_shlibs=yes
13084	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13085	;;
13086      esac
13087      ;;
13088
13089    netbsd*)
13090      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13091	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13092      else
13093	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13094      fi
13095      hardcode_libdir_flag_spec='-R$libdir'
13096      hardcode_direct=yes
13097      hardcode_shlibpath_var=no
13098      ;;
13099
13100    newsos6)
13101      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13102      hardcode_direct=yes
13103      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13104      hardcode_libdir_separator=:
13105      hardcode_shlibpath_var=no
13106      ;;
13107
13108    *nto* | *qnx*)
13109      ;;
13110
13111    openbsd* | bitrig*)
13112      if test -f /usr/libexec/ld.so; then
13113	hardcode_direct=yes
13114	hardcode_shlibpath_var=no
13115	hardcode_direct_absolute=yes
13116	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13117	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13118	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13119	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13120	  export_dynamic_flag_spec='$wl-E'
13121	else
13122	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13123	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13124	fi
13125      else
13126	ld_shlibs=no
13127      fi
13128      ;;
13129
13130    os2*)
13131      hardcode_libdir_flag_spec='-L$libdir'
13132      hardcode_minus_L=yes
13133      allow_undefined_flag=unsupported
13134      shrext_cmds=.dll
13135      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13136	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13137	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13138	$ECHO EXPORTS >> $output_objdir/$libname.def~
13139	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13140	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13141	emximp -o $lib $output_objdir/$libname.def'
13142      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13143	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13144	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13145	$ECHO EXPORTS >> $output_objdir/$libname.def~
13146	prefix_cmds="$SED"~
13147	if test EXPORTS = "`$SED 1q $export_symbols`"; then
13148	  prefix_cmds="$prefix_cmds -e 1d";
13149	fi~
13150	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13151	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13152	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13153	emximp -o $lib $output_objdir/$libname.def'
13154      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13155      enable_shared_with_static_runtimes=yes
13156      file_list_spec='@'
13157      ;;
13158
13159    osf3*)
13160      if test yes = "$GCC"; then
13161	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13162	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'
13163      else
13164	allow_undefined_flag=' -expect_unresolved \*'
13165	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'
13166      fi
13167      archive_cmds_need_lc='no'
13168      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13169      hardcode_libdir_separator=:
13170      ;;
13171
13172    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13173      if test yes = "$GCC"; then
13174	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13175	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'
13176	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13177      else
13178	allow_undefined_flag=' -expect_unresolved \*'
13179	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'
13180	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~
13181          $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'
13182
13183	# Both c and cxx compiler support -rpath directly
13184	hardcode_libdir_flag_spec='-rpath $libdir'
13185      fi
13186      archive_cmds_need_lc='no'
13187      hardcode_libdir_separator=:
13188      ;;
13189
13190    solaris*)
13191      no_undefined_flag=' -z defs'
13192      if test yes = "$GCC"; then
13193	wlarc='$wl'
13194	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13195	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13196          $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'
13197      else
13198	case `$CC -V 2>&1` in
13199	*"Compilers 5.0"*)
13200	  wlarc=''
13201	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13202	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13203            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13204	  ;;
13205	*)
13206	  wlarc='$wl'
13207	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13208	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13209            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13210	  ;;
13211	esac
13212      fi
13213      hardcode_libdir_flag_spec='-R$libdir'
13214      hardcode_shlibpath_var=no
13215      case $host_os in
13216      solaris2.[0-5] | solaris2.[0-5].*) ;;
13217      *)
13218	# The compiler driver will combine and reorder linker options,
13219	# but understands '-z linker_flag'.  GCC discards it without '$wl',
13220	# but is careful enough not to reorder.
13221	# Supported since Solaris 2.6 (maybe 2.5.1?)
13222	if test yes = "$GCC"; then
13223	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13224	else
13225	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13226	fi
13227	;;
13228      esac
13229      link_all_deplibs=yes
13230      ;;
13231
13232    sunos4*)
13233      if test sequent = "$host_vendor"; then
13234	# Use $CC to link under sequent, because it throws in some extra .o
13235	# files that make .init and .fini sections work.
13236	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13237      else
13238	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13239      fi
13240      hardcode_libdir_flag_spec='-L$libdir'
13241      hardcode_direct=yes
13242      hardcode_minus_L=yes
13243      hardcode_shlibpath_var=no
13244      ;;
13245
13246    sysv4)
13247      case $host_vendor in
13248	sni)
13249	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13250	  hardcode_direct=yes # is this really true???
13251	;;
13252	siemens)
13253	  ## LD is ld it makes a PLAMLIB
13254	  ## CC just makes a GrossModule.
13255	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13256	  reload_cmds='$CC -r -o $output$reload_objs'
13257	  hardcode_direct=no
13258        ;;
13259	motorola)
13260	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13261	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13262	;;
13263      esac
13264      runpath_var='LD_RUN_PATH'
13265      hardcode_shlibpath_var=no
13266      ;;
13267
13268    sysv4.3*)
13269      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13270      hardcode_shlibpath_var=no
13271      export_dynamic_flag_spec='-Bexport'
13272      ;;
13273
13274    sysv4*MP*)
13275      if test -d /usr/nec; then
13276	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13277	hardcode_shlibpath_var=no
13278	runpath_var=LD_RUN_PATH
13279	hardcode_runpath_var=yes
13280	ld_shlibs=yes
13281      fi
13282      ;;
13283
13284    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13285      no_undefined_flag='$wl-z,text'
13286      archive_cmds_need_lc=no
13287      hardcode_shlibpath_var=no
13288      runpath_var='LD_RUN_PATH'
13289
13290      if test yes = "$GCC"; then
13291	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13292	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13293      else
13294	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13295	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13296      fi
13297      ;;
13298
13299    sysv5* | sco3.2v5* | sco5v6*)
13300      # Note: We CANNOT use -z defs as we might desire, because we do not
13301      # link with -lc, and that would cause any symbols used from libc to
13302      # always be unresolved, which means just about no library would
13303      # ever link correctly.  If we're not using GNU ld we use -z text
13304      # though, which does catch some bad symbols but isn't as heavy-handed
13305      # as -z defs.
13306      no_undefined_flag='$wl-z,text'
13307      allow_undefined_flag='$wl-z,nodefs'
13308      archive_cmds_need_lc=no
13309      hardcode_shlibpath_var=no
13310      hardcode_libdir_flag_spec='$wl-R,$libdir'
13311      hardcode_libdir_separator=':'
13312      link_all_deplibs=yes
13313      export_dynamic_flag_spec='$wl-Bexport'
13314      runpath_var='LD_RUN_PATH'
13315
13316      if test yes = "$GCC"; then
13317	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13318	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13319      else
13320	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13321	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13322      fi
13323      ;;
13324
13325    uts4*)
13326      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13327      hardcode_libdir_flag_spec='-L$libdir'
13328      hardcode_shlibpath_var=no
13329      ;;
13330
13331    *)
13332      ld_shlibs=no
13333      ;;
13334    esac
13335
13336    if test sni = "$host_vendor"; then
13337      case $host in
13338      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13339	export_dynamic_flag_spec='$wl-Blargedynsym'
13340	;;
13341      esac
13342    fi
13343  fi
13344
13345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13346printf "%s\n" "$ld_shlibs" >&6; }
13347test no = "$ld_shlibs" && can_build_shared=no
13348
13349with_gnu_ld=$with_gnu_ld
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365#
13366# Do we need to explicitly link libc?
13367#
13368case "x$archive_cmds_need_lc" in
13369x|xyes)
13370  # Assume -lc should be added
13371  archive_cmds_need_lc=yes
13372
13373  if test yes,yes = "$GCC,$enable_shared"; then
13374    case $archive_cmds in
13375    *'~'*)
13376      # FIXME: we may have to deal with multi-command sequences.
13377      ;;
13378    '$CC '*)
13379      # Test whether the compiler implicitly links with -lc since on some
13380      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13381      # to ld, don't add -lc before -lgcc.
13382      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13383printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13384if test ${lt_cv_archive_cmds_need_lc+y}
13385then :
13386  printf %s "(cached) " >&6
13387else $as_nop
13388  $RM conftest*
13389	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13390
13391	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13392  (eval $ac_compile) 2>&5
13393  ac_status=$?
13394  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13395  test $ac_status = 0; } 2>conftest.err; then
13396	  soname=conftest
13397	  lib=conftest
13398	  libobjs=conftest.$ac_objext
13399	  deplibs=
13400	  wl=$lt_prog_compiler_wl
13401	  pic_flag=$lt_prog_compiler_pic
13402	  compiler_flags=-v
13403	  linker_flags=-v
13404	  verstring=
13405	  output_objdir=.
13406	  libname=conftest
13407	  lt_save_allow_undefined_flag=$allow_undefined_flag
13408	  allow_undefined_flag=
13409	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13410  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13411  ac_status=$?
13412  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13413  test $ac_status = 0; }
13414	  then
13415	    lt_cv_archive_cmds_need_lc=no
13416	  else
13417	    lt_cv_archive_cmds_need_lc=yes
13418	  fi
13419	  allow_undefined_flag=$lt_save_allow_undefined_flag
13420	else
13421	  cat conftest.err 1>&5
13422	fi
13423	$RM conftest*
13424
13425fi
13426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13427printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
13428      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13429      ;;
13430    esac
13431  fi
13432  ;;
13433esac
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13587printf %s "checking dynamic linker characteristics... " >&6; }
13588
13589if test yes = "$GCC"; then
13590  case $host_os in
13591    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13592    *) lt_awk_arg='/^libraries:/' ;;
13593  esac
13594  case $host_os in
13595    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13596    *) lt_sed_strip_eq='s|=/|/|g' ;;
13597  esac
13598  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13599  case $lt_search_path_spec in
13600  *\;*)
13601    # if the path contains ";" then we assume it to be the separator
13602    # otherwise default to the standard path separator (i.e. ":") - it is
13603    # assumed that no part of a normal pathname contains ";" but that should
13604    # okay in the real world where ";" in dirpaths is itself problematic.
13605    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13606    ;;
13607  *)
13608    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13609    ;;
13610  esac
13611  # Ok, now we have the path, separated by spaces, we can step through it
13612  # and add multilib dir if necessary...
13613  lt_tmp_lt_search_path_spec=
13614  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13615  # ...but if some path component already ends with the multilib dir we assume
13616  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13617  case "$lt_multi_os_dir; $lt_search_path_spec " in
13618  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13619    lt_multi_os_dir=
13620    ;;
13621  esac
13622  for lt_sys_path in $lt_search_path_spec; do
13623    if test -d "$lt_sys_path$lt_multi_os_dir"; then
13624      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13625    elif test -n "$lt_multi_os_dir"; then
13626      test -d "$lt_sys_path" && \
13627	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13628    fi
13629  done
13630  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13631BEGIN {RS = " "; FS = "/|\n";} {
13632  lt_foo = "";
13633  lt_count = 0;
13634  for (lt_i = NF; lt_i > 0; lt_i--) {
13635    if ($lt_i != "" && $lt_i != ".") {
13636      if ($lt_i == "..") {
13637        lt_count++;
13638      } else {
13639        if (lt_count == 0) {
13640          lt_foo = "/" $lt_i lt_foo;
13641        } else {
13642          lt_count--;
13643        }
13644      }
13645    }
13646  }
13647  if (lt_foo != "") { lt_freq[lt_foo]++; }
13648  if (lt_freq[lt_foo] == 1) { print lt_foo; }
13649}'`
13650  # AWK program above erroneously prepends '/' to C:/dos/paths
13651  # for these hosts.
13652  case $host_os in
13653    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13654      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13655  esac
13656  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13657else
13658  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13659fi
13660library_names_spec=
13661libname_spec='lib$name'
13662soname_spec=
13663shrext_cmds=.so
13664postinstall_cmds=
13665postuninstall_cmds=
13666finish_cmds=
13667finish_eval=
13668shlibpath_var=
13669shlibpath_overrides_runpath=unknown
13670version_type=none
13671dynamic_linker="$host_os ld.so"
13672sys_lib_dlsearch_path_spec="/lib /usr/lib"
13673need_lib_prefix=unknown
13674hardcode_into_libs=no
13675
13676# when you set need_version to no, make sure it does not cause -set_version
13677# flags to be left without arguments
13678need_version=unknown
13679
13680
13681
13682case $host_os in
13683aix3*)
13684  version_type=linux # correct to gnu/linux during the next big refactor
13685  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13686  shlibpath_var=LIBPATH
13687
13688  # AIX 3 has no versioning support, so we append a major version to the name.
13689  soname_spec='$libname$release$shared_ext$major'
13690  ;;
13691
13692aix[4-9]*)
13693  version_type=linux # correct to gnu/linux during the next big refactor
13694  need_lib_prefix=no
13695  need_version=no
13696  hardcode_into_libs=yes
13697  if test ia64 = "$host_cpu"; then
13698    # AIX 5 supports IA64
13699    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13700    shlibpath_var=LD_LIBRARY_PATH
13701  else
13702    # With GCC up to 2.95.x, collect2 would create an import file
13703    # for dependence libraries.  The import file would start with
13704    # the line '#! .'.  This would cause the generated library to
13705    # depend on '.', always an invalid library.  This was fixed in
13706    # development snapshots of GCC prior to 3.0.
13707    case $host_os in
13708      aix4 | aix4.[01] | aix4.[01].*)
13709      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13710	   echo ' yes '
13711	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13712	:
13713      else
13714	can_build_shared=no
13715      fi
13716      ;;
13717    esac
13718    # Using Import Files as archive members, it is possible to support
13719    # filename-based versioning of shared library archives on AIX. While
13720    # this would work for both with and without runtime linking, it will
13721    # prevent static linking of such archives. So we do filename-based
13722    # shared library versioning with .so extension only, which is used
13723    # when both runtime linking and shared linking is enabled.
13724    # Unfortunately, runtime linking may impact performance, so we do
13725    # not want this to be the default eventually. Also, we use the
13726    # versioned .so libs for executables only if there is the -brtl
13727    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13728    # To allow for filename-based versioning support, we need to create
13729    # libNAME.so.V as an archive file, containing:
13730    # *) an Import File, referring to the versioned filename of the
13731    #    archive as well as the shared archive member, telling the
13732    #    bitwidth (32 or 64) of that shared object, and providing the
13733    #    list of exported symbols of that shared object, eventually
13734    #    decorated with the 'weak' keyword
13735    # *) the shared object with the F_LOADONLY flag set, to really avoid
13736    #    it being seen by the linker.
13737    # At run time we better use the real file rather than another symlink,
13738    # but for link time we create the symlink libNAME.so -> libNAME.so.V
13739
13740    case $with_aix_soname,$aix_use_runtimelinking in
13741    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13742    # soname into executable. Probably we can add versioning support to
13743    # collect2, so additional links can be useful in future.
13744    aix,yes) # traditional libtool
13745      dynamic_linker='AIX unversionable lib.so'
13746      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13747      # instead of lib<name>.a to let people know that these are not
13748      # typical AIX shared libraries.
13749      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13750      ;;
13751    aix,no) # traditional AIX only
13752      dynamic_linker='AIX lib.a(lib.so.V)'
13753      # We preserve .a as extension for shared libraries through AIX4.2
13754      # and later when we are not doing run time linking.
13755      library_names_spec='$libname$release.a $libname.a'
13756      soname_spec='$libname$release$shared_ext$major'
13757      ;;
13758    svr4,*) # full svr4 only
13759      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13760      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13761      # We do not specify a path in Import Files, so LIBPATH fires.
13762      shlibpath_overrides_runpath=yes
13763      ;;
13764    *,yes) # both, prefer svr4
13765      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13766      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13767      # unpreferred sharedlib libNAME.a needs extra handling
13768      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"'
13769      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"'
13770      # We do not specify a path in Import Files, so LIBPATH fires.
13771      shlibpath_overrides_runpath=yes
13772      ;;
13773    *,no) # both, prefer aix
13774      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13775      library_names_spec='$libname$release.a $libname.a'
13776      soname_spec='$libname$release$shared_ext$major'
13777      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13778      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)'
13779      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"'
13780      ;;
13781    esac
13782    shlibpath_var=LIBPATH
13783  fi
13784  ;;
13785
13786amigaos*)
13787  case $host_cpu in
13788  powerpc)
13789    # Since July 2007 AmigaOS4 officially supports .so libraries.
13790    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13791    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13792    ;;
13793  m68k)
13794    library_names_spec='$libname.ixlibrary $libname.a'
13795    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13796    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'
13797    ;;
13798  esac
13799  ;;
13800
13801beos*)
13802  library_names_spec='$libname$shared_ext'
13803  dynamic_linker="$host_os ld.so"
13804  shlibpath_var=LIBRARY_PATH
13805  ;;
13806
13807bsdi[45]*)
13808  version_type=linux # correct to gnu/linux during the next big refactor
13809  need_version=no
13810  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13811  soname_spec='$libname$release$shared_ext$major'
13812  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13813  shlibpath_var=LD_LIBRARY_PATH
13814  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13815  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13816  # the default ld.so.conf also contains /usr/contrib/lib and
13817  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13818  # libtool to hard-code these into programs
13819  ;;
13820
13821cygwin* | mingw* | pw32* | cegcc*)
13822  version_type=windows
13823  shrext_cmds=.dll
13824  need_version=no
13825  need_lib_prefix=no
13826
13827  case $GCC,$cc_basename in
13828  yes,*)
13829    # gcc
13830    library_names_spec='$libname.dll.a'
13831    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13832    postinstall_cmds='base_file=`basename \$file`~
13833      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13834      dldir=$destdir/`dirname \$dlpath`~
13835      test -d \$dldir || mkdir -p \$dldir~
13836      $install_prog $dir/$dlname \$dldir/$dlname~
13837      chmod a+x \$dldir/$dlname~
13838      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13839        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13840      fi'
13841    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13842      dlpath=$dir/\$dldll~
13843       $RM \$dlpath'
13844    shlibpath_overrides_runpath=yes
13845
13846    case $host_os in
13847    cygwin*)
13848      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13849      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13850
13851      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13852      ;;
13853    mingw* | cegcc*)
13854      # MinGW DLLs use traditional 'lib' prefix
13855      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13856      ;;
13857    pw32*)
13858      # pw32 DLLs use 'pw' prefix rather than 'lib'
13859      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13860      ;;
13861    esac
13862    dynamic_linker='Win32 ld.exe'
13863    ;;
13864
13865  *,cl* | *,icl*)
13866    # Native MSVC or ICC
13867    libname_spec='$name'
13868    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13869    library_names_spec='$libname.dll.lib'
13870
13871    case $build_os in
13872    mingw*)
13873      sys_lib_search_path_spec=
13874      lt_save_ifs=$IFS
13875      IFS=';'
13876      for lt_path in $LIB
13877      do
13878        IFS=$lt_save_ifs
13879        # Let DOS variable expansion print the short 8.3 style file name.
13880        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13881        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13882      done
13883      IFS=$lt_save_ifs
13884      # Convert to MSYS style.
13885      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13886      ;;
13887    cygwin*)
13888      # Convert to unix form, then to dos form, then back to unix form
13889      # but this time dos style (no spaces!) so that the unix form looks
13890      # like /cygdrive/c/PROGRA~1:/cygdr...
13891      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13892      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13893      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13894      ;;
13895    *)
13896      sys_lib_search_path_spec=$LIB
13897      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13898        # It is most probably a Windows format PATH.
13899        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13900      else
13901        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13902      fi
13903      # FIXME: find the short name or the path components, as spaces are
13904      # common. (e.g. "Program Files" -> "PROGRA~1")
13905      ;;
13906    esac
13907
13908    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13909    postinstall_cmds='base_file=`basename \$file`~
13910      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13911      dldir=$destdir/`dirname \$dlpath`~
13912      test -d \$dldir || mkdir -p \$dldir~
13913      $install_prog $dir/$dlname \$dldir/$dlname'
13914    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13915      dlpath=$dir/\$dldll~
13916       $RM \$dlpath'
13917    shlibpath_overrides_runpath=yes
13918    dynamic_linker='Win32 link.exe'
13919    ;;
13920
13921  *)
13922    # Assume MSVC and ICC wrapper
13923    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13924    dynamic_linker='Win32 ld.exe'
13925    ;;
13926  esac
13927  # FIXME: first we should search . and the directory the executable is in
13928  shlibpath_var=PATH
13929  ;;
13930
13931darwin* | rhapsody*)
13932  dynamic_linker="$host_os dyld"
13933  version_type=darwin
13934  need_lib_prefix=no
13935  need_version=no
13936  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13937  soname_spec='$libname$release$major$shared_ext'
13938  shlibpath_overrides_runpath=yes
13939  shlibpath_var=DYLD_LIBRARY_PATH
13940  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13941
13942  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13943  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13944  ;;
13945
13946dgux*)
13947  version_type=linux # correct to gnu/linux during the next big refactor
13948  need_lib_prefix=no
13949  need_version=no
13950  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13951  soname_spec='$libname$release$shared_ext$major'
13952  shlibpath_var=LD_LIBRARY_PATH
13953  ;;
13954
13955freebsd* | dragonfly*)
13956  # DragonFly does not have aout.  When/if they implement a new
13957  # versioning mechanism, adjust this.
13958  if test -x /usr/bin/objformat; then
13959    objformat=`/usr/bin/objformat`
13960  else
13961    case $host_os in
13962    freebsd[23].*) objformat=aout ;;
13963    *) objformat=elf ;;
13964    esac
13965  fi
13966  version_type=freebsd-$objformat
13967  case $version_type in
13968    freebsd-elf*)
13969      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13970      soname_spec='$libname$release$shared_ext$major'
13971      need_version=no
13972      need_lib_prefix=no
13973      ;;
13974    freebsd-*)
13975      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13976      need_version=yes
13977      ;;
13978  esac
13979  shlibpath_var=LD_LIBRARY_PATH
13980  case $host_os in
13981  freebsd2.*)
13982    shlibpath_overrides_runpath=yes
13983    ;;
13984  freebsd3.[01]* | freebsdelf3.[01]*)
13985    shlibpath_overrides_runpath=yes
13986    hardcode_into_libs=yes
13987    ;;
13988  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13989  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13990    shlibpath_overrides_runpath=no
13991    hardcode_into_libs=yes
13992    ;;
13993  *) # from 4.6 on, and DragonFly
13994    shlibpath_overrides_runpath=yes
13995    hardcode_into_libs=yes
13996    ;;
13997  esac
13998  ;;
13999
14000haiku*)
14001  version_type=linux # correct to gnu/linux during the next big refactor
14002  need_lib_prefix=no
14003  need_version=no
14004  dynamic_linker="$host_os runtime_loader"
14005  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14006  soname_spec='$libname$release$shared_ext$major'
14007  shlibpath_var=LIBRARY_PATH
14008  shlibpath_overrides_runpath=no
14009  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14010  hardcode_into_libs=yes
14011  ;;
14012
14013hpux9* | hpux10* | hpux11*)
14014  # Give a soname corresponding to the major version so that dld.sl refuses to
14015  # link against other versions.
14016  version_type=sunos
14017  need_lib_prefix=no
14018  need_version=no
14019  case $host_cpu in
14020  ia64*)
14021    shrext_cmds='.so'
14022    hardcode_into_libs=yes
14023    dynamic_linker="$host_os dld.so"
14024    shlibpath_var=LD_LIBRARY_PATH
14025    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14026    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14027    soname_spec='$libname$release$shared_ext$major'
14028    if test 32 = "$HPUX_IA64_MODE"; then
14029      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14030      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14031    else
14032      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14033      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14034    fi
14035    ;;
14036  hppa*64*)
14037    shrext_cmds='.sl'
14038    hardcode_into_libs=yes
14039    dynamic_linker="$host_os dld.sl"
14040    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14041    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14042    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14043    soname_spec='$libname$release$shared_ext$major'
14044    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14045    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14046    ;;
14047  *)
14048    shrext_cmds='.sl'
14049    dynamic_linker="$host_os dld.sl"
14050    shlibpath_var=SHLIB_PATH
14051    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14052    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14053    soname_spec='$libname$release$shared_ext$major'
14054    ;;
14055  esac
14056  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14057  postinstall_cmds='chmod 555 $lib'
14058  # or fails outright, so override atomically:
14059  install_override_mode=555
14060  ;;
14061
14062interix[3-9]*)
14063  version_type=linux # correct to gnu/linux during the next big refactor
14064  need_lib_prefix=no
14065  need_version=no
14066  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14067  soname_spec='$libname$release$shared_ext$major'
14068  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14069  shlibpath_var=LD_LIBRARY_PATH
14070  shlibpath_overrides_runpath=no
14071  hardcode_into_libs=yes
14072  ;;
14073
14074irix5* | irix6* | nonstopux*)
14075  case $host_os in
14076    nonstopux*) version_type=nonstopux ;;
14077    *)
14078	if test yes = "$lt_cv_prog_gnu_ld"; then
14079		version_type=linux # correct to gnu/linux during the next big refactor
14080	else
14081		version_type=irix
14082	fi ;;
14083  esac
14084  need_lib_prefix=no
14085  need_version=no
14086  soname_spec='$libname$release$shared_ext$major'
14087  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14088  case $host_os in
14089  irix5* | nonstopux*)
14090    libsuff= shlibsuff=
14091    ;;
14092  *)
14093    case $LD in # libtool.m4 will add one of these switches to LD
14094    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14095      libsuff= shlibsuff= libmagic=32-bit;;
14096    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14097      libsuff=32 shlibsuff=N32 libmagic=N32;;
14098    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14099      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14100    *) libsuff= shlibsuff= libmagic=never-match;;
14101    esac
14102    ;;
14103  esac
14104  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14105  shlibpath_overrides_runpath=no
14106  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14107  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14108  hardcode_into_libs=yes
14109  ;;
14110
14111# No shared lib support for Linux oldld, aout, or coff.
14112linux*oldld* | linux*aout* | linux*coff*)
14113  dynamic_linker=no
14114  ;;
14115
14116linux*android*)
14117  version_type=none # Android doesn't support versioned libraries.
14118  need_lib_prefix=no
14119  need_version=no
14120  library_names_spec='$libname$release$shared_ext'
14121  soname_spec='$libname$release$shared_ext'
14122  finish_cmds=
14123  shlibpath_var=LD_LIBRARY_PATH
14124  shlibpath_overrides_runpath=yes
14125
14126  # This implies no fast_install, which is unacceptable.
14127  # Some rework will be needed to allow for fast_install
14128  # before this can be enabled.
14129  hardcode_into_libs=yes
14130
14131  dynamic_linker='Android linker'
14132  # Don't embed -rpath directories since the linker doesn't support them.
14133  hardcode_libdir_flag_spec='-L$libdir'
14134  ;;
14135
14136# This must be glibc/ELF.
14137linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14138  version_type=linux # correct to gnu/linux during the next big refactor
14139  need_lib_prefix=no
14140  need_version=no
14141  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14142  soname_spec='$libname$release$shared_ext$major'
14143  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14144  shlibpath_var=LD_LIBRARY_PATH
14145  shlibpath_overrides_runpath=no
14146
14147  # Some binutils ld are patched to set DT_RUNPATH
14148  if test ${lt_cv_shlibpath_overrides_runpath+y}
14149then :
14150  printf %s "(cached) " >&6
14151else $as_nop
14152  lt_cv_shlibpath_overrides_runpath=no
14153    save_LDFLAGS=$LDFLAGS
14154    save_libdir=$libdir
14155    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14156	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14157    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14158/* end confdefs.h.  */
14159
14160int
14161main (void)
14162{
14163
14164  ;
14165  return 0;
14166}
14167_ACEOF
14168if ac_fn_c_try_link "$LINENO"
14169then :
14170  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
14171then :
14172  lt_cv_shlibpath_overrides_runpath=yes
14173fi
14174fi
14175rm -f core conftest.err conftest.$ac_objext conftest.beam \
14176    conftest$ac_exeext conftest.$ac_ext
14177    LDFLAGS=$save_LDFLAGS
14178    libdir=$save_libdir
14179
14180fi
14181
14182  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14183
14184  # This implies no fast_install, which is unacceptable.
14185  # Some rework will be needed to allow for fast_install
14186  # before this can be enabled.
14187  hardcode_into_libs=yes
14188
14189  # Ideally, we could use ldconfig to report *all* directores which are
14190  # searched for libraries, however this is still not possible.  Aside from not
14191  # being certain /sbin/ldconfig is available, command
14192  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14193  # even though it is searched at run-time.  Try to do the best guess by
14194  # appending ld.so.conf contents (and includes) to the search path.
14195  if test -f /etc/ld.so.conf; then
14196    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' ' '`
14197    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14198  fi
14199
14200  # We used to test for /lib/ld.so.1 and disable shared libraries on
14201  # powerpc, because MkLinux only supported shared libraries with the
14202  # GNU dynamic linker.  Since this was broken with cross compilers,
14203  # most powerpc-linux boxes support dynamic linking these days and
14204  # people can always --disable-shared, the test was removed, and we
14205  # assume the GNU/Linux dynamic linker is in use.
14206  dynamic_linker='GNU/Linux ld.so'
14207  ;;
14208
14209netbsd*)
14210  version_type=sunos
14211  need_lib_prefix=no
14212  need_version=no
14213  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14214    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14215    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14216    dynamic_linker='NetBSD (a.out) ld.so'
14217  else
14218    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14219    soname_spec='$libname$release$shared_ext$major'
14220    dynamic_linker='NetBSD ld.elf_so'
14221  fi
14222  shlibpath_var=LD_LIBRARY_PATH
14223  shlibpath_overrides_runpath=yes
14224  hardcode_into_libs=yes
14225  ;;
14226
14227newsos6)
14228  version_type=linux # correct to gnu/linux during the next big refactor
14229  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14230  shlibpath_var=LD_LIBRARY_PATH
14231  shlibpath_overrides_runpath=yes
14232  ;;
14233
14234*nto* | *qnx*)
14235  version_type=qnx
14236  need_lib_prefix=no
14237  need_version=no
14238  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14239  soname_spec='$libname$release$shared_ext$major'
14240  shlibpath_var=LD_LIBRARY_PATH
14241  shlibpath_overrides_runpath=no
14242  hardcode_into_libs=yes
14243  dynamic_linker='ldqnx.so'
14244  ;;
14245
14246openbsd* | bitrig*)
14247  version_type=sunos
14248  sys_lib_dlsearch_path_spec=/usr/lib
14249  need_lib_prefix=no
14250  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14251    need_version=no
14252  else
14253    need_version=yes
14254  fi
14255  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14256  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14257  shlibpath_var=LD_LIBRARY_PATH
14258  shlibpath_overrides_runpath=yes
14259  ;;
14260
14261os2*)
14262  libname_spec='$name'
14263  version_type=windows
14264  shrext_cmds=.dll
14265  need_version=no
14266  need_lib_prefix=no
14267  # OS/2 can only load a DLL with a base name of 8 characters or less.
14268  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14269    v=$($ECHO $release$versuffix | tr -d .-);
14270    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14271    $ECHO $n$v`$shared_ext'
14272  library_names_spec='${libname}_dll.$libext'
14273  dynamic_linker='OS/2 ld.exe'
14274  shlibpath_var=BEGINLIBPATH
14275  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14276  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14277  postinstall_cmds='base_file=`basename \$file`~
14278    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14279    dldir=$destdir/`dirname \$dlpath`~
14280    test -d \$dldir || mkdir -p \$dldir~
14281    $install_prog $dir/$dlname \$dldir/$dlname~
14282    chmod a+x \$dldir/$dlname~
14283    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14284      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14285    fi'
14286  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14287    dlpath=$dir/\$dldll~
14288    $RM \$dlpath'
14289  ;;
14290
14291osf3* | osf4* | osf5*)
14292  version_type=osf
14293  need_lib_prefix=no
14294  need_version=no
14295  soname_spec='$libname$release$shared_ext$major'
14296  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14297  shlibpath_var=LD_LIBRARY_PATH
14298  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14299  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14300  ;;
14301
14302rdos*)
14303  dynamic_linker=no
14304  ;;
14305
14306solaris*)
14307  version_type=linux # correct to gnu/linux during the next big refactor
14308  need_lib_prefix=no
14309  need_version=no
14310  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14311  soname_spec='$libname$release$shared_ext$major'
14312  shlibpath_var=LD_LIBRARY_PATH
14313  shlibpath_overrides_runpath=yes
14314  hardcode_into_libs=yes
14315  # ldd complains unless libraries are executable
14316  postinstall_cmds='chmod +x $lib'
14317  ;;
14318
14319sunos4*)
14320  version_type=sunos
14321  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14322  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14323  shlibpath_var=LD_LIBRARY_PATH
14324  shlibpath_overrides_runpath=yes
14325  if test yes = "$with_gnu_ld"; then
14326    need_lib_prefix=no
14327  fi
14328  need_version=yes
14329  ;;
14330
14331sysv4 | sysv4.3*)
14332  version_type=linux # correct to gnu/linux during the next big refactor
14333  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14334  soname_spec='$libname$release$shared_ext$major'
14335  shlibpath_var=LD_LIBRARY_PATH
14336  case $host_vendor in
14337    sni)
14338      shlibpath_overrides_runpath=no
14339      need_lib_prefix=no
14340      runpath_var=LD_RUN_PATH
14341      ;;
14342    siemens)
14343      need_lib_prefix=no
14344      ;;
14345    motorola)
14346      need_lib_prefix=no
14347      need_version=no
14348      shlibpath_overrides_runpath=no
14349      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14350      ;;
14351  esac
14352  ;;
14353
14354sysv4*MP*)
14355  if test -d /usr/nec; then
14356    version_type=linux # correct to gnu/linux during the next big refactor
14357    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14358    soname_spec='$libname$shared_ext.$major'
14359    shlibpath_var=LD_LIBRARY_PATH
14360  fi
14361  ;;
14362
14363sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14364  version_type=sco
14365  need_lib_prefix=no
14366  need_version=no
14367  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14368  soname_spec='$libname$release$shared_ext$major'
14369  shlibpath_var=LD_LIBRARY_PATH
14370  shlibpath_overrides_runpath=yes
14371  hardcode_into_libs=yes
14372  if test yes = "$with_gnu_ld"; then
14373    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14374  else
14375    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14376    case $host_os in
14377      sco3.2v5*)
14378        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14379	;;
14380    esac
14381  fi
14382  sys_lib_dlsearch_path_spec='/usr/lib'
14383  ;;
14384
14385tpf*)
14386  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14387  version_type=linux # correct to gnu/linux during the next big refactor
14388  need_lib_prefix=no
14389  need_version=no
14390  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14391  shlibpath_var=LD_LIBRARY_PATH
14392  shlibpath_overrides_runpath=no
14393  hardcode_into_libs=yes
14394  ;;
14395
14396uts4*)
14397  version_type=linux # correct to gnu/linux during the next big refactor
14398  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14399  soname_spec='$libname$release$shared_ext$major'
14400  shlibpath_var=LD_LIBRARY_PATH
14401  ;;
14402
14403*)
14404  dynamic_linker=no
14405  ;;
14406esac
14407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14408printf "%s\n" "$dynamic_linker" >&6; }
14409test no = "$dynamic_linker" && can_build_shared=no
14410
14411variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14412if test yes = "$GCC"; then
14413  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14414fi
14415
14416if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14417  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14418fi
14419
14420if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14421  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14422fi
14423
14424# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14425configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14426
14427# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14428func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14429
14430# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14431configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14530printf %s "checking how to hardcode library paths into programs... " >&6; }
14531hardcode_action=
14532if test -n "$hardcode_libdir_flag_spec" ||
14533   test -n "$runpath_var" ||
14534   test yes = "$hardcode_automatic"; then
14535
14536  # We can hardcode non-existent directories.
14537  if test no != "$hardcode_direct" &&
14538     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14539     # have to relink, otherwise we might link with an installed library
14540     # when we should be linking with a yet-to-be-installed one
14541     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14542     test no != "$hardcode_minus_L"; then
14543    # Linking always hardcodes the temporary library directory.
14544    hardcode_action=relink
14545  else
14546    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14547    hardcode_action=immediate
14548  fi
14549else
14550  # We cannot hardcode anything, or else we can only hardcode existing
14551  # directories.
14552  hardcode_action=unsupported
14553fi
14554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14555printf "%s\n" "$hardcode_action" >&6; }
14556
14557if test relink = "$hardcode_action" ||
14558   test yes = "$inherit_rpath"; then
14559  # Fast installation is not supported
14560  enable_fast_install=no
14561elif test yes = "$shlibpath_overrides_runpath" ||
14562     test no = "$enable_shared"; then
14563  # Fast installation is not necessary
14564  enable_fast_install=needless
14565fi
14566
14567
14568
14569
14570
14571
14572  if test yes != "$enable_dlopen"; then
14573  enable_dlopen=unknown
14574  enable_dlopen_self=unknown
14575  enable_dlopen_self_static=unknown
14576else
14577  lt_cv_dlopen=no
14578  lt_cv_dlopen_libs=
14579
14580  case $host_os in
14581  beos*)
14582    lt_cv_dlopen=load_add_on
14583    lt_cv_dlopen_libs=
14584    lt_cv_dlopen_self=yes
14585    ;;
14586
14587  mingw* | pw32* | cegcc*)
14588    lt_cv_dlopen=LoadLibrary
14589    lt_cv_dlopen_libs=
14590    ;;
14591
14592  cygwin*)
14593    lt_cv_dlopen=dlopen
14594    lt_cv_dlopen_libs=
14595    ;;
14596
14597  darwin*)
14598    # if libdl is installed we need to link against it
14599    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14600printf %s "checking for dlopen in -ldl... " >&6; }
14601if test ${ac_cv_lib_dl_dlopen+y}
14602then :
14603  printf %s "(cached) " >&6
14604else $as_nop
14605  ac_check_lib_save_LIBS=$LIBS
14606LIBS="-ldl  $LIBS"
14607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14608/* end confdefs.h.  */
14609
14610/* Override any GCC internal prototype to avoid an error.
14611   Use char because int might match the return type of a GCC
14612   builtin and then its argument prototype would still apply.  */
14613char dlopen ();
14614int
14615main (void)
14616{
14617return dlopen ();
14618  ;
14619  return 0;
14620}
14621_ACEOF
14622if ac_fn_c_try_link "$LINENO"
14623then :
14624  ac_cv_lib_dl_dlopen=yes
14625else $as_nop
14626  ac_cv_lib_dl_dlopen=no
14627fi
14628rm -f core conftest.err conftest.$ac_objext conftest.beam \
14629    conftest$ac_exeext conftest.$ac_ext
14630LIBS=$ac_check_lib_save_LIBS
14631fi
14632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14633printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14634if test "x$ac_cv_lib_dl_dlopen" = xyes
14635then :
14636  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14637else $as_nop
14638
14639    lt_cv_dlopen=dyld
14640    lt_cv_dlopen_libs=
14641    lt_cv_dlopen_self=yes
14642
14643fi
14644
14645    ;;
14646
14647  tpf*)
14648    # Don't try to run any link tests for TPF.  We know it's impossible
14649    # because TPF is a cross-compiler, and we know how we open DSOs.
14650    lt_cv_dlopen=dlopen
14651    lt_cv_dlopen_libs=
14652    lt_cv_dlopen_self=no
14653    ;;
14654
14655  *)
14656    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14657if test "x$ac_cv_func_shl_load" = xyes
14658then :
14659  lt_cv_dlopen=shl_load
14660else $as_nop
14661  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14662printf %s "checking for shl_load in -ldld... " >&6; }
14663if test ${ac_cv_lib_dld_shl_load+y}
14664then :
14665  printf %s "(cached) " >&6
14666else $as_nop
14667  ac_check_lib_save_LIBS=$LIBS
14668LIBS="-ldld  $LIBS"
14669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14670/* end confdefs.h.  */
14671
14672/* Override any GCC internal prototype to avoid an error.
14673   Use char because int might match the return type of a GCC
14674   builtin and then its argument prototype would still apply.  */
14675char shl_load ();
14676int
14677main (void)
14678{
14679return shl_load ();
14680  ;
14681  return 0;
14682}
14683_ACEOF
14684if ac_fn_c_try_link "$LINENO"
14685then :
14686  ac_cv_lib_dld_shl_load=yes
14687else $as_nop
14688  ac_cv_lib_dld_shl_load=no
14689fi
14690rm -f core conftest.err conftest.$ac_objext conftest.beam \
14691    conftest$ac_exeext conftest.$ac_ext
14692LIBS=$ac_check_lib_save_LIBS
14693fi
14694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14695printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14696if test "x$ac_cv_lib_dld_shl_load" = xyes
14697then :
14698  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14699else $as_nop
14700  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14701if test "x$ac_cv_func_dlopen" = xyes
14702then :
14703  lt_cv_dlopen=dlopen
14704else $as_nop
14705  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14706printf %s "checking for dlopen in -ldl... " >&6; }
14707if test ${ac_cv_lib_dl_dlopen+y}
14708then :
14709  printf %s "(cached) " >&6
14710else $as_nop
14711  ac_check_lib_save_LIBS=$LIBS
14712LIBS="-ldl  $LIBS"
14713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14714/* end confdefs.h.  */
14715
14716/* Override any GCC internal prototype to avoid an error.
14717   Use char because int might match the return type of a GCC
14718   builtin and then its argument prototype would still apply.  */
14719char dlopen ();
14720int
14721main (void)
14722{
14723return dlopen ();
14724  ;
14725  return 0;
14726}
14727_ACEOF
14728if ac_fn_c_try_link "$LINENO"
14729then :
14730  ac_cv_lib_dl_dlopen=yes
14731else $as_nop
14732  ac_cv_lib_dl_dlopen=no
14733fi
14734rm -f core conftest.err conftest.$ac_objext conftest.beam \
14735    conftest$ac_exeext conftest.$ac_ext
14736LIBS=$ac_check_lib_save_LIBS
14737fi
14738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14739printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14740if test "x$ac_cv_lib_dl_dlopen" = xyes
14741then :
14742  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14743else $as_nop
14744  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14745printf %s "checking for dlopen in -lsvld... " >&6; }
14746if test ${ac_cv_lib_svld_dlopen+y}
14747then :
14748  printf %s "(cached) " >&6
14749else $as_nop
14750  ac_check_lib_save_LIBS=$LIBS
14751LIBS="-lsvld  $LIBS"
14752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14753/* end confdefs.h.  */
14754
14755/* Override any GCC internal prototype to avoid an error.
14756   Use char because int might match the return type of a GCC
14757   builtin and then its argument prototype would still apply.  */
14758char dlopen ();
14759int
14760main (void)
14761{
14762return dlopen ();
14763  ;
14764  return 0;
14765}
14766_ACEOF
14767if ac_fn_c_try_link "$LINENO"
14768then :
14769  ac_cv_lib_svld_dlopen=yes
14770else $as_nop
14771  ac_cv_lib_svld_dlopen=no
14772fi
14773rm -f core conftest.err conftest.$ac_objext conftest.beam \
14774    conftest$ac_exeext conftest.$ac_ext
14775LIBS=$ac_check_lib_save_LIBS
14776fi
14777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14778printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14779if test "x$ac_cv_lib_svld_dlopen" = xyes
14780then :
14781  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14782else $as_nop
14783  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14784printf %s "checking for dld_link in -ldld... " >&6; }
14785if test ${ac_cv_lib_dld_dld_link+y}
14786then :
14787  printf %s "(cached) " >&6
14788else $as_nop
14789  ac_check_lib_save_LIBS=$LIBS
14790LIBS="-ldld  $LIBS"
14791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14792/* end confdefs.h.  */
14793
14794/* Override any GCC internal prototype to avoid an error.
14795   Use char because int might match the return type of a GCC
14796   builtin and then its argument prototype would still apply.  */
14797char dld_link ();
14798int
14799main (void)
14800{
14801return dld_link ();
14802  ;
14803  return 0;
14804}
14805_ACEOF
14806if ac_fn_c_try_link "$LINENO"
14807then :
14808  ac_cv_lib_dld_dld_link=yes
14809else $as_nop
14810  ac_cv_lib_dld_dld_link=no
14811fi
14812rm -f core conftest.err conftest.$ac_objext conftest.beam \
14813    conftest$ac_exeext conftest.$ac_ext
14814LIBS=$ac_check_lib_save_LIBS
14815fi
14816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14817printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14818if test "x$ac_cv_lib_dld_dld_link" = xyes
14819then :
14820  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14821fi
14822
14823
14824fi
14825
14826
14827fi
14828
14829
14830fi
14831
14832
14833fi
14834
14835
14836fi
14837
14838    ;;
14839  esac
14840
14841  if test no = "$lt_cv_dlopen"; then
14842    enable_dlopen=no
14843  else
14844    enable_dlopen=yes
14845  fi
14846
14847  case $lt_cv_dlopen in
14848  dlopen)
14849    save_CPPFLAGS=$CPPFLAGS
14850    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14851
14852    save_LDFLAGS=$LDFLAGS
14853    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14854
14855    save_LIBS=$LIBS
14856    LIBS="$lt_cv_dlopen_libs $LIBS"
14857
14858    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14859printf %s "checking whether a program can dlopen itself... " >&6; }
14860if test ${lt_cv_dlopen_self+y}
14861then :
14862  printf %s "(cached) " >&6
14863else $as_nop
14864  	  if test yes = "$cross_compiling"; then :
14865  lt_cv_dlopen_self=cross
14866else
14867  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14868  lt_status=$lt_dlunknown
14869  cat > conftest.$ac_ext <<_LT_EOF
14870#line $LINENO "configure"
14871#include "confdefs.h"
14872
14873#if HAVE_DLFCN_H
14874#include <dlfcn.h>
14875#endif
14876
14877#include <stdio.h>
14878
14879#ifdef RTLD_GLOBAL
14880#  define LT_DLGLOBAL		RTLD_GLOBAL
14881#else
14882#  ifdef DL_GLOBAL
14883#    define LT_DLGLOBAL		DL_GLOBAL
14884#  else
14885#    define LT_DLGLOBAL		0
14886#  endif
14887#endif
14888
14889/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14890   find out it does not work in some platform. */
14891#ifndef LT_DLLAZY_OR_NOW
14892#  ifdef RTLD_LAZY
14893#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14894#  else
14895#    ifdef DL_LAZY
14896#      define LT_DLLAZY_OR_NOW		DL_LAZY
14897#    else
14898#      ifdef RTLD_NOW
14899#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14900#      else
14901#        ifdef DL_NOW
14902#          define LT_DLLAZY_OR_NOW	DL_NOW
14903#        else
14904#          define LT_DLLAZY_OR_NOW	0
14905#        endif
14906#      endif
14907#    endif
14908#  endif
14909#endif
14910
14911/* When -fvisibility=hidden is used, assume the code has been annotated
14912   correspondingly for the symbols needed.  */
14913#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14914int fnord () __attribute__((visibility("default")));
14915#endif
14916
14917int fnord () { return 42; }
14918int main ()
14919{
14920  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14921  int status = $lt_dlunknown;
14922
14923  if (self)
14924    {
14925      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14926      else
14927        {
14928	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14929          else puts (dlerror ());
14930	}
14931      /* dlclose (self); */
14932    }
14933  else
14934    puts (dlerror ());
14935
14936  return status;
14937}
14938_LT_EOF
14939  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14940  (eval $ac_link) 2>&5
14941  ac_status=$?
14942  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14943  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14944    (./conftest; exit; ) >&5 2>/dev/null
14945    lt_status=$?
14946    case x$lt_status in
14947      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14948      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14949      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14950    esac
14951  else :
14952    # compilation failed
14953    lt_cv_dlopen_self=no
14954  fi
14955fi
14956rm -fr conftest*
14957
14958
14959fi
14960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14961printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14962
14963    if test yes = "$lt_cv_dlopen_self"; then
14964      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14965      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14966printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14967if test ${lt_cv_dlopen_self_static+y}
14968then :
14969  printf %s "(cached) " >&6
14970else $as_nop
14971  	  if test yes = "$cross_compiling"; then :
14972  lt_cv_dlopen_self_static=cross
14973else
14974  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14975  lt_status=$lt_dlunknown
14976  cat > conftest.$ac_ext <<_LT_EOF
14977#line $LINENO "configure"
14978#include "confdefs.h"
14979
14980#if HAVE_DLFCN_H
14981#include <dlfcn.h>
14982#endif
14983
14984#include <stdio.h>
14985
14986#ifdef RTLD_GLOBAL
14987#  define LT_DLGLOBAL		RTLD_GLOBAL
14988#else
14989#  ifdef DL_GLOBAL
14990#    define LT_DLGLOBAL		DL_GLOBAL
14991#  else
14992#    define LT_DLGLOBAL		0
14993#  endif
14994#endif
14995
14996/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14997   find out it does not work in some platform. */
14998#ifndef LT_DLLAZY_OR_NOW
14999#  ifdef RTLD_LAZY
15000#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15001#  else
15002#    ifdef DL_LAZY
15003#      define LT_DLLAZY_OR_NOW		DL_LAZY
15004#    else
15005#      ifdef RTLD_NOW
15006#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15007#      else
15008#        ifdef DL_NOW
15009#          define LT_DLLAZY_OR_NOW	DL_NOW
15010#        else
15011#          define LT_DLLAZY_OR_NOW	0
15012#        endif
15013#      endif
15014#    endif
15015#  endif
15016#endif
15017
15018/* When -fvisibility=hidden is used, assume the code has been annotated
15019   correspondingly for the symbols needed.  */
15020#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15021int fnord () __attribute__((visibility("default")));
15022#endif
15023
15024int fnord () { return 42; }
15025int main ()
15026{
15027  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15028  int status = $lt_dlunknown;
15029
15030  if (self)
15031    {
15032      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15033      else
15034        {
15035	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15036          else puts (dlerror ());
15037	}
15038      /* dlclose (self); */
15039    }
15040  else
15041    puts (dlerror ());
15042
15043  return status;
15044}
15045_LT_EOF
15046  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15047  (eval $ac_link) 2>&5
15048  ac_status=$?
15049  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15050  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15051    (./conftest; exit; ) >&5 2>/dev/null
15052    lt_status=$?
15053    case x$lt_status in
15054      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15055      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15056      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15057    esac
15058  else :
15059    # compilation failed
15060    lt_cv_dlopen_self_static=no
15061  fi
15062fi
15063rm -fr conftest*
15064
15065
15066fi
15067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15068printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
15069    fi
15070
15071    CPPFLAGS=$save_CPPFLAGS
15072    LDFLAGS=$save_LDFLAGS
15073    LIBS=$save_LIBS
15074    ;;
15075  esac
15076
15077  case $lt_cv_dlopen_self in
15078  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15079  *) enable_dlopen_self=unknown ;;
15080  esac
15081
15082  case $lt_cv_dlopen_self_static in
15083  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15084  *) enable_dlopen_self_static=unknown ;;
15085  esac
15086fi
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104striplib=
15105old_striplib=
15106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15107printf %s "checking whether stripping libraries is possible... " >&6; }
15108if test -z "$STRIP"; then
15109  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15110printf "%s\n" "no" >&6; }
15111else
15112  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15113    old_striplib="$STRIP --strip-debug"
15114    striplib="$STRIP --strip-unneeded"
15115    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15116printf "%s\n" "yes" >&6; }
15117  else
15118    case $host_os in
15119    darwin*)
15120      # FIXME - insert some real tests, host_os isn't really good enough
15121      striplib="$STRIP -x"
15122      old_striplib="$STRIP -S"
15123      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15124printf "%s\n" "yes" >&6; }
15125      ;;
15126    freebsd*)
15127      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15128        old_striplib="$STRIP --strip-debug"
15129        striplib="$STRIP --strip-unneeded"
15130        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15131printf "%s\n" "yes" >&6; }
15132      else
15133        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15134printf "%s\n" "no" >&6; }
15135      fi
15136      ;;
15137    *)
15138      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15139printf "%s\n" "no" >&6; }
15140      ;;
15141    esac
15142  fi
15143fi
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156  # Report what library types will actually be built
15157  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15158printf %s "checking if libtool supports shared libraries... " >&6; }
15159  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15160printf "%s\n" "$can_build_shared" >&6; }
15161
15162  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15163printf %s "checking whether to build shared libraries... " >&6; }
15164  test no = "$can_build_shared" && enable_shared=no
15165
15166  # On AIX, shared libraries and static libraries use the same namespace, and
15167  # are all built from PIC.
15168  case $host_os in
15169  aix3*)
15170    test yes = "$enable_shared" && enable_static=no
15171    if test -n "$RANLIB"; then
15172      archive_cmds="$archive_cmds~\$RANLIB \$lib"
15173      postinstall_cmds='$RANLIB $lib'
15174    fi
15175    ;;
15176
15177  aix[4-9]*)
15178    if test ia64 != "$host_cpu"; then
15179      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15180      yes,aix,yes) ;;			# shared object as lib.so file only
15181      yes,svr4,*) ;;			# shared object as lib.so archive member only
15182      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
15183      esac
15184    fi
15185    ;;
15186  esac
15187  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15188printf "%s\n" "$enable_shared" >&6; }
15189
15190  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15191printf %s "checking whether to build static libraries... " >&6; }
15192  # Make sure either enable_shared or enable_static is yes.
15193  test yes = "$enable_shared" || enable_static=yes
15194  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15195printf "%s\n" "$enable_static" >&6; }
15196
15197
15198
15199
15200fi
15201ac_ext=c
15202ac_cpp='$CPP $CPPFLAGS'
15203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15205ac_compiler_gnu=$ac_cv_c_compiler_gnu
15206
15207CC=$lt_save_CC
15208
15209      if test -n "$CXX" && ( test no != "$CXX" &&
15210    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15211    (test g++ != "$CXX"))); then
15212  ac_ext=cpp
15213ac_cpp='$CXXCPP $CPPFLAGS'
15214ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15215ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15216ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15218printf %s "checking how to run the C++ preprocessor... " >&6; }
15219if test -z "$CXXCPP"; then
15220  if test ${ac_cv_prog_CXXCPP+y}
15221then :
15222  printf %s "(cached) " >&6
15223else $as_nop
15224      # Double quotes because $CXX needs to be expanded
15225    for CXXCPP in "$CXX -E" cpp /lib/cpp
15226    do
15227      ac_preproc_ok=false
15228for ac_cxx_preproc_warn_flag in '' yes
15229do
15230  # Use a header file that comes with gcc, so configuring glibc
15231  # with a fresh cross-compiler works.
15232  # On the NeXT, cc -E runs the code through the compiler's parser,
15233  # not just through cpp. "Syntax error" is here to catch this case.
15234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15235/* end confdefs.h.  */
15236#include <limits.h>
15237		     Syntax error
15238_ACEOF
15239if ac_fn_cxx_try_cpp "$LINENO"
15240then :
15241
15242else $as_nop
15243  # Broken: fails on valid input.
15244continue
15245fi
15246rm -f conftest.err conftest.i conftest.$ac_ext
15247
15248  # OK, works on sane cases.  Now check whether nonexistent headers
15249  # can be detected and how.
15250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15251/* end confdefs.h.  */
15252#include <ac_nonexistent.h>
15253_ACEOF
15254if ac_fn_cxx_try_cpp "$LINENO"
15255then :
15256  # Broken: success on invalid input.
15257continue
15258else $as_nop
15259  # Passes both tests.
15260ac_preproc_ok=:
15261break
15262fi
15263rm -f conftest.err conftest.i conftest.$ac_ext
15264
15265done
15266# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15267rm -f conftest.i conftest.err conftest.$ac_ext
15268if $ac_preproc_ok
15269then :
15270  break
15271fi
15272
15273    done
15274    ac_cv_prog_CXXCPP=$CXXCPP
15275
15276fi
15277  CXXCPP=$ac_cv_prog_CXXCPP
15278else
15279  ac_cv_prog_CXXCPP=$CXXCPP
15280fi
15281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15282printf "%s\n" "$CXXCPP" >&6; }
15283ac_preproc_ok=false
15284for ac_cxx_preproc_warn_flag in '' yes
15285do
15286  # Use a header file that comes with gcc, so configuring glibc
15287  # with a fresh cross-compiler works.
15288  # On the NeXT, cc -E runs the code through the compiler's parser,
15289  # not just through cpp. "Syntax error" is here to catch this case.
15290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15291/* end confdefs.h.  */
15292#include <limits.h>
15293		     Syntax error
15294_ACEOF
15295if ac_fn_cxx_try_cpp "$LINENO"
15296then :
15297
15298else $as_nop
15299  # Broken: fails on valid input.
15300continue
15301fi
15302rm -f conftest.err conftest.i conftest.$ac_ext
15303
15304  # OK, works on sane cases.  Now check whether nonexistent headers
15305  # can be detected and how.
15306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15307/* end confdefs.h.  */
15308#include <ac_nonexistent.h>
15309_ACEOF
15310if ac_fn_cxx_try_cpp "$LINENO"
15311then :
15312  # Broken: success on invalid input.
15313continue
15314else $as_nop
15315  # Passes both tests.
15316ac_preproc_ok=:
15317break
15318fi
15319rm -f conftest.err conftest.i conftest.$ac_ext
15320
15321done
15322# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15323rm -f conftest.i conftest.err conftest.$ac_ext
15324if $ac_preproc_ok
15325then :
15326
15327else $as_nop
15328  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15329printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15330as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15331See \`config.log' for more details" "$LINENO" 5; }
15332fi
15333
15334ac_ext=c
15335ac_cpp='$CPP $CPPFLAGS'
15336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15338ac_compiler_gnu=$ac_cv_c_compiler_gnu
15339
15340else
15341  _lt_caught_CXX_error=yes
15342fi
15343
15344ac_ext=cpp
15345ac_cpp='$CXXCPP $CPPFLAGS'
15346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15349
15350archive_cmds_need_lc_CXX=no
15351allow_undefined_flag_CXX=
15352always_export_symbols_CXX=no
15353archive_expsym_cmds_CXX=
15354compiler_needs_object_CXX=no
15355export_dynamic_flag_spec_CXX=
15356hardcode_direct_CXX=no
15357hardcode_direct_absolute_CXX=no
15358hardcode_libdir_flag_spec_CXX=
15359hardcode_libdir_separator_CXX=
15360hardcode_minus_L_CXX=no
15361hardcode_shlibpath_var_CXX=unsupported
15362hardcode_automatic_CXX=no
15363inherit_rpath_CXX=no
15364module_cmds_CXX=
15365module_expsym_cmds_CXX=
15366link_all_deplibs_CXX=unknown
15367old_archive_cmds_CXX=$old_archive_cmds
15368reload_flag_CXX=$reload_flag
15369reload_cmds_CXX=$reload_cmds
15370no_undefined_flag_CXX=
15371whole_archive_flag_spec_CXX=
15372enable_shared_with_static_runtimes_CXX=no
15373
15374# Source file extension for C++ test sources.
15375ac_ext=cpp
15376
15377# Object file extension for compiled C++ test sources.
15378objext=o
15379objext_CXX=$objext
15380
15381# No sense in running all these tests if we already determined that
15382# the CXX compiler isn't working.  Some variables (like enable_shared)
15383# are currently assumed to apply to all compilers on this platform,
15384# and will be corrupted by setting them based on a non-working compiler.
15385if test yes != "$_lt_caught_CXX_error"; then
15386  # Code to be used in simple compile tests
15387  lt_simple_compile_test_code="int some_variable = 0;"
15388
15389  # Code to be used in simple link tests
15390  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15391
15392  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15393
15394
15395
15396
15397
15398
15399# If no C compiler was specified, use CC.
15400LTCC=${LTCC-"$CC"}
15401
15402# If no C compiler flags were specified, use CFLAGS.
15403LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15404
15405# Allow CC to be a program name with arguments.
15406compiler=$CC
15407
15408
15409  # save warnings/boilerplate of simple test code
15410  ac_outfile=conftest.$ac_objext
15411echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15412eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15413_lt_compiler_boilerplate=`cat conftest.err`
15414$RM conftest*
15415
15416  ac_outfile=conftest.$ac_objext
15417echo "$lt_simple_link_test_code" >conftest.$ac_ext
15418eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15419_lt_linker_boilerplate=`cat conftest.err`
15420$RM -r conftest*
15421
15422
15423  # Allow CC to be a program name with arguments.
15424  lt_save_CC=$CC
15425  lt_save_CFLAGS=$CFLAGS
15426  lt_save_LD=$LD
15427  lt_save_GCC=$GCC
15428  GCC=$GXX
15429  lt_save_with_gnu_ld=$with_gnu_ld
15430  lt_save_path_LD=$lt_cv_path_LD
15431  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15432    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15433  else
15434    $as_unset lt_cv_prog_gnu_ld
15435  fi
15436  if test -n "${lt_cv_path_LDCXX+set}"; then
15437    lt_cv_path_LD=$lt_cv_path_LDCXX
15438  else
15439    $as_unset lt_cv_path_LD
15440  fi
15441  test -z "${LDCXX+set}" || LD=$LDCXX
15442  CC=${CXX-"c++"}
15443  CFLAGS=$CXXFLAGS
15444  compiler=$CC
15445  compiler_CXX=$CC
15446  func_cc_basename $compiler
15447cc_basename=$func_cc_basename_result
15448
15449
15450  if test -n "$compiler"; then
15451    # We don't want -fno-exception when compiling C++ code, so set the
15452    # no_builtin_flag separately
15453    if test yes = "$GXX"; then
15454      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15455    else
15456      lt_prog_compiler_no_builtin_flag_CXX=
15457    fi
15458
15459    if test yes = "$GXX"; then
15460      # Set up default GNU C++ configuration
15461
15462
15463
15464# Check whether --with-gnu-ld was given.
15465if test ${with_gnu_ld+y}
15466then :
15467  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15468else $as_nop
15469  with_gnu_ld=no
15470fi
15471
15472ac_prog=ld
15473if test yes = "$GCC"; then
15474  # Check if gcc -print-prog-name=ld gives a path.
15475  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15476printf %s "checking for ld used by $CC... " >&6; }
15477  case $host in
15478  *-*-mingw*)
15479    # gcc leaves a trailing carriage return, which upsets mingw
15480    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15481  *)
15482    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15483  esac
15484  case $ac_prog in
15485    # Accept absolute paths.
15486    [\\/]* | ?:[\\/]*)
15487      re_direlt='/[^/][^/]*/\.\./'
15488      # Canonicalize the pathname of ld
15489      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15490      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15491	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15492      done
15493      test -z "$LD" && LD=$ac_prog
15494      ;;
15495  "")
15496    # If it fails, then pretend we aren't using GCC.
15497    ac_prog=ld
15498    ;;
15499  *)
15500    # If it is relative, then search for the first ld in PATH.
15501    with_gnu_ld=unknown
15502    ;;
15503  esac
15504elif test yes = "$with_gnu_ld"; then
15505  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15506printf %s "checking for GNU ld... " >&6; }
15507else
15508  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15509printf %s "checking for non-GNU ld... " >&6; }
15510fi
15511if test ${lt_cv_path_LD+y}
15512then :
15513  printf %s "(cached) " >&6
15514else $as_nop
15515  if test -z "$LD"; then
15516  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15517  for ac_dir in $PATH; do
15518    IFS=$lt_save_ifs
15519    test -z "$ac_dir" && ac_dir=.
15520    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15521      lt_cv_path_LD=$ac_dir/$ac_prog
15522      # Check to see if the program is GNU ld.  I'd rather use --version,
15523      # but apparently some variants of GNU ld only accept -v.
15524      # Break only if it was the GNU/non-GNU ld that we prefer.
15525      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15526      *GNU* | *'with BFD'*)
15527	test no != "$with_gnu_ld" && break
15528	;;
15529      *)
15530	test yes != "$with_gnu_ld" && break
15531	;;
15532      esac
15533    fi
15534  done
15535  IFS=$lt_save_ifs
15536else
15537  lt_cv_path_LD=$LD # Let the user override the test with a path.
15538fi
15539fi
15540
15541LD=$lt_cv_path_LD
15542if test -n "$LD"; then
15543  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15544printf "%s\n" "$LD" >&6; }
15545else
15546  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15547printf "%s\n" "no" >&6; }
15548fi
15549test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15551printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
15552if test ${lt_cv_prog_gnu_ld+y}
15553then :
15554  printf %s "(cached) " >&6
15555else $as_nop
15556  # I'd rather use --version here, but apparently some GNU lds only accept -v.
15557case `$LD -v 2>&1 </dev/null` in
15558*GNU* | *'with BFD'*)
15559  lt_cv_prog_gnu_ld=yes
15560  ;;
15561*)
15562  lt_cv_prog_gnu_ld=no
15563  ;;
15564esac
15565fi
15566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15567printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
15568with_gnu_ld=$lt_cv_prog_gnu_ld
15569
15570
15571
15572
15573
15574
15575
15576      # Check if GNU C++ uses GNU ld as the underlying linker, since the
15577      # archiving commands below assume that GNU ld is being used.
15578      if test yes = "$with_gnu_ld"; then
15579        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15580        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'
15581
15582        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15583        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15584
15585        # If archive_cmds runs LD, not CC, wlarc should be empty
15586        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15587        #     investigate it a little bit more. (MM)
15588        wlarc='$wl'
15589
15590        # ancient GNU ld didn't support --whole-archive et. al.
15591        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15592	  $GREP 'no-whole-archive' > /dev/null; then
15593          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15594        else
15595          whole_archive_flag_spec_CXX=
15596        fi
15597      else
15598        with_gnu_ld=no
15599        wlarc=
15600
15601        # A generic and very simple default shared library creation
15602        # command for GNU C++ for the case where it uses the native
15603        # linker, instead of GNU ld.  If possible, this setting should
15604        # overridden to take advantage of the native linker features on
15605        # the platform it is being used on.
15606        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15607      fi
15608
15609      # Commands to make compiler produce verbose output that lists
15610      # what "hidden" libraries, object files and flags are used when
15611      # linking a shared library.
15612      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15613
15614    else
15615      GXX=no
15616      with_gnu_ld=no
15617      wlarc=
15618    fi
15619
15620    # PORTME: fill in a description of your system's C++ link characteristics
15621    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15622printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15623    ld_shlibs_CXX=yes
15624    case $host_os in
15625      aix3*)
15626        # FIXME: insert proper C++ library support
15627        ld_shlibs_CXX=no
15628        ;;
15629      aix[4-9]*)
15630        if test ia64 = "$host_cpu"; then
15631          # On IA64, the linker does run time linking by default, so we don't
15632          # have to do anything special.
15633          aix_use_runtimelinking=no
15634          exp_sym_flag='-Bexport'
15635          no_entry_flag=
15636        else
15637          aix_use_runtimelinking=no
15638
15639          # Test if we are trying to use run time linking or normal
15640          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15641          # have runtime linking enabled, and use it for executables.
15642          # For shared libraries, we enable/disable runtime linking
15643          # depending on the kind of the shared library created -
15644          # when "with_aix_soname,aix_use_runtimelinking" is:
15645          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15646          # "aix,yes"  lib.so          shared, rtl:yes, for executables
15647          #            lib.a           static archive
15648          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
15649          #            lib.a(lib.so.V) shared, rtl:no,  for executables
15650          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15651          #            lib.a(lib.so.V) shared, rtl:no
15652          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15653          #            lib.a           static archive
15654          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15655	    for ld_flag in $LDFLAGS; do
15656	      case $ld_flag in
15657	      *-brtl*)
15658	        aix_use_runtimelinking=yes
15659	        break
15660	        ;;
15661	      esac
15662	    done
15663	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15664	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
15665	      # so we don't have lib.a shared libs to link our executables.
15666	      # We have to force runtime linking in this case.
15667	      aix_use_runtimelinking=yes
15668	      LDFLAGS="$LDFLAGS -Wl,-brtl"
15669	    fi
15670	    ;;
15671          esac
15672
15673          exp_sym_flag='-bexport'
15674          no_entry_flag='-bnoentry'
15675        fi
15676
15677        # When large executables or shared objects are built, AIX ld can
15678        # have problems creating the table of contents.  If linking a library
15679        # or program results in "error TOC overflow" add -mminimal-toc to
15680        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15681        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15682
15683        archive_cmds_CXX=''
15684        hardcode_direct_CXX=yes
15685        hardcode_direct_absolute_CXX=yes
15686        hardcode_libdir_separator_CXX=':'
15687        link_all_deplibs_CXX=yes
15688        file_list_spec_CXX='$wl-f,'
15689        case $with_aix_soname,$aix_use_runtimelinking in
15690        aix,*) ;;	# no import file
15691        svr4,* | *,yes) # use import file
15692          # The Import File defines what to hardcode.
15693          hardcode_direct_CXX=no
15694          hardcode_direct_absolute_CXX=no
15695          ;;
15696        esac
15697
15698        if test yes = "$GXX"; then
15699          case $host_os in aix4.[012]|aix4.[012].*)
15700          # We only want to do this on AIX 4.2 and lower, the check
15701          # below for broken collect2 doesn't work under 4.3+
15702	  collect2name=`$CC -print-prog-name=collect2`
15703	  if test -f "$collect2name" &&
15704	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15705	  then
15706	    # We have reworked collect2
15707	    :
15708	  else
15709	    # We have old collect2
15710	    hardcode_direct_CXX=unsupported
15711	    # It fails to find uninstalled libraries when the uninstalled
15712	    # path is not listed in the libpath.  Setting hardcode_minus_L
15713	    # to unsupported forces relinking
15714	    hardcode_minus_L_CXX=yes
15715	    hardcode_libdir_flag_spec_CXX='-L$libdir'
15716	    hardcode_libdir_separator_CXX=
15717	  fi
15718          esac
15719          shared_flag='-shared'
15720	  if test yes = "$aix_use_runtimelinking"; then
15721	    shared_flag=$shared_flag' $wl-G'
15722	  fi
15723	  # Need to ensure runtime linking is disabled for the traditional
15724	  # shared library, or the linker may eventually find shared libraries
15725	  # /with/ Import File - we do not want to mix them.
15726	  shared_flag_aix='-shared'
15727	  shared_flag_svr4='-shared $wl-G'
15728        else
15729          # not using gcc
15730          if test ia64 = "$host_cpu"; then
15731	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15732	  # chokes on -Wl,-G. The following line is correct:
15733	  shared_flag='-G'
15734          else
15735	    if test yes = "$aix_use_runtimelinking"; then
15736	      shared_flag='$wl-G'
15737	    else
15738	      shared_flag='$wl-bM:SRE'
15739	    fi
15740	    shared_flag_aix='$wl-bM:SRE'
15741	    shared_flag_svr4='$wl-G'
15742          fi
15743        fi
15744
15745        export_dynamic_flag_spec_CXX='$wl-bexpall'
15746        # It seems that -bexpall does not export symbols beginning with
15747        # underscore (_), so it is better to generate a list of symbols to
15748	# export.
15749        always_export_symbols_CXX=yes
15750	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15751          # Warning - without using the other runtime loading flags (-brtl),
15752          # -berok will link without error, but may produce a broken library.
15753          # The "-G" linker flag allows undefined symbols.
15754          no_undefined_flag_CXX='-bernotok'
15755          # Determine the default libpath from the value encoded in an empty
15756          # executable.
15757          if test set = "${lt_cv_aix_libpath+set}"; then
15758  aix_libpath=$lt_cv_aix_libpath
15759else
15760  if test ${lt_cv_aix_libpath__CXX+y}
15761then :
15762  printf %s "(cached) " >&6
15763else $as_nop
15764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15765/* end confdefs.h.  */
15766
15767int
15768main (void)
15769{
15770
15771  ;
15772  return 0;
15773}
15774_ACEOF
15775if ac_fn_cxx_try_link "$LINENO"
15776then :
15777
15778  lt_aix_libpath_sed='
15779      /Import File Strings/,/^$/ {
15780	  /^0/ {
15781	      s/^0  *\([^ ]*\) *$/\1/
15782	      p
15783	  }
15784      }'
15785  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15786  # Check for a 64-bit object if we didn't find anything.
15787  if test -z "$lt_cv_aix_libpath__CXX"; then
15788    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15789  fi
15790fi
15791rm -f core conftest.err conftest.$ac_objext conftest.beam \
15792    conftest$ac_exeext conftest.$ac_ext
15793  if test -z "$lt_cv_aix_libpath__CXX"; then
15794    lt_cv_aix_libpath__CXX=/usr/lib:/lib
15795  fi
15796
15797fi
15798
15799  aix_libpath=$lt_cv_aix_libpath__CXX
15800fi
15801
15802          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15803
15804          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
15805        else
15806          if test ia64 = "$host_cpu"; then
15807	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15808	    allow_undefined_flag_CXX="-z nodefs"
15809	    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"
15810          else
15811	    # Determine the default libpath from the value encoded in an
15812	    # empty executable.
15813	    if test set = "${lt_cv_aix_libpath+set}"; then
15814  aix_libpath=$lt_cv_aix_libpath
15815else
15816  if test ${lt_cv_aix_libpath__CXX+y}
15817then :
15818  printf %s "(cached) " >&6
15819else $as_nop
15820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15821/* end confdefs.h.  */
15822
15823int
15824main (void)
15825{
15826
15827  ;
15828  return 0;
15829}
15830_ACEOF
15831if ac_fn_cxx_try_link "$LINENO"
15832then :
15833
15834  lt_aix_libpath_sed='
15835      /Import File Strings/,/^$/ {
15836	  /^0/ {
15837	      s/^0  *\([^ ]*\) *$/\1/
15838	      p
15839	  }
15840      }'
15841  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15842  # Check for a 64-bit object if we didn't find anything.
15843  if test -z "$lt_cv_aix_libpath__CXX"; then
15844    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15845  fi
15846fi
15847rm -f core conftest.err conftest.$ac_objext conftest.beam \
15848    conftest$ac_exeext conftest.$ac_ext
15849  if test -z "$lt_cv_aix_libpath__CXX"; then
15850    lt_cv_aix_libpath__CXX=/usr/lib:/lib
15851  fi
15852
15853fi
15854
15855  aix_libpath=$lt_cv_aix_libpath__CXX
15856fi
15857
15858	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15859	    # Warning - without using the other run time loading flags,
15860	    # -berok will link without error, but may produce a broken library.
15861	    no_undefined_flag_CXX=' $wl-bernotok'
15862	    allow_undefined_flag_CXX=' $wl-berok'
15863	    if test yes = "$with_gnu_ld"; then
15864	      # We only use this code for GNU lds that support --whole-archive.
15865	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15866	    else
15867	      # Exported symbols can be pulled into shared objects from archives
15868	      whole_archive_flag_spec_CXX='$convenience'
15869	    fi
15870	    archive_cmds_need_lc_CXX=yes
15871	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15872	    # -brtl affects multiple linker settings, -berok does not and is overridden later
15873	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15874	    if test svr4 != "$with_aix_soname"; then
15875	      # This is similar to how AIX traditionally builds its shared
15876	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15877	      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'
15878	    fi
15879	    if test aix != "$with_aix_soname"; then
15880	      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'
15881	    else
15882	      # used by -dlpreopen to get the symbols
15883	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15884	    fi
15885	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15886          fi
15887        fi
15888        ;;
15889
15890      beos*)
15891	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15892	  allow_undefined_flag_CXX=unsupported
15893	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15894	  # support --undefined.  This deserves some investigation.  FIXME
15895	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15896	else
15897	  ld_shlibs_CXX=no
15898	fi
15899	;;
15900
15901      chorus*)
15902        case $cc_basename in
15903          *)
15904	  # FIXME: insert proper C++ library support
15905	  ld_shlibs_CXX=no
15906	  ;;
15907        esac
15908        ;;
15909
15910      cygwin* | mingw* | pw32* | cegcc*)
15911	case $GXX,$cc_basename in
15912	,cl* | no,cl* | ,icl* | no,icl*)
15913	  # Native MSVC or ICC
15914	  # hardcode_libdir_flag_spec is actually meaningless, as there is
15915	  # no search path for DLLs.
15916	  hardcode_libdir_flag_spec_CXX=' '
15917	  allow_undefined_flag_CXX=unsupported
15918	  always_export_symbols_CXX=yes
15919	  file_list_spec_CXX='@'
15920	  # Tell ltmain to make .lib files, not .a files.
15921	  libext=lib
15922	  # Tell ltmain to make .dll files, not .so files.
15923	  shrext_cmds=.dll
15924	  # FIXME: Setting linknames here is a bad hack.
15925	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15926	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15927              cp "$export_symbols" "$output_objdir/$soname.def";
15928              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15929            else
15930              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15931            fi~
15932            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15933            linknames='
15934	  # The linker will not automatically build a static lib if we build a DLL.
15935	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15936	  enable_shared_with_static_runtimes_CXX=yes
15937	  # Don't use ranlib
15938	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
15939	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15940            lt_tool_outputfile="@TOOL_OUTPUT@"~
15941            case $lt_outputfile in
15942              *.exe|*.EXE) ;;
15943              *)
15944                lt_outputfile=$lt_outputfile.exe
15945                lt_tool_outputfile=$lt_tool_outputfile.exe
15946                ;;
15947            esac~
15948            func_to_tool_file "$lt_outputfile"~
15949            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15950              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15951              $RM "$lt_outputfile.manifest";
15952            fi'
15953	  ;;
15954	*)
15955	  # g++
15956	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15957	  # as there is no search path for DLLs.
15958	  hardcode_libdir_flag_spec_CXX='-L$libdir'
15959	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15960	  allow_undefined_flag_CXX=unsupported
15961	  always_export_symbols_CXX=no
15962	  enable_shared_with_static_runtimes_CXX=yes
15963
15964	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15965	    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'
15966	    # If the export-symbols file already is a .def file, use it as
15967	    # is; otherwise, prepend EXPORTS...
15968	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15969              cp $export_symbols $output_objdir/$soname.def;
15970            else
15971              echo EXPORTS > $output_objdir/$soname.def;
15972              cat $export_symbols >> $output_objdir/$soname.def;
15973            fi~
15974            $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'
15975	  else
15976	    ld_shlibs_CXX=no
15977	  fi
15978	  ;;
15979	esac
15980	;;
15981      darwin* | rhapsody*)
15982
15983
15984  archive_cmds_need_lc_CXX=no
15985  hardcode_direct_CXX=no
15986  hardcode_automatic_CXX=yes
15987  hardcode_shlibpath_var_CXX=unsupported
15988  if test yes = "$lt_cv_ld_force_load"; then
15989    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\"`'
15990
15991  else
15992    whole_archive_flag_spec_CXX=''
15993  fi
15994  link_all_deplibs_CXX=yes
15995  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15996  case $cc_basename in
15997     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15998     *) _lt_dar_can_shared=$GCC ;;
15999  esac
16000  if test yes = "$_lt_dar_can_shared"; then
16001    output_verbose_link_cmd=func_echo_all
16002    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"
16003    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16004    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"
16005    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"
16006       if test yes != "$lt_cv_apple_cc_single_mod"; then
16007      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"
16008      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"
16009    fi
16010
16011  else
16012  ld_shlibs_CXX=no
16013  fi
16014
16015	;;
16016
16017      os2*)
16018	hardcode_libdir_flag_spec_CXX='-L$libdir'
16019	hardcode_minus_L_CXX=yes
16020	allow_undefined_flag_CXX=unsupported
16021	shrext_cmds=.dll
16022	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16023	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16024	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16025	  $ECHO EXPORTS >> $output_objdir/$libname.def~
16026	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16027	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16028	  emximp -o $lib $output_objdir/$libname.def'
16029	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16030	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16031	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16032	  $ECHO EXPORTS >> $output_objdir/$libname.def~
16033	  prefix_cmds="$SED"~
16034	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
16035	    prefix_cmds="$prefix_cmds -e 1d";
16036	  fi~
16037	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16038	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16039	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16040	  emximp -o $lib $output_objdir/$libname.def'
16041	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16042	enable_shared_with_static_runtimes_CXX=yes
16043	file_list_spec_CXX='@'
16044	;;
16045
16046      dgux*)
16047        case $cc_basename in
16048          ec++*)
16049	    # FIXME: insert proper C++ library support
16050	    ld_shlibs_CXX=no
16051	    ;;
16052          ghcx*)
16053	    # Green Hills C++ Compiler
16054	    # FIXME: insert proper C++ library support
16055	    ld_shlibs_CXX=no
16056	    ;;
16057          *)
16058	    # FIXME: insert proper C++ library support
16059	    ld_shlibs_CXX=no
16060	    ;;
16061        esac
16062        ;;
16063
16064      freebsd2.*)
16065        # C++ shared libraries reported to be fairly broken before
16066	# switch to ELF
16067        ld_shlibs_CXX=no
16068        ;;
16069
16070      freebsd-elf*)
16071        archive_cmds_need_lc_CXX=no
16072        ;;
16073
16074      freebsd* | dragonfly*)
16075        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16076        # conventions
16077        ld_shlibs_CXX=yes
16078        ;;
16079
16080      haiku*)
16081        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16082        link_all_deplibs_CXX=yes
16083        ;;
16084
16085      hpux9*)
16086        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16087        hardcode_libdir_separator_CXX=:
16088        export_dynamic_flag_spec_CXX='$wl-E'
16089        hardcode_direct_CXX=yes
16090        hardcode_minus_L_CXX=yes # Not in the search PATH,
16091				             # but as the default
16092				             # location of the library.
16093
16094        case $cc_basename in
16095          CC*)
16096            # FIXME: insert proper C++ library support
16097            ld_shlibs_CXX=no
16098            ;;
16099          aCC*)
16100            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'
16101            # Commands to make compiler produce verbose output that lists
16102            # what "hidden" libraries, object files and flags are used when
16103            # linking a shared library.
16104            #
16105            # There doesn't appear to be a way to prevent this compiler from
16106            # explicitly linking system object files so we need to strip them
16107            # from the output so that they don't get included in the library
16108            # dependencies.
16109            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"'
16110            ;;
16111          *)
16112            if test yes = "$GXX"; then
16113              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'
16114            else
16115              # FIXME: insert proper C++ library support
16116              ld_shlibs_CXX=no
16117            fi
16118            ;;
16119        esac
16120        ;;
16121
16122      hpux10*|hpux11*)
16123        if test no = "$with_gnu_ld"; then
16124	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16125	  hardcode_libdir_separator_CXX=:
16126
16127          case $host_cpu in
16128            hppa*64*|ia64*)
16129              ;;
16130            *)
16131	      export_dynamic_flag_spec_CXX='$wl-E'
16132              ;;
16133          esac
16134        fi
16135        case $host_cpu in
16136          hppa*64*|ia64*)
16137            hardcode_direct_CXX=no
16138            hardcode_shlibpath_var_CXX=no
16139            ;;
16140          *)
16141            hardcode_direct_CXX=yes
16142            hardcode_direct_absolute_CXX=yes
16143            hardcode_minus_L_CXX=yes # Not in the search PATH,
16144					         # but as the default
16145					         # location of the library.
16146            ;;
16147        esac
16148
16149        case $cc_basename in
16150          CC*)
16151	    # FIXME: insert proper C++ library support
16152	    ld_shlibs_CXX=no
16153	    ;;
16154          aCC*)
16155	    case $host_cpu in
16156	      hppa*64*)
16157	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16158	        ;;
16159	      ia64*)
16160	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16161	        ;;
16162	      *)
16163	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16164	        ;;
16165	    esac
16166	    # Commands to make compiler produce verbose output that lists
16167	    # what "hidden" libraries, object files and flags are used when
16168	    # linking a shared library.
16169	    #
16170	    # There doesn't appear to be a way to prevent this compiler from
16171	    # explicitly linking system object files so we need to strip them
16172	    # from the output so that they don't get included in the library
16173	    # dependencies.
16174	    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"'
16175	    ;;
16176          *)
16177	    if test yes = "$GXX"; then
16178	      if test no = "$with_gnu_ld"; then
16179	        case $host_cpu in
16180	          hppa*64*)
16181	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16182	            ;;
16183	          ia64*)
16184	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16185	            ;;
16186	          *)
16187	            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'
16188	            ;;
16189	        esac
16190	      fi
16191	    else
16192	      # FIXME: insert proper C++ library support
16193	      ld_shlibs_CXX=no
16194	    fi
16195	    ;;
16196        esac
16197        ;;
16198
16199      interix[3-9]*)
16200	hardcode_direct_CXX=no
16201	hardcode_shlibpath_var_CXX=no
16202	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16203	export_dynamic_flag_spec_CXX='$wl-E'
16204	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16205	# Instead, shared libraries are loaded at an image base (0x10000000 by
16206	# default) and relocated if they conflict, which is a slow very memory
16207	# consuming and fragmenting process.  To avoid this, we pick a random,
16208	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16209	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16210	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'
16211	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'
16212	;;
16213      irix5* | irix6*)
16214        case $cc_basename in
16215          CC*)
16216	    # SGI C++
16217	    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'
16218
16219	    # Archives containing C++ object files must be created using
16220	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16221	    # necessary to make sure instantiated templates are included
16222	    # in the archive.
16223	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16224	    ;;
16225          *)
16226	    if test yes = "$GXX"; then
16227	      if test no = "$with_gnu_ld"; then
16228	        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'
16229	      else
16230	        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'
16231	      fi
16232	    fi
16233	    link_all_deplibs_CXX=yes
16234	    ;;
16235        esac
16236        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16237        hardcode_libdir_separator_CXX=:
16238        inherit_rpath_CXX=yes
16239        ;;
16240
16241      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16242        case $cc_basename in
16243          KCC*)
16244	    # Kuck and Associates, Inc. (KAI) C++ Compiler
16245
16246	    # KCC will only create a shared library if the output file
16247	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
16248	    # to its proper name (with version) after linking.
16249	    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'
16250	    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'
16251	    # Commands to make compiler produce verbose output that lists
16252	    # what "hidden" libraries, object files and flags are used when
16253	    # linking a shared library.
16254	    #
16255	    # There doesn't appear to be a way to prevent this compiler from
16256	    # explicitly linking system object files so we need to strip them
16257	    # from the output so that they don't get included in the library
16258	    # dependencies.
16259	    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"'
16260
16261	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16262	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16263
16264	    # Archives containing C++ object files must be created using
16265	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16266	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16267	    ;;
16268	  icpc* | ecpc* )
16269	    # Intel C++
16270	    with_gnu_ld=yes
16271	    # version 8.0 and above of icpc choke on multiply defined symbols
16272	    # if we add $predep_objects and $postdep_objects, however 7.1 and
16273	    # earlier do not add the objects themselves.
16274	    case `$CC -V 2>&1` in
16275	      *"Version 7."*)
16276	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16277		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'
16278		;;
16279	      *)  # Version 8.0 or newer
16280	        tmp_idyn=
16281	        case $host_cpu in
16282		  ia64*) tmp_idyn=' -i_dynamic';;
16283		esac
16284	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16285		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'
16286		;;
16287	    esac
16288	    archive_cmds_need_lc_CXX=no
16289	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16290	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16291	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16292	    ;;
16293          pgCC* | pgcpp*)
16294            # Portland Group C++ compiler
16295	    case `$CC -V` in
16296	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16297	      prelink_cmds_CXX='tpldir=Template.dir~
16298               rm -rf $tpldir~
16299               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16300               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16301	      old_archive_cmds_CXX='tpldir=Template.dir~
16302                rm -rf $tpldir~
16303                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16304                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16305                $RANLIB $oldlib'
16306	      archive_cmds_CXX='tpldir=Template.dir~
16307                rm -rf $tpldir~
16308                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16309                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16310	      archive_expsym_cmds_CXX='tpldir=Template.dir~
16311                rm -rf $tpldir~
16312                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16313                $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'
16314	      ;;
16315	    *) # Version 6 and above use weak symbols
16316	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16317	      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'
16318	      ;;
16319	    esac
16320
16321	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16322	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16323	    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'
16324            ;;
16325	  cxx*)
16326	    # Compaq C++
16327	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16328	    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'
16329
16330	    runpath_var=LD_RUN_PATH
16331	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16332	    hardcode_libdir_separator_CXX=:
16333
16334	    # Commands to make compiler produce verbose output that lists
16335	    # what "hidden" libraries, object files and flags are used when
16336	    # linking a shared library.
16337	    #
16338	    # There doesn't appear to be a way to prevent this compiler from
16339	    # explicitly linking system object files so we need to strip them
16340	    # from the output so that they don't get included in the library
16341	    # dependencies.
16342	    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'
16343	    ;;
16344	  xl* | mpixl* | bgxl*)
16345	    # IBM XL 8.0 on PPC, with GNU ld
16346	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16347	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16348	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16349	    if test yes = "$supports_anon_versioning"; then
16350	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16351                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16352                echo "local: *; };" >> $output_objdir/$libname.ver~
16353                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16354	    fi
16355	    ;;
16356	  *)
16357	    case `$CC -V 2>&1 | sed 5q` in
16358	    *Sun\ C*)
16359	      # Sun C++ 5.9
16360	      no_undefined_flag_CXX=' -zdefs'
16361	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16362	      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'
16363	      hardcode_libdir_flag_spec_CXX='-R$libdir'
16364	      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'
16365	      compiler_needs_object_CXX=yes
16366
16367	      # Not sure whether something based on
16368	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16369	      # would be better.
16370	      output_verbose_link_cmd='func_echo_all'
16371
16372	      # Archives containing C++ object files must be created using
16373	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16374	      # necessary to make sure instantiated templates are included
16375	      # in the archive.
16376	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16377	      ;;
16378	    esac
16379	    ;;
16380	esac
16381	;;
16382
16383      lynxos*)
16384        # FIXME: insert proper C++ library support
16385	ld_shlibs_CXX=no
16386	;;
16387
16388      m88k*)
16389        # FIXME: insert proper C++ library support
16390        ld_shlibs_CXX=no
16391	;;
16392
16393      mvs*)
16394        case $cc_basename in
16395          cxx*)
16396	    # FIXME: insert proper C++ library support
16397	    ld_shlibs_CXX=no
16398	    ;;
16399	  *)
16400	    # FIXME: insert proper C++ library support
16401	    ld_shlibs_CXX=no
16402	    ;;
16403	esac
16404	;;
16405
16406      netbsd*)
16407        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16408	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16409	  wlarc=
16410	  hardcode_libdir_flag_spec_CXX='-R$libdir'
16411	  hardcode_direct_CXX=yes
16412	  hardcode_shlibpath_var_CXX=no
16413	fi
16414	# Workaround some broken pre-1.5 toolchains
16415	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16416	;;
16417
16418      *nto* | *qnx*)
16419        ld_shlibs_CXX=yes
16420	;;
16421
16422      openbsd* | bitrig*)
16423	if test -f /usr/libexec/ld.so; then
16424	  hardcode_direct_CXX=yes
16425	  hardcode_shlibpath_var_CXX=no
16426	  hardcode_direct_absolute_CXX=yes
16427	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16428	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16429	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16430	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16431	    export_dynamic_flag_spec_CXX='$wl-E'
16432	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16433	  fi
16434	  output_verbose_link_cmd=func_echo_all
16435	else
16436	  ld_shlibs_CXX=no
16437	fi
16438	;;
16439
16440      osf3* | osf4* | osf5*)
16441        case $cc_basename in
16442          KCC*)
16443	    # Kuck and Associates, Inc. (KAI) C++ Compiler
16444
16445	    # KCC will only create a shared library if the output file
16446	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
16447	    # to its proper name (with version) after linking.
16448	    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'
16449
16450	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16451	    hardcode_libdir_separator_CXX=:
16452
16453	    # Archives containing C++ object files must be created using
16454	    # the KAI C++ compiler.
16455	    case $host in
16456	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16457	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16458	    esac
16459	    ;;
16460          RCC*)
16461	    # Rational C++ 2.4.1
16462	    # FIXME: insert proper C++ library support
16463	    ld_shlibs_CXX=no
16464	    ;;
16465          cxx*)
16466	    case $host in
16467	      osf3*)
16468	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16469	        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'
16470	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16471		;;
16472	      *)
16473	        allow_undefined_flag_CXX=' -expect_unresolved \*'
16474	        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'
16475	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16476                  echo "-hidden">> $lib.exp~
16477                  $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~
16478                  $RM $lib.exp'
16479	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16480		;;
16481	    esac
16482
16483	    hardcode_libdir_separator_CXX=:
16484
16485	    # Commands to make compiler produce verbose output that lists
16486	    # what "hidden" libraries, object files and flags are used when
16487	    # linking a shared library.
16488	    #
16489	    # There doesn't appear to be a way to prevent this compiler from
16490	    # explicitly linking system object files so we need to strip them
16491	    # from the output so that they don't get included in the library
16492	    # dependencies.
16493	    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"'
16494	    ;;
16495	  *)
16496	    if test yes,no = "$GXX,$with_gnu_ld"; then
16497	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16498	      case $host in
16499	        osf3*)
16500	          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'
16501		  ;;
16502	        *)
16503	          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'
16504		  ;;
16505	      esac
16506
16507	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16508	      hardcode_libdir_separator_CXX=:
16509
16510	      # Commands to make compiler produce verbose output that lists
16511	      # what "hidden" libraries, object files and flags are used when
16512	      # linking a shared library.
16513	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16514
16515	    else
16516	      # FIXME: insert proper C++ library support
16517	      ld_shlibs_CXX=no
16518	    fi
16519	    ;;
16520        esac
16521        ;;
16522
16523      psos*)
16524        # FIXME: insert proper C++ library support
16525        ld_shlibs_CXX=no
16526        ;;
16527
16528      sunos4*)
16529        case $cc_basename in
16530          CC*)
16531	    # Sun C++ 4.x
16532	    # FIXME: insert proper C++ library support
16533	    ld_shlibs_CXX=no
16534	    ;;
16535          lcc*)
16536	    # Lucid
16537	    # FIXME: insert proper C++ library support
16538	    ld_shlibs_CXX=no
16539	    ;;
16540          *)
16541	    # FIXME: insert proper C++ library support
16542	    ld_shlibs_CXX=no
16543	    ;;
16544        esac
16545        ;;
16546
16547      solaris*)
16548        case $cc_basename in
16549          CC* | sunCC*)
16550	    # Sun C++ 4.2, 5.x and Centerline C++
16551            archive_cmds_need_lc_CXX=yes
16552	    no_undefined_flag_CXX=' -zdefs'
16553	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16554	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16555              $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'
16556
16557	    hardcode_libdir_flag_spec_CXX='-R$libdir'
16558	    hardcode_shlibpath_var_CXX=no
16559	    case $host_os in
16560	      solaris2.[0-5] | solaris2.[0-5].*) ;;
16561	      *)
16562		# The compiler driver will combine and reorder linker options,
16563		# but understands '-z linker_flag'.
16564	        # Supported since Solaris 2.6 (maybe 2.5.1?)
16565		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16566	        ;;
16567	    esac
16568	    link_all_deplibs_CXX=yes
16569
16570	    output_verbose_link_cmd='func_echo_all'
16571
16572	    # Archives containing C++ object files must be created using
16573	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16574	    # necessary to make sure instantiated templates are included
16575	    # in the archive.
16576	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16577	    ;;
16578          gcx*)
16579	    # Green Hills C++ Compiler
16580	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16581
16582	    # The C++ compiler must be used to create the archive.
16583	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16584	    ;;
16585          *)
16586	    # GNU C++ compiler with Solaris linker
16587	    if test yes,no = "$GXX,$with_gnu_ld"; then
16588	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
16589	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16590	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16591	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16592                  $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'
16593
16594	        # Commands to make compiler produce verbose output that lists
16595	        # what "hidden" libraries, object files and flags are used when
16596	        # linking a shared library.
16597	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16598	      else
16599	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
16600	        # platform.
16601	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16602	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16603                  $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'
16604
16605	        # Commands to make compiler produce verbose output that lists
16606	        # what "hidden" libraries, object files and flags are used when
16607	        # linking a shared library.
16608	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16609	      fi
16610
16611	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16612	      case $host_os in
16613		solaris2.[0-5] | solaris2.[0-5].*) ;;
16614		*)
16615		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16616		  ;;
16617	      esac
16618	    fi
16619	    ;;
16620        esac
16621        ;;
16622
16623    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16624      no_undefined_flag_CXX='$wl-z,text'
16625      archive_cmds_need_lc_CXX=no
16626      hardcode_shlibpath_var_CXX=no
16627      runpath_var='LD_RUN_PATH'
16628
16629      case $cc_basename in
16630        CC*)
16631	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16632	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16633	  ;;
16634	*)
16635	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16636	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16637	  ;;
16638      esac
16639      ;;
16640
16641      sysv5* | sco3.2v5* | sco5v6*)
16642	# Note: We CANNOT use -z defs as we might desire, because we do not
16643	# link with -lc, and that would cause any symbols used from libc to
16644	# always be unresolved, which means just about no library would
16645	# ever link correctly.  If we're not using GNU ld we use -z text
16646	# though, which does catch some bad symbols but isn't as heavy-handed
16647	# as -z defs.
16648	no_undefined_flag_CXX='$wl-z,text'
16649	allow_undefined_flag_CXX='$wl-z,nodefs'
16650	archive_cmds_need_lc_CXX=no
16651	hardcode_shlibpath_var_CXX=no
16652	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16653	hardcode_libdir_separator_CXX=':'
16654	link_all_deplibs_CXX=yes
16655	export_dynamic_flag_spec_CXX='$wl-Bexport'
16656	runpath_var='LD_RUN_PATH'
16657
16658	case $cc_basename in
16659          CC*)
16660	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16661	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16662	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16663              '"$old_archive_cmds_CXX"
16664	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16665              '"$reload_cmds_CXX"
16666	    ;;
16667	  *)
16668	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16669	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16670	    ;;
16671	esac
16672      ;;
16673
16674      tandem*)
16675        case $cc_basename in
16676          NCC*)
16677	    # NonStop-UX NCC 3.20
16678	    # FIXME: insert proper C++ library support
16679	    ld_shlibs_CXX=no
16680	    ;;
16681          *)
16682	    # FIXME: insert proper C++ library support
16683	    ld_shlibs_CXX=no
16684	    ;;
16685        esac
16686        ;;
16687
16688      vxworks*)
16689        # FIXME: insert proper C++ library support
16690        ld_shlibs_CXX=no
16691        ;;
16692
16693      *)
16694        # FIXME: insert proper C++ library support
16695        ld_shlibs_CXX=no
16696        ;;
16697    esac
16698
16699    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16700printf "%s\n" "$ld_shlibs_CXX" >&6; }
16701    test no = "$ld_shlibs_CXX" && can_build_shared=no
16702
16703    GCC_CXX=$GXX
16704    LD_CXX=$LD
16705
16706    ## CAVEAT EMPTOR:
16707    ## There is no encapsulation within the following macros, do not change
16708    ## the running order or otherwise move them around unless you know exactly
16709    ## what you are doing...
16710    # Dependencies to place before and after the object being linked:
16711predep_objects_CXX=
16712postdep_objects_CXX=
16713predeps_CXX=
16714postdeps_CXX=
16715compiler_lib_search_path_CXX=
16716
16717cat > conftest.$ac_ext <<_LT_EOF
16718class Foo
16719{
16720public:
16721  Foo (void) { a = 0; }
16722private:
16723  int a;
16724};
16725_LT_EOF
16726
16727
16728_lt_libdeps_save_CFLAGS=$CFLAGS
16729case "$CC $CFLAGS " in #(
16730*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16731*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16732*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16733esac
16734
16735if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16736  (eval $ac_compile) 2>&5
16737  ac_status=$?
16738  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16739  test $ac_status = 0; }; then
16740  # Parse the compiler output and extract the necessary
16741  # objects, libraries and library flags.
16742
16743  # Sentinel used to keep track of whether or not we are before
16744  # the conftest object file.
16745  pre_test_object_deps_done=no
16746
16747  for p in `eval "$output_verbose_link_cmd"`; do
16748    case $prev$p in
16749
16750    -L* | -R* | -l*)
16751       # Some compilers place space between "-{L,R}" and the path.
16752       # Remove the space.
16753       if test x-L = "$p" ||
16754          test x-R = "$p"; then
16755	 prev=$p
16756	 continue
16757       fi
16758
16759       # Expand the sysroot to ease extracting the directories later.
16760       if test -z "$prev"; then
16761         case $p in
16762         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16763         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16764         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16765         esac
16766       fi
16767       case $p in
16768       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16769       esac
16770       if test no = "$pre_test_object_deps_done"; then
16771	 case $prev in
16772	 -L | -R)
16773	   # Internal compiler library paths should come after those
16774	   # provided the user.  The postdeps already come after the
16775	   # user supplied libs so there is no need to process them.
16776	   if test -z "$compiler_lib_search_path_CXX"; then
16777	     compiler_lib_search_path_CXX=$prev$p
16778	   else
16779	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16780	   fi
16781	   ;;
16782	 # The "-l" case would never come before the object being
16783	 # linked, so don't bother handling this case.
16784	 esac
16785       else
16786	 if test -z "$postdeps_CXX"; then
16787	   postdeps_CXX=$prev$p
16788	 else
16789	   postdeps_CXX="${postdeps_CXX} $prev$p"
16790	 fi
16791       fi
16792       prev=
16793       ;;
16794
16795    *.lto.$objext) ;; # Ignore GCC LTO objects
16796    *.$objext)
16797       # This assumes that the test object file only shows up
16798       # once in the compiler output.
16799       if test "$p" = "conftest.$objext"; then
16800	 pre_test_object_deps_done=yes
16801	 continue
16802       fi
16803
16804       if test no = "$pre_test_object_deps_done"; then
16805	 if test -z "$predep_objects_CXX"; then
16806	   predep_objects_CXX=$p
16807	 else
16808	   predep_objects_CXX="$predep_objects_CXX $p"
16809	 fi
16810       else
16811	 if test -z "$postdep_objects_CXX"; then
16812	   postdep_objects_CXX=$p
16813	 else
16814	   postdep_objects_CXX="$postdep_objects_CXX $p"
16815	 fi
16816       fi
16817       ;;
16818
16819    *) ;; # Ignore the rest.
16820
16821    esac
16822  done
16823
16824  # Clean up.
16825  rm -f a.out a.exe
16826else
16827  echo "libtool.m4: error: problem compiling CXX test program"
16828fi
16829
16830$RM -f confest.$objext
16831CFLAGS=$_lt_libdeps_save_CFLAGS
16832
16833# PORTME: override above test on systems where it is broken
16834case $host_os in
16835interix[3-9]*)
16836  # Interix 3.5 installs completely hosed .la files for C++, so rather than
16837  # hack all around it, let's just trust "g++" to DTRT.
16838  predep_objects_CXX=
16839  postdep_objects_CXX=
16840  postdeps_CXX=
16841  ;;
16842esac
16843
16844
16845case " $postdeps_CXX " in
16846*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16847esac
16848 compiler_lib_search_dirs_CXX=
16849if test -n "${compiler_lib_search_path_CXX}"; then
16850 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16851fi
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883    lt_prog_compiler_wl_CXX=
16884lt_prog_compiler_pic_CXX=
16885lt_prog_compiler_static_CXX=
16886
16887
16888  # C++ specific cases for pic, static, wl, etc.
16889  if test yes = "$GXX"; then
16890    lt_prog_compiler_wl_CXX='-Wl,'
16891    lt_prog_compiler_static_CXX='-static'
16892
16893    case $host_os in
16894    aix*)
16895      # All AIX code is PIC.
16896      if test ia64 = "$host_cpu"; then
16897	# AIX 5 now supports IA64 processor
16898	lt_prog_compiler_static_CXX='-Bstatic'
16899      fi
16900      lt_prog_compiler_pic_CXX='-fPIC'
16901      ;;
16902
16903    amigaos*)
16904      case $host_cpu in
16905      powerpc)
16906            # see comment about AmigaOS4 .so support
16907            lt_prog_compiler_pic_CXX='-fPIC'
16908        ;;
16909      m68k)
16910            # FIXME: we need at least 68020 code to build shared libraries, but
16911            # adding the '-m68020' flag to GCC prevents building anything better,
16912            # like '-m68040'.
16913            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16914        ;;
16915      esac
16916      ;;
16917
16918    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16919      # PIC is the default for these OSes.
16920      ;;
16921    mingw* | cygwin* | os2* | pw32* | cegcc*)
16922      # This hack is so that the source file can tell whether it is being
16923      # built for inclusion in a dll (and should export symbols for example).
16924      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16925      # (--disable-auto-import) libraries
16926      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16927      case $host_os in
16928      os2*)
16929	lt_prog_compiler_static_CXX='$wl-static'
16930	;;
16931      esac
16932      ;;
16933    darwin* | rhapsody*)
16934      # PIC is the default on this platform
16935      # Common symbols not allowed in MH_DYLIB files
16936      lt_prog_compiler_pic_CXX='-fno-common'
16937      ;;
16938    *djgpp*)
16939      # DJGPP does not support shared libraries at all
16940      lt_prog_compiler_pic_CXX=
16941      ;;
16942    haiku*)
16943      # PIC is the default for Haiku.
16944      # The "-static" flag exists, but is broken.
16945      lt_prog_compiler_static_CXX=
16946      ;;
16947    interix[3-9]*)
16948      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16949      # Instead, we relocate shared libraries at runtime.
16950      ;;
16951    sysv4*MP*)
16952      if test -d /usr/nec; then
16953	lt_prog_compiler_pic_CXX=-Kconform_pic
16954      fi
16955      ;;
16956    hpux*)
16957      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16958      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16959      # sets the default TLS model and affects inlining.
16960      case $host_cpu in
16961      hppa*64*)
16962	;;
16963      *)
16964	lt_prog_compiler_pic_CXX='-fPIC'
16965	;;
16966      esac
16967      ;;
16968    *qnx* | *nto*)
16969      # QNX uses GNU C++, but need to define -shared option too, otherwise
16970      # it will coredump.
16971      lt_prog_compiler_pic_CXX='-fPIC -shared'
16972      ;;
16973    *)
16974      lt_prog_compiler_pic_CXX='-fPIC'
16975      ;;
16976    esac
16977  else
16978    case $host_os in
16979      aix[4-9]*)
16980	# All AIX code is PIC.
16981	if test ia64 = "$host_cpu"; then
16982	  # AIX 5 now supports IA64 processor
16983	  lt_prog_compiler_static_CXX='-Bstatic'
16984	else
16985	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16986	fi
16987	;;
16988      chorus*)
16989	case $cc_basename in
16990	cxch68*)
16991	  # Green Hills C++ Compiler
16992	  # _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"
16993	  ;;
16994	esac
16995	;;
16996      mingw* | cygwin* | os2* | pw32* | cegcc*)
16997	# This hack is so that the source file can tell whether it is being
16998	# built for inclusion in a dll (and should export symbols for example).
16999	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17000	;;
17001      dgux*)
17002	case $cc_basename in
17003	  ec++*)
17004	    lt_prog_compiler_pic_CXX='-KPIC'
17005	    ;;
17006	  ghcx*)
17007	    # Green Hills C++ Compiler
17008	    lt_prog_compiler_pic_CXX='-pic'
17009	    ;;
17010	  *)
17011	    ;;
17012	esac
17013	;;
17014      freebsd* | dragonfly*)
17015	# FreeBSD uses GNU C++
17016	;;
17017      hpux9* | hpux10* | hpux11*)
17018	case $cc_basename in
17019	  CC*)
17020	    lt_prog_compiler_wl_CXX='-Wl,'
17021	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17022	    if test ia64 != "$host_cpu"; then
17023	      lt_prog_compiler_pic_CXX='+Z'
17024	    fi
17025	    ;;
17026	  aCC*)
17027	    lt_prog_compiler_wl_CXX='-Wl,'
17028	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17029	    case $host_cpu in
17030	    hppa*64*|ia64*)
17031	      # +Z the default
17032	      ;;
17033	    *)
17034	      lt_prog_compiler_pic_CXX='+Z'
17035	      ;;
17036	    esac
17037	    ;;
17038	  *)
17039	    ;;
17040	esac
17041	;;
17042      interix*)
17043	# This is c89, which is MS Visual C++ (no shared libs)
17044	# Anyone wants to do a port?
17045	;;
17046      irix5* | irix6* | nonstopux*)
17047	case $cc_basename in
17048	  CC*)
17049	    lt_prog_compiler_wl_CXX='-Wl,'
17050	    lt_prog_compiler_static_CXX='-non_shared'
17051	    # CC pic flag -KPIC is the default.
17052	    ;;
17053	  *)
17054	    ;;
17055	esac
17056	;;
17057      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17058	case $cc_basename in
17059	  KCC*)
17060	    # KAI C++ Compiler
17061	    lt_prog_compiler_wl_CXX='--backend -Wl,'
17062	    lt_prog_compiler_pic_CXX='-fPIC'
17063	    ;;
17064	  ecpc* )
17065	    # old Intel C++ for x86_64, which still supported -KPIC.
17066	    lt_prog_compiler_wl_CXX='-Wl,'
17067	    lt_prog_compiler_pic_CXX='-KPIC'
17068	    lt_prog_compiler_static_CXX='-static'
17069	    ;;
17070	  icpc* )
17071	    # Intel C++, used to be incompatible with GCC.
17072	    # ICC 10 doesn't accept -KPIC any more.
17073	    lt_prog_compiler_wl_CXX='-Wl,'
17074	    lt_prog_compiler_pic_CXX='-fPIC'
17075	    lt_prog_compiler_static_CXX='-static'
17076	    ;;
17077	  pgCC* | pgcpp*)
17078	    # Portland Group C++ compiler
17079	    lt_prog_compiler_wl_CXX='-Wl,'
17080	    lt_prog_compiler_pic_CXX='-fpic'
17081	    lt_prog_compiler_static_CXX='-Bstatic'
17082	    ;;
17083	  cxx*)
17084	    # Compaq C++
17085	    # Make sure the PIC flag is empty.  It appears that all Alpha
17086	    # Linux and Compaq Tru64 Unix objects are PIC.
17087	    lt_prog_compiler_pic_CXX=
17088	    lt_prog_compiler_static_CXX='-non_shared'
17089	    ;;
17090	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17091	    # IBM XL 8.0, 9.0 on PPC and BlueGene
17092	    lt_prog_compiler_wl_CXX='-Wl,'
17093	    lt_prog_compiler_pic_CXX='-qpic'
17094	    lt_prog_compiler_static_CXX='-qstaticlink'
17095	    ;;
17096	  *)
17097	    case `$CC -V 2>&1 | sed 5q` in
17098	    *Sun\ C*)
17099	      # Sun C++ 5.9
17100	      lt_prog_compiler_pic_CXX='-KPIC'
17101	      lt_prog_compiler_static_CXX='-Bstatic'
17102	      lt_prog_compiler_wl_CXX='-Qoption ld '
17103	      ;;
17104	    esac
17105	    ;;
17106	esac
17107	;;
17108      lynxos*)
17109	;;
17110      m88k*)
17111	;;
17112      mvs*)
17113	case $cc_basename in
17114	  cxx*)
17115	    lt_prog_compiler_pic_CXX='-W c,exportall'
17116	    ;;
17117	  *)
17118	    ;;
17119	esac
17120	;;
17121      netbsd*)
17122	;;
17123      *qnx* | *nto*)
17124        # QNX uses GNU C++, but need to define -shared option too, otherwise
17125        # it will coredump.
17126        lt_prog_compiler_pic_CXX='-fPIC -shared'
17127        ;;
17128      osf3* | osf4* | osf5*)
17129	case $cc_basename in
17130	  KCC*)
17131	    lt_prog_compiler_wl_CXX='--backend -Wl,'
17132	    ;;
17133	  RCC*)
17134	    # Rational C++ 2.4.1
17135	    lt_prog_compiler_pic_CXX='-pic'
17136	    ;;
17137	  cxx*)
17138	    # Digital/Compaq C++
17139	    lt_prog_compiler_wl_CXX='-Wl,'
17140	    # Make sure the PIC flag is empty.  It appears that all Alpha
17141	    # Linux and Compaq Tru64 Unix objects are PIC.
17142	    lt_prog_compiler_pic_CXX=
17143	    lt_prog_compiler_static_CXX='-non_shared'
17144	    ;;
17145	  *)
17146	    ;;
17147	esac
17148	;;
17149      psos*)
17150	;;
17151      solaris*)
17152	case $cc_basename in
17153	  CC* | sunCC*)
17154	    # Sun C++ 4.2, 5.x and Centerline C++
17155	    lt_prog_compiler_pic_CXX='-KPIC'
17156	    lt_prog_compiler_static_CXX='-Bstatic'
17157	    lt_prog_compiler_wl_CXX='-Qoption ld '
17158	    ;;
17159	  gcx*)
17160	    # Green Hills C++ Compiler
17161	    lt_prog_compiler_pic_CXX='-PIC'
17162	    ;;
17163	  *)
17164	    ;;
17165	esac
17166	;;
17167      sunos4*)
17168	case $cc_basename in
17169	  CC*)
17170	    # Sun C++ 4.x
17171	    lt_prog_compiler_pic_CXX='-pic'
17172	    lt_prog_compiler_static_CXX='-Bstatic'
17173	    ;;
17174	  lcc*)
17175	    # Lucid
17176	    lt_prog_compiler_pic_CXX='-pic'
17177	    ;;
17178	  *)
17179	    ;;
17180	esac
17181	;;
17182      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17183	case $cc_basename in
17184	  CC*)
17185	    lt_prog_compiler_wl_CXX='-Wl,'
17186	    lt_prog_compiler_pic_CXX='-KPIC'
17187	    lt_prog_compiler_static_CXX='-Bstatic'
17188	    ;;
17189	esac
17190	;;
17191      tandem*)
17192	case $cc_basename in
17193	  NCC*)
17194	    # NonStop-UX NCC 3.20
17195	    lt_prog_compiler_pic_CXX='-KPIC'
17196	    ;;
17197	  *)
17198	    ;;
17199	esac
17200	;;
17201      vxworks*)
17202	;;
17203      *)
17204	lt_prog_compiler_can_build_shared_CXX=no
17205	;;
17206    esac
17207  fi
17208
17209case $host_os in
17210  # For platforms that do not support PIC, -DPIC is meaningless:
17211  *djgpp*)
17212    lt_prog_compiler_pic_CXX=
17213    ;;
17214  *)
17215    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17216    ;;
17217esac
17218
17219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17220printf %s "checking for $compiler option to produce PIC... " >&6; }
17221if test ${lt_cv_prog_compiler_pic_CXX+y}
17222then :
17223  printf %s "(cached) " >&6
17224else $as_nop
17225  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17226fi
17227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17228printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
17229lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17230
17231#
17232# Check to make sure the PIC flag actually works.
17233#
17234if test -n "$lt_prog_compiler_pic_CXX"; then
17235  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17236printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17237if test ${lt_cv_prog_compiler_pic_works_CXX+y}
17238then :
17239  printf %s "(cached) " >&6
17240else $as_nop
17241  lt_cv_prog_compiler_pic_works_CXX=no
17242   ac_outfile=conftest.$ac_objext
17243   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17244   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
17245   # Insert the option either (1) after the last *FLAGS variable, or
17246   # (2) before a word containing "conftest.", or (3) at the end.
17247   # Note that $ac_compile itself does not contain backslashes and begins
17248   # with a dollar sign (not a hyphen), so the echo should work correctly.
17249   # The option is referenced via a variable to avoid confusing sed.
17250   lt_compile=`echo "$ac_compile" | $SED \
17251   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17252   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17253   -e 's:$: $lt_compiler_flag:'`
17254   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17255   (eval "$lt_compile" 2>conftest.err)
17256   ac_status=$?
17257   cat conftest.err >&5
17258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259   if (exit $ac_status) && test -s "$ac_outfile"; then
17260     # The compiler can only warn and ignore the option if not recognized
17261     # So say no if there are warnings other than the usual output.
17262     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17263     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17264     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17265       lt_cv_prog_compiler_pic_works_CXX=yes
17266     fi
17267   fi
17268   $RM conftest*
17269
17270fi
17271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17272printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17273
17274if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17275    case $lt_prog_compiler_pic_CXX in
17276     "" | " "*) ;;
17277     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17278     esac
17279else
17280    lt_prog_compiler_pic_CXX=
17281     lt_prog_compiler_can_build_shared_CXX=no
17282fi
17283
17284fi
17285
17286
17287
17288
17289
17290#
17291# Check to make sure the static flag actually works.
17292#
17293wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17295printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17296if test ${lt_cv_prog_compiler_static_works_CXX+y}
17297then :
17298  printf %s "(cached) " >&6
17299else $as_nop
17300  lt_cv_prog_compiler_static_works_CXX=no
17301   save_LDFLAGS=$LDFLAGS
17302   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17303   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17304   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17305     # The linker can only warn and ignore the option if not recognized
17306     # So say no if there are warnings
17307     if test -s conftest.err; then
17308       # Append any errors to the config.log.
17309       cat conftest.err 1>&5
17310       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17311       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17312       if diff conftest.exp conftest.er2 >/dev/null; then
17313         lt_cv_prog_compiler_static_works_CXX=yes
17314       fi
17315     else
17316       lt_cv_prog_compiler_static_works_CXX=yes
17317     fi
17318   fi
17319   $RM -r conftest*
17320   LDFLAGS=$save_LDFLAGS
17321
17322fi
17323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17324printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17325
17326if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17327    :
17328else
17329    lt_prog_compiler_static_CXX=
17330fi
17331
17332
17333
17334
17335    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17336printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17337if test ${lt_cv_prog_compiler_c_o_CXX+y}
17338then :
17339  printf %s "(cached) " >&6
17340else $as_nop
17341  lt_cv_prog_compiler_c_o_CXX=no
17342   $RM -r conftest 2>/dev/null
17343   mkdir conftest
17344   cd conftest
17345   mkdir out
17346   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17347
17348   lt_compiler_flag="-o out/conftest2.$ac_objext"
17349   # Insert the option either (1) after the last *FLAGS variable, or
17350   # (2) before a word containing "conftest.", or (3) at the end.
17351   # Note that $ac_compile itself does not contain backslashes and begins
17352   # with a dollar sign (not a hyphen), so the echo should work correctly.
17353   lt_compile=`echo "$ac_compile" | $SED \
17354   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17355   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17356   -e 's:$: $lt_compiler_flag:'`
17357   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17358   (eval "$lt_compile" 2>out/conftest.err)
17359   ac_status=$?
17360   cat out/conftest.err >&5
17361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17363   then
17364     # The compiler can only warn and ignore the option if not recognized
17365     # So say no if there are warnings
17366     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17367     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17368     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17369       lt_cv_prog_compiler_c_o_CXX=yes
17370     fi
17371   fi
17372   chmod u+w . 2>&5
17373   $RM conftest*
17374   # SGI C++ compiler will create directory out/ii_files/ for
17375   # template instantiation
17376   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17377   $RM out/* && rmdir out
17378   cd ..
17379   $RM -r conftest
17380   $RM conftest*
17381
17382fi
17383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17384printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17385
17386
17387
17388    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17389printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17390if test ${lt_cv_prog_compiler_c_o_CXX+y}
17391then :
17392  printf %s "(cached) " >&6
17393else $as_nop
17394  lt_cv_prog_compiler_c_o_CXX=no
17395   $RM -r conftest 2>/dev/null
17396   mkdir conftest
17397   cd conftest
17398   mkdir out
17399   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17400
17401   lt_compiler_flag="-o out/conftest2.$ac_objext"
17402   # Insert the option either (1) after the last *FLAGS variable, or
17403   # (2) before a word containing "conftest.", or (3) at the end.
17404   # Note that $ac_compile itself does not contain backslashes and begins
17405   # with a dollar sign (not a hyphen), so the echo should work correctly.
17406   lt_compile=`echo "$ac_compile" | $SED \
17407   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17408   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17409   -e 's:$: $lt_compiler_flag:'`
17410   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17411   (eval "$lt_compile" 2>out/conftest.err)
17412   ac_status=$?
17413   cat out/conftest.err >&5
17414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17416   then
17417     # The compiler can only warn and ignore the option if not recognized
17418     # So say no if there are warnings
17419     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17420     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17421     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17422       lt_cv_prog_compiler_c_o_CXX=yes
17423     fi
17424   fi
17425   chmod u+w . 2>&5
17426   $RM conftest*
17427   # SGI C++ compiler will create directory out/ii_files/ for
17428   # template instantiation
17429   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17430   $RM out/* && rmdir out
17431   cd ..
17432   $RM -r conftest
17433   $RM conftest*
17434
17435fi
17436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17437printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17438
17439
17440
17441
17442hard_links=nottested
17443if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17444  # do not overwrite the value of need_locks provided by the user
17445  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17446printf %s "checking if we can lock with hard links... " >&6; }
17447  hard_links=yes
17448  $RM conftest*
17449  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17450  touch conftest.a
17451  ln conftest.a conftest.b 2>&5 || hard_links=no
17452  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17453  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17454printf "%s\n" "$hard_links" >&6; }
17455  if test no = "$hard_links"; then
17456    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17457printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17458    need_locks=warn
17459  fi
17460else
17461  need_locks=no
17462fi
17463
17464
17465
17466    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17467printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17468
17469  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17470  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17471  case $host_os in
17472  aix[4-9]*)
17473    # If we're using GNU nm, then we don't want the "-C" option.
17474    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17475    # Without the "-l" option, or with the "-B" option, AIX nm treats
17476    # weak defined symbols like other global defined symbols, whereas
17477    # GNU nm marks them as "W".
17478    # While the 'weak' keyword is ignored in the Export File, we need
17479    # it in the Import File for the 'aix-soname' feature, so we have
17480    # to replace the "-B" option with "-P" for AIX nm.
17481    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17482      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'
17483    else
17484      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 == "L") || (\$ 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'
17485    fi
17486    ;;
17487  pw32*)
17488    export_symbols_cmds_CXX=$ltdll_cmds
17489    ;;
17490  cygwin* | mingw* | cegcc*)
17491    case $cc_basename in
17492    cl* | icl*)
17493      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17494      ;;
17495    *)
17496      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'
17497      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17498      ;;
17499    esac
17500    ;;
17501  *)
17502    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17503    ;;
17504  esac
17505
17506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17507printf "%s\n" "$ld_shlibs_CXX" >&6; }
17508test no = "$ld_shlibs_CXX" && can_build_shared=no
17509
17510with_gnu_ld_CXX=$with_gnu_ld
17511
17512
17513
17514
17515
17516
17517#
17518# Do we need to explicitly link libc?
17519#
17520case "x$archive_cmds_need_lc_CXX" in
17521x|xyes)
17522  # Assume -lc should be added
17523  archive_cmds_need_lc_CXX=yes
17524
17525  if test yes,yes = "$GCC,$enable_shared"; then
17526    case $archive_cmds_CXX in
17527    *'~'*)
17528      # FIXME: we may have to deal with multi-command sequences.
17529      ;;
17530    '$CC '*)
17531      # Test whether the compiler implicitly links with -lc since on some
17532      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17533      # to ld, don't add -lc before -lgcc.
17534      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17535printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17536if test ${lt_cv_archive_cmds_need_lc_CXX+y}
17537then :
17538  printf %s "(cached) " >&6
17539else $as_nop
17540  $RM conftest*
17541	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17542
17543	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17544  (eval $ac_compile) 2>&5
17545  ac_status=$?
17546  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17547  test $ac_status = 0; } 2>conftest.err; then
17548	  soname=conftest
17549	  lib=conftest
17550	  libobjs=conftest.$ac_objext
17551	  deplibs=
17552	  wl=$lt_prog_compiler_wl_CXX
17553	  pic_flag=$lt_prog_compiler_pic_CXX
17554	  compiler_flags=-v
17555	  linker_flags=-v
17556	  verstring=
17557	  output_objdir=.
17558	  libname=conftest
17559	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17560	  allow_undefined_flag_CXX=
17561	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17562  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17563  ac_status=$?
17564  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17565  test $ac_status = 0; }
17566	  then
17567	    lt_cv_archive_cmds_need_lc_CXX=no
17568	  else
17569	    lt_cv_archive_cmds_need_lc_CXX=yes
17570	  fi
17571	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17572	else
17573	  cat conftest.err 1>&5
17574	fi
17575	$RM conftest*
17576
17577fi
17578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17579printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17580      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17581      ;;
17582    esac
17583  fi
17584  ;;
17585esac
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17649printf %s "checking dynamic linker characteristics... " >&6; }
17650
17651library_names_spec=
17652libname_spec='lib$name'
17653soname_spec=
17654shrext_cmds=.so
17655postinstall_cmds=
17656postuninstall_cmds=
17657finish_cmds=
17658finish_eval=
17659shlibpath_var=
17660shlibpath_overrides_runpath=unknown
17661version_type=none
17662dynamic_linker="$host_os ld.so"
17663sys_lib_dlsearch_path_spec="/lib /usr/lib"
17664need_lib_prefix=unknown
17665hardcode_into_libs=no
17666
17667# when you set need_version to no, make sure it does not cause -set_version
17668# flags to be left without arguments
17669need_version=unknown
17670
17671
17672
17673case $host_os in
17674aix3*)
17675  version_type=linux # correct to gnu/linux during the next big refactor
17676  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17677  shlibpath_var=LIBPATH
17678
17679  # AIX 3 has no versioning support, so we append a major version to the name.
17680  soname_spec='$libname$release$shared_ext$major'
17681  ;;
17682
17683aix[4-9]*)
17684  version_type=linux # correct to gnu/linux during the next big refactor
17685  need_lib_prefix=no
17686  need_version=no
17687  hardcode_into_libs=yes
17688  if test ia64 = "$host_cpu"; then
17689    # AIX 5 supports IA64
17690    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17691    shlibpath_var=LD_LIBRARY_PATH
17692  else
17693    # With GCC up to 2.95.x, collect2 would create an import file
17694    # for dependence libraries.  The import file would start with
17695    # the line '#! .'.  This would cause the generated library to
17696    # depend on '.', always an invalid library.  This was fixed in
17697    # development snapshots of GCC prior to 3.0.
17698    case $host_os in
17699      aix4 | aix4.[01] | aix4.[01].*)
17700      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17701	   echo ' yes '
17702	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17703	:
17704      else
17705	can_build_shared=no
17706      fi
17707      ;;
17708    esac
17709    # Using Import Files as archive members, it is possible to support
17710    # filename-based versioning of shared library archives on AIX. While
17711    # this would work for both with and without runtime linking, it will
17712    # prevent static linking of such archives. So we do filename-based
17713    # shared library versioning with .so extension only, which is used
17714    # when both runtime linking and shared linking is enabled.
17715    # Unfortunately, runtime linking may impact performance, so we do
17716    # not want this to be the default eventually. Also, we use the
17717    # versioned .so libs for executables only if there is the -brtl
17718    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17719    # To allow for filename-based versioning support, we need to create
17720    # libNAME.so.V as an archive file, containing:
17721    # *) an Import File, referring to the versioned filename of the
17722    #    archive as well as the shared archive member, telling the
17723    #    bitwidth (32 or 64) of that shared object, and providing the
17724    #    list of exported symbols of that shared object, eventually
17725    #    decorated with the 'weak' keyword
17726    # *) the shared object with the F_LOADONLY flag set, to really avoid
17727    #    it being seen by the linker.
17728    # At run time we better use the real file rather than another symlink,
17729    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17730
17731    case $with_aix_soname,$aix_use_runtimelinking in
17732    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17733    # soname into executable. Probably we can add versioning support to
17734    # collect2, so additional links can be useful in future.
17735    aix,yes) # traditional libtool
17736      dynamic_linker='AIX unversionable lib.so'
17737      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17738      # instead of lib<name>.a to let people know that these are not
17739      # typical AIX shared libraries.
17740      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17741      ;;
17742    aix,no) # traditional AIX only
17743      dynamic_linker='AIX lib.a(lib.so.V)'
17744      # We preserve .a as extension for shared libraries through AIX4.2
17745      # and later when we are not doing run time linking.
17746      library_names_spec='$libname$release.a $libname.a'
17747      soname_spec='$libname$release$shared_ext$major'
17748      ;;
17749    svr4,*) # full svr4 only
17750      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17751      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17752      # We do not specify a path in Import Files, so LIBPATH fires.
17753      shlibpath_overrides_runpath=yes
17754      ;;
17755    *,yes) # both, prefer svr4
17756      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17757      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17758      # unpreferred sharedlib libNAME.a needs extra handling
17759      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"'
17760      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"'
17761      # We do not specify a path in Import Files, so LIBPATH fires.
17762      shlibpath_overrides_runpath=yes
17763      ;;
17764    *,no) # both, prefer aix
17765      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17766      library_names_spec='$libname$release.a $libname.a'
17767      soname_spec='$libname$release$shared_ext$major'
17768      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17769      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)'
17770      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"'
17771      ;;
17772    esac
17773    shlibpath_var=LIBPATH
17774  fi
17775  ;;
17776
17777amigaos*)
17778  case $host_cpu in
17779  powerpc)
17780    # Since July 2007 AmigaOS4 officially supports .so libraries.
17781    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17782    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17783    ;;
17784  m68k)
17785    library_names_spec='$libname.ixlibrary $libname.a'
17786    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17787    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'
17788    ;;
17789  esac
17790  ;;
17791
17792beos*)
17793  library_names_spec='$libname$shared_ext'
17794  dynamic_linker="$host_os ld.so"
17795  shlibpath_var=LIBRARY_PATH
17796  ;;
17797
17798bsdi[45]*)
17799  version_type=linux # correct to gnu/linux during the next big refactor
17800  need_version=no
17801  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17802  soname_spec='$libname$release$shared_ext$major'
17803  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17804  shlibpath_var=LD_LIBRARY_PATH
17805  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17806  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17807  # the default ld.so.conf also contains /usr/contrib/lib and
17808  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17809  # libtool to hard-code these into programs
17810  ;;
17811
17812cygwin* | mingw* | pw32* | cegcc*)
17813  version_type=windows
17814  shrext_cmds=.dll
17815  need_version=no
17816  need_lib_prefix=no
17817
17818  case $GCC,$cc_basename in
17819  yes,*)
17820    # gcc
17821    library_names_spec='$libname.dll.a'
17822    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17823    postinstall_cmds='base_file=`basename \$file`~
17824      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17825      dldir=$destdir/`dirname \$dlpath`~
17826      test -d \$dldir || mkdir -p \$dldir~
17827      $install_prog $dir/$dlname \$dldir/$dlname~
17828      chmod a+x \$dldir/$dlname~
17829      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17830        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17831      fi'
17832    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17833      dlpath=$dir/\$dldll~
17834       $RM \$dlpath'
17835    shlibpath_overrides_runpath=yes
17836
17837    case $host_os in
17838    cygwin*)
17839      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17840      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17841
17842      ;;
17843    mingw* | cegcc*)
17844      # MinGW DLLs use traditional 'lib' prefix
17845      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17846      ;;
17847    pw32*)
17848      # pw32 DLLs use 'pw' prefix rather than 'lib'
17849      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17850      ;;
17851    esac
17852    dynamic_linker='Win32 ld.exe'
17853    ;;
17854
17855  *,cl* | *,icl*)
17856    # Native MSVC or ICC
17857    libname_spec='$name'
17858    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17859    library_names_spec='$libname.dll.lib'
17860
17861    case $build_os in
17862    mingw*)
17863      sys_lib_search_path_spec=
17864      lt_save_ifs=$IFS
17865      IFS=';'
17866      for lt_path in $LIB
17867      do
17868        IFS=$lt_save_ifs
17869        # Let DOS variable expansion print the short 8.3 style file name.
17870        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17871        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17872      done
17873      IFS=$lt_save_ifs
17874      # Convert to MSYS style.
17875      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17876      ;;
17877    cygwin*)
17878      # Convert to unix form, then to dos form, then back to unix form
17879      # but this time dos style (no spaces!) so that the unix form looks
17880      # like /cygdrive/c/PROGRA~1:/cygdr...
17881      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17882      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17883      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17884      ;;
17885    *)
17886      sys_lib_search_path_spec=$LIB
17887      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17888        # It is most probably a Windows format PATH.
17889        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17890      else
17891        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17892      fi
17893      # FIXME: find the short name or the path components, as spaces are
17894      # common. (e.g. "Program Files" -> "PROGRA~1")
17895      ;;
17896    esac
17897
17898    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17899    postinstall_cmds='base_file=`basename \$file`~
17900      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17901      dldir=$destdir/`dirname \$dlpath`~
17902      test -d \$dldir || mkdir -p \$dldir~
17903      $install_prog $dir/$dlname \$dldir/$dlname'
17904    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17905      dlpath=$dir/\$dldll~
17906       $RM \$dlpath'
17907    shlibpath_overrides_runpath=yes
17908    dynamic_linker='Win32 link.exe'
17909    ;;
17910
17911  *)
17912    # Assume MSVC and ICC wrapper
17913    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17914    dynamic_linker='Win32 ld.exe'
17915    ;;
17916  esac
17917  # FIXME: first we should search . and the directory the executable is in
17918  shlibpath_var=PATH
17919  ;;
17920
17921darwin* | rhapsody*)
17922  dynamic_linker="$host_os dyld"
17923  version_type=darwin
17924  need_lib_prefix=no
17925  need_version=no
17926  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17927  soname_spec='$libname$release$major$shared_ext'
17928  shlibpath_overrides_runpath=yes
17929  shlibpath_var=DYLD_LIBRARY_PATH
17930  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17931
17932  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17933  ;;
17934
17935dgux*)
17936  version_type=linux # correct to gnu/linux during the next big refactor
17937  need_lib_prefix=no
17938  need_version=no
17939  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17940  soname_spec='$libname$release$shared_ext$major'
17941  shlibpath_var=LD_LIBRARY_PATH
17942  ;;
17943
17944freebsd* | dragonfly*)
17945  # DragonFly does not have aout.  When/if they implement a new
17946  # versioning mechanism, adjust this.
17947  if test -x /usr/bin/objformat; then
17948    objformat=`/usr/bin/objformat`
17949  else
17950    case $host_os in
17951    freebsd[23].*) objformat=aout ;;
17952    *) objformat=elf ;;
17953    esac
17954  fi
17955  version_type=freebsd-$objformat
17956  case $version_type in
17957    freebsd-elf*)
17958      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17959      soname_spec='$libname$release$shared_ext$major'
17960      need_version=no
17961      need_lib_prefix=no
17962      ;;
17963    freebsd-*)
17964      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17965      need_version=yes
17966      ;;
17967  esac
17968  shlibpath_var=LD_LIBRARY_PATH
17969  case $host_os in
17970  freebsd2.*)
17971    shlibpath_overrides_runpath=yes
17972    ;;
17973  freebsd3.[01]* | freebsdelf3.[01]*)
17974    shlibpath_overrides_runpath=yes
17975    hardcode_into_libs=yes
17976    ;;
17977  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17978  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17979    shlibpath_overrides_runpath=no
17980    hardcode_into_libs=yes
17981    ;;
17982  *) # from 4.6 on, and DragonFly
17983    shlibpath_overrides_runpath=yes
17984    hardcode_into_libs=yes
17985    ;;
17986  esac
17987  ;;
17988
17989haiku*)
17990  version_type=linux # correct to gnu/linux during the next big refactor
17991  need_lib_prefix=no
17992  need_version=no
17993  dynamic_linker="$host_os runtime_loader"
17994  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17995  soname_spec='$libname$release$shared_ext$major'
17996  shlibpath_var=LIBRARY_PATH
17997  shlibpath_overrides_runpath=no
17998  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17999  hardcode_into_libs=yes
18000  ;;
18001
18002hpux9* | hpux10* | hpux11*)
18003  # Give a soname corresponding to the major version so that dld.sl refuses to
18004  # link against other versions.
18005  version_type=sunos
18006  need_lib_prefix=no
18007  need_version=no
18008  case $host_cpu in
18009  ia64*)
18010    shrext_cmds='.so'
18011    hardcode_into_libs=yes
18012    dynamic_linker="$host_os dld.so"
18013    shlibpath_var=LD_LIBRARY_PATH
18014    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18015    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18016    soname_spec='$libname$release$shared_ext$major'
18017    if test 32 = "$HPUX_IA64_MODE"; then
18018      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18019      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18020    else
18021      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18022      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18023    fi
18024    ;;
18025  hppa*64*)
18026    shrext_cmds='.sl'
18027    hardcode_into_libs=yes
18028    dynamic_linker="$host_os dld.sl"
18029    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18030    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18031    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18032    soname_spec='$libname$release$shared_ext$major'
18033    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18034    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18035    ;;
18036  *)
18037    shrext_cmds='.sl'
18038    dynamic_linker="$host_os dld.sl"
18039    shlibpath_var=SHLIB_PATH
18040    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18041    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18042    soname_spec='$libname$release$shared_ext$major'
18043    ;;
18044  esac
18045  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18046  postinstall_cmds='chmod 555 $lib'
18047  # or fails outright, so override atomically:
18048  install_override_mode=555
18049  ;;
18050
18051interix[3-9]*)
18052  version_type=linux # correct to gnu/linux during the next big refactor
18053  need_lib_prefix=no
18054  need_version=no
18055  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18056  soname_spec='$libname$release$shared_ext$major'
18057  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18058  shlibpath_var=LD_LIBRARY_PATH
18059  shlibpath_overrides_runpath=no
18060  hardcode_into_libs=yes
18061  ;;
18062
18063irix5* | irix6* | nonstopux*)
18064  case $host_os in
18065    nonstopux*) version_type=nonstopux ;;
18066    *)
18067	if test yes = "$lt_cv_prog_gnu_ld"; then
18068		version_type=linux # correct to gnu/linux during the next big refactor
18069	else
18070		version_type=irix
18071	fi ;;
18072  esac
18073  need_lib_prefix=no
18074  need_version=no
18075  soname_spec='$libname$release$shared_ext$major'
18076  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18077  case $host_os in
18078  irix5* | nonstopux*)
18079    libsuff= shlibsuff=
18080    ;;
18081  *)
18082    case $LD in # libtool.m4 will add one of these switches to LD
18083    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18084      libsuff= shlibsuff= libmagic=32-bit;;
18085    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18086      libsuff=32 shlibsuff=N32 libmagic=N32;;
18087    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18088      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18089    *) libsuff= shlibsuff= libmagic=never-match;;
18090    esac
18091    ;;
18092  esac
18093  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18094  shlibpath_overrides_runpath=no
18095  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18096  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18097  hardcode_into_libs=yes
18098  ;;
18099
18100# No shared lib support for Linux oldld, aout, or coff.
18101linux*oldld* | linux*aout* | linux*coff*)
18102  dynamic_linker=no
18103  ;;
18104
18105linux*android*)
18106  version_type=none # Android doesn't support versioned libraries.
18107  need_lib_prefix=no
18108  need_version=no
18109  library_names_spec='$libname$release$shared_ext'
18110  soname_spec='$libname$release$shared_ext'
18111  finish_cmds=
18112  shlibpath_var=LD_LIBRARY_PATH
18113  shlibpath_overrides_runpath=yes
18114
18115  # This implies no fast_install, which is unacceptable.
18116  # Some rework will be needed to allow for fast_install
18117  # before this can be enabled.
18118  hardcode_into_libs=yes
18119
18120  dynamic_linker='Android linker'
18121  # Don't embed -rpath directories since the linker doesn't support them.
18122  hardcode_libdir_flag_spec_CXX='-L$libdir'
18123  ;;
18124
18125# This must be glibc/ELF.
18126linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18127  version_type=linux # correct to gnu/linux during the next big refactor
18128  need_lib_prefix=no
18129  need_version=no
18130  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18131  soname_spec='$libname$release$shared_ext$major'
18132  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18133  shlibpath_var=LD_LIBRARY_PATH
18134  shlibpath_overrides_runpath=no
18135
18136  # Some binutils ld are patched to set DT_RUNPATH
18137  if test ${lt_cv_shlibpath_overrides_runpath+y}
18138then :
18139  printf %s "(cached) " >&6
18140else $as_nop
18141  lt_cv_shlibpath_overrides_runpath=no
18142    save_LDFLAGS=$LDFLAGS
18143    save_libdir=$libdir
18144    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18145	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18146    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18147/* end confdefs.h.  */
18148
18149int
18150main (void)
18151{
18152
18153  ;
18154  return 0;
18155}
18156_ACEOF
18157if ac_fn_cxx_try_link "$LINENO"
18158then :
18159  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18160then :
18161  lt_cv_shlibpath_overrides_runpath=yes
18162fi
18163fi
18164rm -f core conftest.err conftest.$ac_objext conftest.beam \
18165    conftest$ac_exeext conftest.$ac_ext
18166    LDFLAGS=$save_LDFLAGS
18167    libdir=$save_libdir
18168
18169fi
18170
18171  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18172
18173  # This implies no fast_install, which is unacceptable.
18174  # Some rework will be needed to allow for fast_install
18175  # before this can be enabled.
18176  hardcode_into_libs=yes
18177
18178  # Ideally, we could use ldconfig to report *all* directores which are
18179  # searched for libraries, however this is still not possible.  Aside from not
18180  # being certain /sbin/ldconfig is available, command
18181  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18182  # even though it is searched at run-time.  Try to do the best guess by
18183  # appending ld.so.conf contents (and includes) to the search path.
18184  if test -f /etc/ld.so.conf; then
18185    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' ' '`
18186    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18187  fi
18188
18189  # We used to test for /lib/ld.so.1 and disable shared libraries on
18190  # powerpc, because MkLinux only supported shared libraries with the
18191  # GNU dynamic linker.  Since this was broken with cross compilers,
18192  # most powerpc-linux boxes support dynamic linking these days and
18193  # people can always --disable-shared, the test was removed, and we
18194  # assume the GNU/Linux dynamic linker is in use.
18195  dynamic_linker='GNU/Linux ld.so'
18196  ;;
18197
18198netbsd*)
18199  version_type=sunos
18200  need_lib_prefix=no
18201  need_version=no
18202  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18203    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18204    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18205    dynamic_linker='NetBSD (a.out) ld.so'
18206  else
18207    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18208    soname_spec='$libname$release$shared_ext$major'
18209    dynamic_linker='NetBSD ld.elf_so'
18210  fi
18211  shlibpath_var=LD_LIBRARY_PATH
18212  shlibpath_overrides_runpath=yes
18213  hardcode_into_libs=yes
18214  ;;
18215
18216newsos6)
18217  version_type=linux # correct to gnu/linux during the next big refactor
18218  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18219  shlibpath_var=LD_LIBRARY_PATH
18220  shlibpath_overrides_runpath=yes
18221  ;;
18222
18223*nto* | *qnx*)
18224  version_type=qnx
18225  need_lib_prefix=no
18226  need_version=no
18227  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18228  soname_spec='$libname$release$shared_ext$major'
18229  shlibpath_var=LD_LIBRARY_PATH
18230  shlibpath_overrides_runpath=no
18231  hardcode_into_libs=yes
18232  dynamic_linker='ldqnx.so'
18233  ;;
18234
18235openbsd* | bitrig*)
18236  version_type=sunos
18237  sys_lib_dlsearch_path_spec=/usr/lib
18238  need_lib_prefix=no
18239  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18240    need_version=no
18241  else
18242    need_version=yes
18243  fi
18244  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18245  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18246  shlibpath_var=LD_LIBRARY_PATH
18247  shlibpath_overrides_runpath=yes
18248  ;;
18249
18250os2*)
18251  libname_spec='$name'
18252  version_type=windows
18253  shrext_cmds=.dll
18254  need_version=no
18255  need_lib_prefix=no
18256  # OS/2 can only load a DLL with a base name of 8 characters or less.
18257  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18258    v=$($ECHO $release$versuffix | tr -d .-);
18259    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18260    $ECHO $n$v`$shared_ext'
18261  library_names_spec='${libname}_dll.$libext'
18262  dynamic_linker='OS/2 ld.exe'
18263  shlibpath_var=BEGINLIBPATH
18264  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18265  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18266  postinstall_cmds='base_file=`basename \$file`~
18267    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18268    dldir=$destdir/`dirname \$dlpath`~
18269    test -d \$dldir || mkdir -p \$dldir~
18270    $install_prog $dir/$dlname \$dldir/$dlname~
18271    chmod a+x \$dldir/$dlname~
18272    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18273      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18274    fi'
18275  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18276    dlpath=$dir/\$dldll~
18277    $RM \$dlpath'
18278  ;;
18279
18280osf3* | osf4* | osf5*)
18281  version_type=osf
18282  need_lib_prefix=no
18283  need_version=no
18284  soname_spec='$libname$release$shared_ext$major'
18285  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18286  shlibpath_var=LD_LIBRARY_PATH
18287  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18288  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18289  ;;
18290
18291rdos*)
18292  dynamic_linker=no
18293  ;;
18294
18295solaris*)
18296  version_type=linux # correct to gnu/linux during the next big refactor
18297  need_lib_prefix=no
18298  need_version=no
18299  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18300  soname_spec='$libname$release$shared_ext$major'
18301  shlibpath_var=LD_LIBRARY_PATH
18302  shlibpath_overrides_runpath=yes
18303  hardcode_into_libs=yes
18304  # ldd complains unless libraries are executable
18305  postinstall_cmds='chmod +x $lib'
18306  ;;
18307
18308sunos4*)
18309  version_type=sunos
18310  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18311  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18312  shlibpath_var=LD_LIBRARY_PATH
18313  shlibpath_overrides_runpath=yes
18314  if test yes = "$with_gnu_ld"; then
18315    need_lib_prefix=no
18316  fi
18317  need_version=yes
18318  ;;
18319
18320sysv4 | sysv4.3*)
18321  version_type=linux # correct to gnu/linux during the next big refactor
18322  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18323  soname_spec='$libname$release$shared_ext$major'
18324  shlibpath_var=LD_LIBRARY_PATH
18325  case $host_vendor in
18326    sni)
18327      shlibpath_overrides_runpath=no
18328      need_lib_prefix=no
18329      runpath_var=LD_RUN_PATH
18330      ;;
18331    siemens)
18332      need_lib_prefix=no
18333      ;;
18334    motorola)
18335      need_lib_prefix=no
18336      need_version=no
18337      shlibpath_overrides_runpath=no
18338      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18339      ;;
18340  esac
18341  ;;
18342
18343sysv4*MP*)
18344  if test -d /usr/nec; then
18345    version_type=linux # correct to gnu/linux during the next big refactor
18346    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18347    soname_spec='$libname$shared_ext.$major'
18348    shlibpath_var=LD_LIBRARY_PATH
18349  fi
18350  ;;
18351
18352sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18353  version_type=sco
18354  need_lib_prefix=no
18355  need_version=no
18356  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18357  soname_spec='$libname$release$shared_ext$major'
18358  shlibpath_var=LD_LIBRARY_PATH
18359  shlibpath_overrides_runpath=yes
18360  hardcode_into_libs=yes
18361  if test yes = "$with_gnu_ld"; then
18362    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18363  else
18364    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18365    case $host_os in
18366      sco3.2v5*)
18367        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18368	;;
18369    esac
18370  fi
18371  sys_lib_dlsearch_path_spec='/usr/lib'
18372  ;;
18373
18374tpf*)
18375  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18376  version_type=linux # correct to gnu/linux during the next big refactor
18377  need_lib_prefix=no
18378  need_version=no
18379  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18380  shlibpath_var=LD_LIBRARY_PATH
18381  shlibpath_overrides_runpath=no
18382  hardcode_into_libs=yes
18383  ;;
18384
18385uts4*)
18386  version_type=linux # correct to gnu/linux during the next big refactor
18387  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18388  soname_spec='$libname$release$shared_ext$major'
18389  shlibpath_var=LD_LIBRARY_PATH
18390  ;;
18391
18392*)
18393  dynamic_linker=no
18394  ;;
18395esac
18396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18397printf "%s\n" "$dynamic_linker" >&6; }
18398test no = "$dynamic_linker" && can_build_shared=no
18399
18400variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18401if test yes = "$GCC"; then
18402  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18403fi
18404
18405if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18406  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18407fi
18408
18409if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18410  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18411fi
18412
18413# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18414configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18415
18416# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18417func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18418
18419# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18420configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18462printf %s "checking how to hardcode library paths into programs... " >&6; }
18463hardcode_action_CXX=
18464if test -n "$hardcode_libdir_flag_spec_CXX" ||
18465   test -n "$runpath_var_CXX" ||
18466   test yes = "$hardcode_automatic_CXX"; then
18467
18468  # We can hardcode non-existent directories.
18469  if test no != "$hardcode_direct_CXX" &&
18470     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18471     # have to relink, otherwise we might link with an installed library
18472     # when we should be linking with a yet-to-be-installed one
18473     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18474     test no != "$hardcode_minus_L_CXX"; then
18475    # Linking always hardcodes the temporary library directory.
18476    hardcode_action_CXX=relink
18477  else
18478    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18479    hardcode_action_CXX=immediate
18480  fi
18481else
18482  # We cannot hardcode anything, or else we can only hardcode existing
18483  # directories.
18484  hardcode_action_CXX=unsupported
18485fi
18486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18487printf "%s\n" "$hardcode_action_CXX" >&6; }
18488
18489if test relink = "$hardcode_action_CXX" ||
18490   test yes = "$inherit_rpath_CXX"; then
18491  # Fast installation is not supported
18492  enable_fast_install=no
18493elif test yes = "$shlibpath_overrides_runpath" ||
18494     test no = "$enable_shared"; then
18495  # Fast installation is not necessary
18496  enable_fast_install=needless
18497fi
18498
18499
18500
18501
18502
18503
18504
18505  fi # test -n "$compiler"
18506
18507  CC=$lt_save_CC
18508  CFLAGS=$lt_save_CFLAGS
18509  LDCXX=$LD
18510  LD=$lt_save_LD
18511  GCC=$lt_save_GCC
18512  with_gnu_ld=$lt_save_with_gnu_ld
18513  lt_cv_path_LDCXX=$lt_cv_path_LD
18514  lt_cv_path_LD=$lt_save_path_LD
18515  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18516  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18517fi # test yes != "$_lt_caught_CXX_error"
18518
18519ac_ext=c
18520ac_cpp='$CPP $CPPFLAGS'
18521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18523ac_compiler_gnu=$ac_cv_c_compiler_gnu
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539        ac_config_commands="$ac_config_commands libtool"
18540
18541
18542
18543
18544# Only expand once:
18545
18546
18547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
18548printf %s "checking whether ln -s works... " >&6; }
18549LN_S=$as_ln_s
18550if test "$LN_S" = "ln -s"; then
18551  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18552printf "%s\n" "yes" >&6; }
18553else
18554  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
18555printf "%s\n" "no, using $LN_S" >&6; }
18556fi
18557
18558
18559# Check for GCC visibility feature
18560
18561
18562
18563  VISIBILITY_CFLAGS=
18564  VISIBILITY_CXXFLAGS=
18565  HAVE_VISIBILITY=0
18566  if test -n "$GCC"; then
18567                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
18568printf %s "checking whether the -Werror option is usable... " >&6; }
18569    if test ${pcre_cv_cc_vis_werror+y}
18570then :
18571  printf %s "(cached) " >&6
18572else $as_nop
18573
18574      pcre_save_CFLAGS="$CFLAGS"
18575      CFLAGS="$CFLAGS -Werror"
18576      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18577/* end confdefs.h.  */
18578
18579int
18580main (void)
18581{
18582
18583  ;
18584  return 0;
18585}
18586_ACEOF
18587if ac_fn_c_try_compile "$LINENO"
18588then :
18589  pcre_cv_cc_vis_werror=yes
18590else $as_nop
18591  pcre_cv_cc_vis_werror=no
18592fi
18593rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18594      CFLAGS="$pcre_save_CFLAGS"
18595fi
18596
18597    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pcre_cv_cc_vis_werror" >&5
18598printf "%s\n" "$pcre_cv_cc_vis_werror" >&6; }
18599        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
18600printf %s "checking for simple visibility declarations... " >&6; }
18601    if test ${pcre_cv_cc_visibility+y}
18602then :
18603  printf %s "(cached) " >&6
18604else $as_nop
18605
18606      pcre_save_CFLAGS="$CFLAGS"
18607      CFLAGS="$CFLAGS -fvisibility=hidden"
18608                                    if test $pcre_cv_cc_vis_werror = yes; then
18609        CFLAGS="$CFLAGS -Werror"
18610      fi
18611      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18612/* end confdefs.h.  */
18613extern __attribute__((__visibility__("hidden"))) int hiddenvar;
18614             extern __attribute__((__visibility__("default"))) int exportedvar;
18615             extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
18616             extern __attribute__((__visibility__("default"))) int exportedfunc (void);
18617             void dummyfunc (void) {}
18618
18619int
18620main (void)
18621{
18622
18623  ;
18624  return 0;
18625}
18626_ACEOF
18627if ac_fn_c_try_compile "$LINENO"
18628then :
18629  pcre_cv_cc_visibility=yes
18630else $as_nop
18631  pcre_cv_cc_visibility=no
18632fi
18633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18634      CFLAGS="$pcre_save_CFLAGS"
18635fi
18636
18637    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pcre_cv_cc_visibility" >&5
18638printf "%s\n" "$pcre_cv_cc_visibility" >&6; }
18639    if test $pcre_cv_cc_visibility = yes; then
18640      VISIBILITY_CFLAGS="-fvisibility=hidden"
18641      VISIBILITY_CXXFLAGS="-fvisibility=hidden -fvisibility-inlines-hidden"
18642      HAVE_VISIBILITY=1
18643
18644printf "%s\n" "#define PCRE_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
18645
18646
18647printf "%s\n" "#define PCRE_EXP_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
18648
18649
18650printf "%s\n" "#define PCRE_EXP_DATA_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
18651
18652
18653printf "%s\n" "#define PCREPOSIX_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
18654
18655
18656printf "%s\n" "#define PCREPOSIX_EXP_DEFN extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
18657
18658
18659printf "%s\n" "#define PCRECPP_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
18660
18661
18662printf "%s\n" "#define PCRECPP_EXP_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
18663
18664    fi
18665  fi
18666
18667
18668
18669
18670printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h
18671
18672
18673
18674# Versioning
18675
18676PCRE_MAJOR="8"
18677PCRE_MINOR="45"
18678PCRE_PRERELEASE=""
18679PCRE_DATE="2021-06-15"
18680
18681if test "$PCRE_MINOR" = "08" -o "$PCRE_MINOR" = "09"
18682then
18683  echo "***"
18684  echo "*** Minor version number $PCRE_MINOR must not be used. ***"
18685  echo "*** Use only 01 to 07 or 10 onwards, to avoid octal issues. ***"
18686  echo "***"
18687  exit 1
18688fi
18689
18690
18691
18692
18693
18694
18695# Set a more sensible default value for $(htmldir).
18696if test "x$htmldir" = 'x${docdir}'
18697then
18698  htmldir='${docdir}/html'
18699fi
18700
18701# Handle --disable-pcre8 (enabled by default)
18702# Check whether --enable-pcre8 was given.
18703if test ${enable_pcre8+y}
18704then :
18705  enableval=$enable_pcre8;
18706else $as_nop
18707  enable_pcre8=unset
18708fi
18709
18710
18711
18712# Handle --enable-pcre16 (disabled by default)
18713# Check whether --enable-pcre16 was given.
18714if test ${enable_pcre16+y}
18715then :
18716  enableval=$enable_pcre16;
18717else $as_nop
18718  enable_pcre16=unset
18719fi
18720
18721
18722
18723# Handle --enable-pcre32 (disabled by default)
18724# Check whether --enable-pcre32 was given.
18725if test ${enable_pcre32+y}
18726then :
18727  enableval=$enable_pcre32;
18728else $as_nop
18729  enable_pcre32=unset
18730fi
18731
18732
18733
18734# Handle --disable-cpp. The substitution of enable_cpp is needed for use in
18735# pcre-config.
18736# Check whether --enable-cpp was given.
18737if test ${enable_cpp+y}
18738then :
18739  enableval=$enable_cpp;
18740else $as_nop
18741  enable_cpp=unset
18742fi
18743
18744
18745
18746# Handle --enable-jit (disabled by default)
18747# Check whether --enable-jit was given.
18748if test ${enable_jit+y}
18749then :
18750  enableval=$enable_jit;
18751else $as_nop
18752  enable_jit=no
18753fi
18754
18755
18756# This code enables JIT if the hardware supports it.
18757
18758if test "$enable_jit" = "auto"; then
18759  ac_ext=c
18760ac_cpp='$CPP $CPPFLAGS'
18761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18763ac_compiler_gnu=$ac_cv_c_compiler_gnu
18764
18765  SAVE_CPPFLAGS=$CPPFLAGS
18766  CPPFLAGS=-I$srcdir
18767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18768/* end confdefs.h.  */
18769
18770  #define SLJIT_CONFIG_AUTO 1
18771  #include "sljit/sljitConfigInternal.h"
18772  #if (defined SLJIT_CONFIG_UNSUPPORTED && SLJIT_CONFIG_UNSUPPORTED)
18773  #error unsupported
18774  #endif
18775_ACEOF
18776if ac_fn_c_try_compile "$LINENO"
18777then :
18778  enable_jit=yes
18779else $as_nop
18780  enable_jit=no
18781fi
18782rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18783  CPPFLAGS=$SAVE_CPPFLAGS
18784fi
18785
18786# Handle --disable-pcregrep-jit (enabled by default)
18787# Check whether --enable-pcregrep-jit was given.
18788if test ${enable_pcregrep_jit+y}
18789then :
18790  enableval=$enable_pcregrep_jit;
18791else $as_nop
18792  enable_pcregrep_jit=yes
18793fi
18794
18795
18796# Handle --enable-rebuild-chartables
18797# Check whether --enable-rebuild-chartables was given.
18798if test ${enable_rebuild_chartables+y}
18799then :
18800  enableval=$enable_rebuild_chartables;
18801else $as_nop
18802  enable_rebuild_chartables=no
18803fi
18804
18805
18806# Handle --enable-utf8 (disabled by default)
18807# Check whether --enable-utf8 was given.
18808if test ${enable_utf8+y}
18809then :
18810  enableval=$enable_utf8;
18811else $as_nop
18812  enable_utf8=unset
18813fi
18814
18815
18816# Handle --enable-utf (disabled by default)
18817# Check whether --enable-utf was given.
18818if test ${enable_utf+y}
18819then :
18820  enableval=$enable_utf;
18821else $as_nop
18822  enable_utf=unset
18823fi
18824
18825
18826# Handle --enable-unicode-properties
18827# Check whether --enable-unicode-properties was given.
18828if test ${enable_unicode_properties+y}
18829then :
18830  enableval=$enable_unicode_properties;
18831else $as_nop
18832  enable_unicode_properties=no
18833fi
18834
18835
18836# Handle newline options
18837ac_pcre_newline=lf
18838# Check whether --enable-newline-is-cr was given.
18839if test ${enable_newline_is_cr+y}
18840then :
18841  enableval=$enable_newline_is_cr; ac_pcre_newline=cr
18842fi
18843
18844# Check whether --enable-newline-is-lf was given.
18845if test ${enable_newline_is_lf+y}
18846then :
18847  enableval=$enable_newline_is_lf; ac_pcre_newline=lf
18848fi
18849
18850# Check whether --enable-newline-is-crlf was given.
18851if test ${enable_newline_is_crlf+y}
18852then :
18853  enableval=$enable_newline_is_crlf; ac_pcre_newline=crlf
18854fi
18855
18856# Check whether --enable-newline-is-anycrlf was given.
18857if test ${enable_newline_is_anycrlf+y}
18858then :
18859  enableval=$enable_newline_is_anycrlf; ac_pcre_newline=anycrlf
18860fi
18861
18862# Check whether --enable-newline-is-any was given.
18863if test ${enable_newline_is_any+y}
18864then :
18865  enableval=$enable_newline_is_any; ac_pcre_newline=any
18866fi
18867
18868enable_newline="$ac_pcre_newline"
18869
18870# Handle --enable-bsr-anycrlf
18871# Check whether --enable-bsr-anycrlf was given.
18872if test ${enable_bsr_anycrlf+y}
18873then :
18874  enableval=$enable_bsr_anycrlf;
18875else $as_nop
18876  enable_bsr_anycrlf=no
18877fi
18878
18879
18880# Handle --enable-ebcdic
18881# Check whether --enable-ebcdic was given.
18882if test ${enable_ebcdic+y}
18883then :
18884  enableval=$enable_ebcdic;
18885else $as_nop
18886  enable_ebcdic=no
18887fi
18888
18889
18890# Handle --enable-ebcdic-nl25
18891# Check whether --enable-ebcdic-nl25 was given.
18892if test ${enable_ebcdic_nl25+y}
18893then :
18894  enableval=$enable_ebcdic_nl25;
18895else $as_nop
18896  enable_ebcdic_nl25=no
18897fi
18898
18899
18900# Handle --disable-stack-for-recursion
18901# Check whether --enable-stack-for-recursion was given.
18902if test ${enable_stack_for_recursion+y}
18903then :
18904  enableval=$enable_stack_for_recursion;
18905else $as_nop
18906  enable_stack_for_recursion=yes
18907fi
18908
18909
18910# Handle --enable-pcregrep-libz
18911# Check whether --enable-pcregrep-libz was given.
18912if test ${enable_pcregrep_libz+y}
18913then :
18914  enableval=$enable_pcregrep_libz;
18915else $as_nop
18916  enable_pcregrep_libz=no
18917fi
18918
18919
18920# Handle --enable-pcregrep-libbz2
18921# Check whether --enable-pcregrep-libbz2 was given.
18922if test ${enable_pcregrep_libbz2+y}
18923then :
18924  enableval=$enable_pcregrep_libbz2;
18925else $as_nop
18926  enable_pcregrep_libbz2=no
18927fi
18928
18929
18930# Handle --with-pcregrep-bufsize=N
18931
18932# Check whether --with-pcregrep-bufsize was given.
18933if test ${with_pcregrep_bufsize+y}
18934then :
18935  withval=$with_pcregrep_bufsize;
18936else $as_nop
18937  with_pcregrep_bufsize=20480
18938fi
18939
18940
18941# Handle --enable-pcretest-libedit
18942# Check whether --enable-pcretest-libedit was given.
18943if test ${enable_pcretest_libedit+y}
18944then :
18945  enableval=$enable_pcretest_libedit;
18946else $as_nop
18947  enable_pcretest_libedit=no
18948fi
18949
18950
18951# Handle --enable-pcretest-libreadline
18952# Check whether --enable-pcretest-libreadline was given.
18953if test ${enable_pcretest_libreadline+y}
18954then :
18955  enableval=$enable_pcretest_libreadline;
18956else $as_nop
18957  enable_pcretest_libreadline=no
18958fi
18959
18960
18961# Handle --with-posix-malloc-threshold=NBYTES
18962
18963# Check whether --with-posix-malloc-threshold was given.
18964if test ${with_posix_malloc_threshold+y}
18965then :
18966  withval=$with_posix_malloc_threshold;
18967else $as_nop
18968  with_posix_malloc_threshold=10
18969fi
18970
18971
18972# Handle --with-link-size=N
18973
18974# Check whether --with-link-size was given.
18975if test ${with_link_size+y}
18976then :
18977  withval=$with_link_size;
18978else $as_nop
18979  with_link_size=2
18980fi
18981
18982
18983# Handle --with-parens-nest-limit=N
18984
18985# Check whether --with-parens-nest-limit was given.
18986if test ${with_parens_nest_limit+y}
18987then :
18988  withval=$with_parens_nest_limit;
18989else $as_nop
18990  with_parens_nest_limit=250
18991fi
18992
18993
18994# Handle --with-match-limit=N
18995
18996# Check whether --with-match-limit was given.
18997if test ${with_match_limit+y}
18998then :
18999  withval=$with_match_limit;
19000else $as_nop
19001  with_match_limit=10000000
19002fi
19003
19004
19005# Handle --with-match-limit_recursion=N
19006#
19007# Note: In config.h, the default is to define MATCH_LIMIT_RECURSION
19008# symbolically as MATCH_LIMIT, which in turn is defined to be some numeric
19009# value (e.g. 10000000). MATCH_LIMIT_RECURSION can otherwise be set to some
19010# different numeric value (or even the same numeric value as MATCH_LIMIT,
19011# though no longer defined in terms of the latter).
19012#
19013
19014# Check whether --with-match-limit-recursion was given.
19015if test ${with_match_limit_recursion+y}
19016then :
19017  withval=$with_match_limit_recursion;
19018else $as_nop
19019  with_match_limit_recursion=MATCH_LIMIT
19020fi
19021
19022
19023# Handle --enable-valgrind
19024# Check whether --enable-valgrind was given.
19025if test ${enable_valgrind+y}
19026then :
19027  enableval=$enable_valgrind;
19028else $as_nop
19029  enable_valgrind=no
19030fi
19031
19032
19033# Enable code coverage reports using gcov
19034# Check whether --enable-coverage was given.
19035if test ${enable_coverage+y}
19036then :
19037  enableval=$enable_coverage;
19038else $as_nop
19039  enable_coverage=no
19040fi
19041
19042
19043# Copy enable_utf8 value to enable_utf for compatibility reasons
19044if test "x$enable_utf8" != "xunset"
19045then
19046  if test "x$enable_utf" != "xunset"
19047  then
19048    as_fn_error $? "--enable/disable-utf8 is kept only for compatibility reasons and its value is copied to --enable/disable-utf. Newer code must use --enable/disable-utf alone." "$LINENO" 5
19049  fi
19050  enable_utf=$enable_utf8
19051fi
19052
19053# Set the default value for pcre8
19054if test "x$enable_pcre8" = "xunset"
19055then
19056  enable_pcre8=yes
19057fi
19058
19059# Set the default value for pcre16
19060if test "x$enable_pcre16" = "xunset"
19061then
19062  enable_pcre16=no
19063fi
19064
19065# Set the default value for pcre32
19066if test "x$enable_pcre32" = "xunset"
19067then
19068  enable_pcre32=no
19069fi
19070
19071# Make sure enable_pcre8 or enable_pcre16 was set
19072if test "x$enable_pcre8$enable_pcre16$enable_pcre32" = "xnonono"
19073then
19074  as_fn_error $? "At least one of 8, 16 or 32 bit pcre library must be enabled" "$LINENO" 5
19075fi
19076
19077# Make sure that if enable_unicode_properties was set, that UTF support is enabled.
19078if test "x$enable_unicode_properties" = "xyes"
19079then
19080  if test "x$enable_utf" = "xno"
19081  then
19082    as_fn_error $? "support for Unicode properties requires UTF-8/16/32 support" "$LINENO" 5
19083  fi
19084  enable_utf=yes
19085fi
19086
19087# enable_utf is disabled by default.
19088if test "x$enable_utf" = "xunset"
19089then
19090  enable_utf=no
19091fi
19092
19093# enable_cpp copies the value of enable_pcre8 by default
19094if test "x$enable_cpp" = "xunset"
19095then
19096  enable_cpp=$enable_pcre8
19097fi
19098
19099# Make sure that if enable_cpp was set, that enable_pcre8 support is enabled
19100if test "x$enable_cpp" = "xyes"
19101then
19102  if test "x$enable_pcre8" = "xno"
19103  then
19104    as_fn_error $? "C++ library requires pcre library with 8 bit characters" "$LINENO" 5
19105  fi
19106fi
19107
19108# Convert the newline identifier into the appropriate integer value. The first
19109# three are ASCII values 0x0a, 0x0d, and 0x0d0a, but if EBCDIC is enabled, they
19110# are changed below.
19111
19112case "$enable_newline" in
19113  lf)      ac_pcre_newline_value=10   ;;
19114  cr)      ac_pcre_newline_value=13   ;;
19115  crlf)    ac_pcre_newline_value=3338 ;;
19116  anycrlf) ac_pcre_newline_value=-2   ;;
19117  any)     ac_pcre_newline_value=-1   ;;
19118  *)
19119  as_fn_error $? "invalid argument \"$enable_newline\" to --enable-newline option" "$LINENO" 5
19120  ;;
19121esac
19122
19123# --enable-ebcdic-nl25 implies --enable-ebcdic
19124if test "x$enable_ebcdic_nl25" = "xyes"; then
19125  enable_ebcdic=yes
19126fi
19127
19128# Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled,
19129# and the newline value is adjusted appropriately (CR is still 13, but LF is
19130# 21 or 37). Also check that UTF support is not requested, because PCRE cannot
19131# handle EBCDIC and UTF in the same build. To do so it would need to use
19132# different character constants depending on the mode.
19133#
19134if test "x$enable_ebcdic" = "xyes"; then
19135  enable_rebuild_chartables=yes
19136
19137  if test "x$enable_utf" = "xyes"; then
19138    as_fn_error $? "support for EBCDIC and UTF-8/16/32 cannot be enabled at the same time" "$LINENO" 5
19139  fi
19140
19141  if test "x$enable_ebcdic_nl25" = "xno"; then
19142    case "$ac_pcre_newline_value" in
19143      10)   ac_pcre_newline_value=21 ;;
19144      3338) ac_pcre_newline_value=3349 ;;
19145    esac
19146  else
19147    case "$ac_pcre_newline_value" in
19148      10)   ac_pcre_newline_value=37 ;;
19149      3338) ac_pcre_newline_value=3365 ;;
19150    esac
19151  fi
19152fi
19153
19154# Check argument to --with-link-size
19155case "$with_link_size" in
19156  2|3|4) ;;
19157  *)
19158  as_fn_error $? "invalid argument \"$with_link_size\" to --with-link-size option" "$LINENO" 5
19159  ;;
19160esac
19161
19162
19163
19164# Checks for header files.
19165# Autoupdate added the next two lines to ensure that your configure
19166# script's behavior did not change.  They are probably safe to remove.
19167
19168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
19169printf %s "checking for egrep... " >&6; }
19170if test ${ac_cv_path_EGREP+y}
19171then :
19172  printf %s "(cached) " >&6
19173else $as_nop
19174  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
19175   then ac_cv_path_EGREP="$GREP -E"
19176   else
19177     if test -z "$EGREP"; then
19178  ac_path_EGREP_found=false
19179  # Loop through the user's path and test for each of PROGNAME-LIST
19180  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19181for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
19182do
19183  IFS=$as_save_IFS
19184  case $as_dir in #(((
19185    '') as_dir=./ ;;
19186    */) ;;
19187    *) as_dir=$as_dir/ ;;
19188  esac
19189    for ac_prog in egrep
19190   do
19191    for ac_exec_ext in '' $ac_executable_extensions; do
19192      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
19193      as_fn_executable_p "$ac_path_EGREP" || continue
19194# Check for GNU ac_path_EGREP and select it if it is found.
19195  # Check for GNU $ac_path_EGREP
19196case `"$ac_path_EGREP" --version 2>&1` in
19197*GNU*)
19198  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
19199*)
19200  ac_count=0
19201  printf %s 0123456789 >"conftest.in"
19202  while :
19203  do
19204    cat "conftest.in" "conftest.in" >"conftest.tmp"
19205    mv "conftest.tmp" "conftest.in"
19206    cp "conftest.in" "conftest.nl"
19207    printf "%s\n" 'EGREP' >> "conftest.nl"
19208    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
19209    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
19210    as_fn_arith $ac_count + 1 && ac_count=$as_val
19211    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
19212      # Best one so far, save it but keep looking for a better one
19213      ac_cv_path_EGREP="$ac_path_EGREP"
19214      ac_path_EGREP_max=$ac_count
19215    fi
19216    # 10*(2^10) chars as input seems more than enough
19217    test $ac_count -gt 10 && break
19218  done
19219  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
19220esac
19221
19222      $ac_path_EGREP_found && break 3
19223    done
19224  done
19225  done
19226IFS=$as_save_IFS
19227  if test -z "$ac_cv_path_EGREP"; then
19228    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
19229  fi
19230else
19231  ac_cv_path_EGREP=$EGREP
19232fi
19233
19234   fi
19235fi
19236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
19237printf "%s\n" "$ac_cv_path_EGREP" >&6; }
19238 EGREP="$ac_cv_path_EGREP"
19239
19240
19241
19242ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
19243if test "x$ac_cv_header_limits_h" = xyes
19244then :
19245  printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
19246
19247fi
19248ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
19249if test "x$ac_cv_header_sys_types_h" = xyes
19250then :
19251  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
19252
19253fi
19254ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
19255if test "x$ac_cv_header_sys_stat_h" = xyes
19256then :
19257  printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
19258
19259fi
19260ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
19261if test "x$ac_cv_header_dirent_h" = xyes
19262then :
19263  printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
19264
19265fi
19266
19267       for ac_header in windows.h
19268do :
19269  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
19270if test "x$ac_cv_header_windows_h" = xyes
19271then :
19272  printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
19273 HAVE_WINDOWS_H=1
19274fi
19275
19276done
19277
19278# The files below are C++ header files.
19279pcre_have_type_traits="0"
19280pcre_have_bits_type_traits="0"
19281
19282if test "x$enable_cpp" = "xyes" -a -z "$CXX"; then
19283   as_fn_error $? "Invalid C++ compiler or C++ compiler flags" "$LINENO" 5
19284fi
19285
19286if test "x$enable_cpp" = "xyes" -a -n "$CXX"
19287then
19288ac_ext=cpp
19289ac_cpp='$CXXCPP $CPPFLAGS'
19290ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19291ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19292ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19293
19294
19295# Older versions of pcre defined pcrecpp::no_arg, but in new versions
19296# it's called pcrecpp::RE::no_arg.  For backwards ABI compatibility,
19297# we want to make one an alias for the other.  Different systems do
19298# this in different ways.  Some systems, for instance, can do it via
19299# a linker flag: -alias (for os x 10.5) or -i (for os x <=10.4).
19300OLD_LDFLAGS="$LDFLAGS"
19301for flag in "-alias,__ZN7pcrecpp2RE6no_argE,__ZN7pcrecpp6no_argE" \
19302            "-i__ZN7pcrecpp6no_argE:__ZN7pcrecpp2RE6no_argE"; do
19303  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alias support in the linker" >&5
19304printf %s "checking for alias support in the linker... " >&6; }
19305  LDFLAGS="$OLD_LDFLAGS -Wl,$flag"
19306  # We try to run the linker with this new ld flag.  If the link fails,
19307  # we give up and remove the new flag from LDFLAGS.
19308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19309/* end confdefs.h.  */
19310namespace pcrecpp {
19311                                    class RE { static int no_arg; };
19312                                    int RE::no_arg;
19313                                  }
19314int
19315main (void)
19316{
19317
19318  ;
19319  return 0;
19320}
19321_ACEOF
19322if ac_fn_cxx_try_link "$LINENO"
19323then :
19324  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19325printf "%s\n" "yes" >&6; };
19326                  EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS -Wl,$flag";
19327                  break;
19328else $as_nop
19329  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19330printf "%s\n" "no" >&6; }
19331fi
19332rm -f core conftest.err conftest.$ac_objext conftest.beam \
19333    conftest$ac_exeext conftest.$ac_ext
19334done
19335LDFLAGS="$OLD_LDFLAGS"
19336
19337# We could be more clever here, given we're doing AC_SUBST with this
19338# (eg set a var to be the name of the include file we want). But we're not
19339# so it's easy to change back to 'regular' autoconf vars if we needed to.
19340       for ac_header in string
19341do :
19342  ac_fn_cxx_check_header_compile "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default"
19343if test "x$ac_cv_header_string" = xyes
19344then :
19345  printf "%s\n" "#define HAVE_STRING 1" >>confdefs.h
19346 pcre_have_cpp_headers="1"
19347else $as_nop
19348  pcre_have_cpp_headers="0"
19349fi
19350
19351done
19352       for ac_header in bits/type_traits.h
19353do :
19354  ac_fn_cxx_check_header_compile "$LINENO" "bits/type_traits.h" "ac_cv_header_bits_type_traits_h" "$ac_includes_default"
19355if test "x$ac_cv_header_bits_type_traits_h" = xyes
19356then :
19357  printf "%s\n" "#define HAVE_BITS_TYPE_TRAITS_H 1" >>confdefs.h
19358 pcre_have_bits_type_traits="1"
19359else $as_nop
19360  pcre_have_bits_type_traits="0"
19361fi
19362
19363done
19364       for ac_header in type_traits.h
19365do :
19366  ac_fn_cxx_check_header_compile "$LINENO" "type_traits.h" "ac_cv_header_type_traits_h" "$ac_includes_default"
19367if test "x$ac_cv_header_type_traits_h" = xyes
19368then :
19369  printf "%s\n" "#define HAVE_TYPE_TRAITS_H 1" >>confdefs.h
19370 pcre_have_type_traits="1"
19371else $as_nop
19372  pcre_have_type_traits="0"
19373fi
19374
19375done
19376
19377# (This isn't c++-specific, but is only used in pcrecpp.cc, so try this
19378# in a c++ context.  This matters becuase strtoimax is C99 and may not
19379# be supported by the C++ compiler.)
19380# Figure out how to create a longlong from a string: strtoll and
19381# equiv.  It's not enough to call AC_CHECK_FUNCS: hpux has a
19382# strtoll, for instance, but it only takes 2 args instead of 3!
19383# We have to call AH_TEMPLATE since AC_DEFINE_UNQUOTED below is complex.
19384
19385
19386
19387
19388have_strto_fn=0
19389for fn in strtoq strtoll _strtoi64 strtoimax; do
19390  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $fn" >&5
19391printf %s "checking for $fn... " >&6; }
19392  if test "$fn" = strtoimax; then
19393    include=stdint.h
19394  else
19395    include=stdlib.h
19396  fi
19397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19398/* end confdefs.h.  */
19399#include <$include>
19400int
19401main (void)
19402{
19403char* e; return $fn("100", &e, 10)
19404  ;
19405  return 0;
19406}
19407_ACEOF
19408if ac_fn_cxx_try_compile "$LINENO"
19409then :
19410  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19411printf "%s\n" "yes" >&6; }
19412
19413cat >>confdefs.h <<_ACEOF
19414#define HAVE_`echo $fn | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
19415_ACEOF
19416
19417                     have_strto_fn=1
19418                     break
19419else $as_nop
19420  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19421printf "%s\n" "no" >&6; }
19422fi
19423rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19424done
19425
19426if test "$have_strto_fn" = 1; then
19427  ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
19428if test "x$ac_cv_type_long_long" = xyes
19429then :
19430
19431printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h
19432
19433pcre_have_long_long="1"
19434else $as_nop
19435  pcre_have_long_long="0"
19436fi
19437
19438  ac_fn_cxx_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
19439if test "x$ac_cv_type_unsigned_long_long" = xyes
19440then :
19441
19442printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19443
19444pcre_have_ulong_long="1"
19445else $as_nop
19446  pcre_have_ulong_long="0"
19447fi
19448
19449else
19450  pcre_have_long_long="0"
19451  pcre_have_ulong_long="0"
19452fi
19453
19454
19455
19456ac_ext=c
19457ac_cpp='$CPP $CPPFLAGS'
19458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19460ac_compiler_gnu=$ac_cv_c_compiler_gnu
19461
19462fi
19463# Using AC_SUBST eliminates the need to include config.h in a public .h file
19464
19465
19466
19467# Conditional compilation
19468 if test "x$enable_pcre8" = "xyes"; then
19469  WITH_PCRE8_TRUE=
19470  WITH_PCRE8_FALSE='#'
19471else
19472  WITH_PCRE8_TRUE='#'
19473  WITH_PCRE8_FALSE=
19474fi
19475
19476 if test "x$enable_pcre16" = "xyes"; then
19477  WITH_PCRE16_TRUE=
19478  WITH_PCRE16_FALSE='#'
19479else
19480  WITH_PCRE16_TRUE='#'
19481  WITH_PCRE16_FALSE=
19482fi
19483
19484 if test "x$enable_pcre32" = "xyes"; then
19485  WITH_PCRE32_TRUE=
19486  WITH_PCRE32_FALSE='#'
19487else
19488  WITH_PCRE32_TRUE='#'
19489  WITH_PCRE32_FALSE=
19490fi
19491
19492 if test "x$enable_cpp" = "xyes"; then
19493  WITH_PCRE_CPP_TRUE=
19494  WITH_PCRE_CPP_FALSE='#'
19495else
19496  WITH_PCRE_CPP_TRUE='#'
19497  WITH_PCRE_CPP_FALSE=
19498fi
19499
19500 if test "x$enable_rebuild_chartables" = "xyes"; then
19501  WITH_REBUILD_CHARTABLES_TRUE=
19502  WITH_REBUILD_CHARTABLES_FALSE='#'
19503else
19504  WITH_REBUILD_CHARTABLES_TRUE='#'
19505  WITH_REBUILD_CHARTABLES_FALSE=
19506fi
19507
19508 if test "x$enable_jit" = "xyes"; then
19509  WITH_JIT_TRUE=
19510  WITH_JIT_FALSE='#'
19511else
19512  WITH_JIT_TRUE='#'
19513  WITH_JIT_FALSE=
19514fi
19515
19516 if test "x$enable_utf" = "xyes"; then
19517  WITH_UTF_TRUE=
19518  WITH_UTF_FALSE='#'
19519else
19520  WITH_UTF_TRUE='#'
19521  WITH_UTF_FALSE=
19522fi
19523
19524 if test "x$enable_valgrind" = "xyes"; then
19525  WITH_VALGRIND_TRUE=
19526  WITH_VALGRIND_FALSE='#'
19527else
19528  WITH_VALGRIND_TRUE='#'
19529  WITH_VALGRIND_FALSE=
19530fi
19531
19532
19533# Checks for typedefs, structures, and compiler characteristics.
19534
19535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19536printf %s "checking for an ANSI C-conforming const... " >&6; }
19537if test ${ac_cv_c_const+y}
19538then :
19539  printf %s "(cached) " >&6
19540else $as_nop
19541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19542/* end confdefs.h.  */
19543
19544int
19545main (void)
19546{
19547
19548#ifndef __cplusplus
19549  /* Ultrix mips cc rejects this sort of thing.  */
19550  typedef int charset[2];
19551  const charset cs = { 0, 0 };
19552  /* SunOS 4.1.1 cc rejects this.  */
19553  char const *const *pcpcc;
19554  char **ppc;
19555  /* NEC SVR4.0.2 mips cc rejects this.  */
19556  struct point {int x, y;};
19557  static struct point const zero = {0,0};
19558  /* IBM XL C 1.02.0.0 rejects this.
19559     It does not let you subtract one const X* pointer from another in
19560     an arm of an if-expression whose if-part is not a constant
19561     expression */
19562  const char *g = "string";
19563  pcpcc = &g + (g ? g-g : 0);
19564  /* HPUX 7.0 cc rejects these. */
19565  ++pcpcc;
19566  ppc = (char**) pcpcc;
19567  pcpcc = (char const *const *) ppc;
19568  { /* SCO 3.2v4 cc rejects this sort of thing.  */
19569    char tx;
19570    char *t = &tx;
19571    char const *s = 0 ? (char *) 0 : (char const *) 0;
19572
19573    *t++ = 0;
19574    if (s) return 0;
19575  }
19576  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19577    int x[] = {25, 17};
19578    const int *foo = &x[0];
19579    ++foo;
19580  }
19581  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19582    typedef const int *iptr;
19583    iptr p = 0;
19584    ++p;
19585  }
19586  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
19587       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19588    struct s { int j; const int *ap[3]; } bx;
19589    struct s *b = &bx; b->j = 5;
19590  }
19591  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19592    const int foo = 10;
19593    if (!foo) return 0;
19594  }
19595  return !cs[0] && !zero.x;
19596#endif
19597
19598  ;
19599  return 0;
19600}
19601_ACEOF
19602if ac_fn_c_try_compile "$LINENO"
19603then :
19604  ac_cv_c_const=yes
19605else $as_nop
19606  ac_cv_c_const=no
19607fi
19608rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19609fi
19610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19611printf "%s\n" "$ac_cv_c_const" >&6; }
19612if test $ac_cv_c_const = no; then
19613
19614printf "%s\n" "#define const /**/" >>confdefs.h
19615
19616fi
19617
19618ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19619if test "x$ac_cv_type_size_t" = xyes
19620then :
19621
19622else $as_nop
19623
19624printf "%s\n" "#define size_t unsigned int" >>confdefs.h
19625
19626fi
19627
19628
19629# Checks for library functions.
19630
19631ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
19632if test "x$ac_cv_func_bcopy" = xyes
19633then :
19634  printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
19635
19636fi
19637ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
19638if test "x$ac_cv_func_memmove" = xyes
19639then :
19640  printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
19641
19642fi
19643ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
19644if test "x$ac_cv_func_strerror" = xyes
19645then :
19646  printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
19647
19648fi
19649
19650
19651# Check for the availability of libz (aka zlib)
19652
19653       for ac_header in zlib.h
19654do :
19655  ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
19656if test "x$ac_cv_header_zlib_h" = xyes
19657then :
19658  printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
19659 HAVE_ZLIB_H=1
19660fi
19661
19662done
19663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
19664printf %s "checking for gzopen in -lz... " >&6; }
19665if test ${ac_cv_lib_z_gzopen+y}
19666then :
19667  printf %s "(cached) " >&6
19668else $as_nop
19669  ac_check_lib_save_LIBS=$LIBS
19670LIBS="-lz  $LIBS"
19671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19672/* end confdefs.h.  */
19673
19674/* Override any GCC internal prototype to avoid an error.
19675   Use char because int might match the return type of a GCC
19676   builtin and then its argument prototype would still apply.  */
19677char gzopen ();
19678int
19679main (void)
19680{
19681return gzopen ();
19682  ;
19683  return 0;
19684}
19685_ACEOF
19686if ac_fn_c_try_link "$LINENO"
19687then :
19688  ac_cv_lib_z_gzopen=yes
19689else $as_nop
19690  ac_cv_lib_z_gzopen=no
19691fi
19692rm -f core conftest.err conftest.$ac_objext conftest.beam \
19693    conftest$ac_exeext conftest.$ac_ext
19694LIBS=$ac_check_lib_save_LIBS
19695fi
19696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
19697printf "%s\n" "$ac_cv_lib_z_gzopen" >&6; }
19698if test "x$ac_cv_lib_z_gzopen" = xyes
19699then :
19700  HAVE_LIBZ=1
19701fi
19702
19703
19704# Check for the availability of libbz2. Originally we just used AC_CHECK_LIB,
19705# as for libz. However, this had the following problem, diagnosed and fixed by
19706# a user:
19707#
19708#   - libbz2 uses the Pascal calling convention (WINAPI) for the functions
19709#     under Win32.
19710#   - The standard autoconf AC_CHECK_LIB fails to include "bzlib.h",
19711#     therefore missing the function definition.
19712#   - The compiler thus generates a "C" signature for the test function.
19713#   - The linker fails to find the "C" function.
19714#   - PCRE fails to configure if asked to do so against libbz2.
19715#
19716# Solution:
19717#
19718#   - Replace the AC_CHECK_LIB test with a custom test.
19719
19720       for ac_header in bzlib.h
19721do :
19722  ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
19723if test "x$ac_cv_header_bzlib_h" = xyes
19724then :
19725  printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
19726 HAVE_BZLIB_H=1
19727fi
19728
19729done
19730# Original test
19731# AC_CHECK_LIB([bz2], [BZ2_bzopen], [HAVE_LIBBZ2=1])
19732#
19733# Custom test follows
19734
19735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbz2" >&5
19736printf %s "checking for libbz2... " >&6; }
19737OLD_LIBS="$LIBS"
19738LIBS="$LIBS -lbz2"
19739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19740/* end confdefs.h.  */
19741
19742#ifdef HAVE_BZLIB_H
19743#include <bzlib.h>
19744#endif
19745int
19746main (void)
19747{
19748return (int)BZ2_bzopen("conftest", "rb");
19749  ;
19750  return 0;
19751}
19752_ACEOF
19753if ac_fn_c_try_link "$LINENO"
19754then :
19755  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19756printf "%s\n" "yes" >&6; };HAVE_LIBBZ2=1; break;
19757else $as_nop
19758  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19759printf "%s\n" "no" >&6; }
19760fi
19761rm -f core conftest.err conftest.$ac_objext conftest.beam \
19762    conftest$ac_exeext conftest.$ac_ext
19763LIBS="$OLD_LIBS"
19764
19765# Check for the availabiity of libreadline
19766
19767if test "$enable_pcretest_libreadline" = "yes"; then
19768        for ac_header in readline/readline.h
19769do :
19770  ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
19771if test "x$ac_cv_header_readline_readline_h" = xyes
19772then :
19773  printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
19774 HAVE_READLINE_H=1
19775fi
19776
19777done
19778        for ac_header in readline/history.h
19779do :
19780  ac_fn_c_check_header_compile "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
19781if test "x$ac_cv_header_readline_history_h" = xyes
19782then :
19783  printf "%s\n" "#define HAVE_READLINE_HISTORY_H 1" >>confdefs.h
19784 HAVE_HISTORY_H=1
19785fi
19786
19787done
19788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
19789printf %s "checking for readline in -lreadline... " >&6; }
19790if test ${ac_cv_lib_readline_readline+y}
19791then :
19792  printf %s "(cached) " >&6
19793else $as_nop
19794  ac_check_lib_save_LIBS=$LIBS
19795LIBS="-lreadline  $LIBS"
19796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19797/* end confdefs.h.  */
19798
19799/* Override any GCC internal prototype to avoid an error.
19800   Use char because int might match the return type of a GCC
19801   builtin and then its argument prototype would still apply.  */
19802char readline ();
19803int
19804main (void)
19805{
19806return readline ();
19807  ;
19808  return 0;
19809}
19810_ACEOF
19811if ac_fn_c_try_link "$LINENO"
19812then :
19813  ac_cv_lib_readline_readline=yes
19814else $as_nop
19815  ac_cv_lib_readline_readline=no
19816fi
19817rm -f core conftest.err conftest.$ac_objext conftest.beam \
19818    conftest$ac_exeext conftest.$ac_ext
19819LIBS=$ac_check_lib_save_LIBS
19820fi
19821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
19822printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
19823if test "x$ac_cv_lib_readline_readline" = xyes
19824then :
19825  LIBREADLINE="-lreadline"
19826else $as_nop
19827  unset ac_cv_lib_readline_readline;
19828    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
19829printf %s "checking for readline in -lreadline... " >&6; }
19830if test ${ac_cv_lib_readline_readline+y}
19831then :
19832  printf %s "(cached) " >&6
19833else $as_nop
19834  ac_check_lib_save_LIBS=$LIBS
19835LIBS="-lreadline -ltinfo $LIBS"
19836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19837/* end confdefs.h.  */
19838
19839/* Override any GCC internal prototype to avoid an error.
19840   Use char because int might match the return type of a GCC
19841   builtin and then its argument prototype would still apply.  */
19842char readline ();
19843int
19844main (void)
19845{
19846return readline ();
19847  ;
19848  return 0;
19849}
19850_ACEOF
19851if ac_fn_c_try_link "$LINENO"
19852then :
19853  ac_cv_lib_readline_readline=yes
19854else $as_nop
19855  ac_cv_lib_readline_readline=no
19856fi
19857rm -f core conftest.err conftest.$ac_objext conftest.beam \
19858    conftest$ac_exeext conftest.$ac_ext
19859LIBS=$ac_check_lib_save_LIBS
19860fi
19861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
19862printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
19863if test "x$ac_cv_lib_readline_readline" = xyes
19864then :
19865  LIBREADLINE="-ltinfo"
19866else $as_nop
19867  unset ac_cv_lib_readline_readline;
19868      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
19869printf %s "checking for readline in -lreadline... " >&6; }
19870if test ${ac_cv_lib_readline_readline+y}
19871then :
19872  printf %s "(cached) " >&6
19873else $as_nop
19874  ac_check_lib_save_LIBS=$LIBS
19875LIBS="-lreadline -lcurses $LIBS"
19876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19877/* end confdefs.h.  */
19878
19879/* Override any GCC internal prototype to avoid an error.
19880   Use char because int might match the return type of a GCC
19881   builtin and then its argument prototype would still apply.  */
19882char readline ();
19883int
19884main (void)
19885{
19886return readline ();
19887  ;
19888  return 0;
19889}
19890_ACEOF
19891if ac_fn_c_try_link "$LINENO"
19892then :
19893  ac_cv_lib_readline_readline=yes
19894else $as_nop
19895  ac_cv_lib_readline_readline=no
19896fi
19897rm -f core conftest.err conftest.$ac_objext conftest.beam \
19898    conftest$ac_exeext conftest.$ac_ext
19899LIBS=$ac_check_lib_save_LIBS
19900fi
19901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
19902printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
19903if test "x$ac_cv_lib_readline_readline" = xyes
19904then :
19905  LIBREADLINE="-lcurses"
19906else $as_nop
19907  unset ac_cv_lib_readline_readline;
19908        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
19909printf %s "checking for readline in -lreadline... " >&6; }
19910if test ${ac_cv_lib_readline_readline+y}
19911then :
19912  printf %s "(cached) " >&6
19913else $as_nop
19914  ac_check_lib_save_LIBS=$LIBS
19915LIBS="-lreadline -lncurses $LIBS"
19916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19917/* end confdefs.h.  */
19918
19919/* Override any GCC internal prototype to avoid an error.
19920   Use char because int might match the return type of a GCC
19921   builtin and then its argument prototype would still apply.  */
19922char readline ();
19923int
19924main (void)
19925{
19926return readline ();
19927  ;
19928  return 0;
19929}
19930_ACEOF
19931if ac_fn_c_try_link "$LINENO"
19932then :
19933  ac_cv_lib_readline_readline=yes
19934else $as_nop
19935  ac_cv_lib_readline_readline=no
19936fi
19937rm -f core conftest.err conftest.$ac_objext conftest.beam \
19938    conftest$ac_exeext conftest.$ac_ext
19939LIBS=$ac_check_lib_save_LIBS
19940fi
19941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
19942printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
19943if test "x$ac_cv_lib_readline_readline" = xyes
19944then :
19945  LIBREADLINE="-lncurses"
19946else $as_nop
19947  unset ac_cv_lib_readline_readline;
19948	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
19949printf %s "checking for readline in -lreadline... " >&6; }
19950if test ${ac_cv_lib_readline_readline+y}
19951then :
19952  printf %s "(cached) " >&6
19953else $as_nop
19954  ac_check_lib_save_LIBS=$LIBS
19955LIBS="-lreadline -lncursesw $LIBS"
19956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19957/* end confdefs.h.  */
19958
19959/* Override any GCC internal prototype to avoid an error.
19960   Use char because int might match the return type of a GCC
19961   builtin and then its argument prototype would still apply.  */
19962char readline ();
19963int
19964main (void)
19965{
19966return readline ();
19967  ;
19968  return 0;
19969}
19970_ACEOF
19971if ac_fn_c_try_link "$LINENO"
19972then :
19973  ac_cv_lib_readline_readline=yes
19974else $as_nop
19975  ac_cv_lib_readline_readline=no
19976fi
19977rm -f core conftest.err conftest.$ac_objext conftest.beam \
19978    conftest$ac_exeext conftest.$ac_ext
19979LIBS=$ac_check_lib_save_LIBS
19980fi
19981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
19982printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
19983if test "x$ac_cv_lib_readline_readline" = xyes
19984then :
19985  LIBREADLINE="-lncursesw"
19986else $as_nop
19987  unset ac_cv_lib_readline_readline;
19988	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
19989printf %s "checking for readline in -lreadline... " >&6; }
19990if test ${ac_cv_lib_readline_readline+y}
19991then :
19992  printf %s "(cached) " >&6
19993else $as_nop
19994  ac_check_lib_save_LIBS=$LIBS
19995LIBS="-lreadline -ltermcap $LIBS"
19996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19997/* end confdefs.h.  */
19998
19999/* Override any GCC internal prototype to avoid an error.
20000   Use char because int might match the return type of a GCC
20001   builtin and then its argument prototype would still apply.  */
20002char readline ();
20003int
20004main (void)
20005{
20006return readline ();
20007  ;
20008  return 0;
20009}
20010_ACEOF
20011if ac_fn_c_try_link "$LINENO"
20012then :
20013  ac_cv_lib_readline_readline=yes
20014else $as_nop
20015  ac_cv_lib_readline_readline=no
20016fi
20017rm -f core conftest.err conftest.$ac_objext conftest.beam \
20018    conftest$ac_exeext conftest.$ac_ext
20019LIBS=$ac_check_lib_save_LIBS
20020fi
20021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
20022printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
20023if test "x$ac_cv_lib_readline_readline" = xyes
20024then :
20025  LIBREADLINE="-ltermcap"
20026else $as_nop
20027  LIBREADLINE=""
20028fi
20029
20030fi
20031
20032fi
20033
20034fi
20035
20036fi
20037
20038fi
20039
20040
20041 if test -n "$LIBREADLINE"; then
20042   if test "$LIBREADLINE" != "-lreadline"; then
20043     echo "-lreadline needs $LIBREADLINE"
20044     LIBREADLINE="-lreadline $LIBREADLINE"
20045   fi
20046 fi
20047fi
20048
20049
20050# Check for the availability of libedit. Different distributions put its
20051# headers in different places. Try to cover the most common ones.
20052
20053if test "$enable_pcretest_libedit" = "yes"; then
20054         for ac_header in editline/readline.h
20055do :
20056  ac_fn_c_check_header_compile "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
20057if test "x$ac_cv_header_editline_readline_h" = xyes
20058then :
20059  printf "%s\n" "#define HAVE_EDITLINE_READLINE_H 1" >>confdefs.h
20060 HAVE_EDITLINE_READLINE_H=1
20061else $as_nop
20062         for ac_header in edit/readline/readline.h
20063do :
20064  ac_fn_c_check_header_compile "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
20065if test "x$ac_cv_header_edit_readline_readline_h" = xyes
20066then :
20067  printf "%s\n" "#define HAVE_EDIT_READLINE_READLINE_H 1" >>confdefs.h
20068 HAVE_READLINE_READLINE_H=1
20069else $as_nop
20070         for ac_header in readline/readline.h
20071do :
20072  ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
20073if test "x$ac_cv_header_readline_readline_h" = xyes
20074then :
20075  printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
20076 HAVE_READLINE_READLINE_H=1
20077fi
20078
20079done
20080fi
20081
20082done
20083fi
20084
20085done
20086  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
20087printf %s "checking for readline in -ledit... " >&6; }
20088if test ${ac_cv_lib_edit_readline+y}
20089then :
20090  printf %s "(cached) " >&6
20091else $as_nop
20092  ac_check_lib_save_LIBS=$LIBS
20093LIBS="-ledit  $LIBS"
20094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20095/* end confdefs.h.  */
20096
20097/* Override any GCC internal prototype to avoid an error.
20098   Use char because int might match the return type of a GCC
20099   builtin and then its argument prototype would still apply.  */
20100char readline ();
20101int
20102main (void)
20103{
20104return readline ();
20105  ;
20106  return 0;
20107}
20108_ACEOF
20109if ac_fn_c_try_link "$LINENO"
20110then :
20111  ac_cv_lib_edit_readline=yes
20112else $as_nop
20113  ac_cv_lib_edit_readline=no
20114fi
20115rm -f core conftest.err conftest.$ac_objext conftest.beam \
20116    conftest$ac_exeext conftest.$ac_ext
20117LIBS=$ac_check_lib_save_LIBS
20118fi
20119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
20120printf "%s\n" "$ac_cv_lib_edit_readline" >&6; }
20121if test "x$ac_cv_lib_edit_readline" = xyes
20122then :
20123  LIBEDIT="-ledit"
20124fi
20125
20126fi
20127
20128# This facilitates -ansi builds under Linux
20129
20130PCRE_STATIC_CFLAG=""
20131if test "x$enable_shared" = "xno" ; then
20132
20133printf "%s\n" "#define PCRE_STATIC 1" >>confdefs.h
20134
20135  PCRE_STATIC_CFLAG="-DPCRE_STATIC"
20136fi
20137
20138
20139# Here is where pcre specific defines are handled
20140
20141if test "$enable_pcre8" = "yes"; then
20142
20143printf "%s\n" "#define SUPPORT_PCRE8 /**/" >>confdefs.h
20144
20145fi
20146
20147if test "$enable_pcre16" = "yes"; then
20148
20149printf "%s\n" "#define SUPPORT_PCRE16 /**/" >>confdefs.h
20150
20151fi
20152
20153if test "$enable_pcre32" = "yes"; then
20154
20155printf "%s\n" "#define SUPPORT_PCRE32 /**/" >>confdefs.h
20156
20157fi
20158
20159# Unless running under Windows, JIT support requires pthreads.
20160
20161if test "$enable_jit" = "yes"; then
20162  if test "$HAVE_WINDOWS_H" != "1"; then
20163
20164
20165ac_ext=c
20166ac_cpp='$CPP $CPPFLAGS'
20167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20169ac_compiler_gnu=$ac_cv_c_compiler_gnu
20170
20171ax_pthread_ok=no
20172
20173# We used to check for pthread.h first, but this fails if pthread.h
20174# requires special compiler flags (e.g. on True64 or Sequent).
20175# It gets checked for in the link test anyway.
20176
20177# First of all, check if the user has set any of the PTHREAD_LIBS,
20178# etcetera environment variables, and if threads linking works using
20179# them:
20180if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
20181        save_CFLAGS="$CFLAGS"
20182        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20183        save_LIBS="$LIBS"
20184        LIBS="$PTHREAD_LIBS $LIBS"
20185        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
20186printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
20187        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20188/* end confdefs.h.  */
20189
20190/* Override any GCC internal prototype to avoid an error.
20191   Use char because int might match the return type of a GCC
20192   builtin and then its argument prototype would still apply.  */
20193char pthread_join ();
20194int
20195main (void)
20196{
20197return pthread_join ();
20198  ;
20199  return 0;
20200}
20201_ACEOF
20202if ac_fn_c_try_link "$LINENO"
20203then :
20204  ax_pthread_ok=yes
20205fi
20206rm -f core conftest.err conftest.$ac_objext conftest.beam \
20207    conftest$ac_exeext conftest.$ac_ext
20208        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
20209printf "%s\n" "$ax_pthread_ok" >&6; }
20210        if test x"$ax_pthread_ok" = xno; then
20211                PTHREAD_LIBS=""
20212                PTHREAD_CFLAGS=""
20213        fi
20214        LIBS="$save_LIBS"
20215        CFLAGS="$save_CFLAGS"
20216fi
20217
20218# We must check for the threads library under a number of different
20219# names; the ordering is very important because some systems
20220# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
20221# libraries is broken (non-POSIX).
20222
20223# Create a list of thread flags to try.  Items starting with a "-" are
20224# C compiler flags, and other items are library names, except for "none"
20225# which indicates that we try without any flags at all, and "pthread-config"
20226# which is a program returning the flags for the Pth emulation library.
20227
20228ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
20229
20230# The ordering *is* (sometimes) important.  Some notes on the
20231# individual items follow:
20232
20233# pthreads: AIX (must check this before -lpthread)
20234# none: in case threads are in libc; should be tried before -Kthread and
20235#       other compiler flags to prevent continual compiler warnings
20236# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
20237# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20238# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20239# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
20240# -pthreads: Solaris/gcc
20241# -mthreads: Mingw32/gcc, Lynx/gcc
20242# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20243#      doesn't hurt to check since this sometimes defines pthreads too;
20244#      also defines -D_REENTRANT)
20245#      ... -mt is also the pthreads flag for HP/aCC
20246# pthread: Linux, etcetera
20247# --thread-safe: KAI C++
20248# pthread-config: use pthread-config program (for GNU Pth library)
20249
20250case ${host_os} in
20251        solaris*)
20252
20253        # On Solaris (at least, for some versions), libc contains stubbed
20254        # (non-functional) versions of the pthreads routines, so link-based
20255        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
20256        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
20257        # a function called by this macro, so we could check for that, but
20258        # who knows whether they'll stub that too in a future libc.)  So,
20259        # we'll just look for -pthreads and -lpthread first:
20260
20261        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
20262        ;;
20263
20264        darwin*)
20265        ax_pthread_flags="-pthread $ax_pthread_flags"
20266        ;;
20267esac
20268
20269if test x"$ax_pthread_ok" = xno; then
20270for flag in $ax_pthread_flags; do
20271
20272        case $flag in
20273                none)
20274                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
20275printf %s "checking whether pthreads work without any flags... " >&6; }
20276                ;;
20277
20278                -*)
20279                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
20280printf %s "checking whether pthreads work with $flag... " >&6; }
20281                PTHREAD_CFLAGS="$flag"
20282                ;;
20283
20284                pthread-config)
20285                # Extract the first word of "pthread-config", so it can be a program name with args.
20286set dummy pthread-config; ac_word=$2
20287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20288printf %s "checking for $ac_word... " >&6; }
20289if test ${ac_cv_prog_ax_pthread_config+y}
20290then :
20291  printf %s "(cached) " >&6
20292else $as_nop
20293  if test -n "$ax_pthread_config"; then
20294  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
20295else
20296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20297for as_dir in $PATH
20298do
20299  IFS=$as_save_IFS
20300  case $as_dir in #(((
20301    '') as_dir=./ ;;
20302    */) ;;
20303    *) as_dir=$as_dir/ ;;
20304  esac
20305    for ac_exec_ext in '' $ac_executable_extensions; do
20306  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20307    ac_cv_prog_ax_pthread_config="yes"
20308    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20309    break 2
20310  fi
20311done
20312  done
20313IFS=$as_save_IFS
20314
20315  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
20316fi
20317fi
20318ax_pthread_config=$ac_cv_prog_ax_pthread_config
20319if test -n "$ax_pthread_config"; then
20320  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
20321printf "%s\n" "$ax_pthread_config" >&6; }
20322else
20323  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20324printf "%s\n" "no" >&6; }
20325fi
20326
20327
20328                if test x"$ax_pthread_config" = xno; then continue; fi
20329                PTHREAD_CFLAGS="`pthread-config --cflags`"
20330                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20331                ;;
20332
20333                *)
20334                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
20335printf %s "checking for the pthreads library -l$flag... " >&6; }
20336                PTHREAD_LIBS="-l$flag"
20337                ;;
20338        esac
20339
20340        save_LIBS="$LIBS"
20341        save_CFLAGS="$CFLAGS"
20342        LIBS="$PTHREAD_LIBS $LIBS"
20343        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20344
20345        # Check for various functions.  We must include pthread.h,
20346        # since some functions may be macros.  (On the Sequent, we
20347        # need a special flag -Kthread to make this header compile.)
20348        # We check for pthread_join because it is in -lpthread on IRIX
20349        # while pthread_create is in libc.  We check for pthread_attr_init
20350        # due to DEC craziness with -lpthreads.  We check for
20351        # pthread_cleanup_push because it is one of the few pthread
20352        # functions on Solaris that doesn't have a non-functional libc stub.
20353        # We try pthread_create on general principles.
20354        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20355/* end confdefs.h.  */
20356#include <pthread.h>
20357                        static void routine(void *a) { a = 0; }
20358                        static void *start_routine(void *a) { return a; }
20359int
20360main (void)
20361{
20362pthread_t th; pthread_attr_t attr;
20363                        pthread_create(&th, 0, start_routine, 0);
20364                        pthread_join(th, 0);
20365                        pthread_attr_init(&attr);
20366                        pthread_cleanup_push(routine, 0);
20367                        pthread_cleanup_pop(0) /* ; */
20368  ;
20369  return 0;
20370}
20371_ACEOF
20372if ac_fn_c_try_link "$LINENO"
20373then :
20374  ax_pthread_ok=yes
20375fi
20376rm -f core conftest.err conftest.$ac_objext conftest.beam \
20377    conftest$ac_exeext conftest.$ac_ext
20378
20379        LIBS="$save_LIBS"
20380        CFLAGS="$save_CFLAGS"
20381
20382        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
20383printf "%s\n" "$ax_pthread_ok" >&6; }
20384        if test "x$ax_pthread_ok" = xyes; then
20385                break;
20386        fi
20387
20388        PTHREAD_LIBS=""
20389        PTHREAD_CFLAGS=""
20390done
20391fi
20392
20393# Various other checks:
20394if test "x$ax_pthread_ok" = xyes; then
20395        save_LIBS="$LIBS"
20396        LIBS="$PTHREAD_LIBS $LIBS"
20397        save_CFLAGS="$CFLAGS"
20398        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20399
20400        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20401        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20402printf %s "checking for joinable pthread attribute... " >&6; }
20403        attr_name=unknown
20404        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20405            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20406/* end confdefs.h.  */
20407#include <pthread.h>
20408int
20409main (void)
20410{
20411int attr = $attr; return attr /* ; */
20412  ;
20413  return 0;
20414}
20415_ACEOF
20416if ac_fn_c_try_link "$LINENO"
20417then :
20418  attr_name=$attr; break
20419fi
20420rm -f core conftest.err conftest.$ac_objext conftest.beam \
20421    conftest$ac_exeext conftest.$ac_ext
20422        done
20423        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
20424printf "%s\n" "$attr_name" >&6; }
20425        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
20426
20427printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h
20428
20429        fi
20430
20431        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
20432printf %s "checking if more special flags are required for pthreads... " >&6; }
20433        flag=no
20434        case ${host_os} in
20435            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
20436            osf* | hpux*) flag="-D_REENTRANT";;
20437            solaris*)
20438            if test "$GCC" = "yes"; then
20439                flag="-D_REENTRANT"
20440            else
20441                flag="-mt -D_REENTRANT"
20442            fi
20443            ;;
20444        esac
20445        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
20446printf "%s\n" "${flag}" >&6; }
20447        if test "x$flag" != xno; then
20448            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
20449        fi
20450
20451        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
20452printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
20453if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
20454then :
20455  printf %s "(cached) " >&6
20456else $as_nop
20457
20458                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20459/* end confdefs.h.  */
20460
20461                    #include <pthread.h>
20462int
20463main (void)
20464{
20465int i = PTHREAD_PRIO_INHERIT;
20466  ;
20467  return 0;
20468}
20469_ACEOF
20470if ac_fn_c_try_link "$LINENO"
20471then :
20472  ax_cv_PTHREAD_PRIO_INHERIT=yes
20473else $as_nop
20474  ax_cv_PTHREAD_PRIO_INHERIT=no
20475fi
20476rm -f core conftest.err conftest.$ac_objext conftest.beam \
20477    conftest$ac_exeext conftest.$ac_ext
20478
20479fi
20480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
20481printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
20482        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"
20483then :
20484
20485printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
20486
20487fi
20488
20489        LIBS="$save_LIBS"
20490        CFLAGS="$save_CFLAGS"
20491
20492        # More AIX lossage: must compile with xlc_r or cc_r
20493        if test x"$GCC" != xyes; then
20494          for ac_prog in xlc_r cc_r
20495do
20496  # Extract the first word of "$ac_prog", so it can be a program name with args.
20497set dummy $ac_prog; ac_word=$2
20498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20499printf %s "checking for $ac_word... " >&6; }
20500if test ${ac_cv_prog_PTHREAD_CC+y}
20501then :
20502  printf %s "(cached) " >&6
20503else $as_nop
20504  if test -n "$PTHREAD_CC"; then
20505  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20506else
20507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20508for as_dir in $PATH
20509do
20510  IFS=$as_save_IFS
20511  case $as_dir in #(((
20512    '') as_dir=./ ;;
20513    */) ;;
20514    *) as_dir=$as_dir/ ;;
20515  esac
20516    for ac_exec_ext in '' $ac_executable_extensions; do
20517  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20518    ac_cv_prog_PTHREAD_CC="$ac_prog"
20519    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20520    break 2
20521  fi
20522done
20523  done
20524IFS=$as_save_IFS
20525
20526fi
20527fi
20528PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20529if test -n "$PTHREAD_CC"; then
20530  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20531printf "%s\n" "$PTHREAD_CC" >&6; }
20532else
20533  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20534printf "%s\n" "no" >&6; }
20535fi
20536
20537
20538  test -n "$PTHREAD_CC" && break
20539done
20540test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
20541
20542        else
20543          PTHREAD_CC=$CC
20544        fi
20545else
20546        PTHREAD_CC="$CC"
20547fi
20548
20549
20550
20551
20552
20553# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20554if test x"$ax_pthread_ok" = xyes; then
20555
20556printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
20557
20558        :
20559else
20560        ax_pthread_ok=no
20561        as_fn_error $? "JIT support requires pthreads" "$LINENO" 5
20562fi
20563ac_ext=c
20564ac_cpp='$CPP $CPPFLAGS'
20565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20567ac_compiler_gnu=$ac_cv_c_compiler_gnu
20568
20569
20570    CC="$PTHREAD_CC"
20571    CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
20572    LIBS="$PTHREAD_LIBS $LIBS"
20573  fi
20574
20575printf "%s\n" "#define SUPPORT_JIT /**/" >>confdefs.h
20576
20577else
20578  enable_pcregrep_jit="no"
20579fi
20580
20581if test "$enable_pcregrep_jit" = "yes"; then
20582
20583printf "%s\n" "#define SUPPORT_PCREGREP_JIT /**/" >>confdefs.h
20584
20585fi
20586
20587if test "$enable_utf" = "yes"; then
20588
20589printf "%s\n" "#define SUPPORT_UTF /**/" >>confdefs.h
20590
20591fi
20592
20593if test "$enable_unicode_properties" = "yes"; then
20594
20595printf "%s\n" "#define SUPPORT_UCP /**/" >>confdefs.h
20596
20597fi
20598
20599if test "$enable_stack_for_recursion" = "no"; then
20600
20601printf "%s\n" "#define NO_RECURSE /**/" >>confdefs.h
20602
20603fi
20604
20605if test "$enable_pcregrep_libz" = "yes"; then
20606
20607printf "%s\n" "#define SUPPORT_LIBZ /**/" >>confdefs.h
20608
20609fi
20610
20611if test "$enable_pcregrep_libbz2" = "yes"; then
20612
20613printf "%s\n" "#define SUPPORT_LIBBZ2 /**/" >>confdefs.h
20614
20615fi
20616
20617if test $with_pcregrep_bufsize -lt 8192 ; then
20618  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $with_pcregrep_bufsize is too small for --with-pcregrep-bufsize; using 8192" >&5
20619printf "%s\n" "$as_me: WARNING: $with_pcregrep_bufsize is too small for --with-pcregrep-bufsize; using 8192" >&2;}
20620  with_pcregrep_bufsize="8192"
20621else
20622  if test $? -gt 1 ; then
20623  as_fn_error $? "Bad value for  --with-pcregrep-bufsize" "$LINENO" 5
20624  fi
20625fi
20626
20627
20628printf "%s\n" "#define PCREGREP_BUFSIZE $with_pcregrep_bufsize" >>confdefs.h
20629
20630
20631if test "$enable_pcretest_libedit" = "yes"; then
20632
20633printf "%s\n" "#define SUPPORT_LIBEDIT /**/" >>confdefs.h
20634
20635  LIBREADLINE="$LIBEDIT"
20636elif test "$enable_pcretest_libreadline" = "yes"; then
20637
20638printf "%s\n" "#define SUPPORT_LIBREADLINE /**/" >>confdefs.h
20639
20640fi
20641
20642
20643printf "%s\n" "#define NEWLINE $ac_pcre_newline_value" >>confdefs.h
20644
20645
20646if test "$enable_bsr_anycrlf" = "yes"; then
20647
20648printf "%s\n" "#define BSR_ANYCRLF /**/" >>confdefs.h
20649
20650fi
20651
20652
20653printf "%s\n" "#define LINK_SIZE $with_link_size" >>confdefs.h
20654
20655
20656
20657printf "%s\n" "#define POSIX_MALLOC_THRESHOLD $with_posix_malloc_threshold" >>confdefs.h
20658
20659
20660
20661printf "%s\n" "#define PARENS_NEST_LIMIT $with_parens_nest_limit" >>confdefs.h
20662
20663
20664
20665printf "%s\n" "#define MATCH_LIMIT $with_match_limit" >>confdefs.h
20666
20667
20668
20669printf "%s\n" "#define MATCH_LIMIT_RECURSION $with_match_limit_recursion" >>confdefs.h
20670
20671
20672
20673printf "%s\n" "#define MAX_NAME_SIZE 32" >>confdefs.h
20674
20675
20676
20677printf "%s\n" "#define MAX_NAME_COUNT 10000" >>confdefs.h
20678
20679
20680
20681
20682if test "$enable_ebcdic" = "yes"; then
20683
20684printf "%s\n" "#define EBCDIC /**/" >>confdefs.h
20685
20686fi
20687
20688if test "$enable_ebcdic_nl25" = "yes"; then
20689
20690printf "%s\n" "#define EBCDIC_NL25 /**/" >>confdefs.h
20691
20692fi
20693
20694if test "$enable_valgrind" = "yes"; then
20695
20696printf "%s\n" "#define SUPPORT_VALGRIND /**/" >>confdefs.h
20697
20698fi
20699
20700# Platform specific issues
20701NO_UNDEFINED=
20702EXPORT_ALL_SYMBOLS=
20703case $host_os in
20704  cygwin* | mingw* )
20705    if test X"$enable_shared" = Xyes; then
20706      NO_UNDEFINED="-no-undefined"
20707      EXPORT_ALL_SYMBOLS="-Wl,--export-all-symbols"
20708    fi
20709    ;;
20710esac
20711
20712# The extra LDFLAGS for each particular library
20713# (Note: The libpcre*_version bits are m4 variables, assigned above)
20714
20715EXTRA_LIBPCRE_LDFLAGS="$EXTRA_LIBPCRE_LDFLAGS \
20716                       $NO_UNDEFINED -version-info 3:13:2"
20717
20718EXTRA_LIBPCRE16_LDFLAGS="$EXTRA_LIBPCRE16_LDFLAGS \
20719                       $NO_UNDEFINED -version-info 2:13:2"
20720
20721EXTRA_LIBPCRE32_LDFLAGS="$EXTRA_LIBPCRE32_LDFLAGS \
20722                       $NO_UNDEFINED -version-info 0:13:0"
20723
20724EXTRA_LIBPCREPOSIX_LDFLAGS="$EXTRA_LIBPCREPOSIX_LDFLAGS \
20725                            $NO_UNDEFINED -version-info 0:7:0"
20726
20727EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS \
20728                          $NO_UNDEFINED -version-info 0:2:0 \
20729                          $EXPORT_ALL_SYMBOLS"
20730
20731
20732
20733
20734
20735
20736
20737# When we run 'make distcheck', use these arguments. Turning off compiler
20738# optimization makes it run faster.
20739DISTCHECK_CONFIGURE_FLAGS="CFLAGS='' CXXFLAGS='' --enable-pcre16 --enable-pcre32 --enable-jit --enable-cpp --enable-unicode-properties"
20740
20741
20742# Check that, if --enable-pcregrep-libz or --enable-pcregrep-libbz2 is
20743# specified, the relevant library is available.
20744
20745if test "$enable_pcregrep_libz" = "yes"; then
20746  if test "$HAVE_ZLIB_H" != "1"; then
20747    echo "** Cannot --enable-pcregrep-libz because zlib.h was not found"
20748    exit 1
20749  fi
20750  if test "$HAVE_LIBZ" != "1"; then
20751    echo "** Cannot --enable-pcregrep-libz because libz was not found"
20752    exit 1
20753  fi
20754  LIBZ="-lz"
20755fi
20756
20757
20758if test "$enable_pcregrep_libbz2" = "yes"; then
20759  if test "$HAVE_BZLIB_H" != "1"; then
20760    echo "** Cannot --enable-pcregrep-libbz2 because bzlib.h was not found"
20761    exit 1
20762  fi
20763  if test "$HAVE_LIBBZ2" != "1"; then
20764    echo "** Cannot --enable-pcregrep-libbz2 because libbz2 was not found"
20765    exit 1
20766  fi
20767  LIBBZ2="-lbz2"
20768fi
20769
20770
20771# Similarly for --enable-pcretest-readline
20772
20773if test "$enable_pcretest_libedit" = "yes"; then
20774  if test "$enable_pcretest_libreadline" = "yes"; then
20775    echo "** Cannot use both --enable-pcretest-libedit and --enable-pcretest-readline"
20776    exit 1
20777  fi
20778  if test "$HAVE_EDITLINE_READLINE_H" != "1" -a \
20779          "$HAVE_READLINE_READLINE_H" != "1"; then
20780    echo "** Cannot --enable-pcretest-libedit because neither editline/readline.h"
20781    echo "** nor readline/readline.h was found."
20782    exit 1
20783  fi
20784  if test -z "$LIBEDIT"; then
20785    echo "** Cannot --enable-pcretest-libedit because libedit library was not found."
20786    exit 1
20787  fi
20788fi
20789
20790if test "$enable_pcretest_libreadline" = "yes"; then
20791  if test "$HAVE_READLINE_H" != "1"; then
20792    echo "** Cannot --enable-pcretest-readline because readline/readline.h was not found."
20793    exit 1
20794  fi
20795  if test "$HAVE_HISTORY_H" != "1"; then
20796    echo "** Cannot --enable-pcretest-readline because readline/history.h was not found."
20797    exit 1
20798  fi
20799  if test -z "$LIBREADLINE"; then
20800    echo "** Cannot --enable-pcretest-readline because readline library was not found."
20801    exit 1
20802  fi
20803fi
20804
20805# Handle valgrind support
20806
20807if test "$enable_valgrind" = "yes"; then
20808
20809
20810
20811
20812
20813
20814
20815if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20816	if test -n "$ac_tool_prefix"; then
20817  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20818set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20820printf %s "checking for $ac_word... " >&6; }
20821if test ${ac_cv_path_PKG_CONFIG+y}
20822then :
20823  printf %s "(cached) " >&6
20824else $as_nop
20825  case $PKG_CONFIG in
20826  [\\/]* | ?:[\\/]*)
20827  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20828  ;;
20829  *)
20830  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20831for as_dir in $PATH
20832do
20833  IFS=$as_save_IFS
20834  case $as_dir in #(((
20835    '') as_dir=./ ;;
20836    */) ;;
20837    *) as_dir=$as_dir/ ;;
20838  esac
20839    for ac_exec_ext in '' $ac_executable_extensions; do
20840  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20841    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
20842    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20843    break 2
20844  fi
20845done
20846  done
20847IFS=$as_save_IFS
20848
20849  ;;
20850esac
20851fi
20852PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20853if test -n "$PKG_CONFIG"; then
20854  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20855printf "%s\n" "$PKG_CONFIG" >&6; }
20856else
20857  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20858printf "%s\n" "no" >&6; }
20859fi
20860
20861
20862fi
20863if test -z "$ac_cv_path_PKG_CONFIG"; then
20864  ac_pt_PKG_CONFIG=$PKG_CONFIG
20865  # Extract the first word of "pkg-config", so it can be a program name with args.
20866set dummy pkg-config; ac_word=$2
20867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20868printf %s "checking for $ac_word... " >&6; }
20869if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
20870then :
20871  printf %s "(cached) " >&6
20872else $as_nop
20873  case $ac_pt_PKG_CONFIG in
20874  [\\/]* | ?:[\\/]*)
20875  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20876  ;;
20877  *)
20878  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20879for as_dir in $PATH
20880do
20881  IFS=$as_save_IFS
20882  case $as_dir in #(((
20883    '') as_dir=./ ;;
20884    */) ;;
20885    *) as_dir=$as_dir/ ;;
20886  esac
20887    for ac_exec_ext in '' $ac_executable_extensions; do
20888  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20889    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
20890    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20891    break 2
20892  fi
20893done
20894  done
20895IFS=$as_save_IFS
20896
20897  ;;
20898esac
20899fi
20900ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20901if test -n "$ac_pt_PKG_CONFIG"; then
20902  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20903printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
20904else
20905  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20906printf "%s\n" "no" >&6; }
20907fi
20908
20909  if test "x$ac_pt_PKG_CONFIG" = x; then
20910    PKG_CONFIG=""
20911  else
20912    case $cross_compiling:$ac_tool_warned in
20913yes:)
20914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20915printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20916ac_tool_warned=yes ;;
20917esac
20918    PKG_CONFIG=$ac_pt_PKG_CONFIG
20919  fi
20920else
20921  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20922fi
20923
20924fi
20925if test -n "$PKG_CONFIG"; then
20926	_pkg_min_version=0.9.0
20927	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
20928printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20929	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20930		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20931printf "%s\n" "yes" >&6; }
20932	else
20933		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20934printf "%s\n" "no" >&6; }
20935		PKG_CONFIG=""
20936	fi
20937fi
20938
20939pkg_failed=no
20940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
20941printf %s "checking for VALGRIND... " >&6; }
20942
20943if test -n "$VALGRIND_CFLAGS"; then
20944    pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
20945 elif test -n "$PKG_CONFIG"; then
20946    if test -n "$PKG_CONFIG" && \
20947    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
20948  ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
20949  ac_status=$?
20950  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20951  test $ac_status = 0; }; then
20952  pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
20953		      test "x$?" != "x0" && pkg_failed=yes
20954else
20955  pkg_failed=yes
20956fi
20957 else
20958    pkg_failed=untried
20959fi
20960if test -n "$VALGRIND_LIBS"; then
20961    pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
20962 elif test -n "$PKG_CONFIG"; then
20963    if test -n "$PKG_CONFIG" && \
20964    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
20965  ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
20966  ac_status=$?
20967  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20968  test $ac_status = 0; }; then
20969  pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
20970		      test "x$?" != "x0" && pkg_failed=yes
20971else
20972  pkg_failed=yes
20973fi
20974 else
20975    pkg_failed=untried
20976fi
20977
20978
20979
20980if test $pkg_failed = yes; then
20981   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20982printf "%s\n" "no" >&6; }
20983
20984if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20985        _pkg_short_errors_supported=yes
20986else
20987        _pkg_short_errors_supported=no
20988fi
20989        if test $_pkg_short_errors_supported = yes; then
20990	        VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1`
20991        else
20992	        VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1`
20993        fi
20994	# Put the nasty error message in config.log where it belongs
20995	echo "$VALGRIND_PKG_ERRORS" >&5
20996
20997	as_fn_error $? "Package requirements (valgrind) were not met:
20998
20999$VALGRIND_PKG_ERRORS
21000
21001Consider adjusting the PKG_CONFIG_PATH environment variable if you
21002installed software in a non-standard prefix.
21003
21004Alternatively, you may set the environment variables VALGRIND_CFLAGS
21005and VALGRIND_LIBS to avoid the need to call pkg-config.
21006See the pkg-config man page for more details." "$LINENO" 5
21007elif test $pkg_failed = untried; then
21008     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21009printf "%s\n" "no" >&6; }
21010	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21011printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21012as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21013is in your PATH or set the PKG_CONFIG environment variable to the full
21014path to pkg-config.
21015
21016Alternatively, you may set the environment variables VALGRIND_CFLAGS
21017and VALGRIND_LIBS to avoid the need to call pkg-config.
21018See the pkg-config man page for more details.
21019
21020To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21021See \`config.log' for more details" "$LINENO" 5; }
21022else
21023	VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
21024	VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
21025        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21026printf "%s\n" "yes" >&6; }
21027
21028fi
21029fi
21030
21031# Handle code coverage reporting support
21032if test "$enable_coverage" = "yes"; then
21033  if test "x$GCC" != "xyes"; then
21034    as_fn_error $? "Code coverage reports can only be generated when using GCC" "$LINENO" 5
21035  fi
21036
21037  # ccache is incompatible with gcov
21038  # Extract the first word of "shtool", so it can be a program name with args.
21039set dummy shtool; ac_word=$2
21040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21041printf %s "checking for $ac_word... " >&6; }
21042if test ${ac_cv_path_SHTOOL+y}
21043then :
21044  printf %s "(cached) " >&6
21045else $as_nop
21046  case $SHTOOL in
21047  [\\/]* | ?:[\\/]*)
21048  ac_cv_path_SHTOOL="$SHTOOL" # Let the user override the test with a path.
21049  ;;
21050  *)
21051  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21052for as_dir in $PATH
21053do
21054  IFS=$as_save_IFS
21055  case $as_dir in #(((
21056    '') as_dir=./ ;;
21057    */) ;;
21058    *) as_dir=$as_dir/ ;;
21059  esac
21060    for ac_exec_ext in '' $ac_executable_extensions; do
21061  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21062    ac_cv_path_SHTOOL="$as_dir$ac_word$ac_exec_ext"
21063    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21064    break 2
21065  fi
21066done
21067  done
21068IFS=$as_save_IFS
21069
21070  test -z "$ac_cv_path_SHTOOL" && ac_cv_path_SHTOOL="false"
21071  ;;
21072esac
21073fi
21074SHTOOL=$ac_cv_path_SHTOOL
21075if test -n "$SHTOOL"; then
21076  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
21077printf "%s\n" "$SHTOOL" >&6; }
21078else
21079  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21080printf "%s\n" "no" >&6; }
21081fi
21082
21083
21084  case `$SHTOOL path $CC` in
21085    *ccache*) cc_ccache=yes;;
21086    *) cc_ccache=no;;
21087  esac
21088
21089  if test "$cc_ccache" = "yes"; then
21090    if test -z "$CCACHE_DISABLE" -o "$CCACHE_DISABLE" != "1"; then
21091      as_fn_error $? "must export CCACHE_DISABLE=1 to disable ccache for code coverage" "$LINENO" 5
21092    fi
21093  fi
21094
21095
21096  # Extract the first word of "lcov", so it can be a program name with args.
21097set dummy lcov; ac_word=$2
21098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21099printf %s "checking for $ac_word... " >&6; }
21100if test ${ac_cv_path_LCOV+y}
21101then :
21102  printf %s "(cached) " >&6
21103else $as_nop
21104  case $LCOV in
21105  [\\/]* | ?:[\\/]*)
21106  ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
21107  ;;
21108  *)
21109  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21110for as_dir in $PATH
21111do
21112  IFS=$as_save_IFS
21113  case $as_dir in #(((
21114    '') as_dir=./ ;;
21115    */) ;;
21116    *) as_dir=$as_dir/ ;;
21117  esac
21118    for ac_exec_ext in '' $ac_executable_extensions; do
21119  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21120    ac_cv_path_LCOV="$as_dir$ac_word$ac_exec_ext"
21121    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21122    break 2
21123  fi
21124done
21125  done
21126IFS=$as_save_IFS
21127
21128  test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="false"
21129  ;;
21130esac
21131fi
21132LCOV=$ac_cv_path_LCOV
21133if test -n "$LCOV"; then
21134  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
21135printf "%s\n" "$LCOV" >&6; }
21136else
21137  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21138printf "%s\n" "no" >&6; }
21139fi
21140
21141
21142  if test "x$LCOV" = "xfalse"; then
21143    as_fn_error $? "lcov not found" "$LINENO" 5
21144  fi
21145
21146
21147  # Extract the first word of "genhtml", so it can be a program name with args.
21148set dummy genhtml; ac_word=$2
21149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21150printf %s "checking for $ac_word... " >&6; }
21151if test ${ac_cv_path_GENHTML+y}
21152then :
21153  printf %s "(cached) " >&6
21154else $as_nop
21155  case $GENHTML in
21156  [\\/]* | ?:[\\/]*)
21157  ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
21158  ;;
21159  *)
21160  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21161for as_dir in $PATH
21162do
21163  IFS=$as_save_IFS
21164  case $as_dir in #(((
21165    '') as_dir=./ ;;
21166    */) ;;
21167    *) as_dir=$as_dir/ ;;
21168  esac
21169    for ac_exec_ext in '' $ac_executable_extensions; do
21170  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21171    ac_cv_path_GENHTML="$as_dir$ac_word$ac_exec_ext"
21172    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21173    break 2
21174  fi
21175done
21176  done
21177IFS=$as_save_IFS
21178
21179  test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="false"
21180  ;;
21181esac
21182fi
21183GENHTML=$ac_cv_path_GENHTML
21184if test -n "$GENHTML"; then
21185  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
21186printf "%s\n" "$GENHTML" >&6; }
21187else
21188  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21189printf "%s\n" "no" >&6; }
21190fi
21191
21192
21193  if test "x$GENHTML" = "xfalse"; then
21194    as_fn_error $? "genhtml not found" "$LINENO" 5
21195  fi
21196
21197  # Set flags needed for gcov
21198  GCOV_CFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
21199  GCOV_CXXFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
21200  GCOV_LIBS="-lgcov"
21201
21202
21203
21204fi # enable_coverage
21205
21206 if test "x$enable_coverage" = "xyes"; then
21207  WITH_GCOV_TRUE=
21208  WITH_GCOV_FALSE='#'
21209else
21210  WITH_GCOV_TRUE='#'
21211  WITH_GCOV_FALSE=
21212fi
21213
21214
21215# Produce these files, in addition to config.h.
21216ac_config_files="$ac_config_files Makefile libpcre.pc libpcre16.pc libpcre32.pc libpcreposix.pc libpcrecpp.pc pcre-config pcre.h pcre_stringpiece.h pcrecpparg.h"
21217
21218
21219# Make the generated script files executable.
21220ac_config_commands="$ac_config_commands script-chmod"
21221
21222
21223# Make sure that pcre_chartables.c is removed in case the method for
21224# creating it was changed by reconfiguration.
21225ac_config_commands="$ac_config_commands delete-old-chartables"
21226
21227
21228cat >confcache <<\_ACEOF
21229# This file is a shell script that caches the results of configure
21230# tests run on this system so they can be shared between configure
21231# scripts and configure runs, see configure's option --config-cache.
21232# It is not useful on other systems.  If it contains results you don't
21233# want to keep, you may remove or edit it.
21234#
21235# config.status only pays attention to the cache file if you give it
21236# the --recheck option to rerun configure.
21237#
21238# `ac_cv_env_foo' variables (set or unset) will be overridden when
21239# loading this file, other *unset* `ac_cv_foo' will be assigned the
21240# following values.
21241
21242_ACEOF
21243
21244# The following way of writing the cache mishandles newlines in values,
21245# but we know of no workaround that is simple, portable, and efficient.
21246# So, we kill variables containing newlines.
21247# Ultrix sh set writes to stderr and can't be redirected directly,
21248# and sets the high bit in the cache file unless we assign to the vars.
21249(
21250  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21251    eval ac_val=\$$ac_var
21252    case $ac_val in #(
21253    *${as_nl}*)
21254      case $ac_var in #(
21255      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21256printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21257      esac
21258      case $ac_var in #(
21259      _ | IFS | as_nl) ;; #(
21260      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21261      *) { eval $ac_var=; unset $ac_var;} ;;
21262      esac ;;
21263    esac
21264  done
21265
21266  (set) 2>&1 |
21267    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21268    *${as_nl}ac_space=\ *)
21269      # `set' does not quote correctly, so add quotes: double-quote
21270      # substitution turns \\\\ into \\, and sed turns \\ into \.
21271      sed -n \
21272	"s/'/'\\\\''/g;
21273	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21274      ;; #(
21275    *)
21276      # `set' quotes correctly as required by POSIX, so do not add quotes.
21277      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21278      ;;
21279    esac |
21280    sort
21281) |
21282  sed '
21283     /^ac_cv_env_/b end
21284     t clear
21285     :clear
21286     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21287     t end
21288     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21289     :end' >>confcache
21290if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21291  if test -w "$cache_file"; then
21292    if test "x$cache_file" != "x/dev/null"; then
21293      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21294printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21295      if test ! -f "$cache_file" || test -h "$cache_file"; then
21296	cat confcache >"$cache_file"
21297      else
21298        case $cache_file in #(
21299        */* | ?:*)
21300	  mv -f confcache "$cache_file"$$ &&
21301	  mv -f "$cache_file"$$ "$cache_file" ;; #(
21302        *)
21303	  mv -f confcache "$cache_file" ;;
21304	esac
21305      fi
21306    fi
21307  else
21308    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21309printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21310  fi
21311fi
21312rm -f confcache
21313
21314test "x$prefix" = xNONE && prefix=$ac_default_prefix
21315# Let make expand exec_prefix.
21316test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21317
21318DEFS=-DHAVE_CONFIG_H
21319
21320ac_libobjs=
21321ac_ltlibobjs=
21322U=
21323for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21324  # 1. Remove the extension, and $U if already installed.
21325  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21326  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21327  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21328  #    will be set to the directory where LIBOBJS objects are built.
21329  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21330  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21331done
21332LIBOBJS=$ac_libobjs
21333
21334LTLIBOBJS=$ac_ltlibobjs
21335
21336
21337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21338printf %s "checking that generated files are newer than configure... " >&6; }
21339   if test -n "$am_sleep_pid"; then
21340     # Hide warnings about reused PIDs.
21341     wait $am_sleep_pid 2>/dev/null
21342   fi
21343   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21344printf "%s\n" "done" >&6; }
21345 if test -n "$EXEEXT"; then
21346  am__EXEEXT_TRUE=
21347  am__EXEEXT_FALSE='#'
21348else
21349  am__EXEEXT_TRUE='#'
21350  am__EXEEXT_FALSE=
21351fi
21352
21353if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21354  as_fn_error $? "conditional \"AMDEP\" was never defined.
21355Usually this means the macro was only invoked conditionally." "$LINENO" 5
21356fi
21357if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21358  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21359Usually this means the macro was only invoked conditionally." "$LINENO" 5
21360fi
21361if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21362  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21363Usually this means the macro was only invoked conditionally." "$LINENO" 5
21364fi
21365if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21366  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21367Usually this means the macro was only invoked conditionally." "$LINENO" 5
21368fi
21369if test -z "${WITH_PCRE8_TRUE}" && test -z "${WITH_PCRE8_FALSE}"; then
21370  as_fn_error $? "conditional \"WITH_PCRE8\" was never defined.
21371Usually this means the macro was only invoked conditionally." "$LINENO" 5
21372fi
21373if test -z "${WITH_PCRE16_TRUE}" && test -z "${WITH_PCRE16_FALSE}"; then
21374  as_fn_error $? "conditional \"WITH_PCRE16\" was never defined.
21375Usually this means the macro was only invoked conditionally." "$LINENO" 5
21376fi
21377if test -z "${WITH_PCRE32_TRUE}" && test -z "${WITH_PCRE32_FALSE}"; then
21378  as_fn_error $? "conditional \"WITH_PCRE32\" was never defined.
21379Usually this means the macro was only invoked conditionally." "$LINENO" 5
21380fi
21381if test -z "${WITH_PCRE_CPP_TRUE}" && test -z "${WITH_PCRE_CPP_FALSE}"; then
21382  as_fn_error $? "conditional \"WITH_PCRE_CPP\" was never defined.
21383Usually this means the macro was only invoked conditionally." "$LINENO" 5
21384fi
21385if test -z "${WITH_REBUILD_CHARTABLES_TRUE}" && test -z "${WITH_REBUILD_CHARTABLES_FALSE}"; then
21386  as_fn_error $? "conditional \"WITH_REBUILD_CHARTABLES\" was never defined.
21387Usually this means the macro was only invoked conditionally." "$LINENO" 5
21388fi
21389if test -z "${WITH_JIT_TRUE}" && test -z "${WITH_JIT_FALSE}"; then
21390  as_fn_error $? "conditional \"WITH_JIT\" was never defined.
21391Usually this means the macro was only invoked conditionally." "$LINENO" 5
21392fi
21393if test -z "${WITH_UTF_TRUE}" && test -z "${WITH_UTF_FALSE}"; then
21394  as_fn_error $? "conditional \"WITH_UTF\" was never defined.
21395Usually this means the macro was only invoked conditionally." "$LINENO" 5
21396fi
21397if test -z "${WITH_VALGRIND_TRUE}" && test -z "${WITH_VALGRIND_FALSE}"; then
21398  as_fn_error $? "conditional \"WITH_VALGRIND\" was never defined.
21399Usually this means the macro was only invoked conditionally." "$LINENO" 5
21400fi
21401if test -z "${WITH_GCOV_TRUE}" && test -z "${WITH_GCOV_FALSE}"; then
21402  as_fn_error $? "conditional \"WITH_GCOV\" was never defined.
21403Usually this means the macro was only invoked conditionally." "$LINENO" 5
21404fi
21405
21406: "${CONFIG_STATUS=./config.status}"
21407ac_write_fail=0
21408ac_clean_files_save=$ac_clean_files
21409ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21411printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21412as_write_fail=0
21413cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21414#! $SHELL
21415# Generated by $as_me.
21416# Run this file to recreate the current configuration.
21417# Compiler output produced by configure, useful for debugging
21418# configure, is in config.log if it exists.
21419
21420debug=false
21421ac_cs_recheck=false
21422ac_cs_silent=false
21423
21424SHELL=\${CONFIG_SHELL-$SHELL}
21425export SHELL
21426_ASEOF
21427cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21428## -------------------- ##
21429## M4sh Initialization. ##
21430## -------------------- ##
21431
21432# Be more Bourne compatible
21433DUALCASE=1; export DUALCASE # for MKS sh
21434as_nop=:
21435if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21436then :
21437  emulate sh
21438  NULLCMD=:
21439  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21440  # is contrary to our usage.  Disable this feature.
21441  alias -g '${1+"$@"}'='"$@"'
21442  setopt NO_GLOB_SUBST
21443else $as_nop
21444  case `(set -o) 2>/dev/null` in #(
21445  *posix*) :
21446    set -o posix ;; #(
21447  *) :
21448     ;;
21449esac
21450fi
21451
21452
21453
21454# Reset variables that may have inherited troublesome values from
21455# the environment.
21456
21457# IFS needs to be set, to space, tab, and newline, in precisely that order.
21458# (If _AS_PATH_WALK were called with IFS unset, it would have the
21459# side effect of setting IFS to empty, thus disabling word splitting.)
21460# Quoting is to prevent editors from complaining about space-tab.
21461as_nl='
21462'
21463export as_nl
21464IFS=" ""	$as_nl"
21465
21466PS1='$ '
21467PS2='> '
21468PS4='+ '
21469
21470# Ensure predictable behavior from utilities with locale-dependent output.
21471LC_ALL=C
21472export LC_ALL
21473LANGUAGE=C
21474export LANGUAGE
21475
21476# We cannot yet rely on "unset" to work, but we need these variables
21477# to be unset--not just set to an empty or harmless value--now, to
21478# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
21479# also avoids known problems related to "unset" and subshell syntax
21480# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21481for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21482do eval test \${$as_var+y} \
21483  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21484done
21485
21486# Ensure that fds 0, 1, and 2 are open.
21487if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21488if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21489if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
21490
21491# The user is always right.
21492if ${PATH_SEPARATOR+false} :; then
21493  PATH_SEPARATOR=:
21494  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21495    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21496      PATH_SEPARATOR=';'
21497  }
21498fi
21499
21500
21501# Find who we are.  Look in the path if we contain no directory separator.
21502as_myself=
21503case $0 in #((
21504  *[\\/]* ) as_myself=$0 ;;
21505  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21506for as_dir in $PATH
21507do
21508  IFS=$as_save_IFS
21509  case $as_dir in #(((
21510    '') as_dir=./ ;;
21511    */) ;;
21512    *) as_dir=$as_dir/ ;;
21513  esac
21514    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21515  done
21516IFS=$as_save_IFS
21517
21518     ;;
21519esac
21520# We did not find ourselves, most probably we were run as `sh COMMAND'
21521# in which case we are not to be found in the path.
21522if test "x$as_myself" = x; then
21523  as_myself=$0
21524fi
21525if test ! -f "$as_myself"; then
21526  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21527  exit 1
21528fi
21529
21530
21531
21532# as_fn_error STATUS ERROR [LINENO LOG_FD]
21533# ----------------------------------------
21534# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21535# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21536# script with STATUS, using 1 if that was 0.
21537as_fn_error ()
21538{
21539  as_status=$1; test $as_status -eq 0 && as_status=1
21540  if test "$4"; then
21541    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21542    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21543  fi
21544  printf "%s\n" "$as_me: error: $2" >&2
21545  as_fn_exit $as_status
21546} # as_fn_error
21547
21548
21549
21550# as_fn_set_status STATUS
21551# -----------------------
21552# Set $? to STATUS, without forking.
21553as_fn_set_status ()
21554{
21555  return $1
21556} # as_fn_set_status
21557
21558# as_fn_exit STATUS
21559# -----------------
21560# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21561as_fn_exit ()
21562{
21563  set +e
21564  as_fn_set_status $1
21565  exit $1
21566} # as_fn_exit
21567
21568# as_fn_unset VAR
21569# ---------------
21570# Portably unset VAR.
21571as_fn_unset ()
21572{
21573  { eval $1=; unset $1;}
21574}
21575as_unset=as_fn_unset
21576
21577# as_fn_append VAR VALUE
21578# ----------------------
21579# Append the text in VALUE to the end of the definition contained in VAR. Take
21580# advantage of any shell optimizations that allow amortized linear growth over
21581# repeated appends, instead of the typical quadratic growth present in naive
21582# implementations.
21583if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21584then :
21585  eval 'as_fn_append ()
21586  {
21587    eval $1+=\$2
21588  }'
21589else $as_nop
21590  as_fn_append ()
21591  {
21592    eval $1=\$$1\$2
21593  }
21594fi # as_fn_append
21595
21596# as_fn_arith ARG...
21597# ------------------
21598# Perform arithmetic evaluation on the ARGs, and store the result in the
21599# global $as_val. Take advantage of shells that can avoid forks. The arguments
21600# must be portable across $(()) and expr.
21601if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21602then :
21603  eval 'as_fn_arith ()
21604  {
21605    as_val=$(( $* ))
21606  }'
21607else $as_nop
21608  as_fn_arith ()
21609  {
21610    as_val=`expr "$@" || test $? -eq 1`
21611  }
21612fi # as_fn_arith
21613
21614
21615if expr a : '\(a\)' >/dev/null 2>&1 &&
21616   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21617  as_expr=expr
21618else
21619  as_expr=false
21620fi
21621
21622if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21623  as_basename=basename
21624else
21625  as_basename=false
21626fi
21627
21628if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21629  as_dirname=dirname
21630else
21631  as_dirname=false
21632fi
21633
21634as_me=`$as_basename -- "$0" ||
21635$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21636	 X"$0" : 'X\(//\)$' \| \
21637	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21638printf "%s\n" X/"$0" |
21639    sed '/^.*\/\([^/][^/]*\)\/*$/{
21640	    s//\1/
21641	    q
21642	  }
21643	  /^X\/\(\/\/\)$/{
21644	    s//\1/
21645	    q
21646	  }
21647	  /^X\/\(\/\).*/{
21648	    s//\1/
21649	    q
21650	  }
21651	  s/.*/./; q'`
21652
21653# Avoid depending upon Character Ranges.
21654as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21655as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21656as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21657as_cr_digits='0123456789'
21658as_cr_alnum=$as_cr_Letters$as_cr_digits
21659
21660
21661# Determine whether it's possible to make 'echo' print without a newline.
21662# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21663# for compatibility with existing Makefiles.
21664ECHO_C= ECHO_N= ECHO_T=
21665case `echo -n x` in #(((((
21666-n*)
21667  case `echo 'xy\c'` in
21668  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21669  xy)  ECHO_C='\c';;
21670  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21671       ECHO_T='	';;
21672  esac;;
21673*)
21674  ECHO_N='-n';;
21675esac
21676
21677# For backward compatibility with old third-party macros, we provide
21678# the shell variables $as_echo and $as_echo_n.  New code should use
21679# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21680as_echo='printf %s\n'
21681as_echo_n='printf %s'
21682
21683rm -f conf$$ conf$$.exe conf$$.file
21684if test -d conf$$.dir; then
21685  rm -f conf$$.dir/conf$$.file
21686else
21687  rm -f conf$$.dir
21688  mkdir conf$$.dir 2>/dev/null
21689fi
21690if (echo >conf$$.file) 2>/dev/null; then
21691  if ln -s conf$$.file conf$$ 2>/dev/null; then
21692    as_ln_s='ln -s'
21693    # ... but there are two gotchas:
21694    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21695    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21696    # In both cases, we have to default to `cp -pR'.
21697    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21698      as_ln_s='cp -pR'
21699  elif ln conf$$.file conf$$ 2>/dev/null; then
21700    as_ln_s=ln
21701  else
21702    as_ln_s='cp -pR'
21703  fi
21704else
21705  as_ln_s='cp -pR'
21706fi
21707rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21708rmdir conf$$.dir 2>/dev/null
21709
21710
21711# as_fn_mkdir_p
21712# -------------
21713# Create "$as_dir" as a directory, including parents if necessary.
21714as_fn_mkdir_p ()
21715{
21716
21717  case $as_dir in #(
21718  -*) as_dir=./$as_dir;;
21719  esac
21720  test -d "$as_dir" || eval $as_mkdir_p || {
21721    as_dirs=
21722    while :; do
21723      case $as_dir in #(
21724      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21725      *) as_qdir=$as_dir;;
21726      esac
21727      as_dirs="'$as_qdir' $as_dirs"
21728      as_dir=`$as_dirname -- "$as_dir" ||
21729$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21730	 X"$as_dir" : 'X\(//\)[^/]' \| \
21731	 X"$as_dir" : 'X\(//\)$' \| \
21732	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21733printf "%s\n" X"$as_dir" |
21734    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21735	    s//\1/
21736	    q
21737	  }
21738	  /^X\(\/\/\)[^/].*/{
21739	    s//\1/
21740	    q
21741	  }
21742	  /^X\(\/\/\)$/{
21743	    s//\1/
21744	    q
21745	  }
21746	  /^X\(\/\).*/{
21747	    s//\1/
21748	    q
21749	  }
21750	  s/.*/./; q'`
21751      test -d "$as_dir" && break
21752    done
21753    test -z "$as_dirs" || eval "mkdir $as_dirs"
21754  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21755
21756
21757} # as_fn_mkdir_p
21758if mkdir -p . 2>/dev/null; then
21759  as_mkdir_p='mkdir -p "$as_dir"'
21760else
21761  test -d ./-p && rmdir ./-p
21762  as_mkdir_p=false
21763fi
21764
21765
21766# as_fn_executable_p FILE
21767# -----------------------
21768# Test if FILE is an executable regular file.
21769as_fn_executable_p ()
21770{
21771  test -f "$1" && test -x "$1"
21772} # as_fn_executable_p
21773as_test_x='test -x'
21774as_executable_p=as_fn_executable_p
21775
21776# Sed expression to map a string onto a valid CPP name.
21777as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21778
21779# Sed expression to map a string onto a valid variable name.
21780as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21781
21782
21783exec 6>&1
21784## ----------------------------------- ##
21785## Main body of $CONFIG_STATUS script. ##
21786## ----------------------------------- ##
21787_ASEOF
21788test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21789
21790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21791# Save the log message, to keep $0 and so on meaningful, and to
21792# report actual input values of CONFIG_FILES etc. instead of their
21793# values after options handling.
21794ac_log="
21795This file was extended by PCRE $as_me 8.45, which was
21796generated by GNU Autoconf 2.71.  Invocation command line was
21797
21798  CONFIG_FILES    = $CONFIG_FILES
21799  CONFIG_HEADERS  = $CONFIG_HEADERS
21800  CONFIG_LINKS    = $CONFIG_LINKS
21801  CONFIG_COMMANDS = $CONFIG_COMMANDS
21802  $ $0 $@
21803
21804on `(hostname || uname -n) 2>/dev/null | sed 1q`
21805"
21806
21807_ACEOF
21808
21809case $ac_config_files in *"
21810"*) set x $ac_config_files; shift; ac_config_files=$*;;
21811esac
21812
21813case $ac_config_headers in *"
21814"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21815esac
21816
21817
21818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21819# Files that config.status was made for.
21820config_files="$ac_config_files"
21821config_headers="$ac_config_headers"
21822config_commands="$ac_config_commands"
21823
21824_ACEOF
21825
21826cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21827ac_cs_usage="\
21828\`$as_me' instantiates files and other configuration actions
21829from templates according to the current configuration.  Unless the files
21830and actions are specified as TAGs, all are instantiated by default.
21831
21832Usage: $0 [OPTION]... [TAG]...
21833
21834  -h, --help       print this help, then exit
21835  -V, --version    print version number and configuration settings, then exit
21836      --config     print configuration, then exit
21837  -q, --quiet, --silent
21838                   do not print progress messages
21839  -d, --debug      don't remove temporary files
21840      --recheck    update $as_me by reconfiguring in the same conditions
21841      --file=FILE[:TEMPLATE]
21842                   instantiate the configuration file FILE
21843      --header=FILE[:TEMPLATE]
21844                   instantiate the configuration header FILE
21845
21846Configuration files:
21847$config_files
21848
21849Configuration headers:
21850$config_headers
21851
21852Configuration commands:
21853$config_commands
21854
21855Report bugs to the package provider."
21856
21857_ACEOF
21858ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21859ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21860cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21861ac_cs_config='$ac_cs_config_escaped'
21862ac_cs_version="\\
21863PCRE config.status 8.45
21864configured by $0, generated by GNU Autoconf 2.71,
21865  with options \\"\$ac_cs_config\\"
21866
21867Copyright (C) 2021 Free Software Foundation, Inc.
21868This config.status script is free software; the Free Software Foundation
21869gives unlimited permission to copy, distribute and modify it."
21870
21871ac_pwd='$ac_pwd'
21872srcdir='$srcdir'
21873INSTALL='$INSTALL'
21874MKDIR_P='$MKDIR_P'
21875AWK='$AWK'
21876test -n "\$AWK" || AWK=awk
21877_ACEOF
21878
21879cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21880# The default lists apply if the user does not specify any file.
21881ac_need_defaults=:
21882while test $# != 0
21883do
21884  case $1 in
21885  --*=?*)
21886    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21887    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21888    ac_shift=:
21889    ;;
21890  --*=)
21891    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21892    ac_optarg=
21893    ac_shift=:
21894    ;;
21895  *)
21896    ac_option=$1
21897    ac_optarg=$2
21898    ac_shift=shift
21899    ;;
21900  esac
21901
21902  case $ac_option in
21903  # Handling of the options.
21904  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21905    ac_cs_recheck=: ;;
21906  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21907    printf "%s\n" "$ac_cs_version"; exit ;;
21908  --config | --confi | --conf | --con | --co | --c )
21909    printf "%s\n" "$ac_cs_config"; exit ;;
21910  --debug | --debu | --deb | --de | --d | -d )
21911    debug=: ;;
21912  --file | --fil | --fi | --f )
21913    $ac_shift
21914    case $ac_optarg in
21915    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21916    '') as_fn_error $? "missing file argument" ;;
21917    esac
21918    as_fn_append CONFIG_FILES " '$ac_optarg'"
21919    ac_need_defaults=false;;
21920  --header | --heade | --head | --hea )
21921    $ac_shift
21922    case $ac_optarg in
21923    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21924    esac
21925    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21926    ac_need_defaults=false;;
21927  --he | --h)
21928    # Conflict between --help and --header
21929    as_fn_error $? "ambiguous option: \`$1'
21930Try \`$0 --help' for more information.";;
21931  --help | --hel | -h )
21932    printf "%s\n" "$ac_cs_usage"; exit ;;
21933  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21934  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21935    ac_cs_silent=: ;;
21936
21937  # This is an error.
21938  -*) as_fn_error $? "unrecognized option: \`$1'
21939Try \`$0 --help' for more information." ;;
21940
21941  *) as_fn_append ac_config_targets " $1"
21942     ac_need_defaults=false ;;
21943
21944  esac
21945  shift
21946done
21947
21948ac_configure_extra_args=
21949
21950if $ac_cs_silent; then
21951  exec 6>/dev/null
21952  ac_configure_extra_args="$ac_configure_extra_args --silent"
21953fi
21954
21955_ACEOF
21956cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21957if \$ac_cs_recheck; then
21958  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21959  shift
21960  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21961  CONFIG_SHELL='$SHELL'
21962  export CONFIG_SHELL
21963  exec "\$@"
21964fi
21965
21966_ACEOF
21967cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21968exec 5>>config.log
21969{
21970  echo
21971  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21972## Running $as_me. ##
21973_ASBOX
21974  printf "%s\n" "$ac_log"
21975} >&5
21976
21977_ACEOF
21978cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21979#
21980# INIT-COMMANDS
21981#
21982AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21983
21984
21985# The HP-UX ksh and POSIX shell print the target directory to stdout
21986# if CDPATH is set.
21987(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21988
21989sed_quote_subst='$sed_quote_subst'
21990double_quote_subst='$double_quote_subst'
21991delay_variable_subst='$delay_variable_subst'
21992AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
21993DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21994OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21995macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21996macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21997enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21998enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21999pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22000enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22001shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22002SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22003ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22004PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22005host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22006host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22007host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22008build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22009build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22010build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22011SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22012Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22013GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22014EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22015FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22016LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22017NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22018LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22019max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22020ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22021exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22022lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22023lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22024lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22025lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22026lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22027reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22028reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22029deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22030file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22031file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22032want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22033sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22034AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22035lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
22036AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22037archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22038STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22039RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22040old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22041old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22042old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22043lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22044CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22045CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22046compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22047GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22048lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22049lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22050lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22051lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22052lt_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"`'
22053lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22054nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22055lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22056lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22057objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22058MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22059lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22060lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22061lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22062lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22063lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22064need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22065MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22066DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22067NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22068LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22069OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22070OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22071libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22072shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22073extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22074archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22075enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22076export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22077whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22078compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22079old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22080old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22081archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22082archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22083module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22084module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22085with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22086allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22087no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22088hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22089hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22090hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22091hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22092hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22093hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22094hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22095inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22096link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22097always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22098export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22099exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22100include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22101prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22102postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22103file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22104variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22105need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22106need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22107version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22108runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22109shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22110shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22111libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22112library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22113soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22114install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22115postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22116postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22117finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22118finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22119hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22120sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22121configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22122configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22123hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22124enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22125enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22126enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22127old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22128striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22129compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22130predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22131postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22132predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22133postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22134compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22135LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22136reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22137reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22138old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22139compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22140GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22141lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22142lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22143lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22144lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22145lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22146archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22147enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22148export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22149whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22150compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22151old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22152old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22153archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22154archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22155module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22156module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22157with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22158allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22159no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22160hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22161hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22162hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22163hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22164hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22165hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22166hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22167inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22168link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22169always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22170export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22171exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22172include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22173prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22174postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22175file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22176hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22177compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22178predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22179postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22180predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22181postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22182compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22183
22184LTCC='$LTCC'
22185LTCFLAGS='$LTCFLAGS'
22186compiler='$compiler_DEFAULT'
22187
22188# A function that is used when there is no print builtin or printf.
22189func_fallback_echo ()
22190{
22191  eval 'cat <<_LTECHO_EOF
22192\$1
22193_LTECHO_EOF'
22194}
22195
22196# Quote evaled strings.
22197for var in AS \
22198DLLTOOL \
22199OBJDUMP \
22200SHELL \
22201ECHO \
22202PATH_SEPARATOR \
22203SED \
22204GREP \
22205EGREP \
22206FGREP \
22207LD \
22208NM \
22209LN_S \
22210lt_SP2NL \
22211lt_NL2SP \
22212reload_flag \
22213deplibs_check_method \
22214file_magic_cmd \
22215file_magic_glob \
22216want_nocaseglob \
22217sharedlib_from_linklib_cmd \
22218AR \
22219archiver_list_spec \
22220STRIP \
22221RANLIB \
22222CC \
22223CFLAGS \
22224compiler \
22225lt_cv_sys_global_symbol_pipe \
22226lt_cv_sys_global_symbol_to_cdecl \
22227lt_cv_sys_global_symbol_to_import \
22228lt_cv_sys_global_symbol_to_c_name_address \
22229lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22230lt_cv_nm_interface \
22231nm_file_list_spec \
22232lt_cv_truncate_bin \
22233lt_prog_compiler_no_builtin_flag \
22234lt_prog_compiler_pic \
22235lt_prog_compiler_wl \
22236lt_prog_compiler_static \
22237lt_cv_prog_compiler_c_o \
22238need_locks \
22239MANIFEST_TOOL \
22240DSYMUTIL \
22241NMEDIT \
22242LIPO \
22243OTOOL \
22244OTOOL64 \
22245shrext_cmds \
22246export_dynamic_flag_spec \
22247whole_archive_flag_spec \
22248compiler_needs_object \
22249with_gnu_ld \
22250allow_undefined_flag \
22251no_undefined_flag \
22252hardcode_libdir_flag_spec \
22253hardcode_libdir_separator \
22254exclude_expsyms \
22255include_expsyms \
22256file_list_spec \
22257variables_saved_for_relink \
22258libname_spec \
22259library_names_spec \
22260soname_spec \
22261install_override_mode \
22262finish_eval \
22263old_striplib \
22264striplib \
22265compiler_lib_search_dirs \
22266predep_objects \
22267postdep_objects \
22268predeps \
22269postdeps \
22270compiler_lib_search_path \
22271LD_CXX \
22272reload_flag_CXX \
22273compiler_CXX \
22274lt_prog_compiler_no_builtin_flag_CXX \
22275lt_prog_compiler_pic_CXX \
22276lt_prog_compiler_wl_CXX \
22277lt_prog_compiler_static_CXX \
22278lt_cv_prog_compiler_c_o_CXX \
22279export_dynamic_flag_spec_CXX \
22280whole_archive_flag_spec_CXX \
22281compiler_needs_object_CXX \
22282with_gnu_ld_CXX \
22283allow_undefined_flag_CXX \
22284no_undefined_flag_CXX \
22285hardcode_libdir_flag_spec_CXX \
22286hardcode_libdir_separator_CXX \
22287exclude_expsyms_CXX \
22288include_expsyms_CXX \
22289file_list_spec_CXX \
22290compiler_lib_search_dirs_CXX \
22291predep_objects_CXX \
22292postdep_objects_CXX \
22293predeps_CXX \
22294postdeps_CXX \
22295compiler_lib_search_path_CXX; do
22296    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22297    *[\\\\\\\`\\"\\\$]*)
22298      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22299      ;;
22300    *)
22301      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22302      ;;
22303    esac
22304done
22305
22306# Double-quote double-evaled strings.
22307for var in reload_cmds \
22308old_postinstall_cmds \
22309old_postuninstall_cmds \
22310old_archive_cmds \
22311extract_expsyms_cmds \
22312old_archive_from_new_cmds \
22313old_archive_from_expsyms_cmds \
22314archive_cmds \
22315archive_expsym_cmds \
22316module_cmds \
22317module_expsym_cmds \
22318export_symbols_cmds \
22319prelink_cmds \
22320postlink_cmds \
22321postinstall_cmds \
22322postuninstall_cmds \
22323finish_cmds \
22324sys_lib_search_path_spec \
22325configure_time_dlsearch_path \
22326configure_time_lt_sys_library_path \
22327reload_cmds_CXX \
22328old_archive_cmds_CXX \
22329old_archive_from_new_cmds_CXX \
22330old_archive_from_expsyms_cmds_CXX \
22331archive_cmds_CXX \
22332archive_expsym_cmds_CXX \
22333module_cmds_CXX \
22334module_expsym_cmds_CXX \
22335export_symbols_cmds_CXX \
22336prelink_cmds_CXX \
22337postlink_cmds_CXX; do
22338    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22339    *[\\\\\\\`\\"\\\$]*)
22340      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22341      ;;
22342    *)
22343      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22344      ;;
22345    esac
22346done
22347
22348ac_aux_dir='$ac_aux_dir'
22349
22350# See if we are running on zsh, and set the options that allow our
22351# commands through without removal of \ escapes INIT.
22352if test -n "\${ZSH_VERSION+set}"; then
22353   setopt NO_GLOB_SUBST
22354fi
22355
22356
22357    PACKAGE='$PACKAGE'
22358    VERSION='$VERSION'
22359    RM='$RM'
22360    ofile='$ofile'
22361
22362
22363
22364
22365
22366
22367_ACEOF
22368
22369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22370
22371# Handling of arguments.
22372for ac_config_target in $ac_config_targets
22373do
22374  case $ac_config_target in
22375    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22376    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22377    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22378    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22379    "libpcre.pc") CONFIG_FILES="$CONFIG_FILES libpcre.pc" ;;
22380    "libpcre16.pc") CONFIG_FILES="$CONFIG_FILES libpcre16.pc" ;;
22381    "libpcre32.pc") CONFIG_FILES="$CONFIG_FILES libpcre32.pc" ;;
22382    "libpcreposix.pc") CONFIG_FILES="$CONFIG_FILES libpcreposix.pc" ;;
22383    "libpcrecpp.pc") CONFIG_FILES="$CONFIG_FILES libpcrecpp.pc" ;;
22384    "pcre-config") CONFIG_FILES="$CONFIG_FILES pcre-config" ;;
22385    "pcre.h") CONFIG_FILES="$CONFIG_FILES pcre.h" ;;
22386    "pcre_stringpiece.h") CONFIG_FILES="$CONFIG_FILES pcre_stringpiece.h" ;;
22387    "pcrecpparg.h") CONFIG_FILES="$CONFIG_FILES pcrecpparg.h" ;;
22388    "script-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS script-chmod" ;;
22389    "delete-old-chartables") CONFIG_COMMANDS="$CONFIG_COMMANDS delete-old-chartables" ;;
22390
22391  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22392  esac
22393done
22394
22395
22396# If the user did not use the arguments to specify the items to instantiate,
22397# then the envvar interface is used.  Set only those that are not.
22398# We use the long form for the default assignment because of an extremely
22399# bizarre bug on SunOS 4.1.3.
22400if $ac_need_defaults; then
22401  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22402  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22403  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22404fi
22405
22406# Have a temporary directory for convenience.  Make it in the build tree
22407# simply because there is no reason against having it here, and in addition,
22408# creating and moving files from /tmp can sometimes cause problems.
22409# Hook for its removal unless debugging.
22410# Note that there is a small window in which the directory will not be cleaned:
22411# after its creation but before its name has been assigned to `$tmp'.
22412$debug ||
22413{
22414  tmp= ac_tmp=
22415  trap 'exit_status=$?
22416  : "${ac_tmp:=$tmp}"
22417  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22418' 0
22419  trap 'as_fn_exit 1' 1 2 13 15
22420}
22421# Create a (secure) tmp directory for tmp files.
22422
22423{
22424  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22425  test -d "$tmp"
22426}  ||
22427{
22428  tmp=./conf$$-$RANDOM
22429  (umask 077 && mkdir "$tmp")
22430} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22431ac_tmp=$tmp
22432
22433# Set up the scripts for CONFIG_FILES section.
22434# No need to generate them if there are no CONFIG_FILES.
22435# This happens for instance with `./config.status config.h'.
22436if test -n "$CONFIG_FILES"; then
22437
22438
22439ac_cr=`echo X | tr X '\015'`
22440# On cygwin, bash can eat \r inside `` if the user requested igncr.
22441# But we know of no other shell where ac_cr would be empty at this
22442# point, so we can use a bashism as a fallback.
22443if test "x$ac_cr" = x; then
22444  eval ac_cr=\$\'\\r\'
22445fi
22446ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22447if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22448  ac_cs_awk_cr='\\r'
22449else
22450  ac_cs_awk_cr=$ac_cr
22451fi
22452
22453echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22454_ACEOF
22455
22456
22457{
22458  echo "cat >conf$$subs.awk <<_ACEOF" &&
22459  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22460  echo "_ACEOF"
22461} >conf$$subs.sh ||
22462  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22463ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22464ac_delim='%!_!# '
22465for ac_last_try in false false false false false :; do
22466  . ./conf$$subs.sh ||
22467    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22468
22469  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22470  if test $ac_delim_n = $ac_delim_num; then
22471    break
22472  elif $ac_last_try; then
22473    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22474  else
22475    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22476  fi
22477done
22478rm -f conf$$subs.sh
22479
22480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22481cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22482_ACEOF
22483sed -n '
22484h
22485s/^/S["/; s/!.*/"]=/
22486p
22487g
22488s/^[^!]*!//
22489:repl
22490t repl
22491s/'"$ac_delim"'$//
22492t delim
22493:nl
22494h
22495s/\(.\{148\}\)..*/\1/
22496t more1
22497s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22498p
22499n
22500b repl
22501:more1
22502s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22503p
22504g
22505s/.\{148\}//
22506t nl
22507:delim
22508h
22509s/\(.\{148\}\)..*/\1/
22510t more2
22511s/["\\]/\\&/g; s/^/"/; s/$/"/
22512p
22513b
22514:more2
22515s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22516p
22517g
22518s/.\{148\}//
22519t delim
22520' <conf$$subs.awk | sed '
22521/^[^""]/{
22522  N
22523  s/\n//
22524}
22525' >>$CONFIG_STATUS || ac_write_fail=1
22526rm -f conf$$subs.awk
22527cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22528_ACAWK
22529cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22530  for (key in S) S_is_set[key] = 1
22531  FS = ""
22532
22533}
22534{
22535  line = $ 0
22536  nfields = split(line, field, "@")
22537  substed = 0
22538  len = length(field[1])
22539  for (i = 2; i < nfields; i++) {
22540    key = field[i]
22541    keylen = length(key)
22542    if (S_is_set[key]) {
22543      value = S[key]
22544      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22545      len += length(value) + length(field[++i])
22546      substed = 1
22547    } else
22548      len += 1 + keylen
22549  }
22550
22551  print line
22552}
22553
22554_ACAWK
22555_ACEOF
22556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22557if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22558  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22559else
22560  cat
22561fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22562  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22563_ACEOF
22564
22565# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22566# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22567# trailing colons and then remove the whole line if VPATH becomes empty
22568# (actually we leave an empty line to preserve line numbers).
22569if test "x$srcdir" = x.; then
22570  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
22571h
22572s///
22573s/^/:/
22574s/[	 ]*$/:/
22575s/:\$(srcdir):/:/g
22576s/:\${srcdir}:/:/g
22577s/:@srcdir@:/:/g
22578s/^:*//
22579s/:*$//
22580x
22581s/\(=[	 ]*\).*/\1/
22582G
22583s/\n//
22584s/^[^=]*=[	 ]*$//
22585}'
22586fi
22587
22588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22589fi # test -n "$CONFIG_FILES"
22590
22591# Set up the scripts for CONFIG_HEADERS section.
22592# No need to generate them if there are no CONFIG_HEADERS.
22593# This happens for instance with `./config.status Makefile'.
22594if test -n "$CONFIG_HEADERS"; then
22595cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22596BEGIN {
22597_ACEOF
22598
22599# Transform confdefs.h into an awk script `defines.awk', embedded as
22600# here-document in config.status, that substitutes the proper values into
22601# config.h.in to produce config.h.
22602
22603# Create a delimiter string that does not exist in confdefs.h, to ease
22604# handling of long lines.
22605ac_delim='%!_!# '
22606for ac_last_try in false false :; do
22607  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22608  if test -z "$ac_tt"; then
22609    break
22610  elif $ac_last_try; then
22611    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22612  else
22613    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22614  fi
22615done
22616
22617# For the awk script, D is an array of macro values keyed by name,
22618# likewise P contains macro parameters if any.  Preserve backslash
22619# newline sequences.
22620
22621ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22622sed -n '
22623s/.\{148\}/&'"$ac_delim"'/g
22624t rset
22625:rset
22626s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22627t def
22628d
22629:def
22630s/\\$//
22631t bsnl
22632s/["\\]/\\&/g
22633s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22634D["\1"]=" \3"/p
22635s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22636d
22637:bsnl
22638s/["\\]/\\&/g
22639s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22640D["\1"]=" \3\\\\\\n"\\/p
22641t cont
22642s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22643t cont
22644d
22645:cont
22646n
22647s/.\{148\}/&'"$ac_delim"'/g
22648t clear
22649:clear
22650s/\\$//
22651t bsnlc
22652s/["\\]/\\&/g; s/^/"/; s/$/"/p
22653d
22654:bsnlc
22655s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22656b cont
22657' <confdefs.h | sed '
22658s/'"$ac_delim"'/"\\\
22659"/g' >>$CONFIG_STATUS || ac_write_fail=1
22660
22661cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22662  for (key in D) D_is_set[key] = 1
22663  FS = ""
22664}
22665/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22666  line = \$ 0
22667  split(line, arg, " ")
22668  if (arg[1] == "#") {
22669    defundef = arg[2]
22670    mac1 = arg[3]
22671  } else {
22672    defundef = substr(arg[1], 2)
22673    mac1 = arg[2]
22674  }
22675  split(mac1, mac2, "(") #)
22676  macro = mac2[1]
22677  prefix = substr(line, 1, index(line, defundef) - 1)
22678  if (D_is_set[macro]) {
22679    # Preserve the white space surrounding the "#".
22680    print prefix "define", macro P[macro] D[macro]
22681    next
22682  } else {
22683    # Replace #undef with comments.  This is necessary, for example,
22684    # in the case of _POSIX_SOURCE, which is predefined and required
22685    # on some systems where configure will not decide to define it.
22686    if (defundef == "undef") {
22687      print "/*", prefix defundef, macro, "*/"
22688      next
22689    }
22690  }
22691}
22692{ print }
22693_ACAWK
22694_ACEOF
22695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22696  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22697fi # test -n "$CONFIG_HEADERS"
22698
22699
22700eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22701shift
22702for ac_tag
22703do
22704  case $ac_tag in
22705  :[FHLC]) ac_mode=$ac_tag; continue;;
22706  esac
22707  case $ac_mode$ac_tag in
22708  :[FHL]*:*);;
22709  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22710  :[FH]-) ac_tag=-:-;;
22711  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22712  esac
22713  ac_save_IFS=$IFS
22714  IFS=:
22715  set x $ac_tag
22716  IFS=$ac_save_IFS
22717  shift
22718  ac_file=$1
22719  shift
22720
22721  case $ac_mode in
22722  :L) ac_source=$1;;
22723  :[FH])
22724    ac_file_inputs=
22725    for ac_f
22726    do
22727      case $ac_f in
22728      -) ac_f="$ac_tmp/stdin";;
22729      *) # Look for the file first in the build tree, then in the source tree
22730	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22731	 # because $ac_f cannot contain `:'.
22732	 test -f "$ac_f" ||
22733	   case $ac_f in
22734	   [\\/$]*) false;;
22735	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22736	   esac ||
22737	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22738      esac
22739      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22740      as_fn_append ac_file_inputs " '$ac_f'"
22741    done
22742
22743    # Let's still pretend it is `configure' which instantiates (i.e., don't
22744    # use $as_me), people would be surprised to read:
22745    #    /* config.h.  Generated by config.status.  */
22746    configure_input='Generated from '`
22747	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22748	`' by configure.'
22749    if test x"$ac_file" != x-; then
22750      configure_input="$ac_file.  $configure_input"
22751      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22752printf "%s\n" "$as_me: creating $ac_file" >&6;}
22753    fi
22754    # Neutralize special characters interpreted by sed in replacement strings.
22755    case $configure_input in #(
22756    *\&* | *\|* | *\\* )
22757       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22758       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22759    *) ac_sed_conf_input=$configure_input;;
22760    esac
22761
22762    case $ac_tag in
22763    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22764      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22765    esac
22766    ;;
22767  esac
22768
22769  ac_dir=`$as_dirname -- "$ac_file" ||
22770$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22771	 X"$ac_file" : 'X\(//\)[^/]' \| \
22772	 X"$ac_file" : 'X\(//\)$' \| \
22773	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22774printf "%s\n" X"$ac_file" |
22775    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22776	    s//\1/
22777	    q
22778	  }
22779	  /^X\(\/\/\)[^/].*/{
22780	    s//\1/
22781	    q
22782	  }
22783	  /^X\(\/\/\)$/{
22784	    s//\1/
22785	    q
22786	  }
22787	  /^X\(\/\).*/{
22788	    s//\1/
22789	    q
22790	  }
22791	  s/.*/./; q'`
22792  as_dir="$ac_dir"; as_fn_mkdir_p
22793  ac_builddir=.
22794
22795case "$ac_dir" in
22796.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22797*)
22798  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22799  # A ".." for each directory in $ac_dir_suffix.
22800  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22801  case $ac_top_builddir_sub in
22802  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22803  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22804  esac ;;
22805esac
22806ac_abs_top_builddir=$ac_pwd
22807ac_abs_builddir=$ac_pwd$ac_dir_suffix
22808# for backward compatibility:
22809ac_top_builddir=$ac_top_build_prefix
22810
22811case $srcdir in
22812  .)  # We are building in place.
22813    ac_srcdir=.
22814    ac_top_srcdir=$ac_top_builddir_sub
22815    ac_abs_top_srcdir=$ac_pwd ;;
22816  [\\/]* | ?:[\\/]* )  # Absolute name.
22817    ac_srcdir=$srcdir$ac_dir_suffix;
22818    ac_top_srcdir=$srcdir
22819    ac_abs_top_srcdir=$srcdir ;;
22820  *) # Relative name.
22821    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22822    ac_top_srcdir=$ac_top_build_prefix$srcdir
22823    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22824esac
22825ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22826
22827
22828  case $ac_mode in
22829  :F)
22830  #
22831  # CONFIG_FILE
22832  #
22833
22834  case $INSTALL in
22835  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22836  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22837  esac
22838  ac_MKDIR_P=$MKDIR_P
22839  case $MKDIR_P in
22840  [\\/$]* | ?:[\\/]* ) ;;
22841  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22842  esac
22843_ACEOF
22844
22845cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22846# If the template does not know about datarootdir, expand it.
22847# FIXME: This hack should be removed a few years after 2.60.
22848ac_datarootdir_hack=; ac_datarootdir_seen=
22849ac_sed_dataroot='
22850/datarootdir/ {
22851  p
22852  q
22853}
22854/@datadir@/p
22855/@docdir@/p
22856/@infodir@/p
22857/@localedir@/p
22858/@mandir@/p'
22859case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22860*datarootdir*) ac_datarootdir_seen=yes;;
22861*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22862  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22863printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22864_ACEOF
22865cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22866  ac_datarootdir_hack='
22867  s&@datadir@&$datadir&g
22868  s&@docdir@&$docdir&g
22869  s&@infodir@&$infodir&g
22870  s&@localedir@&$localedir&g
22871  s&@mandir@&$mandir&g
22872  s&\\\${datarootdir}&$datarootdir&g' ;;
22873esac
22874_ACEOF
22875
22876# Neutralize VPATH when `$srcdir' = `.'.
22877# Shell code in configure.ac might set extrasub.
22878# FIXME: do we really want to maintain this feature?
22879cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22880ac_sed_extra="$ac_vpsub
22881$extrasub
22882_ACEOF
22883cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22884:t
22885/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22886s|@configure_input@|$ac_sed_conf_input|;t t
22887s&@top_builddir@&$ac_top_builddir_sub&;t t
22888s&@top_build_prefix@&$ac_top_build_prefix&;t t
22889s&@srcdir@&$ac_srcdir&;t t
22890s&@abs_srcdir@&$ac_abs_srcdir&;t t
22891s&@top_srcdir@&$ac_top_srcdir&;t t
22892s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22893s&@builddir@&$ac_builddir&;t t
22894s&@abs_builddir@&$ac_abs_builddir&;t t
22895s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22896s&@INSTALL@&$ac_INSTALL&;t t
22897s&@MKDIR_P@&$ac_MKDIR_P&;t t
22898$ac_datarootdir_hack
22899"
22900eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22901  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22902
22903test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22904  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22905  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22906      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22907  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22908which seems to be undefined.  Please make sure it is defined" >&5
22909printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22910which seems to be undefined.  Please make sure it is defined" >&2;}
22911
22912  rm -f "$ac_tmp/stdin"
22913  case $ac_file in
22914  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22915  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22916  esac \
22917  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22918 ;;
22919  :H)
22920  #
22921  # CONFIG_HEADER
22922  #
22923  if test x"$ac_file" != x-; then
22924    {
22925      printf "%s\n" "/* $configure_input  */" >&1 \
22926      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22927    } >"$ac_tmp/config.h" \
22928      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22929    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22930      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22931printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22932    else
22933      rm -f "$ac_file"
22934      mv "$ac_tmp/config.h" "$ac_file" \
22935	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22936    fi
22937  else
22938    printf "%s\n" "/* $configure_input  */" >&1 \
22939      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22940      || as_fn_error $? "could not create -" "$LINENO" 5
22941  fi
22942# Compute "$ac_file"'s index in $config_headers.
22943_am_arg="$ac_file"
22944_am_stamp_count=1
22945for _am_header in $config_headers :; do
22946  case $_am_header in
22947    $_am_arg | $_am_arg:* )
22948      break ;;
22949    * )
22950      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22951  esac
22952done
22953echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22954$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22955	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22956	 X"$_am_arg" : 'X\(//\)$' \| \
22957	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22958printf "%s\n" X"$_am_arg" |
22959    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22960	    s//\1/
22961	    q
22962	  }
22963	  /^X\(\/\/\)[^/].*/{
22964	    s//\1/
22965	    q
22966	  }
22967	  /^X\(\/\/\)$/{
22968	    s//\1/
22969	    q
22970	  }
22971	  /^X\(\/\).*/{
22972	    s//\1/
22973	    q
22974	  }
22975	  s/.*/./; q'`/stamp-h$_am_stamp_count
22976 ;;
22977
22978  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22979printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22980 ;;
22981  esac
22982
22983
22984  case $ac_file$ac_mode in
22985    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22986  # Older Autoconf quotes --file arguments for eval, but not when files
22987  # are listed without --file.  Let's play safe and only enable the eval
22988  # if we detect the quoting.
22989  # TODO: see whether this extra hack can be removed once we start
22990  # requiring Autoconf 2.70 or later.
22991  case $CONFIG_FILES in #(
22992  *\'*) :
22993    eval set x "$CONFIG_FILES" ;; #(
22994  *) :
22995    set x $CONFIG_FILES ;; #(
22996  *) :
22997     ;;
22998esac
22999  shift
23000  # Used to flag and report bootstrapping failures.
23001  am_rc=0
23002  for am_mf
23003  do
23004    # Strip MF so we end up with the name of the file.
23005    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
23006    # Check whether this is an Automake generated Makefile which includes
23007    # dependency-tracking related rules and includes.
23008    # Grep'ing the whole file directly is not great: AIX grep has a line
23009    # limit of 2048, but all sed's we know have understand at least 4000.
23010    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23011      || continue
23012    am_dirpart=`$as_dirname -- "$am_mf" ||
23013$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23014	 X"$am_mf" : 'X\(//\)[^/]' \| \
23015	 X"$am_mf" : 'X\(//\)$' \| \
23016	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23017printf "%s\n" X"$am_mf" |
23018    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23019	    s//\1/
23020	    q
23021	  }
23022	  /^X\(\/\/\)[^/].*/{
23023	    s//\1/
23024	    q
23025	  }
23026	  /^X\(\/\/\)$/{
23027	    s//\1/
23028	    q
23029	  }
23030	  /^X\(\/\).*/{
23031	    s//\1/
23032	    q
23033	  }
23034	  s/.*/./; q'`
23035    am_filepart=`$as_basename -- "$am_mf" ||
23036$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23037	 X"$am_mf" : 'X\(//\)$' \| \
23038	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23039printf "%s\n" X/"$am_mf" |
23040    sed '/^.*\/\([^/][^/]*\)\/*$/{
23041	    s//\1/
23042	    q
23043	  }
23044	  /^X\/\(\/\/\)$/{
23045	    s//\1/
23046	    q
23047	  }
23048	  /^X\/\(\/\).*/{
23049	    s//\1/
23050	    q
23051	  }
23052	  s/.*/./; q'`
23053    { echo "$as_me:$LINENO: cd "$am_dirpart" \
23054      && sed -e '/# am--include-marker/d' "$am_filepart" \
23055        | $MAKE -f - am--depfiles" >&5
23056   (cd "$am_dirpart" \
23057      && sed -e '/# am--include-marker/d' "$am_filepart" \
23058        | $MAKE -f - am--depfiles) >&5 2>&5
23059   ac_status=$?
23060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23061   (exit $ac_status); } || am_rc=$?
23062  done
23063  if test $am_rc -ne 0; then
23064    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23065printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23066as_fn_error $? "Something went wrong bootstrapping makefile fragments
23067    for automatic dependency tracking.  If GNU make was not used, consider
23068    re-running the configure script with MAKE=\"gmake\" (or whatever is
23069    necessary).  You can also try re-running configure with the
23070    '--disable-dependency-tracking' option to at least be able to build
23071    the package (albeit without support for automatic dependency tracking).
23072See \`config.log' for more details" "$LINENO" 5; }
23073  fi
23074  { am_dirpart=; unset am_dirpart;}
23075  { am_filepart=; unset am_filepart;}
23076  { am_mf=; unset am_mf;}
23077  { am_rc=; unset am_rc;}
23078  rm -f conftest-deps.mk
23079}
23080 ;;
23081    "libtool":C)
23082
23083    # See if we are running on zsh, and set the options that allow our
23084    # commands through without removal of \ escapes.
23085    if test -n "${ZSH_VERSION+set}"; then
23086      setopt NO_GLOB_SUBST
23087    fi
23088
23089    cfgfile=${ofile}T
23090    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23091    $RM "$cfgfile"
23092
23093    cat <<_LT_EOF >> "$cfgfile"
23094#! $SHELL
23095# Generated automatically by $as_me ($PACKAGE) $VERSION
23096# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23097
23098# Provide generalized library-building support services.
23099# Written by Gordon Matzigkeit, 1996
23100
23101# Copyright (C) 2014 Free Software Foundation, Inc.
23102# This is free software; see the source for copying conditions.  There is NO
23103# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23104
23105# GNU Libtool is free software; you can redistribute it and/or modify
23106# it under the terms of the GNU General Public License as published by
23107# the Free Software Foundation; either version 2 of of the License, or
23108# (at your option) any later version.
23109#
23110# As a special exception to the GNU General Public License, if you
23111# distribute this file as part of a program or library that is built
23112# using GNU Libtool, you may include this file under the  same
23113# distribution terms that you use for the rest of that program.
23114#
23115# GNU Libtool is distributed in the hope that it will be useful, but
23116# WITHOUT ANY WARRANTY; without even the implied warranty of
23117# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23118# GNU General Public License for more details.
23119#
23120# You should have received a copy of the GNU General Public License
23121# along with this program.  If not, see <http://www.gnu.org/licenses/>.
23122
23123
23124# The names of the tagged configurations supported by this script.
23125available_tags='CXX '
23126
23127# Configured defaults for sys_lib_dlsearch_path munging.
23128: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23129
23130# ### BEGIN LIBTOOL CONFIG
23131
23132# Assembler program.
23133AS=$lt_AS
23134
23135# DLL creation program.
23136DLLTOOL=$lt_DLLTOOL
23137
23138# Object dumper program.
23139OBJDUMP=$lt_OBJDUMP
23140
23141# Which release of libtool.m4 was used?
23142macro_version=$macro_version
23143macro_revision=$macro_revision
23144
23145# Whether or not to build shared libraries.
23146build_libtool_libs=$enable_shared
23147
23148# Whether or not to build static libraries.
23149build_old_libs=$enable_static
23150
23151# What type of objects to build.
23152pic_mode=$pic_mode
23153
23154# Whether or not to optimize for fast installation.
23155fast_install=$enable_fast_install
23156
23157# Shared archive member basename,for filename based shared library versioning on AIX.
23158shared_archive_member_spec=$shared_archive_member_spec
23159
23160# Shell to use when invoking shell scripts.
23161SHELL=$lt_SHELL
23162
23163# An echo program that protects backslashes.
23164ECHO=$lt_ECHO
23165
23166# The PATH separator for the build system.
23167PATH_SEPARATOR=$lt_PATH_SEPARATOR
23168
23169# The host system.
23170host_alias=$host_alias
23171host=$host
23172host_os=$host_os
23173
23174# The build system.
23175build_alias=$build_alias
23176build=$build
23177build_os=$build_os
23178
23179# A sed program that does not truncate output.
23180SED=$lt_SED
23181
23182# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23183Xsed="\$SED -e 1s/^X//"
23184
23185# A grep program that handles long lines.
23186GREP=$lt_GREP
23187
23188# An ERE matcher.
23189EGREP=$lt_EGREP
23190
23191# A literal string matcher.
23192FGREP=$lt_FGREP
23193
23194# A BSD- or MS-compatible name lister.
23195NM=$lt_NM
23196
23197# Whether we need soft or hard links.
23198LN_S=$lt_LN_S
23199
23200# What is the maximum length of a command?
23201max_cmd_len=$max_cmd_len
23202
23203# Object file suffix (normally "o").
23204objext=$ac_objext
23205
23206# Executable file suffix (normally "").
23207exeext=$exeext
23208
23209# whether the shell understands "unset".
23210lt_unset=$lt_unset
23211
23212# turn spaces into newlines.
23213SP2NL=$lt_lt_SP2NL
23214
23215# turn newlines into spaces.
23216NL2SP=$lt_lt_NL2SP
23217
23218# convert \$build file names to \$host format.
23219to_host_file_cmd=$lt_cv_to_host_file_cmd
23220
23221# convert \$build files to toolchain format.
23222to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23223
23224# Method to check whether dependent libraries are shared objects.
23225deplibs_check_method=$lt_deplibs_check_method
23226
23227# Command to use when deplibs_check_method = "file_magic".
23228file_magic_cmd=$lt_file_magic_cmd
23229
23230# How to find potential files when deplibs_check_method = "file_magic".
23231file_magic_glob=$lt_file_magic_glob
23232
23233# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23234want_nocaseglob=$lt_want_nocaseglob
23235
23236# Command to associate shared and link libraries.
23237sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23238
23239# The archiver.
23240AR=$lt_AR
23241
23242# Flags to create an archive (by configure).
23243lt_ar_flags=$lt_ar_flags
23244
23245# Flags to create an archive.
23246AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
23247
23248# How to feed a file listing to the archiver.
23249archiver_list_spec=$lt_archiver_list_spec
23250
23251# A symbol stripping program.
23252STRIP=$lt_STRIP
23253
23254# Commands used to install an old-style archive.
23255RANLIB=$lt_RANLIB
23256old_postinstall_cmds=$lt_old_postinstall_cmds
23257old_postuninstall_cmds=$lt_old_postuninstall_cmds
23258
23259# Whether to use a lock for old archive extraction.
23260lock_old_archive_extraction=$lock_old_archive_extraction
23261
23262# A C compiler.
23263LTCC=$lt_CC
23264
23265# LTCC compiler flags.
23266LTCFLAGS=$lt_CFLAGS
23267
23268# Take the output of nm and produce a listing of raw symbols and C names.
23269global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23270
23271# Transform the output of nm in a proper C declaration.
23272global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23273
23274# Transform the output of nm into a list of symbols to manually relocate.
23275global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23276
23277# Transform the output of nm in a C name address pair.
23278global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23279
23280# Transform the output of nm in a C name address pair when lib prefix is needed.
23281global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23282
23283# The name lister interface.
23284nm_interface=$lt_lt_cv_nm_interface
23285
23286# Specify filename containing input files for \$NM.
23287nm_file_list_spec=$lt_nm_file_list_spec
23288
23289# The root where to search for dependent libraries,and where our libraries should be installed.
23290lt_sysroot=$lt_sysroot
23291
23292# Command to truncate a binary pipe.
23293lt_truncate_bin=$lt_lt_cv_truncate_bin
23294
23295# The name of the directory that contains temporary libtool files.
23296objdir=$objdir
23297
23298# Used to examine libraries when file_magic_cmd begins with "file".
23299MAGIC_CMD=$MAGIC_CMD
23300
23301# Must we lock files when doing compilation?
23302need_locks=$lt_need_locks
23303
23304# Manifest tool.
23305MANIFEST_TOOL=$lt_MANIFEST_TOOL
23306
23307# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23308DSYMUTIL=$lt_DSYMUTIL
23309
23310# Tool to change global to local symbols on Mac OS X.
23311NMEDIT=$lt_NMEDIT
23312
23313# Tool to manipulate fat objects and archives on Mac OS X.
23314LIPO=$lt_LIPO
23315
23316# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23317OTOOL=$lt_OTOOL
23318
23319# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23320OTOOL64=$lt_OTOOL64
23321
23322# Old archive suffix (normally "a").
23323libext=$libext
23324
23325# Shared library suffix (normally ".so").
23326shrext_cmds=$lt_shrext_cmds
23327
23328# The commands to extract the exported symbol list from a shared archive.
23329extract_expsyms_cmds=$lt_extract_expsyms_cmds
23330
23331# Variables whose values should be saved in libtool wrapper scripts and
23332# restored at link time.
23333variables_saved_for_relink=$lt_variables_saved_for_relink
23334
23335# Do we need the "lib" prefix for modules?
23336need_lib_prefix=$need_lib_prefix
23337
23338# Do we need a version for libraries?
23339need_version=$need_version
23340
23341# Library versioning type.
23342version_type=$version_type
23343
23344# Shared library runtime path variable.
23345runpath_var=$runpath_var
23346
23347# Shared library path variable.
23348shlibpath_var=$shlibpath_var
23349
23350# Is shlibpath searched before the hard-coded library search path?
23351shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23352
23353# Format of library name prefix.
23354libname_spec=$lt_libname_spec
23355
23356# List of archive names.  First name is the real one, the rest are links.
23357# The last name is the one that the linker finds with -lNAME
23358library_names_spec=$lt_library_names_spec
23359
23360# The coded name of the library, if different from the real name.
23361soname_spec=$lt_soname_spec
23362
23363# Permission mode override for installation of shared libraries.
23364install_override_mode=$lt_install_override_mode
23365
23366# Command to use after installation of a shared archive.
23367postinstall_cmds=$lt_postinstall_cmds
23368
23369# Command to use after uninstallation of a shared archive.
23370postuninstall_cmds=$lt_postuninstall_cmds
23371
23372# Commands used to finish a libtool library installation in a directory.
23373finish_cmds=$lt_finish_cmds
23374
23375# As "finish_cmds", except a single script fragment to be evaled but
23376# not shown.
23377finish_eval=$lt_finish_eval
23378
23379# Whether we should hardcode library paths into libraries.
23380hardcode_into_libs=$hardcode_into_libs
23381
23382# Compile-time system search path for libraries.
23383sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23384
23385# Detected run-time system search path for libraries.
23386sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23387
23388# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23389configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23390
23391# Whether dlopen is supported.
23392dlopen_support=$enable_dlopen
23393
23394# Whether dlopen of programs is supported.
23395dlopen_self=$enable_dlopen_self
23396
23397# Whether dlopen of statically linked programs is supported.
23398dlopen_self_static=$enable_dlopen_self_static
23399
23400# Commands to strip libraries.
23401old_striplib=$lt_old_striplib
23402striplib=$lt_striplib
23403
23404
23405# The linker used to build libraries.
23406LD=$lt_LD
23407
23408# How to create reloadable object files.
23409reload_flag=$lt_reload_flag
23410reload_cmds=$lt_reload_cmds
23411
23412# Commands used to build an old-style archive.
23413old_archive_cmds=$lt_old_archive_cmds
23414
23415# A language specific compiler.
23416CC=$lt_compiler
23417
23418# Is the compiler the GNU compiler?
23419with_gcc=$GCC
23420
23421# Compiler flag to turn off builtin functions.
23422no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23423
23424# Additional compiler flags for building library objects.
23425pic_flag=$lt_lt_prog_compiler_pic
23426
23427# How to pass a linker flag through the compiler.
23428wl=$lt_lt_prog_compiler_wl
23429
23430# Compiler flag to prevent dynamic linking.
23431link_static_flag=$lt_lt_prog_compiler_static
23432
23433# Does compiler simultaneously support -c and -o options?
23434compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23435
23436# Whether or not to add -lc for building shared libraries.
23437build_libtool_need_lc=$archive_cmds_need_lc
23438
23439# Whether or not to disallow shared libs when runtime libs are static.
23440allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23441
23442# Compiler flag to allow reflexive dlopens.
23443export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23444
23445# Compiler flag to generate shared objects directly from archives.
23446whole_archive_flag_spec=$lt_whole_archive_flag_spec
23447
23448# Whether the compiler copes with passing no objects directly.
23449compiler_needs_object=$lt_compiler_needs_object
23450
23451# Create an old-style archive from a shared archive.
23452old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23453
23454# Create a temporary old-style archive to link instead of a shared archive.
23455old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23456
23457# Commands used to build a shared archive.
23458archive_cmds=$lt_archive_cmds
23459archive_expsym_cmds=$lt_archive_expsym_cmds
23460
23461# Commands used to build a loadable module if different from building
23462# a shared archive.
23463module_cmds=$lt_module_cmds
23464module_expsym_cmds=$lt_module_expsym_cmds
23465
23466# Whether we are building with GNU ld or not.
23467with_gnu_ld=$lt_with_gnu_ld
23468
23469# Flag that allows shared libraries with undefined symbols to be built.
23470allow_undefined_flag=$lt_allow_undefined_flag
23471
23472# Flag that enforces no undefined symbols.
23473no_undefined_flag=$lt_no_undefined_flag
23474
23475# Flag to hardcode \$libdir into a binary during linking.
23476# This must work even if \$libdir does not exist
23477hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23478
23479# Whether we need a single "-rpath" flag with a separated argument.
23480hardcode_libdir_separator=$lt_hardcode_libdir_separator
23481
23482# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23483# DIR into the resulting binary.
23484hardcode_direct=$hardcode_direct
23485
23486# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23487# DIR into the resulting binary and the resulting library dependency is
23488# "absolute",i.e impossible to change by setting \$shlibpath_var if the
23489# library is relocated.
23490hardcode_direct_absolute=$hardcode_direct_absolute
23491
23492# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23493# into the resulting binary.
23494hardcode_minus_L=$hardcode_minus_L
23495
23496# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23497# into the resulting binary.
23498hardcode_shlibpath_var=$hardcode_shlibpath_var
23499
23500# Set to "yes" if building a shared library automatically hardcodes DIR
23501# into the library and all subsequent libraries and executables linked
23502# against it.
23503hardcode_automatic=$hardcode_automatic
23504
23505# Set to yes if linker adds runtime paths of dependent libraries
23506# to runtime path list.
23507inherit_rpath=$inherit_rpath
23508
23509# Whether libtool must link a program against all its dependency libraries.
23510link_all_deplibs=$link_all_deplibs
23511
23512# Set to "yes" if exported symbols are required.
23513always_export_symbols=$always_export_symbols
23514
23515# The commands to list exported symbols.
23516export_symbols_cmds=$lt_export_symbols_cmds
23517
23518# Symbols that should not be listed in the preloaded symbols.
23519exclude_expsyms=$lt_exclude_expsyms
23520
23521# Symbols that must always be exported.
23522include_expsyms=$lt_include_expsyms
23523
23524# Commands necessary for linking programs (against libraries) with templates.
23525prelink_cmds=$lt_prelink_cmds
23526
23527# Commands necessary for finishing linking programs.
23528postlink_cmds=$lt_postlink_cmds
23529
23530# Specify filename containing input files.
23531file_list_spec=$lt_file_list_spec
23532
23533# How to hardcode a shared library path into an executable.
23534hardcode_action=$hardcode_action
23535
23536# The directories searched by this compiler when creating a shared library.
23537compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23538
23539# Dependencies to place before and after the objects being linked to
23540# create a shared library.
23541predep_objects=$lt_predep_objects
23542postdep_objects=$lt_postdep_objects
23543predeps=$lt_predeps
23544postdeps=$lt_postdeps
23545
23546# The library search path used internally by the compiler when linking
23547# a shared library.
23548compiler_lib_search_path=$lt_compiler_lib_search_path
23549
23550# ### END LIBTOOL CONFIG
23551
23552_LT_EOF
23553
23554    cat <<'_LT_EOF' >> "$cfgfile"
23555
23556# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23557
23558# func_munge_path_list VARIABLE PATH
23559# -----------------------------------
23560# VARIABLE is name of variable containing _space_ separated list of
23561# directories to be munged by the contents of PATH, which is string
23562# having a format:
23563# "DIR[:DIR]:"
23564#       string "DIR[ DIR]" will be prepended to VARIABLE
23565# ":DIR[:DIR]"
23566#       string "DIR[ DIR]" will be appended to VARIABLE
23567# "DIRP[:DIRP]::[DIRA:]DIRA"
23568#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23569#       "DIRA[ DIRA]" will be appended to VARIABLE
23570# "DIR[:DIR]"
23571#       VARIABLE will be replaced by "DIR[ DIR]"
23572func_munge_path_list ()
23573{
23574    case x$2 in
23575    x)
23576        ;;
23577    *:)
23578        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23579        ;;
23580    x:*)
23581        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23582        ;;
23583    *::*)
23584        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23585        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23586        ;;
23587    *)
23588        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23589        ;;
23590    esac
23591}
23592
23593
23594# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23595func_cc_basename ()
23596{
23597    for cc_temp in $*""; do
23598      case $cc_temp in
23599        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23600        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23601        \-*) ;;
23602        *) break;;
23603      esac
23604    done
23605    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23606}
23607
23608
23609# ### END FUNCTIONS SHARED WITH CONFIGURE
23610
23611_LT_EOF
23612
23613  case $host_os in
23614  aix3*)
23615    cat <<\_LT_EOF >> "$cfgfile"
23616# AIX sometimes has problems with the GCC collect2 program.  For some
23617# reason, if we set the COLLECT_NAMES environment variable, the problems
23618# vanish in a puff of smoke.
23619if test set != "${COLLECT_NAMES+set}"; then
23620  COLLECT_NAMES=
23621  export COLLECT_NAMES
23622fi
23623_LT_EOF
23624    ;;
23625  esac
23626
23627
23628
23629ltmain=$ac_aux_dir/ltmain.sh
23630
23631
23632  # We use sed instead of cat because bash on DJGPP gets confused if
23633  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23634  # text mode, it properly converts lines to CR/LF.  This bash problem
23635  # is reportedly fixed, but why not run on old versions too?
23636  sed '$q' "$ltmain" >> "$cfgfile" \
23637     || (rm -f "$cfgfile"; exit 1)
23638
23639   mv -f "$cfgfile" "$ofile" ||
23640    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23641  chmod +x "$ofile"
23642
23643
23644    cat <<_LT_EOF >> "$ofile"
23645
23646# ### BEGIN LIBTOOL TAG CONFIG: CXX
23647
23648# The linker used to build libraries.
23649LD=$lt_LD_CXX
23650
23651# How to create reloadable object files.
23652reload_flag=$lt_reload_flag_CXX
23653reload_cmds=$lt_reload_cmds_CXX
23654
23655# Commands used to build an old-style archive.
23656old_archive_cmds=$lt_old_archive_cmds_CXX
23657
23658# A language specific compiler.
23659CC=$lt_compiler_CXX
23660
23661# Is the compiler the GNU compiler?
23662with_gcc=$GCC_CXX
23663
23664# Compiler flag to turn off builtin functions.
23665no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23666
23667# Additional compiler flags for building library objects.
23668pic_flag=$lt_lt_prog_compiler_pic_CXX
23669
23670# How to pass a linker flag through the compiler.
23671wl=$lt_lt_prog_compiler_wl_CXX
23672
23673# Compiler flag to prevent dynamic linking.
23674link_static_flag=$lt_lt_prog_compiler_static_CXX
23675
23676# Does compiler simultaneously support -c and -o options?
23677compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23678
23679# Whether or not to add -lc for building shared libraries.
23680build_libtool_need_lc=$archive_cmds_need_lc_CXX
23681
23682# Whether or not to disallow shared libs when runtime libs are static.
23683allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23684
23685# Compiler flag to allow reflexive dlopens.
23686export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23687
23688# Compiler flag to generate shared objects directly from archives.
23689whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23690
23691# Whether the compiler copes with passing no objects directly.
23692compiler_needs_object=$lt_compiler_needs_object_CXX
23693
23694# Create an old-style archive from a shared archive.
23695old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23696
23697# Create a temporary old-style archive to link instead of a shared archive.
23698old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23699
23700# Commands used to build a shared archive.
23701archive_cmds=$lt_archive_cmds_CXX
23702archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23703
23704# Commands used to build a loadable module if different from building
23705# a shared archive.
23706module_cmds=$lt_module_cmds_CXX
23707module_expsym_cmds=$lt_module_expsym_cmds_CXX
23708
23709# Whether we are building with GNU ld or not.
23710with_gnu_ld=$lt_with_gnu_ld_CXX
23711
23712# Flag that allows shared libraries with undefined symbols to be built.
23713allow_undefined_flag=$lt_allow_undefined_flag_CXX
23714
23715# Flag that enforces no undefined symbols.
23716no_undefined_flag=$lt_no_undefined_flag_CXX
23717
23718# Flag to hardcode \$libdir into a binary during linking.
23719# This must work even if \$libdir does not exist
23720hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23721
23722# Whether we need a single "-rpath" flag with a separated argument.
23723hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23724
23725# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23726# DIR into the resulting binary.
23727hardcode_direct=$hardcode_direct_CXX
23728
23729# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23730# DIR into the resulting binary and the resulting library dependency is
23731# "absolute",i.e impossible to change by setting \$shlibpath_var if the
23732# library is relocated.
23733hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23734
23735# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23736# into the resulting binary.
23737hardcode_minus_L=$hardcode_minus_L_CXX
23738
23739# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23740# into the resulting binary.
23741hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23742
23743# Set to "yes" if building a shared library automatically hardcodes DIR
23744# into the library and all subsequent libraries and executables linked
23745# against it.
23746hardcode_automatic=$hardcode_automatic_CXX
23747
23748# Set to yes if linker adds runtime paths of dependent libraries
23749# to runtime path list.
23750inherit_rpath=$inherit_rpath_CXX
23751
23752# Whether libtool must link a program against all its dependency libraries.
23753link_all_deplibs=$link_all_deplibs_CXX
23754
23755# Set to "yes" if exported symbols are required.
23756always_export_symbols=$always_export_symbols_CXX
23757
23758# The commands to list exported symbols.
23759export_symbols_cmds=$lt_export_symbols_cmds_CXX
23760
23761# Symbols that should not be listed in the preloaded symbols.
23762exclude_expsyms=$lt_exclude_expsyms_CXX
23763
23764# Symbols that must always be exported.
23765include_expsyms=$lt_include_expsyms_CXX
23766
23767# Commands necessary for linking programs (against libraries) with templates.
23768prelink_cmds=$lt_prelink_cmds_CXX
23769
23770# Commands necessary for finishing linking programs.
23771postlink_cmds=$lt_postlink_cmds_CXX
23772
23773# Specify filename containing input files.
23774file_list_spec=$lt_file_list_spec_CXX
23775
23776# How to hardcode a shared library path into an executable.
23777hardcode_action=$hardcode_action_CXX
23778
23779# The directories searched by this compiler when creating a shared library.
23780compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23781
23782# Dependencies to place before and after the objects being linked to
23783# create a shared library.
23784predep_objects=$lt_predep_objects_CXX
23785postdep_objects=$lt_postdep_objects_CXX
23786predeps=$lt_predeps_CXX
23787postdeps=$lt_postdeps_CXX
23788
23789# The library search path used internally by the compiler when linking
23790# a shared library.
23791compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23792
23793# ### END LIBTOOL TAG CONFIG: CXX
23794_LT_EOF
23795
23796 ;;
23797    "script-chmod":C) chmod a+x pcre-config ;;
23798    "delete-old-chartables":C) rm -f pcre_chartables.c ;;
23799
23800  esac
23801done # for ac_tag
23802
23803
23804as_fn_exit 0
23805_ACEOF
23806ac_clean_files=$ac_clean_files_save
23807
23808test $ac_write_fail = 0 ||
23809  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23810
23811
23812# configure is writing to config.log, and then calls config.status.
23813# config.status does its own redirection, appending to config.log.
23814# Unfortunately, on DOS this fails, as config.log is still kept open
23815# by configure, so config.status won't be able to write to it; its
23816# output is simply discarded.  So we exec the FD to /dev/null,
23817# effectively closing config.log, so it can be properly (re)opened and
23818# appended to by config.status.  When coming back to configure, we
23819# need to make the FD available again.
23820if test "$no_create" != yes; then
23821  ac_cs_success=:
23822  ac_config_status_args=
23823  test "$silent" = yes &&
23824    ac_config_status_args="$ac_config_status_args --quiet"
23825  exec 5>/dev/null
23826  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23827  exec 5>>config.log
23828  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23829  # would make configure fail if this is the last instruction.
23830  $ac_cs_success || as_fn_exit 1
23831fi
23832if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23833  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23834printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23835fi
23836
23837
23838# Print out a nice little message after configure is run displaying the
23839# chosen options.
23840
23841ebcdic_nl_code=n/a
23842if test "$enable_ebcdic_nl25" = "yes"; then
23843  ebcdic_nl_code=0x25
23844elif test "$enable_ebcdic" = "yes"; then
23845  ebcdic_nl_code=0x15
23846fi
23847
23848cat <<EOF
23849
23850$PACKAGE-$VERSION configuration summary:
23851
23852    Install prefix .................. : ${prefix}
23853    C preprocessor .................. : ${CPP}
23854    C compiler ...................... : ${CC}
23855    C++ preprocessor ................ : ${CXXCPP}
23856    C++ compiler .................... : ${CXX}
23857    Linker .......................... : ${LD}
23858    C preprocessor flags ............ : ${CPPFLAGS}
23859    C compiler flags ................ : ${CFLAGS} ${VISIBILITY_CFLAGS}
23860    C++ compiler flags .............. : ${CXXFLAGS} ${VISIBILITY_CXXFLAGS}
23861    Linker flags .................... : ${LDFLAGS}
23862    Extra libraries ................. : ${LIBS}
23863
23864    Build 8 bit pcre library ........ : ${enable_pcre8}
23865    Build 16 bit pcre library ....... : ${enable_pcre16}
23866    Build 32 bit pcre library ....... : ${enable_pcre32}
23867    Build C++ library ............... : ${enable_cpp}
23868    Enable JIT compiling support .... : ${enable_jit}
23869    Enable UTF-8/16/32 support ...... : ${enable_utf}
23870    Unicode properties .............. : ${enable_unicode_properties}
23871    Newline char/sequence ........... : ${enable_newline}
23872    \R matches only ANYCRLF ......... : ${enable_bsr_anycrlf}
23873    EBCDIC coding ................... : ${enable_ebcdic}
23874    EBCDIC code for NL .............. : ${ebcdic_nl_code}
23875    Rebuild char tables ............. : ${enable_rebuild_chartables}
23876    Use stack recursion ............. : ${enable_stack_for_recursion}
23877    POSIX mem threshold ............. : ${with_posix_malloc_threshold}
23878    Internal link size .............. : ${with_link_size}
23879    Nested parentheses limit ........ : ${with_parens_nest_limit}
23880    Match limit ..................... : ${with_match_limit}
23881    Match limit recursion ........... : ${with_match_limit_recursion}
23882    Build shared libs ............... : ${enable_shared}
23883    Build static libs ............... : ${enable_static}
23884    Use JIT in pcregrep ............. : ${enable_pcregrep_jit}
23885    Buffer size for pcregrep ........ : ${with_pcregrep_bufsize}
23886    Link pcregrep with libz ......... : ${enable_pcregrep_libz}
23887    Link pcregrep with libbz2 ....... : ${enable_pcregrep_libbz2}
23888    Link pcretest with libedit ...... : ${enable_pcretest_libedit}
23889    Link pcretest with libreadline .. : ${enable_pcretest_libreadline}
23890    Valgrind support ................ : ${enable_valgrind}
23891    Code coverage ................... : ${enable_coverage}
23892
23893EOF
23894
23895
23896