xref: /aosp_15_r20/external/pcre/configure (revision 22dc650d8ae982c6770746019a6f94af92b0f024)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for PCRE2 10.43.
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 [email protected] 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='PCRE2'
620PACKAGE_TARNAME='pcre2'
621PACKAGE_VERSION='10.43'
622PACKAGE_STRING='PCRE2 10.43'
623PACKAGE_BUGREPORT=''
624PACKAGE_URL=''
625
626ac_unique_file="src/pcre2.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
663LIB_POSTFIX
664CET_CFLAGS
665WITH_GCOV_FALSE
666WITH_GCOV_TRUE
667GCOV_LIBS
668GCOV_CXXFLAGS
669GCOV_CFLAGS
670GENHTML
671LCOV
672SHTOOL
673VALGRIND_LIBS
674VALGRIND_CFLAGS
675PKG_CONFIG_LIBDIR
676PKG_CONFIG_PATH
677PKG_CONFIG
678LIBBZ2
679LIBZ
680DISTCHECK_CONFIGURE_FLAGS
681EXTRA_LIBPCRE2_POSIX_LDFLAGS
682EXTRA_LIBPCRE2_32_LDFLAGS
683EXTRA_LIBPCRE2_16_LDFLAGS
684EXTRA_LIBPCRE2_8_LDFLAGS
685PTHREAD_CFLAGS
686PTHREAD_LIBS
687PTHREAD_CC
688ax_pthread_config
689PCRE2POSIX_CFLAG
690PCRE2_STATIC_CFLAG
691LIBREADLINE
692WITH_DIFF_FUZZ_SUPPORT_FALSE
693WITH_DIFF_FUZZ_SUPPORT_TRUE
694WITH_FUZZ_SUPPORT_FALSE
695WITH_FUZZ_SUPPORT_TRUE
696WITH_VALGRIND_FALSE
697WITH_VALGRIND_TRUE
698WITH_UNICODE_FALSE
699WITH_UNICODE_TRUE
700WITH_JIT_FALSE
701WITH_JIT_TRUE
702WITH_REBUILD_CHARTABLES_FALSE
703WITH_REBUILD_CHARTABLES_TRUE
704WITH_DEBUG_FALSE
705WITH_DEBUG_TRUE
706WITH_PCRE2_32_FALSE
707WITH_PCRE2_32_TRUE
708WITH_PCRE2_16_FALSE
709WITH_PCRE2_16_TRUE
710WITH_PCRE2_8_FALSE
711WITH_PCRE2_8_TRUE
712enable_pcre2_32
713enable_pcre2_16
714enable_pcre2_8
715PCRE2_DATE
716PCRE2_PRERELEASE
717PCRE2_MINOR
718PCRE2_MAJOR
719HAVE_VISIBILITY
720VISIBILITY_CXXFLAGS
721VISIBILITY_CFLAGS
722LT_SYS_LIBRARY_PATH
723OTOOL64
724OTOOL
725LIPO
726NMEDIT
727DSYMUTIL
728MANIFEST_TOOL
729RANLIB
730FILECMD
731LN_S
732NM
733ac_ct_DUMPBIN
734DUMPBIN
735LD
736FGREP
737EGREP
738GREP
739SED
740host_os
741host_vendor
742host_cpu
743host
744build_os
745build_vendor
746build_cpu
747build
748LIBTOOL
749OBJDUMP
750DLLTOOL
751AS
752ac_ct_AR
753AR
754am__fastdepCC_FALSE
755am__fastdepCC_TRUE
756CCDEPMODE
757am__nodep
758AMDEPBACKSLASH
759AMDEP_FALSE
760AMDEP_TRUE
761am__include
762DEPDIR
763OBJEXT
764EXEEXT
765ac_ct_CC
766CPPFLAGS
767LDFLAGS
768CFLAGS
769CC
770AM_BACKSLASH
771AM_DEFAULT_VERBOSITY
772AM_DEFAULT_V
773AM_V
774CSCOPE
775ETAGS
776CTAGS
777am__untar
778am__tar
779AMTAR
780am__leading_dot
781SET_MAKE
782AWK
783mkdir_p
784MKDIR_P
785INSTALL_STRIP_PROGRAM
786STRIP
787install_sh
788MAKEINFO
789AUTOHEADER
790AUTOMAKE
791AUTOCONF
792ACLOCAL
793VERSION
794PACKAGE
795CYGPATH_W
796am__isrc
797INSTALL_DATA
798INSTALL_SCRIPT
799INSTALL_PROGRAM
800target_alias
801host_alias
802build_alias
803LIBS
804ECHO_T
805ECHO_N
806ECHO_C
807DEFS
808mandir
809localedir
810libdir
811psdir
812pdfdir
813dvidir
814htmldir
815infodir
816docdir
817oldincludedir
818includedir
819runstatedir
820localstatedir
821sharedstatedir
822sysconfdir
823datadir
824datarootdir
825libexecdir
826sbindir
827bindir
828program_transform_name
829prefix
830exec_prefix
831PACKAGE_URL
832PACKAGE_BUGREPORT
833PACKAGE_STRING
834PACKAGE_VERSION
835PACKAGE_TARNAME
836PACKAGE_NAME
837PATH_SEPARATOR
838SHELL
839am__quote'
840ac_subst_files=''
841ac_user_opts='
842enable_option_checking
843enable_silent_rules
844enable_dependency_tracking
845enable_shared
846enable_static
847with_pic
848enable_fast_install
849with_aix_soname
850with_gnu_ld
851with_sysroot
852enable_libtool_lock
853enable_largefile
854enable_pcre8
855enable_pcre16
856enable_pcre32
857enable_pcre2_8
858enable_pcre2_16
859enable_pcre2_32
860enable_debug
861enable_jit
862enable_jit_sealloc
863enable_pcre2grep_jit
864enable_pcre2grep_callout
865enable_pcre2grep_callout_fork
866enable_rebuild_chartables
867enable_unicode
868enable_newline_is_cr
869enable_newline_is_lf
870enable_newline_is_crlf
871enable_newline_is_anycrlf
872enable_newline_is_any
873enable_newline_is_nul
874enable_bsr_anycrlf
875enable_never_backslash_C
876enable_ebcdic
877enable_ebcdic_nl25
878enable_pcre2grep_libz
879enable_pcre2grep_libbz2
880with_pcre2grep_bufsize
881with_pcre2grep_max_bufsize
882enable_pcre2test_libedit
883enable_pcre2test_libreadline
884with_link_size
885with_max_varlookbehind
886with_parens_nest_limit
887with_heap_limit
888with_match_limit
889with_match_limit_depth
890with_match_limit_recursion
891enable_valgrind
892enable_coverage
893enable_fuzz_support
894enable_diff_fuzz_support
895enable_stack_for_recursion
896enable_percent_zt
897'
898      ac_precious_vars='build_alias
899host_alias
900target_alias
901CC
902CFLAGS
903LDFLAGS
904LIBS
905CPPFLAGS
906LT_SYS_LIBRARY_PATH
907PKG_CONFIG
908PKG_CONFIG_PATH
909PKG_CONFIG_LIBDIR
910VALGRIND_CFLAGS
911VALGRIND_LIBS
912LCOV
913GENHTML'
914
915
916# Initialize some variables set by options.
917ac_init_help=
918ac_init_version=false
919ac_unrecognized_opts=
920ac_unrecognized_sep=
921# The variables have the same names as the options, with
922# dashes changed to underlines.
923cache_file=/dev/null
924exec_prefix=NONE
925no_create=
926no_recursion=
927prefix=NONE
928program_prefix=NONE
929program_suffix=NONE
930program_transform_name=s,x,x,
931silent=
932site=
933srcdir=
934verbose=
935x_includes=NONE
936x_libraries=NONE
937
938# Installation directory options.
939# These are left unexpanded so users can "make install exec_prefix=/foo"
940# and all the variables that are supposed to be based on exec_prefix
941# by default will actually change.
942# Use braces instead of parens because sh, perl, etc. also accept them.
943# (The list follows the same order as the GNU Coding Standards.)
944bindir='${exec_prefix}/bin'
945sbindir='${exec_prefix}/sbin'
946libexecdir='${exec_prefix}/libexec'
947datarootdir='${prefix}/share'
948datadir='${datarootdir}'
949sysconfdir='${prefix}/etc'
950sharedstatedir='${prefix}/com'
951localstatedir='${prefix}/var'
952runstatedir='${localstatedir}/run'
953includedir='${prefix}/include'
954oldincludedir='/usr/include'
955docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
956infodir='${datarootdir}/info'
957htmldir='${docdir}'
958dvidir='${docdir}'
959pdfdir='${docdir}'
960psdir='${docdir}'
961libdir='${exec_prefix}/lib'
962localedir='${datarootdir}/locale'
963mandir='${datarootdir}/man'
964
965ac_prev=
966ac_dashdash=
967for ac_option
968do
969  # If the previous option needs an argument, assign it.
970  if test -n "$ac_prev"; then
971    eval $ac_prev=\$ac_option
972    ac_prev=
973    continue
974  fi
975
976  case $ac_option in
977  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
978  *=)   ac_optarg= ;;
979  *)    ac_optarg=yes ;;
980  esac
981
982  case $ac_dashdash$ac_option in
983  --)
984    ac_dashdash=yes ;;
985
986  -bindir | --bindir | --bindi | --bind | --bin | --bi)
987    ac_prev=bindir ;;
988  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
989    bindir=$ac_optarg ;;
990
991  -build | --build | --buil | --bui | --bu)
992    ac_prev=build_alias ;;
993  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
994    build_alias=$ac_optarg ;;
995
996  -cache-file | --cache-file | --cache-fil | --cache-fi \
997  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
998    ac_prev=cache_file ;;
999  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1000  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1001    cache_file=$ac_optarg ;;
1002
1003  --config-cache | -C)
1004    cache_file=config.cache ;;
1005
1006  -datadir | --datadir | --datadi | --datad)
1007    ac_prev=datadir ;;
1008  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1009    datadir=$ac_optarg ;;
1010
1011  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1012  | --dataroo | --dataro | --datar)
1013    ac_prev=datarootdir ;;
1014  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1015  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1016    datarootdir=$ac_optarg ;;
1017
1018  -disable-* | --disable-*)
1019    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1020    # Reject names that are not valid shell variable names.
1021    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1023    ac_useropt_orig=$ac_useropt
1024    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1025    case $ac_user_opts in
1026      *"
1027"enable_$ac_useropt"
1028"*) ;;
1029      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1030	 ac_unrecognized_sep=', ';;
1031    esac
1032    eval enable_$ac_useropt=no ;;
1033
1034  -docdir | --docdir | --docdi | --doc | --do)
1035    ac_prev=docdir ;;
1036  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1037    docdir=$ac_optarg ;;
1038
1039  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1040    ac_prev=dvidir ;;
1041  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1042    dvidir=$ac_optarg ;;
1043
1044  -enable-* | --enable-*)
1045    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1046    # Reject names that are not valid shell variable names.
1047    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1049    ac_useropt_orig=$ac_useropt
1050    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1051    case $ac_user_opts in
1052      *"
1053"enable_$ac_useropt"
1054"*) ;;
1055      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1056	 ac_unrecognized_sep=', ';;
1057    esac
1058    eval enable_$ac_useropt=\$ac_optarg ;;
1059
1060  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1061  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1062  | --exec | --exe | --ex)
1063    ac_prev=exec_prefix ;;
1064  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1065  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1066  | --exec=* | --exe=* | --ex=*)
1067    exec_prefix=$ac_optarg ;;
1068
1069  -gas | --gas | --ga | --g)
1070    # Obsolete; use --with-gas.
1071    with_gas=yes ;;
1072
1073  -help | --help | --hel | --he | -h)
1074    ac_init_help=long ;;
1075  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1076    ac_init_help=recursive ;;
1077  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1078    ac_init_help=short ;;
1079
1080  -host | --host | --hos | --ho)
1081    ac_prev=host_alias ;;
1082  -host=* | --host=* | --hos=* | --ho=*)
1083    host_alias=$ac_optarg ;;
1084
1085  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1086    ac_prev=htmldir ;;
1087  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1088  | --ht=*)
1089    htmldir=$ac_optarg ;;
1090
1091  -includedir | --includedir | --includedi | --included | --include \
1092  | --includ | --inclu | --incl | --inc)
1093    ac_prev=includedir ;;
1094  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1095  | --includ=* | --inclu=* | --incl=* | --inc=*)
1096    includedir=$ac_optarg ;;
1097
1098  -infodir | --infodir | --infodi | --infod | --info | --inf)
1099    ac_prev=infodir ;;
1100  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1101    infodir=$ac_optarg ;;
1102
1103  -libdir | --libdir | --libdi | --libd)
1104    ac_prev=libdir ;;
1105  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1106    libdir=$ac_optarg ;;
1107
1108  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1109  | --libexe | --libex | --libe)
1110    ac_prev=libexecdir ;;
1111  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1112  | --libexe=* | --libex=* | --libe=*)
1113    libexecdir=$ac_optarg ;;
1114
1115  -localedir | --localedir | --localedi | --localed | --locale)
1116    ac_prev=localedir ;;
1117  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1118    localedir=$ac_optarg ;;
1119
1120  -localstatedir | --localstatedir | --localstatedi | --localstated \
1121  | --localstate | --localstat | --localsta | --localst | --locals)
1122    ac_prev=localstatedir ;;
1123  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1124  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1125    localstatedir=$ac_optarg ;;
1126
1127  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1128    ac_prev=mandir ;;
1129  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1130    mandir=$ac_optarg ;;
1131
1132  -nfp | --nfp | --nf)
1133    # Obsolete; use --without-fp.
1134    with_fp=no ;;
1135
1136  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1137  | --no-cr | --no-c | -n)
1138    no_create=yes ;;
1139
1140  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1141  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1142    no_recursion=yes ;;
1143
1144  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1145  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1146  | --oldin | --oldi | --old | --ol | --o)
1147    ac_prev=oldincludedir ;;
1148  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1149  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1150  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1151    oldincludedir=$ac_optarg ;;
1152
1153  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1154    ac_prev=prefix ;;
1155  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1156    prefix=$ac_optarg ;;
1157
1158  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1159  | --program-pre | --program-pr | --program-p)
1160    ac_prev=program_prefix ;;
1161  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1162  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1163    program_prefix=$ac_optarg ;;
1164
1165  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1166  | --program-suf | --program-su | --program-s)
1167    ac_prev=program_suffix ;;
1168  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1169  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1170    program_suffix=$ac_optarg ;;
1171
1172  -program-transform-name | --program-transform-name \
1173  | --program-transform-nam | --program-transform-na \
1174  | --program-transform-n | --program-transform- \
1175  | --program-transform | --program-transfor \
1176  | --program-transfo | --program-transf \
1177  | --program-trans | --program-tran \
1178  | --progr-tra | --program-tr | --program-t)
1179    ac_prev=program_transform_name ;;
1180  -program-transform-name=* | --program-transform-name=* \
1181  | --program-transform-nam=* | --program-transform-na=* \
1182  | --program-transform-n=* | --program-transform-=* \
1183  | --program-transform=* | --program-transfor=* \
1184  | --program-transfo=* | --program-transf=* \
1185  | --program-trans=* | --program-tran=* \
1186  | --progr-tra=* | --program-tr=* | --program-t=*)
1187    program_transform_name=$ac_optarg ;;
1188
1189  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1190    ac_prev=pdfdir ;;
1191  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1192    pdfdir=$ac_optarg ;;
1193
1194  -psdir | --psdir | --psdi | --psd | --ps)
1195    ac_prev=psdir ;;
1196  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1197    psdir=$ac_optarg ;;
1198
1199  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1200  | -silent | --silent | --silen | --sile | --sil)
1201    silent=yes ;;
1202
1203  -runstatedir | --runstatedir | --runstatedi | --runstated \
1204  | --runstate | --runstat | --runsta | --runst | --runs \
1205  | --run | --ru | --r)
1206    ac_prev=runstatedir ;;
1207  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1208  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1209  | --run=* | --ru=* | --r=*)
1210    runstatedir=$ac_optarg ;;
1211
1212  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1213    ac_prev=sbindir ;;
1214  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1215  | --sbi=* | --sb=*)
1216    sbindir=$ac_optarg ;;
1217
1218  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1219  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1220  | --sharedst | --shareds | --shared | --share | --shar \
1221  | --sha | --sh)
1222    ac_prev=sharedstatedir ;;
1223  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1224  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1225  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1226  | --sha=* | --sh=*)
1227    sharedstatedir=$ac_optarg ;;
1228
1229  -site | --site | --sit)
1230    ac_prev=site ;;
1231  -site=* | --site=* | --sit=*)
1232    site=$ac_optarg ;;
1233
1234  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1235    ac_prev=srcdir ;;
1236  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1237    srcdir=$ac_optarg ;;
1238
1239  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1240  | --syscon | --sysco | --sysc | --sys | --sy)
1241    ac_prev=sysconfdir ;;
1242  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1243  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1244    sysconfdir=$ac_optarg ;;
1245
1246  -target | --target | --targe | --targ | --tar | --ta | --t)
1247    ac_prev=target_alias ;;
1248  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1249    target_alias=$ac_optarg ;;
1250
1251  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1252    verbose=yes ;;
1253
1254  -version | --version | --versio | --versi | --vers | -V)
1255    ac_init_version=: ;;
1256
1257  -with-* | --with-*)
1258    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1259    # Reject names that are not valid shell variable names.
1260    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261      as_fn_error $? "invalid package name: \`$ac_useropt'"
1262    ac_useropt_orig=$ac_useropt
1263    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1264    case $ac_user_opts in
1265      *"
1266"with_$ac_useropt"
1267"*) ;;
1268      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1269	 ac_unrecognized_sep=', ';;
1270    esac
1271    eval with_$ac_useropt=\$ac_optarg ;;
1272
1273  -without-* | --without-*)
1274    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1275    # Reject names that are not valid shell variable names.
1276    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277      as_fn_error $? "invalid package name: \`$ac_useropt'"
1278    ac_useropt_orig=$ac_useropt
1279    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1280    case $ac_user_opts in
1281      *"
1282"with_$ac_useropt"
1283"*) ;;
1284      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1285	 ac_unrecognized_sep=', ';;
1286    esac
1287    eval with_$ac_useropt=no ;;
1288
1289  --x)
1290    # Obsolete; use --with-x.
1291    with_x=yes ;;
1292
1293  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1294  | --x-incl | --x-inc | --x-in | --x-i)
1295    ac_prev=x_includes ;;
1296  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1297  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1298    x_includes=$ac_optarg ;;
1299
1300  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1301  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1302    ac_prev=x_libraries ;;
1303  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1304  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1305    x_libraries=$ac_optarg ;;
1306
1307  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1308Try \`$0 --help' for more information"
1309    ;;
1310
1311  *=*)
1312    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1313    # Reject names that are not valid shell variable names.
1314    case $ac_envvar in #(
1315      '' | [0-9]* | *[!_$as_cr_alnum]* )
1316      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1317    esac
1318    eval $ac_envvar=\$ac_optarg
1319    export $ac_envvar ;;
1320
1321  *)
1322    # FIXME: should be removed in autoconf 3.0.
1323    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1324    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1325      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1326    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1327    ;;
1328
1329  esac
1330done
1331
1332if test -n "$ac_prev"; then
1333  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1334  as_fn_error $? "missing argument to $ac_option"
1335fi
1336
1337if test -n "$ac_unrecognized_opts"; then
1338  case $enable_option_checking in
1339    no) ;;
1340    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1341    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1342  esac
1343fi
1344
1345# Check all directory arguments for consistency.
1346for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1347		datadir sysconfdir sharedstatedir localstatedir includedir \
1348		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1349		libdir localedir mandir runstatedir
1350do
1351  eval ac_val=\$$ac_var
1352  # Remove trailing slashes.
1353  case $ac_val in
1354    */ )
1355      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1356      eval $ac_var=\$ac_val;;
1357  esac
1358  # Be sure to have absolute directory names.
1359  case $ac_val in
1360    [\\/$]* | ?:[\\/]* )  continue;;
1361    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1362  esac
1363  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1364done
1365
1366# There might be people who depend on the old broken behavior: `$host'
1367# used to hold the argument of --host etc.
1368# FIXME: To remove some day.
1369build=$build_alias
1370host=$host_alias
1371target=$target_alias
1372
1373# FIXME: To remove some day.
1374if test "x$host_alias" != x; then
1375  if test "x$build_alias" = x; then
1376    cross_compiling=maybe
1377  elif test "x$build_alias" != "x$host_alias"; then
1378    cross_compiling=yes
1379  fi
1380fi
1381
1382ac_tool_prefix=
1383test -n "$host_alias" && ac_tool_prefix=$host_alias-
1384
1385test "$silent" = yes && exec 6>/dev/null
1386
1387
1388ac_pwd=`pwd` && test -n "$ac_pwd" &&
1389ac_ls_di=`ls -di .` &&
1390ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1391  as_fn_error $? "working directory cannot be determined"
1392test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393  as_fn_error $? "pwd does not report name of working directory"
1394
1395
1396# Find the source files, if location was not specified.
1397if test -z "$srcdir"; then
1398  ac_srcdir_defaulted=yes
1399  # Try the directory containing this script, then the parent directory.
1400  ac_confdir=`$as_dirname -- "$as_myself" ||
1401$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1402	 X"$as_myself" : 'X\(//\)[^/]' \| \
1403	 X"$as_myself" : 'X\(//\)$' \| \
1404	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1405printf "%s\n" X"$as_myself" |
1406    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1407	    s//\1/
1408	    q
1409	  }
1410	  /^X\(\/\/\)[^/].*/{
1411	    s//\1/
1412	    q
1413	  }
1414	  /^X\(\/\/\)$/{
1415	    s//\1/
1416	    q
1417	  }
1418	  /^X\(\/\).*/{
1419	    s//\1/
1420	    q
1421	  }
1422	  s/.*/./; q'`
1423  srcdir=$ac_confdir
1424  if test ! -r "$srcdir/$ac_unique_file"; then
1425    srcdir=..
1426  fi
1427else
1428  ac_srcdir_defaulted=no
1429fi
1430if test ! -r "$srcdir/$ac_unique_file"; then
1431  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1432  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1433fi
1434ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1435ac_abs_confdir=`(
1436	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1437	pwd)`
1438# When building in place, set srcdir=.
1439if test "$ac_abs_confdir" = "$ac_pwd"; then
1440  srcdir=.
1441fi
1442# Remove unnecessary trailing slashes from srcdir.
1443# Double slashes in file names in object file debugging info
1444# mess up M-x gdb in Emacs.
1445case $srcdir in
1446*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1447esac
1448for ac_var in $ac_precious_vars; do
1449  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1450  eval ac_env_${ac_var}_value=\$${ac_var}
1451  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1452  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1453done
1454
1455#
1456# Report the --help message.
1457#
1458if test "$ac_init_help" = "long"; then
1459  # Omit some internal or obsolete options to make the list less imposing.
1460  # This message is too long to be a string in the A/UX 3.1 sh.
1461  cat <<_ACEOF
1462\`configure' configures PCRE2 10.43 to adapt to many kinds of systems.
1463
1464Usage: $0 [OPTION]... [VAR=VALUE]...
1465
1466To assign environment variables (e.g., CC, CFLAGS...), specify them as
1467VAR=VALUE.  See below for descriptions of some of the useful variables.
1468
1469Defaults for the options are specified in brackets.
1470
1471Configuration:
1472  -h, --help              display this help and exit
1473      --help=short        display options specific to this package
1474      --help=recursive    display the short help of all the included packages
1475  -V, --version           display version information and exit
1476  -q, --quiet, --silent   do not print \`checking ...' messages
1477      --cache-file=FILE   cache test results in FILE [disabled]
1478  -C, --config-cache      alias for \`--cache-file=config.cache'
1479  -n, --no-create         do not create output files
1480      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1481
1482Installation directories:
1483  --prefix=PREFIX         install architecture-independent files in PREFIX
1484                          [$ac_default_prefix]
1485  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1486                          [PREFIX]
1487
1488By default, \`make install' will install all the files in
1489\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1490an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1491for instance \`--prefix=\$HOME'.
1492
1493For better control, use the options below.
1494
1495Fine tuning of the installation directories:
1496  --bindir=DIR            user executables [EPREFIX/bin]
1497  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1498  --libexecdir=DIR        program executables [EPREFIX/libexec]
1499  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1500  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1501  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1502  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1503  --libdir=DIR            object code libraries [EPREFIX/lib]
1504  --includedir=DIR        C header files [PREFIX/include]
1505  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1506  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1507  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1508  --infodir=DIR           info documentation [DATAROOTDIR/info]
1509  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1510  --mandir=DIR            man documentation [DATAROOTDIR/man]
1511  --docdir=DIR            documentation root [DATAROOTDIR/doc/pcre2]
1512  --htmldir=DIR           html documentation [DOCDIR]
1513  --dvidir=DIR            dvi documentation [DOCDIR]
1514  --pdfdir=DIR            pdf documentation [DOCDIR]
1515  --psdir=DIR             ps documentation [DOCDIR]
1516_ACEOF
1517
1518  cat <<\_ACEOF
1519
1520Program names:
1521  --program-prefix=PREFIX            prepend PREFIX to installed program names
1522  --program-suffix=SUFFIX            append SUFFIX to installed program names
1523  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1524
1525System types:
1526  --build=BUILD     configure for building on BUILD [guessed]
1527  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1528_ACEOF
1529fi
1530
1531if test -n "$ac_init_help"; then
1532  case $ac_init_help in
1533     short | recursive ) echo "Configuration of PCRE2 10.43:";;
1534   esac
1535  cat <<\_ACEOF
1536
1537Optional Features:
1538  --disable-option-checking  ignore unrecognized --enable/--with options
1539  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1540  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1541  --enable-silent-rules   less verbose build output (undo: "make V=1")
1542  --disable-silent-rules  verbose build output (undo: "make V=0")
1543  --enable-dependency-tracking
1544                          do not reject slow dependency extractors
1545  --disable-dependency-tracking
1546                          speeds up one-time build
1547  --enable-shared[=PKGS]  build shared libraries [default=yes]
1548  --enable-static[=PKGS]  build static libraries [default=yes]
1549  --enable-fast-install[=PKGS]
1550                          optimize for fast installation [default=yes]
1551  --disable-libtool-lock  avoid locking (might break parallel builds)
1552  --disable-largefile     omit support for large files
1553
1554  --disable-pcre2-8       disable 8 bit character support
1555  --enable-pcre2-16       enable 16 bit character support
1556  --enable-pcre2-32       enable 32 bit character support
1557  --enable-debug          enable debugging code
1558  --enable-jit            enable Just-In-Time compiling support
1559  --enable-jit-sealloc    enable SELinux compatible execmem allocator in JIT
1560                          (experimental)
1561  --disable-pcre2grep-jit disable JIT support in pcre2grep
1562  --disable-pcre2grep-callout
1563                          disable callout script support in pcre2grep
1564  --disable-pcre2grep-callout-fork
1565                          disable callout script fork support in pcre2grep
1566  --enable-rebuild-chartables
1567                          rebuild character tables in current locale
1568  --disable-unicode       disable Unicode support
1569  --enable-newline-is-cr  use CR as newline character
1570  --enable-newline-is-lf  use LF as newline character (default)
1571  --enable-newline-is-crlf
1572                          use CRLF as newline sequence
1573  --enable-newline-is-anycrlf
1574                          use CR, LF, or CRLF as newline sequence
1575  --enable-newline-is-any use any valid Unicode newline sequence
1576  --enable-newline-is-nul use NUL (binary zero) as newline character
1577  --enable-bsr-anycrlf    \R matches only CR, LF, CRLF by default
1578  --enable-never-backslash-C
1579                          use of \C causes an error
1580  --enable-ebcdic         assume EBCDIC coding rather than ASCII; incompatible
1581                          with --enable-utf; use only in (uncommon) EBCDIC
1582                          environments; it implies --enable-rebuild-chartables
1583  --enable-ebcdic-nl25    set EBCDIC code for NL to 0x25 instead of 0x15; it
1584                          implies --enable-ebcdic
1585  --enable-pcre2grep-libz link pcre2grep with libz to handle .gz files
1586  --enable-pcre2grep-libbz2
1587                          link pcre2grep with libbz2 to handle .bz2 files
1588  --enable-pcre2test-libedit
1589                          link pcre2test with libedit
1590  --enable-pcre2test-libreadline
1591                          link pcre2test with libreadline
1592  --enable-valgrind       enable valgrind support
1593  --enable-coverage       enable code coverage reports using gcov
1594  --enable-fuzz-support   enable fuzzer support
1595  --enable-diff-fuzz-support
1596                          enable differential fuzzer support
1597  --disable-percent-zt    disable the use of z and t formatting modifiers
1598
1599Optional Packages:
1600  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1601  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1602  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1603                          both]
1604  --with-aix-soname=aix|svr4|both
1605                          shared library versioning (aka "SONAME") variant to
1606                          provide on AIX, [default=aix].
1607  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1608  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1609                          compiler's sysroot if not specified).
1610  --with-pcre2grep-bufsize=N
1611                          pcre2grep initial buffer size (default=20480,
1612                          minimum=8192)
1613  --with-pcre2grep-max-bufsize=N
1614                          pcre2grep maximum buffer size (default=1048576,
1615                          minimum=8192)
1616  --with-link-size=N      internal link size (2, 3, or 4 allowed; default=2)
1617  --with-max-varlookbehind=N
1618                          maximum length of variable lookbehind (default=255)
1619  --with-parens-nest-limit=N
1620                          nested parentheses limit (default=250)
1621  --with-heap-limit=N     default limit on heap memory (kibibytes,
1622                          default=20000000)
1623  --with-match-limit=N    default limit on internal looping (default=10000000)
1624  --with-match-limit-depth=N
1625                          default limit on match tree depth
1626                          (default=MATCH_LIMIT)
1627
1628
1629Some influential environment variables:
1630  CC          C compiler command
1631  CFLAGS      C compiler flags
1632  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1633              nonstandard directory <lib dir>
1634  LIBS        libraries to pass to the linker, e.g. -l<library>
1635  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1636              you have headers in a nonstandard directory <include dir>
1637  LT_SYS_LIBRARY_PATH
1638              User-defined run-time library search path.
1639  PKG_CONFIG  path to pkg-config utility
1640  PKG_CONFIG_PATH
1641              directories to add to pkg-config's search path
1642  PKG_CONFIG_LIBDIR
1643              path overriding pkg-config's built-in search path
1644  VALGRIND_CFLAGS
1645              C compiler flags for VALGRIND, overriding pkg-config
1646  VALGRIND_LIBS
1647              linker flags for VALGRIND, overriding pkg-config
1648  LCOV        the ltp lcov program
1649  GENHTML     the ltp genhtml program
1650
1651Use these variables to override the choices made by `configure' or to help
1652it to find libraries and programs with nonstandard names/locations.
1653
1654Report bugs to the package provider.
1655_ACEOF
1656ac_status=$?
1657fi
1658
1659if test "$ac_init_help" = "recursive"; then
1660  # If there are subdirs, report their specific --help.
1661  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1662    test -d "$ac_dir" ||
1663      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1664      continue
1665    ac_builddir=.
1666
1667case "$ac_dir" in
1668.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669*)
1670  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1671  # A ".." for each directory in $ac_dir_suffix.
1672  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1673  case $ac_top_builddir_sub in
1674  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1675  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1676  esac ;;
1677esac
1678ac_abs_top_builddir=$ac_pwd
1679ac_abs_builddir=$ac_pwd$ac_dir_suffix
1680# for backward compatibility:
1681ac_top_builddir=$ac_top_build_prefix
1682
1683case $srcdir in
1684  .)  # We are building in place.
1685    ac_srcdir=.
1686    ac_top_srcdir=$ac_top_builddir_sub
1687    ac_abs_top_srcdir=$ac_pwd ;;
1688  [\\/]* | ?:[\\/]* )  # Absolute name.
1689    ac_srcdir=$srcdir$ac_dir_suffix;
1690    ac_top_srcdir=$srcdir
1691    ac_abs_top_srcdir=$srcdir ;;
1692  *) # Relative name.
1693    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1694    ac_top_srcdir=$ac_top_build_prefix$srcdir
1695    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1696esac
1697ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1698
1699    cd "$ac_dir" || { ac_status=$?; continue; }
1700    # Check for configure.gnu first; this name is used for a wrapper for
1701    # Metaconfig's "Configure" on case-insensitive file systems.
1702    if test -f "$ac_srcdir/configure.gnu"; then
1703      echo &&
1704      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1705    elif test -f "$ac_srcdir/configure"; then
1706      echo &&
1707      $SHELL "$ac_srcdir/configure" --help=recursive
1708    else
1709      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1710    fi || ac_status=$?
1711    cd "$ac_pwd" || { ac_status=$?; break; }
1712  done
1713fi
1714
1715test -n "$ac_init_help" && exit $ac_status
1716if $ac_init_version; then
1717  cat <<\_ACEOF
1718PCRE2 configure 10.43
1719generated by GNU Autoconf 2.71
1720
1721Copyright (C) 2021 Free Software Foundation, Inc.
1722This configure script is free software; the Free Software Foundation
1723gives unlimited permission to copy, distribute and modify it.
1724_ACEOF
1725  exit
1726fi
1727
1728## ------------------------ ##
1729## Autoconf initialization. ##
1730## ------------------------ ##
1731
1732# ac_fn_c_try_compile LINENO
1733# --------------------------
1734# Try to compile conftest.$ac_ext, and return whether this succeeded.
1735ac_fn_c_try_compile ()
1736{
1737  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738  rm -f conftest.$ac_objext conftest.beam
1739  if { { ac_try="$ac_compile"
1740case "(($ac_try" in
1741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742  *) ac_try_echo=$ac_try;;
1743esac
1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745printf "%s\n" "$ac_try_echo"; } >&5
1746  (eval "$ac_compile") 2>conftest.err
1747  ac_status=$?
1748  if test -s conftest.err; then
1749    grep -v '^ *+' conftest.err >conftest.er1
1750    cat conftest.er1 >&5
1751    mv -f conftest.er1 conftest.err
1752  fi
1753  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754  test $ac_status = 0; } && {
1755	 test -z "$ac_c_werror_flag" ||
1756	 test ! -s conftest.err
1757       } && test -s conftest.$ac_objext
1758then :
1759  ac_retval=0
1760else $as_nop
1761  printf "%s\n" "$as_me: failed program was:" >&5
1762sed 's/^/| /' conftest.$ac_ext >&5
1763
1764	ac_retval=1
1765fi
1766  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767  as_fn_set_status $ac_retval
1768
1769} # ac_fn_c_try_compile
1770
1771# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1772# -------------------------------------------------------
1773# Tests whether HEADER exists and can be compiled using the include files in
1774# INCLUDES, setting the cache variable VAR accordingly.
1775ac_fn_c_check_header_compile ()
1776{
1777  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779printf %s "checking for $2... " >&6; }
1780if eval test \${$3+y}
1781then :
1782  printf %s "(cached) " >&6
1783else $as_nop
1784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785/* end confdefs.h.  */
1786$4
1787#include <$2>
1788_ACEOF
1789if ac_fn_c_try_compile "$LINENO"
1790then :
1791  eval "$3=yes"
1792else $as_nop
1793  eval "$3=no"
1794fi
1795rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1796fi
1797eval ac_res=\$$3
1798	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799printf "%s\n" "$ac_res" >&6; }
1800  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801
1802} # ac_fn_c_check_header_compile
1803
1804# ac_fn_c_find_intX_t LINENO BITS VAR
1805# -----------------------------------
1806# Finds a signed integer type with width BITS, setting cache variable VAR
1807# accordingly.
1808ac_fn_c_find_intX_t ()
1809{
1810  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1812printf %s "checking for int$2_t... " >&6; }
1813if eval test \${$3+y}
1814then :
1815  printf %s "(cached) " >&6
1816else $as_nop
1817  eval "$3=no"
1818     # Order is important - never check a type that is potentially smaller
1819     # than half of the expected target width.
1820     for ac_type in int$2_t 'int' 'long int' \
1821	 'long long int' 'short int' 'signed char'; do
1822       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823/* end confdefs.h.  */
1824$ac_includes_default
1825	     enum { N = $2 / 2 - 1 };
1826int
1827main (void)
1828{
1829static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1830test_array [0] = 0;
1831return test_array [0];
1832
1833  ;
1834  return 0;
1835}
1836_ACEOF
1837if ac_fn_c_try_compile "$LINENO"
1838then :
1839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840/* end confdefs.h.  */
1841$ac_includes_default
1842	        enum { N = $2 / 2 - 1 };
1843int
1844main (void)
1845{
1846static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1847		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1848test_array [0] = 0;
1849return test_array [0];
1850
1851  ;
1852  return 0;
1853}
1854_ACEOF
1855if ac_fn_c_try_compile "$LINENO"
1856then :
1857
1858else $as_nop
1859  case $ac_type in #(
1860  int$2_t) :
1861    eval "$3=yes" ;; #(
1862  *) :
1863    eval "$3=\$ac_type" ;;
1864esac
1865fi
1866rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1867fi
1868rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1869       if eval test \"x\$"$3"\" = x"no"
1870then :
1871
1872else $as_nop
1873  break
1874fi
1875     done
1876fi
1877eval ac_res=\$$3
1878	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879printf "%s\n" "$ac_res" >&6; }
1880  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881
1882} # ac_fn_c_find_intX_t
1883
1884# ac_fn_c_try_link LINENO
1885# -----------------------
1886# Try to link conftest.$ac_ext, and return whether this succeeded.
1887ac_fn_c_try_link ()
1888{
1889  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1891  if { { ac_try="$ac_link"
1892case "(($ac_try" in
1893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894  *) ac_try_echo=$ac_try;;
1895esac
1896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897printf "%s\n" "$ac_try_echo"; } >&5
1898  (eval "$ac_link") 2>conftest.err
1899  ac_status=$?
1900  if test -s conftest.err; then
1901    grep -v '^ *+' conftest.err >conftest.er1
1902    cat conftest.er1 >&5
1903    mv -f conftest.er1 conftest.err
1904  fi
1905  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906  test $ac_status = 0; } && {
1907	 test -z "$ac_c_werror_flag" ||
1908	 test ! -s conftest.err
1909       } && test -s conftest$ac_exeext && {
1910	 test "$cross_compiling" = yes ||
1911	 test -x conftest$ac_exeext
1912       }
1913then :
1914  ac_retval=0
1915else $as_nop
1916  printf "%s\n" "$as_me: failed program was:" >&5
1917sed 's/^/| /' conftest.$ac_ext >&5
1918
1919	ac_retval=1
1920fi
1921  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1922  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1923  # interfere with the next link command; also delete a directory that is
1924  # left behind by Apple's compiler.  We do this before executing the actions.
1925  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927  as_fn_set_status $ac_retval
1928
1929} # ac_fn_c_try_link
1930
1931# ac_fn_c_check_func LINENO FUNC VAR
1932# ----------------------------------
1933# Tests whether FUNC exists, setting the cache variable VAR accordingly
1934ac_fn_c_check_func ()
1935{
1936  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938printf %s "checking for $2... " >&6; }
1939if eval test \${$3+y}
1940then :
1941  printf %s "(cached) " >&6
1942else $as_nop
1943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944/* end confdefs.h.  */
1945/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1946   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1947#define $2 innocuous_$2
1948
1949/* System header to define __stub macros and hopefully few prototypes,
1950   which can conflict with char $2 (); below.  */
1951
1952#include <limits.h>
1953#undef $2
1954
1955/* Override any GCC internal prototype to avoid an error.
1956   Use char because int might match the return type of a GCC
1957   builtin and then its argument prototype would still apply.  */
1958#ifdef __cplusplus
1959extern "C"
1960#endif
1961char $2 ();
1962/* The GNU C library defines this for functions which it implements
1963    to always fail with ENOSYS.  Some functions are actually named
1964    something starting with __ and the normal name is an alias.  */
1965#if defined __stub_$2 || defined __stub___$2
1966choke me
1967#endif
1968
1969int
1970main (void)
1971{
1972return $2 ();
1973  ;
1974  return 0;
1975}
1976_ACEOF
1977if ac_fn_c_try_link "$LINENO"
1978then :
1979  eval "$3=yes"
1980else $as_nop
1981  eval "$3=no"
1982fi
1983rm -f core conftest.err conftest.$ac_objext conftest.beam \
1984    conftest$ac_exeext conftest.$ac_ext
1985fi
1986eval ac_res=\$$3
1987	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988printf "%s\n" "$ac_res" >&6; }
1989  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990
1991} # ac_fn_c_check_func
1992
1993# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1994# -------------------------------------------
1995# Tests whether TYPE exists after having included INCLUDES, setting cache
1996# variable VAR accordingly.
1997ac_fn_c_check_type ()
1998{
1999  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2001printf %s "checking for $2... " >&6; }
2002if eval test \${$3+y}
2003then :
2004  printf %s "(cached) " >&6
2005else $as_nop
2006  eval "$3=no"
2007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008/* end confdefs.h.  */
2009$4
2010int
2011main (void)
2012{
2013if (sizeof ($2))
2014	 return 0;
2015  ;
2016  return 0;
2017}
2018_ACEOF
2019if ac_fn_c_try_compile "$LINENO"
2020then :
2021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022/* end confdefs.h.  */
2023$4
2024int
2025main (void)
2026{
2027if (sizeof (($2)))
2028	    return 0;
2029  ;
2030  return 0;
2031}
2032_ACEOF
2033if ac_fn_c_try_compile "$LINENO"
2034then :
2035
2036else $as_nop
2037  eval "$3=yes"
2038fi
2039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2040fi
2041rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2042fi
2043eval ac_res=\$$3
2044	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045printf "%s\n" "$ac_res" >&6; }
2046  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2047
2048} # ac_fn_c_check_type
2049ac_configure_args_raw=
2050for ac_arg
2051do
2052  case $ac_arg in
2053  *\'*)
2054    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2055  esac
2056  as_fn_append ac_configure_args_raw " '$ac_arg'"
2057done
2058
2059case $ac_configure_args_raw in
2060  *$as_nl*)
2061    ac_safe_unquote= ;;
2062  *)
2063    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2064    ac_unsafe_a="$ac_unsafe_z#~"
2065    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2066    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2067esac
2068
2069cat >config.log <<_ACEOF
2070This file contains any messages produced by compilers while
2071running configure, to aid debugging if configure makes a mistake.
2072
2073It was created by PCRE2 $as_me 10.43, which was
2074generated by GNU Autoconf 2.71.  Invocation command line was
2075
2076  $ $0$ac_configure_args_raw
2077
2078_ACEOF
2079exec 5>>config.log
2080{
2081cat <<_ASUNAME
2082## --------- ##
2083## Platform. ##
2084## --------- ##
2085
2086hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2087uname -m = `(uname -m) 2>/dev/null || echo unknown`
2088uname -r = `(uname -r) 2>/dev/null || echo unknown`
2089uname -s = `(uname -s) 2>/dev/null || echo unknown`
2090uname -v = `(uname -v) 2>/dev/null || echo unknown`
2091
2092/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2093/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2094
2095/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2096/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2097/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2098/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2099/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2100/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2101/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2102
2103_ASUNAME
2104
2105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106for as_dir in $PATH
2107do
2108  IFS=$as_save_IFS
2109  case $as_dir in #(((
2110    '') as_dir=./ ;;
2111    */) ;;
2112    *) as_dir=$as_dir/ ;;
2113  esac
2114    printf "%s\n" "PATH: $as_dir"
2115  done
2116IFS=$as_save_IFS
2117
2118} >&5
2119
2120cat >&5 <<_ACEOF
2121
2122
2123## ----------- ##
2124## Core tests. ##
2125## ----------- ##
2126
2127_ACEOF
2128
2129
2130# Keep a trace of the command line.
2131# Strip out --no-create and --no-recursion so they do not pile up.
2132# Strip out --silent because we don't want to record it for future runs.
2133# Also quote any args containing shell meta-characters.
2134# Make two passes to allow for proper duplicate-argument suppression.
2135ac_configure_args=
2136ac_configure_args0=
2137ac_configure_args1=
2138ac_must_keep_next=false
2139for ac_pass in 1 2
2140do
2141  for ac_arg
2142  do
2143    case $ac_arg in
2144    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2145    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2146    | -silent | --silent | --silen | --sile | --sil)
2147      continue ;;
2148    *\'*)
2149      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2150    esac
2151    case $ac_pass in
2152    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2153    2)
2154      as_fn_append ac_configure_args1 " '$ac_arg'"
2155      if test $ac_must_keep_next = true; then
2156	ac_must_keep_next=false # Got value, back to normal.
2157      else
2158	case $ac_arg in
2159	  *=* | --config-cache | -C | -disable-* | --disable-* \
2160	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2161	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2162	  | -with-* | --with-* | -without-* | --without-* | --x)
2163	    case "$ac_configure_args0 " in
2164	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2165	    esac
2166	    ;;
2167	  -* ) ac_must_keep_next=true ;;
2168	esac
2169      fi
2170      as_fn_append ac_configure_args " '$ac_arg'"
2171      ;;
2172    esac
2173  done
2174done
2175{ ac_configure_args0=; unset ac_configure_args0;}
2176{ ac_configure_args1=; unset ac_configure_args1;}
2177
2178# When interrupted or exit'd, cleanup temporary files, and complete
2179# config.log.  We remove comments because anyway the quotes in there
2180# would cause problems or look ugly.
2181# WARNING: Use '\'' to represent an apostrophe within the trap.
2182# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2183trap 'exit_status=$?
2184  # Sanitize IFS.
2185  IFS=" ""	$as_nl"
2186  # Save into config.log some information that might help in debugging.
2187  {
2188    echo
2189
2190    printf "%s\n" "## ---------------- ##
2191## Cache variables. ##
2192## ---------------- ##"
2193    echo
2194    # The following way of writing the cache mishandles newlines in values,
2195(
2196  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2197    eval ac_val=\$$ac_var
2198    case $ac_val in #(
2199    *${as_nl}*)
2200      case $ac_var in #(
2201      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2202printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2203      esac
2204      case $ac_var in #(
2205      _ | IFS | as_nl) ;; #(
2206      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2207      *) { eval $ac_var=; unset $ac_var;} ;;
2208      esac ;;
2209    esac
2210  done
2211  (set) 2>&1 |
2212    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2213    *${as_nl}ac_space=\ *)
2214      sed -n \
2215	"s/'\''/'\''\\\\'\'''\''/g;
2216	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2217      ;; #(
2218    *)
2219      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2220      ;;
2221    esac |
2222    sort
2223)
2224    echo
2225
2226    printf "%s\n" "## ----------------- ##
2227## Output variables. ##
2228## ----------------- ##"
2229    echo
2230    for ac_var in $ac_subst_vars
2231    do
2232      eval ac_val=\$$ac_var
2233      case $ac_val in
2234      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2235      esac
2236      printf "%s\n" "$ac_var='\''$ac_val'\''"
2237    done | sort
2238    echo
2239
2240    if test -n "$ac_subst_files"; then
2241      printf "%s\n" "## ------------------- ##
2242## File substitutions. ##
2243## ------------------- ##"
2244      echo
2245      for ac_var in $ac_subst_files
2246      do
2247	eval ac_val=\$$ac_var
2248	case $ac_val in
2249	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2250	esac
2251	printf "%s\n" "$ac_var='\''$ac_val'\''"
2252      done | sort
2253      echo
2254    fi
2255
2256    if test -s confdefs.h; then
2257      printf "%s\n" "## ----------- ##
2258## confdefs.h. ##
2259## ----------- ##"
2260      echo
2261      cat confdefs.h
2262      echo
2263    fi
2264    test "$ac_signal" != 0 &&
2265      printf "%s\n" "$as_me: caught signal $ac_signal"
2266    printf "%s\n" "$as_me: exit $exit_status"
2267  } >&5
2268  rm -f core *.core core.conftest.* &&
2269    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2270    exit $exit_status
2271' 0
2272for ac_signal in 1 2 13 15; do
2273  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2274done
2275ac_signal=0
2276
2277# confdefs.h avoids OS command line length limits that DEFS can exceed.
2278rm -f -r conftest* confdefs.h
2279
2280printf "%s\n" "/* confdefs.h */" > confdefs.h
2281
2282# Predefined preprocessor variables.
2283
2284printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2285
2286printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2287
2288printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2289
2290printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2291
2292printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2293
2294printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2295
2296
2297# Let the site file select an alternate cache file if it wants to.
2298# Prefer an explicitly selected file to automatically selected ones.
2299if test -n "$CONFIG_SITE"; then
2300  ac_site_files="$CONFIG_SITE"
2301elif test "x$prefix" != xNONE; then
2302  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2303else
2304  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2305fi
2306
2307for ac_site_file in $ac_site_files
2308do
2309  case $ac_site_file in #(
2310  */*) :
2311     ;; #(
2312  *) :
2313    ac_site_file=./$ac_site_file ;;
2314esac
2315  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2316    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2317printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2318    sed 's/^/| /' "$ac_site_file" >&5
2319    . "$ac_site_file" \
2320      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2321printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2322as_fn_error $? "failed to load site script $ac_site_file
2323See \`config.log' for more details" "$LINENO" 5; }
2324  fi
2325done
2326
2327if test -r "$cache_file"; then
2328  # Some versions of bash will fail to source /dev/null (special files
2329  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2330  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2331    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2332printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2333    case $cache_file in
2334      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2335      *)                      . "./$cache_file";;
2336    esac
2337  fi
2338else
2339  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2340printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2341  >$cache_file
2342fi
2343
2344# Test code for whether the C compiler supports C89 (global declarations)
2345ac_c_conftest_c89_globals='
2346/* Does the compiler advertise C89 conformance?
2347   Do not test the value of __STDC__, because some compilers set it to 0
2348   while being otherwise adequately conformant. */
2349#if !defined __STDC__
2350# error "Compiler does not advertise C89 conformance"
2351#endif
2352
2353#include <stddef.h>
2354#include <stdarg.h>
2355struct stat;
2356/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2357struct buf { int x; };
2358struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2359static char *e (p, i)
2360     char **p;
2361     int i;
2362{
2363  return p[i];
2364}
2365static char *f (char * (*g) (char **, int), char **p, ...)
2366{
2367  char *s;
2368  va_list v;
2369  va_start (v,p);
2370  s = g (p, va_arg (v,int));
2371  va_end (v);
2372  return s;
2373}
2374
2375/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2376   function prototypes and stuff, but not \xHH hex character constants.
2377   These do not provoke an error unfortunately, instead are silently treated
2378   as an "x".  The following induces an error, until -std is added to get
2379   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2380   array size at least.  It is necessary to write \x00 == 0 to get something
2381   that is true only with -std.  */
2382int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2383
2384/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2385   inside strings and character constants.  */
2386#define FOO(x) '\''x'\''
2387int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2388
2389int test (int i, double x);
2390struct s1 {int (*f) (int a);};
2391struct s2 {int (*f) (double a);};
2392int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2393               int, int);'
2394
2395# Test code for whether the C compiler supports C89 (body of main).
2396ac_c_conftest_c89_main='
2397ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2398'
2399
2400# Test code for whether the C compiler supports C99 (global declarations)
2401ac_c_conftest_c99_globals='
2402// Does the compiler advertise C99 conformance?
2403#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2404# error "Compiler does not advertise C99 conformance"
2405#endif
2406
2407#include <stdbool.h>
2408extern int puts (const char *);
2409extern int printf (const char *, ...);
2410extern int dprintf (int, const char *, ...);
2411extern void *malloc (size_t);
2412
2413// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2414// dprintf is used instead of fprintf to avoid needing to declare
2415// FILE and stderr.
2416#define debug(...) dprintf (2, __VA_ARGS__)
2417#define showlist(...) puts (#__VA_ARGS__)
2418#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2419static void
2420test_varargs_macros (void)
2421{
2422  int x = 1234;
2423  int y = 5678;
2424  debug ("Flag");
2425  debug ("X = %d\n", x);
2426  showlist (The first, second, and third items.);
2427  report (x>y, "x is %d but y is %d", x, y);
2428}
2429
2430// Check long long types.
2431#define BIG64 18446744073709551615ull
2432#define BIG32 4294967295ul
2433#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2434#if !BIG_OK
2435  #error "your preprocessor is broken"
2436#endif
2437#if BIG_OK
2438#else
2439  #error "your preprocessor is broken"
2440#endif
2441static long long int bignum = -9223372036854775807LL;
2442static unsigned long long int ubignum = BIG64;
2443
2444struct incomplete_array
2445{
2446  int datasize;
2447  double data[];
2448};
2449
2450struct named_init {
2451  int number;
2452  const wchar_t *name;
2453  double average;
2454};
2455
2456typedef const char *ccp;
2457
2458static inline int
2459test_restrict (ccp restrict text)
2460{
2461  // See if C++-style comments work.
2462  // Iterate through items via the restricted pointer.
2463  // Also check for declarations in for loops.
2464  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2465    continue;
2466  return 0;
2467}
2468
2469// Check varargs and va_copy.
2470static bool
2471test_varargs (const char *format, ...)
2472{
2473  va_list args;
2474  va_start (args, format);
2475  va_list args_copy;
2476  va_copy (args_copy, args);
2477
2478  const char *str = "";
2479  int number = 0;
2480  float fnumber = 0;
2481
2482  while (*format)
2483    {
2484      switch (*format++)
2485	{
2486	case '\''s'\'': // string
2487	  str = va_arg (args_copy, const char *);
2488	  break;
2489	case '\''d'\'': // int
2490	  number = va_arg (args_copy, int);
2491	  break;
2492	case '\''f'\'': // float
2493	  fnumber = va_arg (args_copy, double);
2494	  break;
2495	default:
2496	  break;
2497	}
2498    }
2499  va_end (args_copy);
2500  va_end (args);
2501
2502  return *str && number && fnumber;
2503}
2504'
2505
2506# Test code for whether the C compiler supports C99 (body of main).
2507ac_c_conftest_c99_main='
2508  // Check bool.
2509  _Bool success = false;
2510  success |= (argc != 0);
2511
2512  // Check restrict.
2513  if (test_restrict ("String literal") == 0)
2514    success = true;
2515  char *restrict newvar = "Another string";
2516
2517  // Check varargs.
2518  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2519  test_varargs_macros ();
2520
2521  // Check flexible array members.
2522  struct incomplete_array *ia =
2523    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2524  ia->datasize = 10;
2525  for (int i = 0; i < ia->datasize; ++i)
2526    ia->data[i] = i * 1.234;
2527
2528  // Check named initializers.
2529  struct named_init ni = {
2530    .number = 34,
2531    .name = L"Test wide string",
2532    .average = 543.34343,
2533  };
2534
2535  ni.number = 58;
2536
2537  int dynamic_array[ni.number];
2538  dynamic_array[0] = argv[0][0];
2539  dynamic_array[ni.number - 1] = 543;
2540
2541  // work around unused variable warnings
2542  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2543	 || dynamic_array[ni.number - 1] != 543);
2544'
2545
2546# Test code for whether the C compiler supports C11 (global declarations)
2547ac_c_conftest_c11_globals='
2548// Does the compiler advertise C11 conformance?
2549#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2550# error "Compiler does not advertise C11 conformance"
2551#endif
2552
2553// Check _Alignas.
2554char _Alignas (double) aligned_as_double;
2555char _Alignas (0) no_special_alignment;
2556extern char aligned_as_int;
2557char _Alignas (0) _Alignas (int) aligned_as_int;
2558
2559// Check _Alignof.
2560enum
2561{
2562  int_alignment = _Alignof (int),
2563  int_array_alignment = _Alignof (int[100]),
2564  char_alignment = _Alignof (char)
2565};
2566_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2567
2568// Check _Noreturn.
2569int _Noreturn does_not_return (void) { for (;;) continue; }
2570
2571// Check _Static_assert.
2572struct test_static_assert
2573{
2574  int x;
2575  _Static_assert (sizeof (int) <= sizeof (long int),
2576                  "_Static_assert does not work in struct");
2577  long int y;
2578};
2579
2580// Check UTF-8 literals.
2581#define u8 syntax error!
2582char const utf8_literal[] = u8"happens to be ASCII" "another string";
2583
2584// Check duplicate typedefs.
2585typedef long *long_ptr;
2586typedef long int *long_ptr;
2587typedef long_ptr long_ptr;
2588
2589// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2590struct anonymous
2591{
2592  union {
2593    struct { int i; int j; };
2594    struct { int k; long int l; } w;
2595  };
2596  int m;
2597} v1;
2598'
2599
2600# Test code for whether the C compiler supports C11 (body of main).
2601ac_c_conftest_c11_main='
2602  _Static_assert ((offsetof (struct anonymous, i)
2603		   == offsetof (struct anonymous, w.k)),
2604		  "Anonymous union alignment botch");
2605  v1.i = 2;
2606  v1.w.k = 5;
2607  ok |= v1.i != 5;
2608'
2609
2610# Test code for whether the C compiler supports C11 (complete).
2611ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2612${ac_c_conftest_c99_globals}
2613${ac_c_conftest_c11_globals}
2614
2615int
2616main (int argc, char **argv)
2617{
2618  int ok = 0;
2619  ${ac_c_conftest_c89_main}
2620  ${ac_c_conftest_c99_main}
2621  ${ac_c_conftest_c11_main}
2622  return ok;
2623}
2624"
2625
2626# Test code for whether the C compiler supports C99 (complete).
2627ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2628${ac_c_conftest_c99_globals}
2629
2630int
2631main (int argc, char **argv)
2632{
2633  int ok = 0;
2634  ${ac_c_conftest_c89_main}
2635  ${ac_c_conftest_c99_main}
2636  return ok;
2637}
2638"
2639
2640# Test code for whether the C compiler supports C89 (complete).
2641ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2642
2643int
2644main (int argc, char **argv)
2645{
2646  int ok = 0;
2647  ${ac_c_conftest_c89_main}
2648  return ok;
2649}
2650"
2651
2652as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2653as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2654as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2655as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2656as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2657as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2658as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2659as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2660as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2661as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2662as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2663
2664# Auxiliary files required by this configure script.
2665ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
2666
2667# Locations in which to look for auxiliary files.
2668ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2669
2670# Search for a directory containing all of the required auxiliary files,
2671# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2672# If we don't find one directory that contains all the files we need,
2673# we report the set of missing files from the *first* directory in
2674# $ac_aux_dir_candidates and give up.
2675ac_missing_aux_files=""
2676ac_first_candidate=:
2677printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679as_found=false
2680for as_dir in $ac_aux_dir_candidates
2681do
2682  IFS=$as_save_IFS
2683  case $as_dir in #(((
2684    '') as_dir=./ ;;
2685    */) ;;
2686    *) as_dir=$as_dir/ ;;
2687  esac
2688  as_found=:
2689
2690  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2691  ac_aux_dir_found=yes
2692  ac_install_sh=
2693  for ac_aux in $ac_aux_files
2694  do
2695    # As a special case, if "install-sh" is required, that requirement
2696    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2697    # and $ac_install_sh is set appropriately for whichever one is found.
2698    if test x"$ac_aux" = x"install-sh"
2699    then
2700      if test -f "${as_dir}install-sh"; then
2701        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2702        ac_install_sh="${as_dir}install-sh -c"
2703      elif test -f "${as_dir}install.sh"; then
2704        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2705        ac_install_sh="${as_dir}install.sh -c"
2706      elif test -f "${as_dir}shtool"; then
2707        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2708        ac_install_sh="${as_dir}shtool install -c"
2709      else
2710        ac_aux_dir_found=no
2711        if $ac_first_candidate; then
2712          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2713        else
2714          break
2715        fi
2716      fi
2717    else
2718      if test -f "${as_dir}${ac_aux}"; then
2719        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2720      else
2721        ac_aux_dir_found=no
2722        if $ac_first_candidate; then
2723          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2724        else
2725          break
2726        fi
2727      fi
2728    fi
2729  done
2730  if test "$ac_aux_dir_found" = yes; then
2731    ac_aux_dir="$as_dir"
2732    break
2733  fi
2734  ac_first_candidate=false
2735
2736  as_found=false
2737done
2738IFS=$as_save_IFS
2739if $as_found
2740then :
2741
2742else $as_nop
2743  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2744fi
2745
2746
2747# These three variables are undocumented and unsupported,
2748# and are intended to be withdrawn in a future Autoconf release.
2749# They can cause serious problems if a builder's source tree is in a directory
2750# whose full name contains unusual characters.
2751if test -f "${ac_aux_dir}config.guess"; then
2752  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2753fi
2754if test -f "${ac_aux_dir}config.sub"; then
2755  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2756fi
2757if test -f "$ac_aux_dir/configure"; then
2758  ac_configure="$SHELL ${ac_aux_dir}configure"
2759fi
2760
2761# Check that the precious variables saved in the cache have kept the same
2762# value.
2763ac_cache_corrupted=false
2764for ac_var in $ac_precious_vars; do
2765  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2766  eval ac_new_set=\$ac_env_${ac_var}_set
2767  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2768  eval ac_new_val=\$ac_env_${ac_var}_value
2769  case $ac_old_set,$ac_new_set in
2770    set,)
2771      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2772printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2773      ac_cache_corrupted=: ;;
2774    ,set)
2775      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2776printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2777      ac_cache_corrupted=: ;;
2778    ,);;
2779    *)
2780      if test "x$ac_old_val" != "x$ac_new_val"; then
2781	# differences in whitespace do not lead to failure.
2782	ac_old_val_w=`echo x $ac_old_val`
2783	ac_new_val_w=`echo x $ac_new_val`
2784	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2785	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2786printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2787	  ac_cache_corrupted=:
2788	else
2789	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2790printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2791	  eval $ac_var=\$ac_old_val
2792	fi
2793	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2794printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2795	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2796printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2797      fi;;
2798  esac
2799  # Pass precious variables to config.status.
2800  if test "$ac_new_set" = set; then
2801    case $ac_new_val in
2802    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2803    *) ac_arg=$ac_var=$ac_new_val ;;
2804    esac
2805    case " $ac_configure_args " in
2806      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2807      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2808    esac
2809  fi
2810done
2811if $ac_cache_corrupted; then
2812  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2813printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2814  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2815printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2816  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2817	    and start over" "$LINENO" 5
2818fi
2819## -------------------- ##
2820## Main body of script. ##
2821## -------------------- ##
2822
2823ac_ext=c
2824ac_cpp='$CPP $CPPFLAGS'
2825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2827ac_compiler_gnu=$ac_cv_c_compiler_gnu
2828
2829
2830
2831am__api_version='1.16'
2832
2833
2834
2835  # Find a good install program.  We prefer a C program (faster),
2836# so one script is as good as another.  But avoid the broken or
2837# incompatible versions:
2838# SysV /etc/install, /usr/sbin/install
2839# SunOS /usr/etc/install
2840# IRIX /sbin/install
2841# AIX /bin/install
2842# AmigaOS /C/install, which installs bootblocks on floppy discs
2843# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2844# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2845# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2846# OS/2's system install, which has a completely different semantic
2847# ./install, which can be erroneously created by make from ./install.sh.
2848# Reject install programs that cannot install multiple files.
2849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2850printf %s "checking for a BSD-compatible install... " >&6; }
2851if test -z "$INSTALL"; then
2852if test ${ac_cv_path_install+y}
2853then :
2854  printf %s "(cached) " >&6
2855else $as_nop
2856  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857for as_dir in $PATH
2858do
2859  IFS=$as_save_IFS
2860  case $as_dir in #(((
2861    '') as_dir=./ ;;
2862    */) ;;
2863    *) as_dir=$as_dir/ ;;
2864  esac
2865    # Account for fact that we put trailing slashes in our PATH walk.
2866case $as_dir in #((
2867  ./ | /[cC]/* | \
2868  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2869  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2870  /usr/ucb/* ) ;;
2871  *)
2872    # OSF1 and SCO ODT 3.0 have their own names for install.
2873    # Don't use installbsd from OSF since it installs stuff as root
2874    # by default.
2875    for ac_prog in ginstall scoinst install; do
2876      for ac_exec_ext in '' $ac_executable_extensions; do
2877	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2878	  if test $ac_prog = install &&
2879	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2880	    # AIX install.  It has an incompatible calling convention.
2881	    :
2882	  elif test $ac_prog = install &&
2883	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2884	    # program-specific install script used by HP pwplus--don't use.
2885	    :
2886	  else
2887	    rm -rf conftest.one conftest.two conftest.dir
2888	    echo one > conftest.one
2889	    echo two > conftest.two
2890	    mkdir conftest.dir
2891	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2892	      test -s conftest.one && test -s conftest.two &&
2893	      test -s conftest.dir/conftest.one &&
2894	      test -s conftest.dir/conftest.two
2895	    then
2896	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2897	      break 3
2898	    fi
2899	  fi
2900	fi
2901      done
2902    done
2903    ;;
2904esac
2905
2906  done
2907IFS=$as_save_IFS
2908
2909rm -rf conftest.one conftest.two conftest.dir
2910
2911fi
2912  if test ${ac_cv_path_install+y}; then
2913    INSTALL=$ac_cv_path_install
2914  else
2915    # As a last resort, use the slow shell script.  Don't cache a
2916    # value for INSTALL within a source directory, because that will
2917    # break other packages using the cache if that directory is
2918    # removed, or if the value is a relative name.
2919    INSTALL=$ac_install_sh
2920  fi
2921fi
2922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2923printf "%s\n" "$INSTALL" >&6; }
2924
2925# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2926# It thinks the first close brace ends the variable substitution.
2927test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2928
2929test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2930
2931test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2932
2933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2934printf %s "checking whether build environment is sane... " >&6; }
2935# Reject unsafe characters in $srcdir or the absolute working directory
2936# name.  Accept space and tab only in the latter.
2937am_lf='
2938'
2939case `pwd` in
2940  *[\\\"\#\$\&\'\`$am_lf]*)
2941    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2942esac
2943case $srcdir in
2944  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2945    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2946esac
2947
2948# Do 'set' in a subshell so we don't clobber the current shell's
2949# arguments.  Must try -L first in case configure is actually a
2950# symlink; some systems play weird games with the mod time of symlinks
2951# (eg FreeBSD returns the mod time of the symlink's containing
2952# directory).
2953if (
2954   am_has_slept=no
2955   for am_try in 1 2; do
2956     echo "timestamp, slept: $am_has_slept" > conftest.file
2957     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2958     if test "$*" = "X"; then
2959	# -L didn't work.
2960	set X `ls -t "$srcdir/configure" conftest.file`
2961     fi
2962     if test "$*" != "X $srcdir/configure conftest.file" \
2963	&& test "$*" != "X conftest.file $srcdir/configure"; then
2964
2965	# If neither matched, then we have a broken ls.  This can happen
2966	# if, for instance, CONFIG_SHELL is bash and it inherits a
2967	# broken ls alias from the environment.  This has actually
2968	# happened.  Such a system could not be considered "sane".
2969	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2970  alias in your environment" "$LINENO" 5
2971     fi
2972     if test "$2" = conftest.file || test $am_try -eq 2; then
2973       break
2974     fi
2975     # Just in case.
2976     sleep 1
2977     am_has_slept=yes
2978   done
2979   test "$2" = conftest.file
2980   )
2981then
2982   # Ok.
2983   :
2984else
2985   as_fn_error $? "newly created file is older than distributed files!
2986Check your system clock" "$LINENO" 5
2987fi
2988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2989printf "%s\n" "yes" >&6; }
2990# If we didn't sleep, we still need to ensure time stamps of config.status and
2991# generated files are strictly newer.
2992am_sleep_pid=
2993if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2994  ( sleep 1 ) &
2995  am_sleep_pid=$!
2996fi
2997
2998rm -f conftest.file
2999
3000test "$program_prefix" != NONE &&
3001  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3002# Use a double $ so make ignores it.
3003test "$program_suffix" != NONE &&
3004  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3005# Double any \ or $.
3006# By default was `s,x,x', remove it if useless.
3007ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3008program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3009
3010
3011# Expand $ac_aux_dir to an absolute path.
3012am_aux_dir=`cd "$ac_aux_dir" && pwd`
3013
3014
3015  if test x"${MISSING+set}" != xset; then
3016  MISSING="\${SHELL} '$am_aux_dir/missing'"
3017fi
3018# Use eval to expand $SHELL
3019if eval "$MISSING --is-lightweight"; then
3020  am_missing_run="$MISSING "
3021else
3022  am_missing_run=
3023  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3024printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3025fi
3026
3027if test x"${install_sh+set}" != xset; then
3028  case $am_aux_dir in
3029  *\ * | *\	*)
3030    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3031  *)
3032    install_sh="\${SHELL} $am_aux_dir/install-sh"
3033  esac
3034fi
3035
3036# Installed binaries are usually stripped using 'strip' when the user
3037# run "make install-strip".  However 'strip' might not be the right
3038# tool to use in cross-compilation environments, therefore Automake
3039# will honor the 'STRIP' environment variable to overrule this program.
3040if test "$cross_compiling" != no; then
3041  if test -n "$ac_tool_prefix"; then
3042  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3043set dummy ${ac_tool_prefix}strip; ac_word=$2
3044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045printf %s "checking for $ac_word... " >&6; }
3046if test ${ac_cv_prog_STRIP+y}
3047then :
3048  printf %s "(cached) " >&6
3049else $as_nop
3050  if test -n "$STRIP"; then
3051  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3052else
3053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054for as_dir in $PATH
3055do
3056  IFS=$as_save_IFS
3057  case $as_dir in #(((
3058    '') as_dir=./ ;;
3059    */) ;;
3060    *) as_dir=$as_dir/ ;;
3061  esac
3062    for ac_exec_ext in '' $ac_executable_extensions; do
3063  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3064    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3065    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3066    break 2
3067  fi
3068done
3069  done
3070IFS=$as_save_IFS
3071
3072fi
3073fi
3074STRIP=$ac_cv_prog_STRIP
3075if test -n "$STRIP"; then
3076  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3077printf "%s\n" "$STRIP" >&6; }
3078else
3079  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080printf "%s\n" "no" >&6; }
3081fi
3082
3083
3084fi
3085if test -z "$ac_cv_prog_STRIP"; then
3086  ac_ct_STRIP=$STRIP
3087  # Extract the first word of "strip", so it can be a program name with args.
3088set dummy strip; ac_word=$2
3089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090printf %s "checking for $ac_word... " >&6; }
3091if test ${ac_cv_prog_ac_ct_STRIP+y}
3092then :
3093  printf %s "(cached) " >&6
3094else $as_nop
3095  if test -n "$ac_ct_STRIP"; then
3096  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3097else
3098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099for as_dir in $PATH
3100do
3101  IFS=$as_save_IFS
3102  case $as_dir in #(((
3103    '') as_dir=./ ;;
3104    */) ;;
3105    *) as_dir=$as_dir/ ;;
3106  esac
3107    for ac_exec_ext in '' $ac_executable_extensions; do
3108  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3109    ac_cv_prog_ac_ct_STRIP="strip"
3110    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3111    break 2
3112  fi
3113done
3114  done
3115IFS=$as_save_IFS
3116
3117fi
3118fi
3119ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3120if test -n "$ac_ct_STRIP"; then
3121  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3122printf "%s\n" "$ac_ct_STRIP" >&6; }
3123else
3124  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125printf "%s\n" "no" >&6; }
3126fi
3127
3128  if test "x$ac_ct_STRIP" = x; then
3129    STRIP=":"
3130  else
3131    case $cross_compiling:$ac_tool_warned in
3132yes:)
3133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3134printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3135ac_tool_warned=yes ;;
3136esac
3137    STRIP=$ac_ct_STRIP
3138  fi
3139else
3140  STRIP="$ac_cv_prog_STRIP"
3141fi
3142
3143fi
3144INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3145
3146
3147  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3148printf %s "checking for a race-free mkdir -p... " >&6; }
3149if test -z "$MKDIR_P"; then
3150  if test ${ac_cv_path_mkdir+y}
3151then :
3152  printf %s "(cached) " >&6
3153else $as_nop
3154  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3156do
3157  IFS=$as_save_IFS
3158  case $as_dir in #(((
3159    '') as_dir=./ ;;
3160    */) ;;
3161    *) as_dir=$as_dir/ ;;
3162  esac
3163    for ac_prog in mkdir gmkdir; do
3164	 for ac_exec_ext in '' $ac_executable_extensions; do
3165	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3166	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3167	     'mkdir ('*'coreutils) '* | \
3168	     'BusyBox '* | \
3169	     'mkdir (fileutils) '4.1*)
3170	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3171	       break 3;;
3172	   esac
3173	 done
3174       done
3175  done
3176IFS=$as_save_IFS
3177
3178fi
3179
3180  test -d ./--version && rmdir ./--version
3181  if test ${ac_cv_path_mkdir+y}; then
3182    MKDIR_P="$ac_cv_path_mkdir -p"
3183  else
3184    # As a last resort, use the slow shell script.  Don't cache a
3185    # value for MKDIR_P within a source directory, because that will
3186    # break other packages using the cache if that directory is
3187    # removed, or if the value is a relative name.
3188    MKDIR_P="$ac_install_sh -d"
3189  fi
3190fi
3191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3192printf "%s\n" "$MKDIR_P" >&6; }
3193
3194for ac_prog in gawk mawk nawk awk
3195do
3196  # Extract the first word of "$ac_prog", so it can be a program name with args.
3197set dummy $ac_prog; ac_word=$2
3198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199printf %s "checking for $ac_word... " >&6; }
3200if test ${ac_cv_prog_AWK+y}
3201then :
3202  printf %s "(cached) " >&6
3203else $as_nop
3204  if test -n "$AWK"; then
3205  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3206else
3207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208for as_dir in $PATH
3209do
3210  IFS=$as_save_IFS
3211  case $as_dir in #(((
3212    '') as_dir=./ ;;
3213    */) ;;
3214    *) as_dir=$as_dir/ ;;
3215  esac
3216    for ac_exec_ext in '' $ac_executable_extensions; do
3217  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3218    ac_cv_prog_AWK="$ac_prog"
3219    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3220    break 2
3221  fi
3222done
3223  done
3224IFS=$as_save_IFS
3225
3226fi
3227fi
3228AWK=$ac_cv_prog_AWK
3229if test -n "$AWK"; then
3230  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3231printf "%s\n" "$AWK" >&6; }
3232else
3233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234printf "%s\n" "no" >&6; }
3235fi
3236
3237
3238  test -n "$AWK" && break
3239done
3240
3241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3242printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3243set x ${MAKE-make}
3244ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3245if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3246then :
3247  printf %s "(cached) " >&6
3248else $as_nop
3249  cat >conftest.make <<\_ACEOF
3250SHELL = /bin/sh
3251all:
3252	@echo '@@@%%%=$(MAKE)=@@@%%%'
3253_ACEOF
3254# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3255case `${MAKE-make} -f conftest.make 2>/dev/null` in
3256  *@@@%%%=?*=@@@%%%*)
3257    eval ac_cv_prog_make_${ac_make}_set=yes;;
3258  *)
3259    eval ac_cv_prog_make_${ac_make}_set=no;;
3260esac
3261rm -f conftest.make
3262fi
3263if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3264  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3265printf "%s\n" "yes" >&6; }
3266  SET_MAKE=
3267else
3268  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269printf "%s\n" "no" >&6; }
3270  SET_MAKE="MAKE=${MAKE-make}"
3271fi
3272
3273rm -rf .tst 2>/dev/null
3274mkdir .tst 2>/dev/null
3275if test -d .tst; then
3276  am__leading_dot=.
3277else
3278  am__leading_dot=_
3279fi
3280rmdir .tst 2>/dev/null
3281
3282# Check whether --enable-silent-rules was given.
3283if test ${enable_silent_rules+y}
3284then :
3285  enableval=$enable_silent_rules;
3286fi
3287
3288case $enable_silent_rules in # (((
3289  yes) AM_DEFAULT_VERBOSITY=0;;
3290   no) AM_DEFAULT_VERBOSITY=1;;
3291    *) AM_DEFAULT_VERBOSITY=1;;
3292esac
3293am_make=${MAKE-make}
3294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3295printf %s "checking whether $am_make supports nested variables... " >&6; }
3296if test ${am_cv_make_support_nested_variables+y}
3297then :
3298  printf %s "(cached) " >&6
3299else $as_nop
3300  if printf "%s\n" 'TRUE=$(BAR$(V))
3301BAR0=false
3302BAR1=true
3303V=1
3304am__doit:
3305	@$(TRUE)
3306.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3307  am_cv_make_support_nested_variables=yes
3308else
3309  am_cv_make_support_nested_variables=no
3310fi
3311fi
3312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3313printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3314if test $am_cv_make_support_nested_variables = yes; then
3315    AM_V='$(V)'
3316  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3317else
3318  AM_V=$AM_DEFAULT_VERBOSITY
3319  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3320fi
3321AM_BACKSLASH='\'
3322
3323if test "`cd $srcdir && pwd`" != "`pwd`"; then
3324  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3325  # is not polluted with repeated "-I."
3326  am__isrc=' -I$(srcdir)'
3327  # test to see if srcdir already configured
3328  if test -f $srcdir/config.status; then
3329    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3330  fi
3331fi
3332
3333# test whether we have cygpath
3334if test -z "$CYGPATH_W"; then
3335  if (cygpath --version) >/dev/null 2>/dev/null; then
3336    CYGPATH_W='cygpath -w'
3337  else
3338    CYGPATH_W=echo
3339  fi
3340fi
3341
3342
3343# Define the identity of the package.
3344 PACKAGE='pcre2'
3345 VERSION='10.43'
3346
3347
3348printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3349
3350
3351printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3352
3353# Some tools Automake needs.
3354
3355ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3356
3357
3358AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3359
3360
3361AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3362
3363
3364AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3365
3366
3367MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3368
3369# For better backward compatibility.  To be removed once Automake 1.9.x
3370# dies out for good.  For more background, see:
3371# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3372# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3373mkdir_p='$(MKDIR_P)'
3374
3375# We need awk for the "check" target (and possibly the TAP driver).  The
3376# system "awk" is bad on some platforms.
3377# Always define AMTAR for backward compatibility.  Yes, it's still used
3378# in the wild :-(  We should find a proper way to deprecate it ...
3379AMTAR='$${TAR-tar}'
3380
3381
3382# We'll loop over all known methods to create a tar archive until one works.
3383_am_tools='gnutar  pax cpio none'
3384
3385am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3386
3387
3388
3389
3390
3391# Variables for tags utilities; see am/tags.am
3392if test -z "$CTAGS"; then
3393  CTAGS=ctags
3394fi
3395
3396if test -z "$ETAGS"; then
3397  ETAGS=etags
3398fi
3399
3400if test -z "$CSCOPE"; then
3401  CSCOPE=cscope
3402fi
3403
3404
3405
3406# POSIX will say in a future version that running "rm -f" with no argument
3407# is OK; and we want to be able to make that assumption in our Makefile
3408# recipes.  So use an aggressive probe to check that the usage we want is
3409# actually supported "in the wild" to an acceptable degree.
3410# See automake bug#10828.
3411# To make any issue more visible, cause the running configure to be aborted
3412# by default if the 'rm' program in use doesn't match our expectations; the
3413# user can still override this though.
3414if rm -f && rm -fr && rm -rf; then : OK; else
3415  cat >&2 <<'END'
3416Oops!
3417
3418Your 'rm' program seems unable to run without file operands specified
3419on the command line, even when the '-f' option is present.  This is contrary
3420to the behaviour of most rm programs out there, and not conforming with
3421the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3422
3423Please tell bug-automake@gnu.org about your system, including the value
3424of your $PATH and any error possibly output before this message.  This
3425can help us improve future automake versions.
3426
3427END
3428  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3429    echo 'Configuration will proceed anyway, since you have set the' >&2
3430    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3431    echo >&2
3432  else
3433    cat >&2 <<'END'
3434Aborting the configuration process, to ensure you take notice of the issue.
3435
3436You can download and install GNU coreutils to get an 'rm' implementation
3437that behaves properly: <https://www.gnu.org/software/coreutils/>.
3438
3439If you want to complete the configuration process using your problematic
3440'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3441to "yes", and re-run configure.
3442
3443END
3444    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3445  fi
3446fi
3447
3448# Check whether --enable-silent-rules was given.
3449if test ${enable_silent_rules+y}
3450then :
3451  enableval=$enable_silent_rules;
3452fi
3453
3454case $enable_silent_rules in # (((
3455  yes) AM_DEFAULT_VERBOSITY=0;;
3456   no) AM_DEFAULT_VERBOSITY=1;;
3457    *) AM_DEFAULT_VERBOSITY=0;;
3458esac
3459am_make=${MAKE-make}
3460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3461printf %s "checking whether $am_make supports nested variables... " >&6; }
3462if test ${am_cv_make_support_nested_variables+y}
3463then :
3464  printf %s "(cached) " >&6
3465else $as_nop
3466  if printf "%s\n" 'TRUE=$(BAR$(V))
3467BAR0=false
3468BAR1=true
3469V=1
3470am__doit:
3471	@$(TRUE)
3472.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3473  am_cv_make_support_nested_variables=yes
3474else
3475  am_cv_make_support_nested_variables=no
3476fi
3477fi
3478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3479printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3480if test $am_cv_make_support_nested_variables = yes; then
3481    AM_V='$(V)'
3482  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3483else
3484  AM_V=$AM_DEFAULT_VERBOSITY
3485  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3486fi
3487AM_BACKSLASH='\'
3488
3489ac_config_headers="$ac_config_headers src/config.h"
3490
3491
3492# This was added at the suggestion of libtoolize (03-Jan-10)
3493
3494
3495# The default CFLAGS in Autoconf are "-g -O2" for gcc and just "-g" for any
3496# other compiler. There doesn't seem to be a standard way of getting rid of the
3497# -g (which I don't think is needed for a production library). This fudge seems
3498# to achieve the necessary. First, we remember the externally set values of
3499# CFLAGS. Then call the AC_PROG_CC macro to find the compiler - if CFLAGS is
3500# not set, it will be set to Autoconf's defaults. Afterwards, if the original
3501# values were not set, remove the -g from the Autoconf defaults.
3502
3503remember_set_CFLAGS="$CFLAGS"
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514ac_ext=c
3515ac_cpp='$CPP $CPPFLAGS'
3516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3518ac_compiler_gnu=$ac_cv_c_compiler_gnu
3519if test -n "$ac_tool_prefix"; then
3520  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3521set dummy ${ac_tool_prefix}gcc; ac_word=$2
3522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3523printf %s "checking for $ac_word... " >&6; }
3524if test ${ac_cv_prog_CC+y}
3525then :
3526  printf %s "(cached) " >&6
3527else $as_nop
3528  if test -n "$CC"; then
3529  ac_cv_prog_CC="$CC" # Let the user override the test.
3530else
3531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532for as_dir in $PATH
3533do
3534  IFS=$as_save_IFS
3535  case $as_dir in #(((
3536    '') as_dir=./ ;;
3537    */) ;;
3538    *) as_dir=$as_dir/ ;;
3539  esac
3540    for ac_exec_ext in '' $ac_executable_extensions; do
3541  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3542    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3543    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3544    break 2
3545  fi
3546done
3547  done
3548IFS=$as_save_IFS
3549
3550fi
3551fi
3552CC=$ac_cv_prog_CC
3553if test -n "$CC"; then
3554  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3555printf "%s\n" "$CC" >&6; }
3556else
3557  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558printf "%s\n" "no" >&6; }
3559fi
3560
3561
3562fi
3563if test -z "$ac_cv_prog_CC"; then
3564  ac_ct_CC=$CC
3565  # Extract the first word of "gcc", so it can be a program name with args.
3566set dummy gcc; ac_word=$2
3567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3568printf %s "checking for $ac_word... " >&6; }
3569if test ${ac_cv_prog_ac_ct_CC+y}
3570then :
3571  printf %s "(cached) " >&6
3572else $as_nop
3573  if test -n "$ac_ct_CC"; then
3574  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3575else
3576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577for as_dir in $PATH
3578do
3579  IFS=$as_save_IFS
3580  case $as_dir in #(((
3581    '') as_dir=./ ;;
3582    */) ;;
3583    *) as_dir=$as_dir/ ;;
3584  esac
3585    for ac_exec_ext in '' $ac_executable_extensions; do
3586  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3587    ac_cv_prog_ac_ct_CC="gcc"
3588    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3589    break 2
3590  fi
3591done
3592  done
3593IFS=$as_save_IFS
3594
3595fi
3596fi
3597ac_ct_CC=$ac_cv_prog_ac_ct_CC
3598if test -n "$ac_ct_CC"; then
3599  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3600printf "%s\n" "$ac_ct_CC" >&6; }
3601else
3602  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603printf "%s\n" "no" >&6; }
3604fi
3605
3606  if test "x$ac_ct_CC" = x; then
3607    CC=""
3608  else
3609    case $cross_compiling:$ac_tool_warned in
3610yes:)
3611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3612printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3613ac_tool_warned=yes ;;
3614esac
3615    CC=$ac_ct_CC
3616  fi
3617else
3618  CC="$ac_cv_prog_CC"
3619fi
3620
3621if test -z "$CC"; then
3622          if test -n "$ac_tool_prefix"; then
3623    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3624set dummy ${ac_tool_prefix}cc; ac_word=$2
3625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626printf %s "checking for $ac_word... " >&6; }
3627if test ${ac_cv_prog_CC+y}
3628then :
3629  printf %s "(cached) " >&6
3630else $as_nop
3631  if test -n "$CC"; then
3632  ac_cv_prog_CC="$CC" # Let the user override the test.
3633else
3634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635for as_dir in $PATH
3636do
3637  IFS=$as_save_IFS
3638  case $as_dir in #(((
3639    '') as_dir=./ ;;
3640    */) ;;
3641    *) as_dir=$as_dir/ ;;
3642  esac
3643    for ac_exec_ext in '' $ac_executable_extensions; do
3644  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3645    ac_cv_prog_CC="${ac_tool_prefix}cc"
3646    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3647    break 2
3648  fi
3649done
3650  done
3651IFS=$as_save_IFS
3652
3653fi
3654fi
3655CC=$ac_cv_prog_CC
3656if test -n "$CC"; then
3657  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3658printf "%s\n" "$CC" >&6; }
3659else
3660  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661printf "%s\n" "no" >&6; }
3662fi
3663
3664
3665  fi
3666fi
3667if test -z "$CC"; then
3668  # Extract the first word of "cc", so it can be a program name with args.
3669set dummy cc; ac_word=$2
3670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671printf %s "checking for $ac_word... " >&6; }
3672if test ${ac_cv_prog_CC+y}
3673then :
3674  printf %s "(cached) " >&6
3675else $as_nop
3676  if test -n "$CC"; then
3677  ac_cv_prog_CC="$CC" # Let the user override the test.
3678else
3679  ac_prog_rejected=no
3680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681for as_dir in $PATH
3682do
3683  IFS=$as_save_IFS
3684  case $as_dir in #(((
3685    '') as_dir=./ ;;
3686    */) ;;
3687    *) as_dir=$as_dir/ ;;
3688  esac
3689    for ac_exec_ext in '' $ac_executable_extensions; do
3690  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3691    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3692       ac_prog_rejected=yes
3693       continue
3694     fi
3695    ac_cv_prog_CC="cc"
3696    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3697    break 2
3698  fi
3699done
3700  done
3701IFS=$as_save_IFS
3702
3703if test $ac_prog_rejected = yes; then
3704  # We found a bogon in the path, so make sure we never use it.
3705  set dummy $ac_cv_prog_CC
3706  shift
3707  if test $# != 0; then
3708    # We chose a different compiler from the bogus one.
3709    # However, it has the same basename, so the bogon will be chosen
3710    # first if we set CC to just the basename; use the full file name.
3711    shift
3712    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3713  fi
3714fi
3715fi
3716fi
3717CC=$ac_cv_prog_CC
3718if test -n "$CC"; then
3719  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3720printf "%s\n" "$CC" >&6; }
3721else
3722  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723printf "%s\n" "no" >&6; }
3724fi
3725
3726
3727fi
3728if test -z "$CC"; then
3729  if test -n "$ac_tool_prefix"; then
3730  for ac_prog in cl.exe
3731  do
3732    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3733set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3735printf %s "checking for $ac_word... " >&6; }
3736if test ${ac_cv_prog_CC+y}
3737then :
3738  printf %s "(cached) " >&6
3739else $as_nop
3740  if test -n "$CC"; then
3741  ac_cv_prog_CC="$CC" # Let the user override the test.
3742else
3743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744for as_dir in $PATH
3745do
3746  IFS=$as_save_IFS
3747  case $as_dir in #(((
3748    '') as_dir=./ ;;
3749    */) ;;
3750    *) as_dir=$as_dir/ ;;
3751  esac
3752    for ac_exec_ext in '' $ac_executable_extensions; do
3753  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3754    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3755    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3756    break 2
3757  fi
3758done
3759  done
3760IFS=$as_save_IFS
3761
3762fi
3763fi
3764CC=$ac_cv_prog_CC
3765if test -n "$CC"; then
3766  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3767printf "%s\n" "$CC" >&6; }
3768else
3769  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3770printf "%s\n" "no" >&6; }
3771fi
3772
3773
3774    test -n "$CC" && break
3775  done
3776fi
3777if test -z "$CC"; then
3778  ac_ct_CC=$CC
3779  for ac_prog in cl.exe
3780do
3781  # Extract the first word of "$ac_prog", so it can be a program name with args.
3782set dummy $ac_prog; ac_word=$2
3783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3784printf %s "checking for $ac_word... " >&6; }
3785if test ${ac_cv_prog_ac_ct_CC+y}
3786then :
3787  printf %s "(cached) " >&6
3788else $as_nop
3789  if test -n "$ac_ct_CC"; then
3790  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3791else
3792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793for as_dir in $PATH
3794do
3795  IFS=$as_save_IFS
3796  case $as_dir in #(((
3797    '') as_dir=./ ;;
3798    */) ;;
3799    *) as_dir=$as_dir/ ;;
3800  esac
3801    for ac_exec_ext in '' $ac_executable_extensions; do
3802  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3803    ac_cv_prog_ac_ct_CC="$ac_prog"
3804    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3805    break 2
3806  fi
3807done
3808  done
3809IFS=$as_save_IFS
3810
3811fi
3812fi
3813ac_ct_CC=$ac_cv_prog_ac_ct_CC
3814if test -n "$ac_ct_CC"; then
3815  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3816printf "%s\n" "$ac_ct_CC" >&6; }
3817else
3818  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3819printf "%s\n" "no" >&6; }
3820fi
3821
3822
3823  test -n "$ac_ct_CC" && break
3824done
3825
3826  if test "x$ac_ct_CC" = x; then
3827    CC=""
3828  else
3829    case $cross_compiling:$ac_tool_warned in
3830yes:)
3831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3832printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3833ac_tool_warned=yes ;;
3834esac
3835    CC=$ac_ct_CC
3836  fi
3837fi
3838
3839fi
3840if test -z "$CC"; then
3841  if test -n "$ac_tool_prefix"; then
3842  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3843set dummy ${ac_tool_prefix}clang; ac_word=$2
3844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845printf %s "checking for $ac_word... " >&6; }
3846if test ${ac_cv_prog_CC+y}
3847then :
3848  printf %s "(cached) " >&6
3849else $as_nop
3850  if test -n "$CC"; then
3851  ac_cv_prog_CC="$CC" # Let the user override the test.
3852else
3853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854for as_dir in $PATH
3855do
3856  IFS=$as_save_IFS
3857  case $as_dir in #(((
3858    '') as_dir=./ ;;
3859    */) ;;
3860    *) as_dir=$as_dir/ ;;
3861  esac
3862    for ac_exec_ext in '' $ac_executable_extensions; do
3863  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3864    ac_cv_prog_CC="${ac_tool_prefix}clang"
3865    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3866    break 2
3867  fi
3868done
3869  done
3870IFS=$as_save_IFS
3871
3872fi
3873fi
3874CC=$ac_cv_prog_CC
3875if test -n "$CC"; then
3876  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3877printf "%s\n" "$CC" >&6; }
3878else
3879  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880printf "%s\n" "no" >&6; }
3881fi
3882
3883
3884fi
3885if test -z "$ac_cv_prog_CC"; then
3886  ac_ct_CC=$CC
3887  # Extract the first word of "clang", so it can be a program name with args.
3888set dummy clang; ac_word=$2
3889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3890printf %s "checking for $ac_word... " >&6; }
3891if test ${ac_cv_prog_ac_ct_CC+y}
3892then :
3893  printf %s "(cached) " >&6
3894else $as_nop
3895  if test -n "$ac_ct_CC"; then
3896  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3897else
3898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899for as_dir in $PATH
3900do
3901  IFS=$as_save_IFS
3902  case $as_dir in #(((
3903    '') as_dir=./ ;;
3904    */) ;;
3905    *) as_dir=$as_dir/ ;;
3906  esac
3907    for ac_exec_ext in '' $ac_executable_extensions; do
3908  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3909    ac_cv_prog_ac_ct_CC="clang"
3910    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3911    break 2
3912  fi
3913done
3914  done
3915IFS=$as_save_IFS
3916
3917fi
3918fi
3919ac_ct_CC=$ac_cv_prog_ac_ct_CC
3920if test -n "$ac_ct_CC"; then
3921  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3922printf "%s\n" "$ac_ct_CC" >&6; }
3923else
3924  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925printf "%s\n" "no" >&6; }
3926fi
3927
3928  if test "x$ac_ct_CC" = x; then
3929    CC=""
3930  else
3931    case $cross_compiling:$ac_tool_warned in
3932yes:)
3933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3934printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3935ac_tool_warned=yes ;;
3936esac
3937    CC=$ac_ct_CC
3938  fi
3939else
3940  CC="$ac_cv_prog_CC"
3941fi
3942
3943fi
3944
3945
3946test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3947printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3948as_fn_error $? "no acceptable C compiler found in \$PATH
3949See \`config.log' for more details" "$LINENO" 5; }
3950
3951# Provide some information about the compiler.
3952printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3953set X $ac_compile
3954ac_compiler=$2
3955for ac_option in --version -v -V -qversion -version; do
3956  { { ac_try="$ac_compiler $ac_option >&5"
3957case "(($ac_try" in
3958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959  *) ac_try_echo=$ac_try;;
3960esac
3961eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3962printf "%s\n" "$ac_try_echo"; } >&5
3963  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3964  ac_status=$?
3965  if test -s conftest.err; then
3966    sed '10a\
3967... rest of stderr output deleted ...
3968         10q' conftest.err >conftest.er1
3969    cat conftest.er1 >&5
3970  fi
3971  rm -f conftest.er1 conftest.err
3972  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973  test $ac_status = 0; }
3974done
3975
3976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977/* end confdefs.h.  */
3978
3979int
3980main (void)
3981{
3982
3983  ;
3984  return 0;
3985}
3986_ACEOF
3987ac_clean_files_save=$ac_clean_files
3988ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3989# Try to create an executable without -o first, disregard a.out.
3990# It will help us diagnose broken compilers, and finding out an intuition
3991# of exeext.
3992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3993printf %s "checking whether the C compiler works... " >&6; }
3994ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3995
3996# The possible output files:
3997ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3998
3999ac_rmfiles=
4000for ac_file in $ac_files
4001do
4002  case $ac_file in
4003    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4004    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4005  esac
4006done
4007rm -f $ac_rmfiles
4008
4009if { { ac_try="$ac_link_default"
4010case "(($ac_try" in
4011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012  *) ac_try_echo=$ac_try;;
4013esac
4014eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4015printf "%s\n" "$ac_try_echo"; } >&5
4016  (eval "$ac_link_default") 2>&5
4017  ac_status=$?
4018  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4019  test $ac_status = 0; }
4020then :
4021  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4022# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4023# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4024# so that the user can short-circuit this test for compilers unknown to
4025# Autoconf.
4026for ac_file in $ac_files ''
4027do
4028  test -f "$ac_file" || continue
4029  case $ac_file in
4030    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4031	;;
4032    [ab].out )
4033	# We found the default executable, but exeext='' is most
4034	# certainly right.
4035	break;;
4036    *.* )
4037	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4038	then :; else
4039	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4040	fi
4041	# We set ac_cv_exeext here because the later test for it is not
4042	# safe: cross compilers may not add the suffix if given an `-o'
4043	# argument, so we may need to know it at that point already.
4044	# Even if this section looks crufty: it has the advantage of
4045	# actually working.
4046	break;;
4047    * )
4048	break;;
4049  esac
4050done
4051test "$ac_cv_exeext" = no && ac_cv_exeext=
4052
4053else $as_nop
4054  ac_file=''
4055fi
4056if test -z "$ac_file"
4057then :
4058  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059printf "%s\n" "no" >&6; }
4060printf "%s\n" "$as_me: failed program was:" >&5
4061sed 's/^/| /' conftest.$ac_ext >&5
4062
4063{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4064printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4065as_fn_error 77 "C compiler cannot create executables
4066See \`config.log' for more details" "$LINENO" 5; }
4067else $as_nop
4068  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4069printf "%s\n" "yes" >&6; }
4070fi
4071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4072printf %s "checking for C compiler default output file name... " >&6; }
4073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4074printf "%s\n" "$ac_file" >&6; }
4075ac_exeext=$ac_cv_exeext
4076
4077rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4078ac_clean_files=$ac_clean_files_save
4079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4080printf %s "checking for suffix of executables... " >&6; }
4081if { { ac_try="$ac_link"
4082case "(($ac_try" in
4083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084  *) ac_try_echo=$ac_try;;
4085esac
4086eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4087printf "%s\n" "$ac_try_echo"; } >&5
4088  (eval "$ac_link") 2>&5
4089  ac_status=$?
4090  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4091  test $ac_status = 0; }
4092then :
4093  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4094# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4095# work properly (i.e., refer to `conftest.exe'), while it won't with
4096# `rm'.
4097for ac_file in conftest.exe conftest conftest.*; do
4098  test -f "$ac_file" || continue
4099  case $ac_file in
4100    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4101    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4102	  break;;
4103    * ) break;;
4104  esac
4105done
4106else $as_nop
4107  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4108printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4109as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4110See \`config.log' for more details" "$LINENO" 5; }
4111fi
4112rm -f conftest conftest$ac_cv_exeext
4113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4114printf "%s\n" "$ac_cv_exeext" >&6; }
4115
4116rm -f conftest.$ac_ext
4117EXEEXT=$ac_cv_exeext
4118ac_exeext=$EXEEXT
4119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120/* end confdefs.h.  */
4121#include <stdio.h>
4122int
4123main (void)
4124{
4125FILE *f = fopen ("conftest.out", "w");
4126 return ferror (f) || fclose (f) != 0;
4127
4128  ;
4129  return 0;
4130}
4131_ACEOF
4132ac_clean_files="$ac_clean_files conftest.out"
4133# Check that the compiler produces executables we can run.  If not, either
4134# the compiler is broken, or we cross compile.
4135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4136printf %s "checking whether we are cross compiling... " >&6; }
4137if test "$cross_compiling" != yes; then
4138  { { ac_try="$ac_link"
4139case "(($ac_try" in
4140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141  *) ac_try_echo=$ac_try;;
4142esac
4143eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4144printf "%s\n" "$ac_try_echo"; } >&5
4145  (eval "$ac_link") 2>&5
4146  ac_status=$?
4147  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4148  test $ac_status = 0; }
4149  if { ac_try='./conftest$ac_cv_exeext'
4150  { { case "(($ac_try" in
4151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152  *) ac_try_echo=$ac_try;;
4153esac
4154eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4155printf "%s\n" "$ac_try_echo"; } >&5
4156  (eval "$ac_try") 2>&5
4157  ac_status=$?
4158  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4159  test $ac_status = 0; }; }; then
4160    cross_compiling=no
4161  else
4162    if test "$cross_compiling" = maybe; then
4163	cross_compiling=yes
4164    else
4165	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4166printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4167as_fn_error 77 "cannot run C compiled programs.
4168If you meant to cross compile, use \`--host'.
4169See \`config.log' for more details" "$LINENO" 5; }
4170    fi
4171  fi
4172fi
4173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4174printf "%s\n" "$cross_compiling" >&6; }
4175
4176rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4177ac_clean_files=$ac_clean_files_save
4178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4179printf %s "checking for suffix of object files... " >&6; }
4180if test ${ac_cv_objext+y}
4181then :
4182  printf %s "(cached) " >&6
4183else $as_nop
4184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185/* end confdefs.h.  */
4186
4187int
4188main (void)
4189{
4190
4191  ;
4192  return 0;
4193}
4194_ACEOF
4195rm -f conftest.o conftest.obj
4196if { { ac_try="$ac_compile"
4197case "(($ac_try" in
4198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199  *) ac_try_echo=$ac_try;;
4200esac
4201eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4202printf "%s\n" "$ac_try_echo"; } >&5
4203  (eval "$ac_compile") 2>&5
4204  ac_status=$?
4205  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4206  test $ac_status = 0; }
4207then :
4208  for ac_file in conftest.o conftest.obj conftest.*; do
4209  test -f "$ac_file" || continue;
4210  case $ac_file in
4211    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4212    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4213       break;;
4214  esac
4215done
4216else $as_nop
4217  printf "%s\n" "$as_me: failed program was:" >&5
4218sed 's/^/| /' conftest.$ac_ext >&5
4219
4220{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4221printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4222as_fn_error $? "cannot compute suffix of object files: cannot compile
4223See \`config.log' for more details" "$LINENO" 5; }
4224fi
4225rm -f conftest.$ac_cv_objext conftest.$ac_ext
4226fi
4227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4228printf "%s\n" "$ac_cv_objext" >&6; }
4229OBJEXT=$ac_cv_objext
4230ac_objext=$OBJEXT
4231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4232printf %s "checking whether the compiler supports GNU C... " >&6; }
4233if test ${ac_cv_c_compiler_gnu+y}
4234then :
4235  printf %s "(cached) " >&6
4236else $as_nop
4237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238/* end confdefs.h.  */
4239
4240int
4241main (void)
4242{
4243#ifndef __GNUC__
4244       choke me
4245#endif
4246
4247  ;
4248  return 0;
4249}
4250_ACEOF
4251if ac_fn_c_try_compile "$LINENO"
4252then :
4253  ac_compiler_gnu=yes
4254else $as_nop
4255  ac_compiler_gnu=no
4256fi
4257rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4258ac_cv_c_compiler_gnu=$ac_compiler_gnu
4259
4260fi
4261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4262printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4263ac_compiler_gnu=$ac_cv_c_compiler_gnu
4264
4265if test $ac_compiler_gnu = yes; then
4266  GCC=yes
4267else
4268  GCC=
4269fi
4270ac_test_CFLAGS=${CFLAGS+y}
4271ac_save_CFLAGS=$CFLAGS
4272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4273printf %s "checking whether $CC accepts -g... " >&6; }
4274if test ${ac_cv_prog_cc_g+y}
4275then :
4276  printf %s "(cached) " >&6
4277else $as_nop
4278  ac_save_c_werror_flag=$ac_c_werror_flag
4279   ac_c_werror_flag=yes
4280   ac_cv_prog_cc_g=no
4281   CFLAGS="-g"
4282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283/* end confdefs.h.  */
4284
4285int
4286main (void)
4287{
4288
4289  ;
4290  return 0;
4291}
4292_ACEOF
4293if ac_fn_c_try_compile "$LINENO"
4294then :
4295  ac_cv_prog_cc_g=yes
4296else $as_nop
4297  CFLAGS=""
4298      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299/* end confdefs.h.  */
4300
4301int
4302main (void)
4303{
4304
4305  ;
4306  return 0;
4307}
4308_ACEOF
4309if ac_fn_c_try_compile "$LINENO"
4310then :
4311
4312else $as_nop
4313  ac_c_werror_flag=$ac_save_c_werror_flag
4314	 CFLAGS="-g"
4315	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316/* end confdefs.h.  */
4317
4318int
4319main (void)
4320{
4321
4322  ;
4323  return 0;
4324}
4325_ACEOF
4326if ac_fn_c_try_compile "$LINENO"
4327then :
4328  ac_cv_prog_cc_g=yes
4329fi
4330rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4331fi
4332rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4333fi
4334rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4335   ac_c_werror_flag=$ac_save_c_werror_flag
4336fi
4337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4338printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4339if test $ac_test_CFLAGS; then
4340  CFLAGS=$ac_save_CFLAGS
4341elif test $ac_cv_prog_cc_g = yes; then
4342  if test "$GCC" = yes; then
4343    CFLAGS="-g -O2"
4344  else
4345    CFLAGS="-g"
4346  fi
4347else
4348  if test "$GCC" = yes; then
4349    CFLAGS="-O2"
4350  else
4351    CFLAGS=
4352  fi
4353fi
4354ac_prog_cc_stdc=no
4355if test x$ac_prog_cc_stdc = xno
4356then :
4357  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4358printf %s "checking for $CC option to enable C11 features... " >&6; }
4359if test ${ac_cv_prog_cc_c11+y}
4360then :
4361  printf %s "(cached) " >&6
4362else $as_nop
4363  ac_cv_prog_cc_c11=no
4364ac_save_CC=$CC
4365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366/* end confdefs.h.  */
4367$ac_c_conftest_c11_program
4368_ACEOF
4369for ac_arg in '' -std=gnu11
4370do
4371  CC="$ac_save_CC $ac_arg"
4372  if ac_fn_c_try_compile "$LINENO"
4373then :
4374  ac_cv_prog_cc_c11=$ac_arg
4375fi
4376rm -f core conftest.err conftest.$ac_objext conftest.beam
4377  test "x$ac_cv_prog_cc_c11" != "xno" && break
4378done
4379rm -f conftest.$ac_ext
4380CC=$ac_save_CC
4381fi
4382
4383if test "x$ac_cv_prog_cc_c11" = xno
4384then :
4385  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4386printf "%s\n" "unsupported" >&6; }
4387else $as_nop
4388  if test "x$ac_cv_prog_cc_c11" = x
4389then :
4390  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4391printf "%s\n" "none needed" >&6; }
4392else $as_nop
4393  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4394printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4395     CC="$CC $ac_cv_prog_cc_c11"
4396fi
4397  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4398  ac_prog_cc_stdc=c11
4399fi
4400fi
4401if test x$ac_prog_cc_stdc = xno
4402then :
4403  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4404printf %s "checking for $CC option to enable C99 features... " >&6; }
4405if test ${ac_cv_prog_cc_c99+y}
4406then :
4407  printf %s "(cached) " >&6
4408else $as_nop
4409  ac_cv_prog_cc_c99=no
4410ac_save_CC=$CC
4411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412/* end confdefs.h.  */
4413$ac_c_conftest_c99_program
4414_ACEOF
4415for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4416do
4417  CC="$ac_save_CC $ac_arg"
4418  if ac_fn_c_try_compile "$LINENO"
4419then :
4420  ac_cv_prog_cc_c99=$ac_arg
4421fi
4422rm -f core conftest.err conftest.$ac_objext conftest.beam
4423  test "x$ac_cv_prog_cc_c99" != "xno" && break
4424done
4425rm -f conftest.$ac_ext
4426CC=$ac_save_CC
4427fi
4428
4429if test "x$ac_cv_prog_cc_c99" = xno
4430then :
4431  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4432printf "%s\n" "unsupported" >&6; }
4433else $as_nop
4434  if test "x$ac_cv_prog_cc_c99" = x
4435then :
4436  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4437printf "%s\n" "none needed" >&6; }
4438else $as_nop
4439  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4440printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4441     CC="$CC $ac_cv_prog_cc_c99"
4442fi
4443  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4444  ac_prog_cc_stdc=c99
4445fi
4446fi
4447if test x$ac_prog_cc_stdc = xno
4448then :
4449  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4450printf %s "checking for $CC option to enable C89 features... " >&6; }
4451if test ${ac_cv_prog_cc_c89+y}
4452then :
4453  printf %s "(cached) " >&6
4454else $as_nop
4455  ac_cv_prog_cc_c89=no
4456ac_save_CC=$CC
4457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458/* end confdefs.h.  */
4459$ac_c_conftest_c89_program
4460_ACEOF
4461for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4462do
4463  CC="$ac_save_CC $ac_arg"
4464  if ac_fn_c_try_compile "$LINENO"
4465then :
4466  ac_cv_prog_cc_c89=$ac_arg
4467fi
4468rm -f core conftest.err conftest.$ac_objext conftest.beam
4469  test "x$ac_cv_prog_cc_c89" != "xno" && break
4470done
4471rm -f conftest.$ac_ext
4472CC=$ac_save_CC
4473fi
4474
4475if test "x$ac_cv_prog_cc_c89" = xno
4476then :
4477  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4478printf "%s\n" "unsupported" >&6; }
4479else $as_nop
4480  if test "x$ac_cv_prog_cc_c89" = x
4481then :
4482  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4483printf "%s\n" "none needed" >&6; }
4484else $as_nop
4485  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4486printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4487     CC="$CC $ac_cv_prog_cc_c89"
4488fi
4489  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4490  ac_prog_cc_stdc=c89
4491fi
4492fi
4493
4494ac_ext=c
4495ac_cpp='$CPP $CPPFLAGS'
4496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498ac_compiler_gnu=$ac_cv_c_compiler_gnu
4499
4500
4501  ac_ext=c
4502ac_cpp='$CPP $CPPFLAGS'
4503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4505ac_compiler_gnu=$ac_cv_c_compiler_gnu
4506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4507printf %s "checking whether $CC understands -c and -o together... " >&6; }
4508if test ${am_cv_prog_cc_c_o+y}
4509then :
4510  printf %s "(cached) " >&6
4511else $as_nop
4512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513/* end confdefs.h.  */
4514
4515int
4516main (void)
4517{
4518
4519  ;
4520  return 0;
4521}
4522_ACEOF
4523  # Make sure it works both with $CC and with simple cc.
4524  # Following AC_PROG_CC_C_O, we do the test twice because some
4525  # compilers refuse to overwrite an existing .o file with -o,
4526  # though they will create one.
4527  am_cv_prog_cc_c_o=yes
4528  for am_i in 1 2; do
4529    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4530   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4531   ac_status=$?
4532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533   (exit $ac_status); } \
4534         && test -f conftest2.$ac_objext; then
4535      : OK
4536    else
4537      am_cv_prog_cc_c_o=no
4538      break
4539    fi
4540  done
4541  rm -f core conftest*
4542  unset am_i
4543fi
4544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4545printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4546if test "$am_cv_prog_cc_c_o" != yes; then
4547   # Losing compiler, so override with the script.
4548   # FIXME: It is wrong to rewrite CC.
4549   # But if we don't then we get into trouble of one sort or another.
4550   # A longer-term fix would be to have automake use am__CC in this case,
4551   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4552   CC="$am_aux_dir/compile $CC"
4553fi
4554ac_ext=c
4555ac_cpp='$CPP $CPPFLAGS'
4556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558ac_compiler_gnu=$ac_cv_c_compiler_gnu
4559
4560DEPDIR="${am__leading_dot}deps"
4561
4562ac_config_commands="$ac_config_commands depfiles"
4563
4564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4565printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4566cat > confinc.mk << 'END'
4567am__doit:
4568	@echo this is the am__doit target >confinc.out
4569.PHONY: am__doit
4570END
4571am__include="#"
4572am__quote=
4573# BSD make does it like this.
4574echo '.include "confinc.mk" # ignored' > confmf.BSD
4575# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4576echo 'include confinc.mk # ignored' > confmf.GNU
4577_am_result=no
4578for s in GNU BSD; do
4579  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4580   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4581   ac_status=$?
4582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583   (exit $ac_status); }
4584  case $?:`cat confinc.out 2>/dev/null` in #(
4585  '0:this is the am__doit target') :
4586    case $s in #(
4587  BSD) :
4588    am__include='.include' am__quote='"' ;; #(
4589  *) :
4590    am__include='include' am__quote='' ;;
4591esac ;; #(
4592  *) :
4593     ;;
4594esac
4595  if test "$am__include" != "#"; then
4596    _am_result="yes ($s style)"
4597    break
4598  fi
4599done
4600rm -f confinc.* confmf.*
4601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4602printf "%s\n" "${_am_result}" >&6; }
4603
4604# Check whether --enable-dependency-tracking was given.
4605if test ${enable_dependency_tracking+y}
4606then :
4607  enableval=$enable_dependency_tracking;
4608fi
4609
4610if test "x$enable_dependency_tracking" != xno; then
4611  am_depcomp="$ac_aux_dir/depcomp"
4612  AMDEPBACKSLASH='\'
4613  am__nodep='_no'
4614fi
4615 if test "x$enable_dependency_tracking" != xno; then
4616  AMDEP_TRUE=
4617  AMDEP_FALSE='#'
4618else
4619  AMDEP_TRUE='#'
4620  AMDEP_FALSE=
4621fi
4622
4623
4624
4625depcc="$CC"   am_compiler_list=
4626
4627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4628printf %s "checking dependency style of $depcc... " >&6; }
4629if test ${am_cv_CC_dependencies_compiler_type+y}
4630then :
4631  printf %s "(cached) " >&6
4632else $as_nop
4633  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4634  # We make a subdir and do the tests there.  Otherwise we can end up
4635  # making bogus files that we don't know about and never remove.  For
4636  # instance it was reported that on HP-UX the gcc test will end up
4637  # making a dummy file named 'D' -- because '-MD' means "put the output
4638  # in D".
4639  rm -rf conftest.dir
4640  mkdir conftest.dir
4641  # Copy depcomp to subdir because otherwise we won't find it if we're
4642  # using a relative directory.
4643  cp "$am_depcomp" conftest.dir
4644  cd conftest.dir
4645  # We will build objects and dependencies in a subdirectory because
4646  # it helps to detect inapplicable dependency modes.  For instance
4647  # both Tru64's cc and ICC support -MD to output dependencies as a
4648  # side effect of compilation, but ICC will put the dependencies in
4649  # the current directory while Tru64 will put them in the object
4650  # directory.
4651  mkdir sub
4652
4653  am_cv_CC_dependencies_compiler_type=none
4654  if test "$am_compiler_list" = ""; then
4655     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4656  fi
4657  am__universal=false
4658  case " $depcc " in #(
4659     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4660     esac
4661
4662  for depmode in $am_compiler_list; do
4663    # Setup a source with many dependencies, because some compilers
4664    # like to wrap large dependency lists on column 80 (with \), and
4665    # we should not choose a depcomp mode which is confused by this.
4666    #
4667    # We need to recreate these files for each test, as the compiler may
4668    # overwrite some of them when testing with obscure command lines.
4669    # This happens at least with the AIX C compiler.
4670    : > sub/conftest.c
4671    for i in 1 2 3 4 5 6; do
4672      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4673      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4674      # Solaris 10 /bin/sh.
4675      echo '/* dummy */' > sub/conftst$i.h
4676    done
4677    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4678
4679    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4680    # mode.  It turns out that the SunPro C++ compiler does not properly
4681    # handle '-M -o', and we need to detect this.  Also, some Intel
4682    # versions had trouble with output in subdirs.
4683    am__obj=sub/conftest.${OBJEXT-o}
4684    am__minus_obj="-o $am__obj"
4685    case $depmode in
4686    gcc)
4687      # This depmode causes a compiler race in universal mode.
4688      test "$am__universal" = false || continue
4689      ;;
4690    nosideeffect)
4691      # After this tag, mechanisms are not by side-effect, so they'll
4692      # only be used when explicitly requested.
4693      if test "x$enable_dependency_tracking" = xyes; then
4694	continue
4695      else
4696	break
4697      fi
4698      ;;
4699    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4700      # This compiler won't grok '-c -o', but also, the minuso test has
4701      # not run yet.  These depmodes are late enough in the game, and
4702      # so weak that their functioning should not be impacted.
4703      am__obj=conftest.${OBJEXT-o}
4704      am__minus_obj=
4705      ;;
4706    none) break ;;
4707    esac
4708    if depmode=$depmode \
4709       source=sub/conftest.c object=$am__obj \
4710       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4711       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4712         >/dev/null 2>conftest.err &&
4713       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4714       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4715       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4716       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4717      # icc doesn't choke on unknown options, it will just issue warnings
4718      # or remarks (even with -Werror).  So we grep stderr for any message
4719      # that says an option was ignored or not supported.
4720      # When given -MP, icc 7.0 and 7.1 complain thusly:
4721      #   icc: Command line warning: ignoring option '-M'; no argument required
4722      # The diagnosis changed in icc 8.0:
4723      #   icc: Command line remark: option '-MP' not supported
4724      if (grep 'ignoring option' conftest.err ||
4725          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4726        am_cv_CC_dependencies_compiler_type=$depmode
4727        break
4728      fi
4729    fi
4730  done
4731
4732  cd ..
4733  rm -rf conftest.dir
4734else
4735  am_cv_CC_dependencies_compiler_type=none
4736fi
4737
4738fi
4739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4740printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4741CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4742
4743 if
4744  test "x$enable_dependency_tracking" != xno \
4745  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4746  am__fastdepCC_TRUE=
4747  am__fastdepCC_FALSE='#'
4748else
4749  am__fastdepCC_TRUE='#'
4750  am__fastdepCC_FALSE=
4751fi
4752
4753
4754
4755
4756ac_header= ac_cache=
4757for ac_item in $ac_header_c_list
4758do
4759  if test $ac_cache; then
4760    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4761    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4762      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4763    fi
4764    ac_header= ac_cache=
4765  elif test $ac_header; then
4766    ac_cache=$ac_item
4767  else
4768    ac_header=$ac_item
4769  fi
4770done
4771
4772
4773
4774
4775
4776
4777
4778
4779if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4780then :
4781
4782printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4783
4784fi
4785
4786
4787
4788
4789
4790
4791  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4792printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4793if test ${ac_cv_safe_to_define___extensions__+y}
4794then :
4795  printf %s "(cached) " >&6
4796else $as_nop
4797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798/* end confdefs.h.  */
4799
4800#         define __EXTENSIONS__ 1
4801          $ac_includes_default
4802int
4803main (void)
4804{
4805
4806  ;
4807  return 0;
4808}
4809_ACEOF
4810if ac_fn_c_try_compile "$LINENO"
4811then :
4812  ac_cv_safe_to_define___extensions__=yes
4813else $as_nop
4814  ac_cv_safe_to_define___extensions__=no
4815fi
4816rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4817fi
4818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4819printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4820
4821  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4822printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4823if test ${ac_cv_should_define__xopen_source+y}
4824then :
4825  printf %s "(cached) " >&6
4826else $as_nop
4827  ac_cv_should_define__xopen_source=no
4828    if test $ac_cv_header_wchar_h = yes
4829then :
4830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831/* end confdefs.h.  */
4832
4833          #include <wchar.h>
4834          mbstate_t x;
4835int
4836main (void)
4837{
4838
4839  ;
4840  return 0;
4841}
4842_ACEOF
4843if ac_fn_c_try_compile "$LINENO"
4844then :
4845
4846else $as_nop
4847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848/* end confdefs.h.  */
4849
4850            #define _XOPEN_SOURCE 500
4851            #include <wchar.h>
4852            mbstate_t x;
4853int
4854main (void)
4855{
4856
4857  ;
4858  return 0;
4859}
4860_ACEOF
4861if ac_fn_c_try_compile "$LINENO"
4862then :
4863  ac_cv_should_define__xopen_source=yes
4864fi
4865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4866fi
4867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4868fi
4869fi
4870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4871printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4872
4873  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4874
4875  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4876
4877  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4878
4879  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4880
4881  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4882
4883  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4884
4885  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4886
4887  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4888
4889  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4890
4891  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4892
4893  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4894
4895  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4896
4897  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4898
4899  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4900
4901  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4902
4903  if test $ac_cv_header_minix_config_h = yes
4904then :
4905  MINIX=yes
4906    printf "%s\n" "#define _MINIX 1" >>confdefs.h
4907
4908    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4909
4910    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4911
4912else $as_nop
4913  MINIX=
4914fi
4915  if test $ac_cv_safe_to_define___extensions__ = yes
4916then :
4917  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4918
4919fi
4920  if test $ac_cv_should_define__xopen_source = yes
4921then :
4922  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4923
4924fi
4925
4926
4927if test "x$remember_set_CFLAGS" = "x"
4928then
4929  if test "$CFLAGS" = "-g -O2"
4930  then
4931    CFLAGS="-O2"
4932  elif test "$CFLAGS" = "-g"
4933  then
4934    CFLAGS=""
4935  fi
4936fi
4937
4938# This is a new thing required to stop a warning from automake 1.12
4939
4940  if test -n "$ac_tool_prefix"; then
4941  for ac_prog in ar lib "link -lib"
4942  do
4943    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4944set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946printf %s "checking for $ac_word... " >&6; }
4947if test ${ac_cv_prog_AR+y}
4948then :
4949  printf %s "(cached) " >&6
4950else $as_nop
4951  if test -n "$AR"; then
4952  ac_cv_prog_AR="$AR" # Let the user override the test.
4953else
4954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955for as_dir in $PATH
4956do
4957  IFS=$as_save_IFS
4958  case $as_dir in #(((
4959    '') as_dir=./ ;;
4960    */) ;;
4961    *) as_dir=$as_dir/ ;;
4962  esac
4963    for ac_exec_ext in '' $ac_executable_extensions; do
4964  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4965    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4966    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4967    break 2
4968  fi
4969done
4970  done
4971IFS=$as_save_IFS
4972
4973fi
4974fi
4975AR=$ac_cv_prog_AR
4976if test -n "$AR"; then
4977  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4978printf "%s\n" "$AR" >&6; }
4979else
4980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4981printf "%s\n" "no" >&6; }
4982fi
4983
4984
4985    test -n "$AR" && break
4986  done
4987fi
4988if test -z "$AR"; then
4989  ac_ct_AR=$AR
4990  for ac_prog in ar lib "link -lib"
4991do
4992  # Extract the first word of "$ac_prog", so it can be a program name with args.
4993set dummy $ac_prog; ac_word=$2
4994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4995printf %s "checking for $ac_word... " >&6; }
4996if test ${ac_cv_prog_ac_ct_AR+y}
4997then :
4998  printf %s "(cached) " >&6
4999else $as_nop
5000  if test -n "$ac_ct_AR"; then
5001  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5002else
5003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004for as_dir in $PATH
5005do
5006  IFS=$as_save_IFS
5007  case $as_dir in #(((
5008    '') as_dir=./ ;;
5009    */) ;;
5010    *) as_dir=$as_dir/ ;;
5011  esac
5012    for ac_exec_ext in '' $ac_executable_extensions; do
5013  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5014    ac_cv_prog_ac_ct_AR="$ac_prog"
5015    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5016    break 2
5017  fi
5018done
5019  done
5020IFS=$as_save_IFS
5021
5022fi
5023fi
5024ac_ct_AR=$ac_cv_prog_ac_ct_AR
5025if test -n "$ac_ct_AR"; then
5026  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5027printf "%s\n" "$ac_ct_AR" >&6; }
5028else
5029  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5030printf "%s\n" "no" >&6; }
5031fi
5032
5033
5034  test -n "$ac_ct_AR" && break
5035done
5036
5037  if test "x$ac_ct_AR" = x; then
5038    AR="false"
5039  else
5040    case $cross_compiling:$ac_tool_warned in
5041yes:)
5042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5043printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5044ac_tool_warned=yes ;;
5045esac
5046    AR=$ac_ct_AR
5047  fi
5048fi
5049
5050: ${AR=ar}
5051
5052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5053printf %s "checking the archiver ($AR) interface... " >&6; }
5054if test ${am_cv_ar_interface+y}
5055then :
5056  printf %s "(cached) " >&6
5057else $as_nop
5058  ac_ext=c
5059ac_cpp='$CPP $CPPFLAGS'
5060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5062ac_compiler_gnu=$ac_cv_c_compiler_gnu
5063
5064   am_cv_ar_interface=ar
5065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066/* end confdefs.h.  */
5067int some_variable = 0;
5068_ACEOF
5069if ac_fn_c_try_compile "$LINENO"
5070then :
5071  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5072      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5073  (eval $am_ar_try) 2>&5
5074  ac_status=$?
5075  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5076  test $ac_status = 0; }
5077      if test "$ac_status" -eq 0; then
5078        am_cv_ar_interface=ar
5079      else
5080        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5081        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5082  (eval $am_ar_try) 2>&5
5083  ac_status=$?
5084  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5085  test $ac_status = 0; }
5086        if test "$ac_status" -eq 0; then
5087          am_cv_ar_interface=lib
5088        else
5089          am_cv_ar_interface=unknown
5090        fi
5091      fi
5092      rm -f conftest.lib libconftest.a
5093
5094fi
5095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5096   ac_ext=c
5097ac_cpp='$CPP $CPPFLAGS'
5098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5100ac_compiler_gnu=$ac_cv_c_compiler_gnu
5101
5102fi
5103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5104printf "%s\n" "$am_cv_ar_interface" >&6; }
5105
5106case $am_cv_ar_interface in
5107ar)
5108  ;;
5109lib)
5110  # Microsoft lib, so override with the ar-lib wrapper script.
5111  # FIXME: It is wrong to rewrite AR.
5112  # But if we don't then we get into trouble of one sort or another.
5113  # A longer-term fix would be to have automake use am__AR in this case,
5114  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5115  # similar.
5116  AR="$am_aux_dir/ar-lib $AR"
5117  ;;
5118unknown)
5119  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5120  ;;
5121esac
5122
5123
5124# Check for a 64-bit integer type
5125ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5126case $ac_cv_c_int64_t in #(
5127  no|yes) ;; #(
5128  *)
5129
5130printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
5131;;
5132esac
5133
5134
5135
5136case `pwd` in
5137  *\ * | *\	*)
5138    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5139printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5140esac
5141
5142
5143
5144macro_version='2.4.6.59-b55b-dirty'
5145macro_revision='2.4.6.59'
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160ltmain=$ac_aux_dir/ltmain.sh
5161
5162
5163
5164  # Make sure we can run config.sub.
5165$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5166  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5167
5168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5169printf %s "checking build system type... " >&6; }
5170if test ${ac_cv_build+y}
5171then :
5172  printf %s "(cached) " >&6
5173else $as_nop
5174  ac_build_alias=$build_alias
5175test "x$ac_build_alias" = x &&
5176  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5177test "x$ac_build_alias" = x &&
5178  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5179ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5180  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5181
5182fi
5183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5184printf "%s\n" "$ac_cv_build" >&6; }
5185case $ac_cv_build in
5186*-*-*) ;;
5187*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5188esac
5189build=$ac_cv_build
5190ac_save_IFS=$IFS; IFS='-'
5191set x $ac_cv_build
5192shift
5193build_cpu=$1
5194build_vendor=$2
5195shift; shift
5196# Remember, the first character of IFS is used to create $*,
5197# except with old shells:
5198build_os=$*
5199IFS=$ac_save_IFS
5200case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5201
5202
5203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5204printf %s "checking host system type... " >&6; }
5205if test ${ac_cv_host+y}
5206then :
5207  printf %s "(cached) " >&6
5208else $as_nop
5209  if test "x$host_alias" = x; then
5210  ac_cv_host=$ac_cv_build
5211else
5212  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5213    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5214fi
5215
5216fi
5217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5218printf "%s\n" "$ac_cv_host" >&6; }
5219case $ac_cv_host in
5220*-*-*) ;;
5221*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5222esac
5223host=$ac_cv_host
5224ac_save_IFS=$IFS; IFS='-'
5225set x $ac_cv_host
5226shift
5227host_cpu=$1
5228host_vendor=$2
5229shift; shift
5230# Remember, the first character of IFS is used to create $*,
5231# except with old shells:
5232host_os=$*
5233IFS=$ac_save_IFS
5234case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5235
5236
5237# Backslashify metacharacters that are still active within
5238# double-quoted strings.
5239sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5240
5241# Same as above, but do not quote variable references.
5242double_quote_subst='s/\(["`\\]\)/\\\1/g'
5243
5244# Sed substitution to delay expansion of an escaped shell variable in a
5245# double_quote_subst'ed string.
5246delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5247
5248# Sed substitution to delay expansion of an escaped single quote.
5249delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5250
5251# Sed substitution to avoid accidental globbing in evaled expressions
5252no_glob_subst='s/\*/\\\*/g'
5253
5254ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5255ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5256ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5257
5258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5259printf %s "checking how to print strings... " >&6; }
5260# Test print first, because it will be a builtin if present.
5261if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5262   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5263  ECHO='print -r --'
5264elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5265  ECHO='printf %s\n'
5266else
5267  # Use this function as a fallback that always works.
5268  func_fallback_echo ()
5269  {
5270    eval 'cat <<_LTECHO_EOF
5271$1
5272_LTECHO_EOF'
5273  }
5274  ECHO='func_fallback_echo'
5275fi
5276
5277# func_echo_all arg...
5278# Invoke $ECHO with all args, space-separated.
5279func_echo_all ()
5280{
5281    $ECHO ""
5282}
5283
5284case $ECHO in
5285  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5286printf "%s\n" "printf" >&6; } ;;
5287  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5288printf "%s\n" "print -r" >&6; } ;;
5289  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5290printf "%s\n" "cat" >&6; } ;;
5291esac
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5307printf %s "checking for a sed that does not truncate output... " >&6; }
5308if test ${ac_cv_path_SED+y}
5309then :
5310  printf %s "(cached) " >&6
5311else $as_nop
5312            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5313     for ac_i in 1 2 3 4 5 6 7; do
5314       ac_script="$ac_script$as_nl$ac_script"
5315     done
5316     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5317     { ac_script=; unset ac_script;}
5318     if test -z "$SED"; then
5319  ac_path_SED_found=false
5320  # Loop through the user's path and test for each of PROGNAME-LIST
5321  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322for as_dir in $PATH
5323do
5324  IFS=$as_save_IFS
5325  case $as_dir in #(((
5326    '') as_dir=./ ;;
5327    */) ;;
5328    *) as_dir=$as_dir/ ;;
5329  esac
5330    for ac_prog in sed gsed
5331   do
5332    for ac_exec_ext in '' $ac_executable_extensions; do
5333      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5334      as_fn_executable_p "$ac_path_SED" || continue
5335# Check for GNU ac_path_SED and select it if it is found.
5336  # Check for GNU $ac_path_SED
5337case `"$ac_path_SED" --version 2>&1` in
5338*GNU*)
5339  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5340*)
5341  ac_count=0
5342  printf %s 0123456789 >"conftest.in"
5343  while :
5344  do
5345    cat "conftest.in" "conftest.in" >"conftest.tmp"
5346    mv "conftest.tmp" "conftest.in"
5347    cp "conftest.in" "conftest.nl"
5348    printf "%s\n" '' >> "conftest.nl"
5349    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5350    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5351    as_fn_arith $ac_count + 1 && ac_count=$as_val
5352    if test $ac_count -gt ${ac_path_SED_max-0}; then
5353      # Best one so far, save it but keep looking for a better one
5354      ac_cv_path_SED="$ac_path_SED"
5355      ac_path_SED_max=$ac_count
5356    fi
5357    # 10*(2^10) chars as input seems more than enough
5358    test $ac_count -gt 10 && break
5359  done
5360  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5361esac
5362
5363      $ac_path_SED_found && break 3
5364    done
5365  done
5366  done
5367IFS=$as_save_IFS
5368  if test -z "$ac_cv_path_SED"; then
5369    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5370  fi
5371else
5372  ac_cv_path_SED=$SED
5373fi
5374
5375fi
5376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5377printf "%s\n" "$ac_cv_path_SED" >&6; }
5378 SED="$ac_cv_path_SED"
5379  rm -f conftest.sed
5380
5381test -z "$SED" && SED=sed
5382Xsed="$SED -e 1s/^X//"
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5395printf %s "checking for grep that handles long lines and -e... " >&6; }
5396if test ${ac_cv_path_GREP+y}
5397then :
5398  printf %s "(cached) " >&6
5399else $as_nop
5400  if test -z "$GREP"; then
5401  ac_path_GREP_found=false
5402  # Loop through the user's path and test for each of PROGNAME-LIST
5403  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5405do
5406  IFS=$as_save_IFS
5407  case $as_dir in #(((
5408    '') as_dir=./ ;;
5409    */) ;;
5410    *) as_dir=$as_dir/ ;;
5411  esac
5412    for ac_prog in grep ggrep
5413   do
5414    for ac_exec_ext in '' $ac_executable_extensions; do
5415      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5416      as_fn_executable_p "$ac_path_GREP" || continue
5417# Check for GNU ac_path_GREP and select it if it is found.
5418  # Check for GNU $ac_path_GREP
5419case `"$ac_path_GREP" --version 2>&1` in
5420*GNU*)
5421  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5422*)
5423  ac_count=0
5424  printf %s 0123456789 >"conftest.in"
5425  while :
5426  do
5427    cat "conftest.in" "conftest.in" >"conftest.tmp"
5428    mv "conftest.tmp" "conftest.in"
5429    cp "conftest.in" "conftest.nl"
5430    printf "%s\n" 'GREP' >> "conftest.nl"
5431    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5432    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5433    as_fn_arith $ac_count + 1 && ac_count=$as_val
5434    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5435      # Best one so far, save it but keep looking for a better one
5436      ac_cv_path_GREP="$ac_path_GREP"
5437      ac_path_GREP_max=$ac_count
5438    fi
5439    # 10*(2^10) chars as input seems more than enough
5440    test $ac_count -gt 10 && break
5441  done
5442  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5443esac
5444
5445      $ac_path_GREP_found && break 3
5446    done
5447  done
5448  done
5449IFS=$as_save_IFS
5450  if test -z "$ac_cv_path_GREP"; then
5451    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5452  fi
5453else
5454  ac_cv_path_GREP=$GREP
5455fi
5456
5457fi
5458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5459printf "%s\n" "$ac_cv_path_GREP" >&6; }
5460 GREP="$ac_cv_path_GREP"
5461
5462
5463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5464printf %s "checking for egrep... " >&6; }
5465if test ${ac_cv_path_EGREP+y}
5466then :
5467  printf %s "(cached) " >&6
5468else $as_nop
5469  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5470   then ac_cv_path_EGREP="$GREP -E"
5471   else
5472     if test -z "$EGREP"; then
5473  ac_path_EGREP_found=false
5474  # Loop through the user's path and test for each of PROGNAME-LIST
5475  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5477do
5478  IFS=$as_save_IFS
5479  case $as_dir in #(((
5480    '') as_dir=./ ;;
5481    */) ;;
5482    *) as_dir=$as_dir/ ;;
5483  esac
5484    for ac_prog in egrep
5485   do
5486    for ac_exec_ext in '' $ac_executable_extensions; do
5487      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5488      as_fn_executable_p "$ac_path_EGREP" || continue
5489# Check for GNU ac_path_EGREP and select it if it is found.
5490  # Check for GNU $ac_path_EGREP
5491case `"$ac_path_EGREP" --version 2>&1` in
5492*GNU*)
5493  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5494*)
5495  ac_count=0
5496  printf %s 0123456789 >"conftest.in"
5497  while :
5498  do
5499    cat "conftest.in" "conftest.in" >"conftest.tmp"
5500    mv "conftest.tmp" "conftest.in"
5501    cp "conftest.in" "conftest.nl"
5502    printf "%s\n" 'EGREP' >> "conftest.nl"
5503    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5504    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5505    as_fn_arith $ac_count + 1 && ac_count=$as_val
5506    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5507      # Best one so far, save it but keep looking for a better one
5508      ac_cv_path_EGREP="$ac_path_EGREP"
5509      ac_path_EGREP_max=$ac_count
5510    fi
5511    # 10*(2^10) chars as input seems more than enough
5512    test $ac_count -gt 10 && break
5513  done
5514  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5515esac
5516
5517      $ac_path_EGREP_found && break 3
5518    done
5519  done
5520  done
5521IFS=$as_save_IFS
5522  if test -z "$ac_cv_path_EGREP"; then
5523    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5524  fi
5525else
5526  ac_cv_path_EGREP=$EGREP
5527fi
5528
5529   fi
5530fi
5531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5532printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5533 EGREP="$ac_cv_path_EGREP"
5534
5535
5536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5537printf %s "checking for fgrep... " >&6; }
5538if test ${ac_cv_path_FGREP+y}
5539then :
5540  printf %s "(cached) " >&6
5541else $as_nop
5542  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5543   then ac_cv_path_FGREP="$GREP -F"
5544   else
5545     if test -z "$FGREP"; then
5546  ac_path_FGREP_found=false
5547  # Loop through the user's path and test for each of PROGNAME-LIST
5548  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5550do
5551  IFS=$as_save_IFS
5552  case $as_dir in #(((
5553    '') as_dir=./ ;;
5554    */) ;;
5555    *) as_dir=$as_dir/ ;;
5556  esac
5557    for ac_prog in fgrep
5558   do
5559    for ac_exec_ext in '' $ac_executable_extensions; do
5560      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5561      as_fn_executable_p "$ac_path_FGREP" || continue
5562# Check for GNU ac_path_FGREP and select it if it is found.
5563  # Check for GNU $ac_path_FGREP
5564case `"$ac_path_FGREP" --version 2>&1` in
5565*GNU*)
5566  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5567*)
5568  ac_count=0
5569  printf %s 0123456789 >"conftest.in"
5570  while :
5571  do
5572    cat "conftest.in" "conftest.in" >"conftest.tmp"
5573    mv "conftest.tmp" "conftest.in"
5574    cp "conftest.in" "conftest.nl"
5575    printf "%s\n" 'FGREP' >> "conftest.nl"
5576    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5577    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5578    as_fn_arith $ac_count + 1 && ac_count=$as_val
5579    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5580      # Best one so far, save it but keep looking for a better one
5581      ac_cv_path_FGREP="$ac_path_FGREP"
5582      ac_path_FGREP_max=$ac_count
5583    fi
5584    # 10*(2^10) chars as input seems more than enough
5585    test $ac_count -gt 10 && break
5586  done
5587  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5588esac
5589
5590      $ac_path_FGREP_found && break 3
5591    done
5592  done
5593  done
5594IFS=$as_save_IFS
5595  if test -z "$ac_cv_path_FGREP"; then
5596    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5597  fi
5598else
5599  ac_cv_path_FGREP=$FGREP
5600fi
5601
5602   fi
5603fi
5604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5605printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5606 FGREP="$ac_cv_path_FGREP"
5607
5608
5609test -z "$GREP" && GREP=grep
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629# Check whether --with-gnu-ld was given.
5630if test ${with_gnu_ld+y}
5631then :
5632  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5633else $as_nop
5634  with_gnu_ld=no
5635fi
5636
5637ac_prog=ld
5638if test yes = "$GCC"; then
5639  # Check if gcc -print-prog-name=ld gives a path.
5640  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5641printf %s "checking for ld used by $CC... " >&6; }
5642  case $host in
5643  *-*-mingw*)
5644    # gcc leaves a trailing carriage return, which upsets mingw
5645    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5646  *)
5647    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5648  esac
5649  case $ac_prog in
5650    # Accept absolute paths.
5651    [\\/]* | ?:[\\/]*)
5652      re_direlt='/[^/][^/]*/\.\./'
5653      # Canonicalize the pathname of ld
5654      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5655      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5656	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5657      done
5658      test -z "$LD" && LD=$ac_prog
5659      ;;
5660  "")
5661    # If it fails, then pretend we aren't using GCC.
5662    ac_prog=ld
5663    ;;
5664  *)
5665    # If it is relative, then search for the first ld in PATH.
5666    with_gnu_ld=unknown
5667    ;;
5668  esac
5669elif test yes = "$with_gnu_ld"; then
5670  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5671printf %s "checking for GNU ld... " >&6; }
5672else
5673  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5674printf %s "checking for non-GNU ld... " >&6; }
5675fi
5676if test ${lt_cv_path_LD+y}
5677then :
5678  printf %s "(cached) " >&6
5679else $as_nop
5680  if test -z "$LD"; then
5681  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5682  for ac_dir in $PATH; do
5683    IFS=$lt_save_ifs
5684    test -z "$ac_dir" && ac_dir=.
5685    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5686      lt_cv_path_LD=$ac_dir/$ac_prog
5687      # Check to see if the program is GNU ld.  I'd rather use --version,
5688      # but apparently some variants of GNU ld only accept -v.
5689      # Break only if it was the GNU/non-GNU ld that we prefer.
5690      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5691      *GNU* | *'with BFD'*)
5692	test no != "$with_gnu_ld" && break
5693	;;
5694      *)
5695	test yes != "$with_gnu_ld" && break
5696	;;
5697      esac
5698    fi
5699  done
5700  IFS=$lt_save_ifs
5701else
5702  lt_cv_path_LD=$LD # Let the user override the test with a path.
5703fi
5704fi
5705
5706LD=$lt_cv_path_LD
5707if test -n "$LD"; then
5708  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5709printf "%s\n" "$LD" >&6; }
5710else
5711  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712printf "%s\n" "no" >&6; }
5713fi
5714test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5716printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5717if test ${lt_cv_prog_gnu_ld+y}
5718then :
5719  printf %s "(cached) " >&6
5720else $as_nop
5721  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5722case `$LD -v 2>&1 </dev/null` in
5723*GNU* | *'with BFD'*)
5724  lt_cv_prog_gnu_ld=yes
5725  ;;
5726*)
5727  lt_cv_prog_gnu_ld=no
5728  ;;
5729esac
5730fi
5731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5732printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5733with_gnu_ld=$lt_cv_prog_gnu_ld
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5744printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5745if test ${lt_cv_path_NM+y}
5746then :
5747  printf %s "(cached) " >&6
5748else $as_nop
5749  if test -n "$NM"; then
5750  # Let the user override the test.
5751  lt_cv_path_NM=$NM
5752else
5753  lt_nm_to_check=${ac_tool_prefix}nm
5754  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5755    lt_nm_to_check="$lt_nm_to_check nm"
5756  fi
5757  for lt_tmp_nm in $lt_nm_to_check; do
5758    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5759    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5760      IFS=$lt_save_ifs
5761      test -z "$ac_dir" && ac_dir=.
5762      tmp_nm=$ac_dir/$lt_tmp_nm
5763      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5764	# Check to see if the nm accepts a BSD-compat flag.
5765	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5766	#   nm: unknown option "B" ignored
5767	# Tru64's nm complains that /dev/null is an invalid object file
5768	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5769	case $build_os in
5770	mingw*) lt_bad_file=conftest.nm/nofile ;;
5771	*) lt_bad_file=/dev/null ;;
5772	esac
5773	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5774	*$lt_bad_file* | *'Invalid file or object type'*)
5775	  lt_cv_path_NM="$tmp_nm -B"
5776	  break 2
5777	  ;;
5778	*)
5779	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5780	  */dev/null*)
5781	    lt_cv_path_NM="$tmp_nm -p"
5782	    break 2
5783	    ;;
5784	  *)
5785	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5786	    continue # so that we can try to find one that supports BSD flags
5787	    ;;
5788	  esac
5789	  ;;
5790	esac
5791      fi
5792    done
5793    IFS=$lt_save_ifs
5794  done
5795  : ${lt_cv_path_NM=no}
5796fi
5797fi
5798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5799printf "%s\n" "$lt_cv_path_NM" >&6; }
5800if test no != "$lt_cv_path_NM"; then
5801  NM=$lt_cv_path_NM
5802else
5803  # Didn't find any BSD compatible name lister, look for dumpbin.
5804  if test -n "$DUMPBIN"; then :
5805    # Let the user override the test.
5806  else
5807    if test -n "$ac_tool_prefix"; then
5808  for ac_prog in dumpbin "link -dump"
5809  do
5810    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5811set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5813printf %s "checking for $ac_word... " >&6; }
5814if test ${ac_cv_prog_DUMPBIN+y}
5815then :
5816  printf %s "(cached) " >&6
5817else $as_nop
5818  if test -n "$DUMPBIN"; then
5819  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5820else
5821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822for as_dir in $PATH
5823do
5824  IFS=$as_save_IFS
5825  case $as_dir in #(((
5826    '') as_dir=./ ;;
5827    */) ;;
5828    *) as_dir=$as_dir/ ;;
5829  esac
5830    for ac_exec_ext in '' $ac_executable_extensions; do
5831  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5832    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5833    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5834    break 2
5835  fi
5836done
5837  done
5838IFS=$as_save_IFS
5839
5840fi
5841fi
5842DUMPBIN=$ac_cv_prog_DUMPBIN
5843if test -n "$DUMPBIN"; then
5844  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5845printf "%s\n" "$DUMPBIN" >&6; }
5846else
5847  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848printf "%s\n" "no" >&6; }
5849fi
5850
5851
5852    test -n "$DUMPBIN" && break
5853  done
5854fi
5855if test -z "$DUMPBIN"; then
5856  ac_ct_DUMPBIN=$DUMPBIN
5857  for ac_prog in dumpbin "link -dump"
5858do
5859  # Extract the first word of "$ac_prog", so it can be a program name with args.
5860set dummy $ac_prog; ac_word=$2
5861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862printf %s "checking for $ac_word... " >&6; }
5863if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5864then :
5865  printf %s "(cached) " >&6
5866else $as_nop
5867  if test -n "$ac_ct_DUMPBIN"; then
5868  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5869else
5870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871for as_dir in $PATH
5872do
5873  IFS=$as_save_IFS
5874  case $as_dir in #(((
5875    '') as_dir=./ ;;
5876    */) ;;
5877    *) as_dir=$as_dir/ ;;
5878  esac
5879    for ac_exec_ext in '' $ac_executable_extensions; do
5880  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5881    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5882    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5883    break 2
5884  fi
5885done
5886  done
5887IFS=$as_save_IFS
5888
5889fi
5890fi
5891ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5892if test -n "$ac_ct_DUMPBIN"; then
5893  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5894printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5895else
5896  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897printf "%s\n" "no" >&6; }
5898fi
5899
5900
5901  test -n "$ac_ct_DUMPBIN" && break
5902done
5903
5904  if test "x$ac_ct_DUMPBIN" = x; then
5905    DUMPBIN=":"
5906  else
5907    case $cross_compiling:$ac_tool_warned in
5908yes:)
5909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5910printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5911ac_tool_warned=yes ;;
5912esac
5913    DUMPBIN=$ac_ct_DUMPBIN
5914  fi
5915fi
5916
5917    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5918    *COFF*)
5919      DUMPBIN="$DUMPBIN -symbols -headers"
5920      ;;
5921    *)
5922      DUMPBIN=:
5923      ;;
5924    esac
5925  fi
5926
5927  if test : != "$DUMPBIN"; then
5928    NM=$DUMPBIN
5929  fi
5930fi
5931test -z "$NM" && NM=nm
5932
5933
5934
5935
5936
5937
5938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5939printf %s "checking the name lister ($NM) interface... " >&6; }
5940if test ${lt_cv_nm_interface+y}
5941then :
5942  printf %s "(cached) " >&6
5943else $as_nop
5944  lt_cv_nm_interface="BSD nm"
5945  echo "int some_variable = 0;" > conftest.$ac_ext
5946  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5947  (eval "$ac_compile" 2>conftest.err)
5948  cat conftest.err >&5
5949  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5950  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5951  cat conftest.err >&5
5952  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5953  cat conftest.out >&5
5954  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5955    lt_cv_nm_interface="MS dumpbin"
5956  fi
5957  rm -f conftest*
5958fi
5959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5960printf "%s\n" "$lt_cv_nm_interface" >&6; }
5961
5962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5963printf %s "checking whether ln -s works... " >&6; }
5964LN_S=$as_ln_s
5965if test "$LN_S" = "ln -s"; then
5966  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5967printf "%s\n" "yes" >&6; }
5968else
5969  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5970printf "%s\n" "no, using $LN_S" >&6; }
5971fi
5972
5973# find the maximum length of command line arguments
5974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5975printf %s "checking the maximum length of command line arguments... " >&6; }
5976if test ${lt_cv_sys_max_cmd_len+y}
5977then :
5978  printf %s "(cached) " >&6
5979else $as_nop
5980    i=0
5981  teststring=ABCD
5982
5983  case $build_os in
5984  msdosdjgpp*)
5985    # On DJGPP, this test can blow up pretty badly due to problems in libc
5986    # (any single argument exceeding 2000 bytes causes a buffer overrun
5987    # during glob expansion).  Even if it were fixed, the result of this
5988    # check would be larger than it should be.
5989    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5990    ;;
5991
5992  gnu*)
5993    # Under GNU Hurd, this test is not required because there is
5994    # no limit to the length of command line arguments.
5995    # Libtool will interpret -1 as no limit whatsoever
5996    lt_cv_sys_max_cmd_len=-1;
5997    ;;
5998
5999  cygwin* | mingw* | cegcc*)
6000    # On Win9x/ME, this test blows up -- it succeeds, but takes
6001    # about 5 minutes as the teststring grows exponentially.
6002    # Worse, since 9x/ME are not pre-emptively multitasking,
6003    # you end up with a "frozen" computer, even though with patience
6004    # the test eventually succeeds (with a max line length of 256k).
6005    # Instead, let's just punt: use the minimum linelength reported by
6006    # all of the supported platforms: 8192 (on NT/2K/XP).
6007    lt_cv_sys_max_cmd_len=8192;
6008    ;;
6009
6010  mint*)
6011    # On MiNT this can take a long time and run out of memory.
6012    lt_cv_sys_max_cmd_len=8192;
6013    ;;
6014
6015  amigaos*)
6016    # On AmigaOS with pdksh, this test takes hours, literally.
6017    # So we just punt and use a minimum line length of 8192.
6018    lt_cv_sys_max_cmd_len=8192;
6019    ;;
6020
6021  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6022    # This has been around since 386BSD, at least.  Likely further.
6023    if test -x /sbin/sysctl; then
6024      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6025    elif test -x /usr/sbin/sysctl; then
6026      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6027    else
6028      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6029    fi
6030    # And add a safety zone
6031    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6032    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6033    ;;
6034
6035  interix*)
6036    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6037    lt_cv_sys_max_cmd_len=196608
6038    ;;
6039
6040  os2*)
6041    # The test takes a long time on OS/2.
6042    lt_cv_sys_max_cmd_len=8192
6043    ;;
6044
6045  osf*)
6046    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6047    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6048    # nice to cause kernel panics so lets avoid the loop below.
6049    # First set a reasonable default.
6050    lt_cv_sys_max_cmd_len=16384
6051    #
6052    if test -x /sbin/sysconfig; then
6053      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6054        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6055      esac
6056    fi
6057    ;;
6058  sco3.2v5*)
6059    lt_cv_sys_max_cmd_len=102400
6060    ;;
6061  sysv5* | sco5v6* | sysv4.2uw2*)
6062    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6063    if test -n "$kargmax"; then
6064      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
6065    else
6066      lt_cv_sys_max_cmd_len=32768
6067    fi
6068    ;;
6069  *)
6070    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6071    if test -n "$lt_cv_sys_max_cmd_len" && \
6072       test undefined != "$lt_cv_sys_max_cmd_len"; then
6073      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6074      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6075    else
6076      # Make teststring a little bigger before we do anything with it.
6077      # a 1K string should be a reasonable start.
6078      for i in 1 2 3 4 5 6 7 8; do
6079        teststring=$teststring$teststring
6080      done
6081      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6082      # If test is not a shell built-in, we'll probably end up computing a
6083      # maximum length that is only half of the actual maximum length, but
6084      # we can't tell.
6085      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6086	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6087	      test 17 != "$i" # 1/2 MB should be enough
6088      do
6089        i=`expr $i + 1`
6090        teststring=$teststring$teststring
6091      done
6092      # Only check the string length outside the loop.
6093      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6094      teststring=
6095      # Add a significant safety factor because C++ compilers can tack on
6096      # massive amounts of additional arguments before passing them to the
6097      # linker.  It appears as though 1/2 is a usable value.
6098      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6099    fi
6100    ;;
6101  esac
6102
6103fi
6104
6105if test -n "$lt_cv_sys_max_cmd_len"; then
6106  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6107printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6108else
6109  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6110printf "%s\n" "none" >&6; }
6111fi
6112max_cmd_len=$lt_cv_sys_max_cmd_len
6113
6114
6115
6116
6117
6118
6119: ${CP="cp -f"}
6120: ${MV="mv -f"}
6121: ${RM="rm -f"}
6122
6123if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6124  lt_unset=unset
6125else
6126  lt_unset=false
6127fi
6128
6129
6130
6131
6132
6133# test EBCDIC or ASCII
6134case `echo X|tr X '\101'` in
6135 A) # ASCII based system
6136    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6137  lt_SP2NL='tr \040 \012'
6138  lt_NL2SP='tr \015\012 \040\040'
6139  ;;
6140 *) # EBCDIC based system
6141  lt_SP2NL='tr \100 \n'
6142  lt_NL2SP='tr \r\n \100\100'
6143  ;;
6144esac
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6155printf %s "checking how to convert $build file names to $host format... " >&6; }
6156if test ${lt_cv_to_host_file_cmd+y}
6157then :
6158  printf %s "(cached) " >&6
6159else $as_nop
6160  case $host in
6161  *-*-mingw* )
6162    case $build in
6163      *-*-mingw* ) # actually msys
6164        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6165        ;;
6166      *-*-cygwin* )
6167        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6168        ;;
6169      * ) # otherwise, assume *nix
6170        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6171        ;;
6172    esac
6173    ;;
6174  *-*-cygwin* )
6175    case $build in
6176      *-*-mingw* ) # actually msys
6177        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6178        ;;
6179      *-*-cygwin* )
6180        lt_cv_to_host_file_cmd=func_convert_file_noop
6181        ;;
6182      * ) # otherwise, assume *nix
6183        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6184        ;;
6185    esac
6186    ;;
6187  * ) # unhandled hosts (and "normal" native builds)
6188    lt_cv_to_host_file_cmd=func_convert_file_noop
6189    ;;
6190esac
6191
6192fi
6193
6194to_host_file_cmd=$lt_cv_to_host_file_cmd
6195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6196printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6197
6198
6199
6200
6201
6202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6203printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6204if test ${lt_cv_to_tool_file_cmd+y}
6205then :
6206  printf %s "(cached) " >&6
6207else $as_nop
6208  #assume ordinary cross tools, or native build.
6209lt_cv_to_tool_file_cmd=func_convert_file_noop
6210case $host in
6211  *-*-mingw* )
6212    case $build in
6213      *-*-mingw* ) # actually msys
6214        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6215        ;;
6216    esac
6217    ;;
6218esac
6219
6220fi
6221
6222to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6224printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6225
6226
6227
6228
6229
6230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6231printf %s "checking for $LD option to reload object files... " >&6; }
6232if test ${lt_cv_ld_reload_flag+y}
6233then :
6234  printf %s "(cached) " >&6
6235else $as_nop
6236  lt_cv_ld_reload_flag='-r'
6237fi
6238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6239printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6240reload_flag=$lt_cv_ld_reload_flag
6241case $reload_flag in
6242"" | " "*) ;;
6243*) reload_flag=" $reload_flag" ;;
6244esac
6245reload_cmds='$LD$reload_flag -o $output$reload_objs'
6246case $host_os in
6247  cygwin* | mingw* | pw32* | cegcc*)
6248    if test yes != "$GCC"; then
6249      reload_cmds=false
6250    fi
6251    ;;
6252  darwin*)
6253    if test yes = "$GCC"; then
6254      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6255    else
6256      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6257    fi
6258    ;;
6259esac
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269if test -n "$ac_tool_prefix"; then
6270  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6271set dummy ${ac_tool_prefix}file; ac_word=$2
6272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6273printf %s "checking for $ac_word... " >&6; }
6274if test ${ac_cv_prog_FILECMD+y}
6275then :
6276  printf %s "(cached) " >&6
6277else $as_nop
6278  if test -n "$FILECMD"; then
6279  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6280else
6281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282for as_dir in $PATH
6283do
6284  IFS=$as_save_IFS
6285  case $as_dir in #(((
6286    '') as_dir=./ ;;
6287    */) ;;
6288    *) as_dir=$as_dir/ ;;
6289  esac
6290    for ac_exec_ext in '' $ac_executable_extensions; do
6291  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6292    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6293    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6294    break 2
6295  fi
6296done
6297  done
6298IFS=$as_save_IFS
6299
6300fi
6301fi
6302FILECMD=$ac_cv_prog_FILECMD
6303if test -n "$FILECMD"; then
6304  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6305printf "%s\n" "$FILECMD" >&6; }
6306else
6307  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308printf "%s\n" "no" >&6; }
6309fi
6310
6311
6312fi
6313if test -z "$ac_cv_prog_FILECMD"; then
6314  ac_ct_FILECMD=$FILECMD
6315  # Extract the first word of "file", so it can be a program name with args.
6316set dummy file; ac_word=$2
6317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6318printf %s "checking for $ac_word... " >&6; }
6319if test ${ac_cv_prog_ac_ct_FILECMD+y}
6320then :
6321  printf %s "(cached) " >&6
6322else $as_nop
6323  if test -n "$ac_ct_FILECMD"; then
6324  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6325else
6326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327for as_dir in $PATH
6328do
6329  IFS=$as_save_IFS
6330  case $as_dir in #(((
6331    '') as_dir=./ ;;
6332    */) ;;
6333    *) as_dir=$as_dir/ ;;
6334  esac
6335    for ac_exec_ext in '' $ac_executable_extensions; do
6336  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6337    ac_cv_prog_ac_ct_FILECMD="file"
6338    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6339    break 2
6340  fi
6341done
6342  done
6343IFS=$as_save_IFS
6344
6345fi
6346fi
6347ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6348if test -n "$ac_ct_FILECMD"; then
6349  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6350printf "%s\n" "$ac_ct_FILECMD" >&6; }
6351else
6352  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353printf "%s\n" "no" >&6; }
6354fi
6355
6356  if test "x$ac_ct_FILECMD" = x; then
6357    FILECMD=":"
6358  else
6359    case $cross_compiling:$ac_tool_warned in
6360yes:)
6361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6362printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6363ac_tool_warned=yes ;;
6364esac
6365    FILECMD=$ac_ct_FILECMD
6366  fi
6367else
6368  FILECMD="$ac_cv_prog_FILECMD"
6369fi
6370
6371
6372
6373
6374
6375
6376
6377if test -n "$ac_tool_prefix"; then
6378  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6379set dummy ${ac_tool_prefix}objdump; ac_word=$2
6380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381printf %s "checking for $ac_word... " >&6; }
6382if test ${ac_cv_prog_OBJDUMP+y}
6383then :
6384  printf %s "(cached) " >&6
6385else $as_nop
6386  if test -n "$OBJDUMP"; then
6387  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6388else
6389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390for as_dir in $PATH
6391do
6392  IFS=$as_save_IFS
6393  case $as_dir in #(((
6394    '') as_dir=./ ;;
6395    */) ;;
6396    *) as_dir=$as_dir/ ;;
6397  esac
6398    for ac_exec_ext in '' $ac_executable_extensions; do
6399  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6400    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6401    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6402    break 2
6403  fi
6404done
6405  done
6406IFS=$as_save_IFS
6407
6408fi
6409fi
6410OBJDUMP=$ac_cv_prog_OBJDUMP
6411if test -n "$OBJDUMP"; then
6412  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6413printf "%s\n" "$OBJDUMP" >&6; }
6414else
6415  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416printf "%s\n" "no" >&6; }
6417fi
6418
6419
6420fi
6421if test -z "$ac_cv_prog_OBJDUMP"; then
6422  ac_ct_OBJDUMP=$OBJDUMP
6423  # Extract the first word of "objdump", so it can be a program name with args.
6424set dummy objdump; ac_word=$2
6425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6426printf %s "checking for $ac_word... " >&6; }
6427if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6428then :
6429  printf %s "(cached) " >&6
6430else $as_nop
6431  if test -n "$ac_ct_OBJDUMP"; then
6432  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6433else
6434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435for as_dir in $PATH
6436do
6437  IFS=$as_save_IFS
6438  case $as_dir in #(((
6439    '') as_dir=./ ;;
6440    */) ;;
6441    *) as_dir=$as_dir/ ;;
6442  esac
6443    for ac_exec_ext in '' $ac_executable_extensions; do
6444  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6445    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6446    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6447    break 2
6448  fi
6449done
6450  done
6451IFS=$as_save_IFS
6452
6453fi
6454fi
6455ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6456if test -n "$ac_ct_OBJDUMP"; then
6457  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6458printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6459else
6460  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461printf "%s\n" "no" >&6; }
6462fi
6463
6464  if test "x$ac_ct_OBJDUMP" = x; then
6465    OBJDUMP="false"
6466  else
6467    case $cross_compiling:$ac_tool_warned in
6468yes:)
6469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6470printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6471ac_tool_warned=yes ;;
6472esac
6473    OBJDUMP=$ac_ct_OBJDUMP
6474  fi
6475else
6476  OBJDUMP="$ac_cv_prog_OBJDUMP"
6477fi
6478
6479test -z "$OBJDUMP" && OBJDUMP=objdump
6480
6481
6482
6483
6484
6485
6486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6487printf %s "checking how to recognize dependent libraries... " >&6; }
6488if test ${lt_cv_deplibs_check_method+y}
6489then :
6490  printf %s "(cached) " >&6
6491else $as_nop
6492  lt_cv_file_magic_cmd='$MAGIC_CMD'
6493lt_cv_file_magic_test_file=
6494lt_cv_deplibs_check_method='unknown'
6495# Need to set the preceding variable on all platforms that support
6496# interlibrary dependencies.
6497# 'none' -- dependencies not supported.
6498# 'unknown' -- same as none, but documents that we really don't know.
6499# 'pass_all' -- all dependencies passed with no checks.
6500# 'test_compile' -- check by making test program.
6501# 'file_magic [[regex]]' -- check by looking for files in library path
6502# that responds to the $file_magic_cmd with a given extended regex.
6503# If you have 'file' or equivalent on your system and you're not sure
6504# whether 'pass_all' will *always* work, you probably want this one.
6505
6506case $host_os in
6507aix[4-9]*)
6508  lt_cv_deplibs_check_method=pass_all
6509  ;;
6510
6511beos*)
6512  lt_cv_deplibs_check_method=pass_all
6513  ;;
6514
6515bsdi[45]*)
6516  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6517  lt_cv_file_magic_cmd='$FILECMD -L'
6518  lt_cv_file_magic_test_file=/shlib/libc.so
6519  ;;
6520
6521cygwin*)
6522  # func_win32_libid is a shell function defined in ltmain.sh
6523  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6524  lt_cv_file_magic_cmd='func_win32_libid'
6525  ;;
6526
6527mingw* | pw32*)
6528  # Base MSYS/MinGW do not provide the 'file' command needed by
6529  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6530  # unless we find 'file', for example because we are cross-compiling.
6531  if ( file / ) >/dev/null 2>&1; then
6532    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6533    lt_cv_file_magic_cmd='func_win32_libid'
6534  else
6535    # Keep this pattern in sync with the one in func_win32_libid.
6536    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6537    lt_cv_file_magic_cmd='$OBJDUMP -f'
6538  fi
6539  ;;
6540
6541cegcc*)
6542  # use the weaker test based on 'objdump'. See mingw*.
6543  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6544  lt_cv_file_magic_cmd='$OBJDUMP -f'
6545  ;;
6546
6547darwin* | rhapsody*)
6548  lt_cv_deplibs_check_method=pass_all
6549  ;;
6550
6551freebsd* | dragonfly* | midnightbsd*)
6552  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6553    case $host_cpu in
6554    i*86 )
6555      # Not sure whether the presence of OpenBSD here was a mistake.
6556      # Let's accept both of them until this is cleared up.
6557      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6558      lt_cv_file_magic_cmd=$FILECMD
6559      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6560      ;;
6561    esac
6562  else
6563    lt_cv_deplibs_check_method=pass_all
6564  fi
6565  ;;
6566
6567haiku*)
6568  lt_cv_deplibs_check_method=pass_all
6569  ;;
6570
6571hpux10.20* | hpux11*)
6572  lt_cv_file_magic_cmd=$FILECMD
6573  case $host_cpu in
6574  ia64*)
6575    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6576    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6577    ;;
6578  hppa*64*)
6579    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]'
6580    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6581    ;;
6582  *)
6583    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6584    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6585    ;;
6586  esac
6587  ;;
6588
6589interix[3-9]*)
6590  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6591  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6592  ;;
6593
6594irix5* | irix6* | nonstopux*)
6595  case $LD in
6596  *-32|*"-32 ") libmagic=32-bit;;
6597  *-n32|*"-n32 ") libmagic=N32;;
6598  *-64|*"-64 ") libmagic=64-bit;;
6599  *) libmagic=never-match;;
6600  esac
6601  lt_cv_deplibs_check_method=pass_all
6602  ;;
6603
6604# This must be glibc/ELF.
6605linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6606  lt_cv_deplibs_check_method=pass_all
6607  ;;
6608
6609netbsd*)
6610  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6611    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6612  else
6613    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6614  fi
6615  ;;
6616
6617newos6*)
6618  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6619  lt_cv_file_magic_cmd=$FILECMD
6620  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6621  ;;
6622
6623*nto* | *qnx*)
6624  lt_cv_deplibs_check_method=pass_all
6625  ;;
6626
6627openbsd* | bitrig*)
6628  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6629    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6630  else
6631    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6632  fi
6633  ;;
6634
6635osf3* | osf4* | osf5*)
6636  lt_cv_deplibs_check_method=pass_all
6637  ;;
6638
6639rdos*)
6640  lt_cv_deplibs_check_method=pass_all
6641  ;;
6642
6643solaris*)
6644  lt_cv_deplibs_check_method=pass_all
6645  ;;
6646
6647sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6648  lt_cv_deplibs_check_method=pass_all
6649  ;;
6650
6651sysv4 | sysv4.3*)
6652  case $host_vendor in
6653  motorola)
6654    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]'
6655    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6656    ;;
6657  ncr)
6658    lt_cv_deplibs_check_method=pass_all
6659    ;;
6660  sequent)
6661    lt_cv_file_magic_cmd='/bin/file'
6662    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6663    ;;
6664  sni)
6665    lt_cv_file_magic_cmd='/bin/file'
6666    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6667    lt_cv_file_magic_test_file=/lib/libc.so
6668    ;;
6669  siemens)
6670    lt_cv_deplibs_check_method=pass_all
6671    ;;
6672  pc)
6673    lt_cv_deplibs_check_method=pass_all
6674    ;;
6675  esac
6676  ;;
6677
6678tpf*)
6679  lt_cv_deplibs_check_method=pass_all
6680  ;;
6681os2*)
6682  lt_cv_deplibs_check_method=pass_all
6683  ;;
6684esac
6685
6686fi
6687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6688printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6689
6690file_magic_glob=
6691want_nocaseglob=no
6692if test "$build" = "$host"; then
6693  case $host_os in
6694  mingw* | pw32*)
6695    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6696      want_nocaseglob=yes
6697    else
6698      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6699    fi
6700    ;;
6701  esac
6702fi
6703
6704file_magic_cmd=$lt_cv_file_magic_cmd
6705deplibs_check_method=$lt_cv_deplibs_check_method
6706test -z "$deplibs_check_method" && deplibs_check_method=unknown
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729if test -n "$ac_tool_prefix"; then
6730  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6731set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733printf %s "checking for $ac_word... " >&6; }
6734if test ${ac_cv_prog_DLLTOOL+y}
6735then :
6736  printf %s "(cached) " >&6
6737else $as_nop
6738  if test -n "$DLLTOOL"; then
6739  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6740else
6741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742for as_dir in $PATH
6743do
6744  IFS=$as_save_IFS
6745  case $as_dir in #(((
6746    '') as_dir=./ ;;
6747    */) ;;
6748    *) as_dir=$as_dir/ ;;
6749  esac
6750    for ac_exec_ext in '' $ac_executable_extensions; do
6751  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6752    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6753    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6754    break 2
6755  fi
6756done
6757  done
6758IFS=$as_save_IFS
6759
6760fi
6761fi
6762DLLTOOL=$ac_cv_prog_DLLTOOL
6763if test -n "$DLLTOOL"; then
6764  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6765printf "%s\n" "$DLLTOOL" >&6; }
6766else
6767  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768printf "%s\n" "no" >&6; }
6769fi
6770
6771
6772fi
6773if test -z "$ac_cv_prog_DLLTOOL"; then
6774  ac_ct_DLLTOOL=$DLLTOOL
6775  # Extract the first word of "dlltool", so it can be a program name with args.
6776set dummy dlltool; ac_word=$2
6777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6778printf %s "checking for $ac_word... " >&6; }
6779if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6780then :
6781  printf %s "(cached) " >&6
6782else $as_nop
6783  if test -n "$ac_ct_DLLTOOL"; then
6784  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6785else
6786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787for as_dir in $PATH
6788do
6789  IFS=$as_save_IFS
6790  case $as_dir in #(((
6791    '') as_dir=./ ;;
6792    */) ;;
6793    *) as_dir=$as_dir/ ;;
6794  esac
6795    for ac_exec_ext in '' $ac_executable_extensions; do
6796  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6797    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6798    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6799    break 2
6800  fi
6801done
6802  done
6803IFS=$as_save_IFS
6804
6805fi
6806fi
6807ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6808if test -n "$ac_ct_DLLTOOL"; then
6809  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6810printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6811else
6812  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813printf "%s\n" "no" >&6; }
6814fi
6815
6816  if test "x$ac_ct_DLLTOOL" = x; then
6817    DLLTOOL="false"
6818  else
6819    case $cross_compiling:$ac_tool_warned in
6820yes:)
6821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6822printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6823ac_tool_warned=yes ;;
6824esac
6825    DLLTOOL=$ac_ct_DLLTOOL
6826  fi
6827else
6828  DLLTOOL="$ac_cv_prog_DLLTOOL"
6829fi
6830
6831test -z "$DLLTOOL" && DLLTOOL=dlltool
6832
6833
6834
6835
6836
6837
6838
6839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6840printf %s "checking how to associate runtime and link libraries... " >&6; }
6841if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6842then :
6843  printf %s "(cached) " >&6
6844else $as_nop
6845  lt_cv_sharedlib_from_linklib_cmd='unknown'
6846
6847case $host_os in
6848cygwin* | mingw* | pw32* | cegcc*)
6849  # two different shell functions defined in ltmain.sh;
6850  # decide which one to use based on capabilities of $DLLTOOL
6851  case `$DLLTOOL --help 2>&1` in
6852  *--identify-strict*)
6853    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6854    ;;
6855  *)
6856    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6857    ;;
6858  esac
6859  ;;
6860*)
6861  # fallback: assume linklib IS sharedlib
6862  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6863  ;;
6864esac
6865
6866fi
6867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6868printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6869sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6870test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6871
6872
6873
6874
6875
6876
6877
6878if test -n "$ac_tool_prefix"; then
6879  for ac_prog in ar
6880  do
6881    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6882set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884printf %s "checking for $ac_word... " >&6; }
6885if test ${ac_cv_prog_AR+y}
6886then :
6887  printf %s "(cached) " >&6
6888else $as_nop
6889  if test -n "$AR"; then
6890  ac_cv_prog_AR="$AR" # Let the user override the test.
6891else
6892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893for as_dir in $PATH
6894do
6895  IFS=$as_save_IFS
6896  case $as_dir in #(((
6897    '') as_dir=./ ;;
6898    */) ;;
6899    *) as_dir=$as_dir/ ;;
6900  esac
6901    for ac_exec_ext in '' $ac_executable_extensions; do
6902  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6903    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6904    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6905    break 2
6906  fi
6907done
6908  done
6909IFS=$as_save_IFS
6910
6911fi
6912fi
6913AR=$ac_cv_prog_AR
6914if test -n "$AR"; then
6915  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6916printf "%s\n" "$AR" >&6; }
6917else
6918  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6919printf "%s\n" "no" >&6; }
6920fi
6921
6922
6923    test -n "$AR" && break
6924  done
6925fi
6926if test -z "$AR"; then
6927  ac_ct_AR=$AR
6928  for ac_prog in ar
6929do
6930  # Extract the first word of "$ac_prog", so it can be a program name with args.
6931set dummy $ac_prog; ac_word=$2
6932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6933printf %s "checking for $ac_word... " >&6; }
6934if test ${ac_cv_prog_ac_ct_AR+y}
6935then :
6936  printf %s "(cached) " >&6
6937else $as_nop
6938  if test -n "$ac_ct_AR"; then
6939  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6940else
6941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942for as_dir in $PATH
6943do
6944  IFS=$as_save_IFS
6945  case $as_dir in #(((
6946    '') as_dir=./ ;;
6947    */) ;;
6948    *) as_dir=$as_dir/ ;;
6949  esac
6950    for ac_exec_ext in '' $ac_executable_extensions; do
6951  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6952    ac_cv_prog_ac_ct_AR="$ac_prog"
6953    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6954    break 2
6955  fi
6956done
6957  done
6958IFS=$as_save_IFS
6959
6960fi
6961fi
6962ac_ct_AR=$ac_cv_prog_ac_ct_AR
6963if test -n "$ac_ct_AR"; then
6964  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6965printf "%s\n" "$ac_ct_AR" >&6; }
6966else
6967  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968printf "%s\n" "no" >&6; }
6969fi
6970
6971
6972  test -n "$ac_ct_AR" && break
6973done
6974
6975  if test "x$ac_ct_AR" = x; then
6976    AR="false"
6977  else
6978    case $cross_compiling:$ac_tool_warned in
6979yes:)
6980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6981printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6982ac_tool_warned=yes ;;
6983esac
6984    AR=$ac_ct_AR
6985  fi
6986fi
6987
6988: ${AR=ar}
6989
6990
6991
6992
6993
6994
6995# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6996# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6997# higher priority because thats what people were doing historically (setting
6998# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6999# variable obsoleted/removed.
7000
7001test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7002lt_ar_flags=$AR_FLAGS
7003
7004
7005
7006
7007
7008
7009# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
7010# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7011
7012
7013
7014
7015
7016
7017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7018printf %s "checking for archiver @FILE support... " >&6; }
7019if test ${lt_cv_ar_at_file+y}
7020then :
7021  printf %s "(cached) " >&6
7022else $as_nop
7023  lt_cv_ar_at_file=no
7024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7025/* end confdefs.h.  */
7026
7027int
7028main (void)
7029{
7030
7031  ;
7032  return 0;
7033}
7034_ACEOF
7035if ac_fn_c_try_compile "$LINENO"
7036then :
7037  echo conftest.$ac_objext > conftest.lst
7038      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7039      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7040  (eval $lt_ar_try) 2>&5
7041  ac_status=$?
7042  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7043  test $ac_status = 0; }
7044      if test 0 -eq "$ac_status"; then
7045	# Ensure the archiver fails upon bogus file names.
7046	rm -f conftest.$ac_objext libconftest.a
7047	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7048  (eval $lt_ar_try) 2>&5
7049  ac_status=$?
7050  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7051  test $ac_status = 0; }
7052	if test 0 -ne "$ac_status"; then
7053          lt_cv_ar_at_file=@
7054        fi
7055      fi
7056      rm -f conftest.* libconftest.a
7057
7058fi
7059rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7060
7061fi
7062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7063printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7064
7065if test no = "$lt_cv_ar_at_file"; then
7066  archiver_list_spec=
7067else
7068  archiver_list_spec=$lt_cv_ar_at_file
7069fi
7070
7071
7072
7073
7074
7075
7076
7077if test -n "$ac_tool_prefix"; then
7078  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7079set dummy ${ac_tool_prefix}strip; ac_word=$2
7080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081printf %s "checking for $ac_word... " >&6; }
7082if test ${ac_cv_prog_STRIP+y}
7083then :
7084  printf %s "(cached) " >&6
7085else $as_nop
7086  if test -n "$STRIP"; then
7087  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7088else
7089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090for as_dir in $PATH
7091do
7092  IFS=$as_save_IFS
7093  case $as_dir in #(((
7094    '') as_dir=./ ;;
7095    */) ;;
7096    *) as_dir=$as_dir/ ;;
7097  esac
7098    for ac_exec_ext in '' $ac_executable_extensions; do
7099  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7100    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7101    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7102    break 2
7103  fi
7104done
7105  done
7106IFS=$as_save_IFS
7107
7108fi
7109fi
7110STRIP=$ac_cv_prog_STRIP
7111if test -n "$STRIP"; then
7112  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7113printf "%s\n" "$STRIP" >&6; }
7114else
7115  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116printf "%s\n" "no" >&6; }
7117fi
7118
7119
7120fi
7121if test -z "$ac_cv_prog_STRIP"; then
7122  ac_ct_STRIP=$STRIP
7123  # Extract the first word of "strip", so it can be a program name with args.
7124set dummy strip; ac_word=$2
7125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7126printf %s "checking for $ac_word... " >&6; }
7127if test ${ac_cv_prog_ac_ct_STRIP+y}
7128then :
7129  printf %s "(cached) " >&6
7130else $as_nop
7131  if test -n "$ac_ct_STRIP"; then
7132  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7133else
7134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135for as_dir in $PATH
7136do
7137  IFS=$as_save_IFS
7138  case $as_dir in #(((
7139    '') as_dir=./ ;;
7140    */) ;;
7141    *) as_dir=$as_dir/ ;;
7142  esac
7143    for ac_exec_ext in '' $ac_executable_extensions; do
7144  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7145    ac_cv_prog_ac_ct_STRIP="strip"
7146    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7147    break 2
7148  fi
7149done
7150  done
7151IFS=$as_save_IFS
7152
7153fi
7154fi
7155ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7156if test -n "$ac_ct_STRIP"; then
7157  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7158printf "%s\n" "$ac_ct_STRIP" >&6; }
7159else
7160  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161printf "%s\n" "no" >&6; }
7162fi
7163
7164  if test "x$ac_ct_STRIP" = x; then
7165    STRIP=":"
7166  else
7167    case $cross_compiling:$ac_tool_warned in
7168yes:)
7169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7170printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7171ac_tool_warned=yes ;;
7172esac
7173    STRIP=$ac_ct_STRIP
7174  fi
7175else
7176  STRIP="$ac_cv_prog_STRIP"
7177fi
7178
7179test -z "$STRIP" && STRIP=:
7180
7181
7182
7183
7184
7185
7186if test -n "$ac_tool_prefix"; then
7187  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7188set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190printf %s "checking for $ac_word... " >&6; }
7191if test ${ac_cv_prog_RANLIB+y}
7192then :
7193  printf %s "(cached) " >&6
7194else $as_nop
7195  if test -n "$RANLIB"; then
7196  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7197else
7198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199for as_dir in $PATH
7200do
7201  IFS=$as_save_IFS
7202  case $as_dir in #(((
7203    '') as_dir=./ ;;
7204    */) ;;
7205    *) as_dir=$as_dir/ ;;
7206  esac
7207    for ac_exec_ext in '' $ac_executable_extensions; do
7208  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7209    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7210    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7211    break 2
7212  fi
7213done
7214  done
7215IFS=$as_save_IFS
7216
7217fi
7218fi
7219RANLIB=$ac_cv_prog_RANLIB
7220if test -n "$RANLIB"; then
7221  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7222printf "%s\n" "$RANLIB" >&6; }
7223else
7224  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225printf "%s\n" "no" >&6; }
7226fi
7227
7228
7229fi
7230if test -z "$ac_cv_prog_RANLIB"; then
7231  ac_ct_RANLIB=$RANLIB
7232  # Extract the first word of "ranlib", so it can be a program name with args.
7233set dummy ranlib; ac_word=$2
7234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7235printf %s "checking for $ac_word... " >&6; }
7236if test ${ac_cv_prog_ac_ct_RANLIB+y}
7237then :
7238  printf %s "(cached) " >&6
7239else $as_nop
7240  if test -n "$ac_ct_RANLIB"; then
7241  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7242else
7243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244for as_dir in $PATH
7245do
7246  IFS=$as_save_IFS
7247  case $as_dir in #(((
7248    '') as_dir=./ ;;
7249    */) ;;
7250    *) as_dir=$as_dir/ ;;
7251  esac
7252    for ac_exec_ext in '' $ac_executable_extensions; do
7253  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7254    ac_cv_prog_ac_ct_RANLIB="ranlib"
7255    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7256    break 2
7257  fi
7258done
7259  done
7260IFS=$as_save_IFS
7261
7262fi
7263fi
7264ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7265if test -n "$ac_ct_RANLIB"; then
7266  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7267printf "%s\n" "$ac_ct_RANLIB" >&6; }
7268else
7269  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270printf "%s\n" "no" >&6; }
7271fi
7272
7273  if test "x$ac_ct_RANLIB" = x; then
7274    RANLIB=":"
7275  else
7276    case $cross_compiling:$ac_tool_warned in
7277yes:)
7278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7279printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7280ac_tool_warned=yes ;;
7281esac
7282    RANLIB=$ac_ct_RANLIB
7283  fi
7284else
7285  RANLIB="$ac_cv_prog_RANLIB"
7286fi
7287
7288test -z "$RANLIB" && RANLIB=:
7289
7290
7291
7292
7293
7294
7295# Determine commands to create old-style static archives.
7296old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7297old_postinstall_cmds='chmod 644 $oldlib'
7298old_postuninstall_cmds=
7299
7300if test -n "$RANLIB"; then
7301  case $host_os in
7302  bitrig* | openbsd*)
7303    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7304    ;;
7305  *)
7306    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7307    ;;
7308  esac
7309  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7310fi
7311
7312case $host_os in
7313  darwin*)
7314    lock_old_archive_extraction=yes ;;
7315  *)
7316    lock_old_archive_extraction=no ;;
7317esac
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357# If no C compiler was specified, use CC.
7358LTCC=${LTCC-"$CC"}
7359
7360# If no C compiler flags were specified, use CFLAGS.
7361LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7362
7363# Allow CC to be a program name with arguments.
7364compiler=$CC
7365
7366
7367# Check for command to grab the raw symbol name followed by C symbol from nm.
7368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7369printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7370if test ${lt_cv_sys_global_symbol_pipe+y}
7371then :
7372  printf %s "(cached) " >&6
7373else $as_nop
7374
7375# These are sane defaults that work on at least a few old systems.
7376# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7377
7378# Character class describing NM global symbol codes.
7379symcode='[BCDEGRST]'
7380
7381# Regexp to match symbols that can be accessed directly from C.
7382sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7383
7384# Define system-specific variables.
7385case $host_os in
7386aix*)
7387  symcode='[BCDT]'
7388  ;;
7389cygwin* | mingw* | pw32* | cegcc*)
7390  symcode='[ABCDGISTW]'
7391  ;;
7392hpux*)
7393  if test ia64 = "$host_cpu"; then
7394    symcode='[ABCDEGRST]'
7395  fi
7396  ;;
7397irix* | nonstopux*)
7398  symcode='[BCDEGRST]'
7399  ;;
7400osf*)
7401  symcode='[BCDEGQRST]'
7402  ;;
7403solaris*)
7404  symcode='[BDRT]'
7405  ;;
7406sco3.2v5*)
7407  symcode='[DT]'
7408  ;;
7409sysv4.2uw2*)
7410  symcode='[DT]'
7411  ;;
7412sysv5* | sco5v6* | unixware* | OpenUNIX*)
7413  symcode='[ABDT]'
7414  ;;
7415sysv4)
7416  symcode='[DFNSTU]'
7417  ;;
7418esac
7419
7420# If we're using GNU nm, then use its standard symbol codes.
7421case `$NM -V 2>&1` in
7422*GNU* | *'with BFD'*)
7423  symcode='[ABCDGIRSTW]' ;;
7424esac
7425
7426if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7427  # Gets list of data symbols to import.
7428  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7429  # Adjust the below global symbol transforms to fixup imported variables.
7430  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7431  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7432  lt_c_name_lib_hook="\
7433  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7434  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7435else
7436  # Disable hooks by default.
7437  lt_cv_sys_global_symbol_to_import=
7438  lt_cdecl_hook=
7439  lt_c_name_hook=
7440  lt_c_name_lib_hook=
7441fi
7442
7443# Transform an extracted symbol line into a proper C declaration.
7444# Some systems (esp. on ia64) link data and code symbols differently,
7445# so use this general approach.
7446lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7447$lt_cdecl_hook\
7448" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7449" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7450
7451# Transform an extracted symbol line into symbol name and symbol address
7452lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7453$lt_c_name_hook\
7454" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7455" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7456
7457# Transform an extracted symbol line into symbol name with lib prefix and
7458# symbol address.
7459lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7460$lt_c_name_lib_hook\
7461" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7462" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7463" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7464
7465# Handle CRLF in mingw tool chain
7466opt_cr=
7467case $build_os in
7468mingw*)
7469  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7470  ;;
7471esac
7472
7473# Try without a prefix underscore, then with it.
7474for ac_symprfx in "" "_"; do
7475
7476  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7477  symxfrm="\\1 $ac_symprfx\\2 \\2"
7478
7479  # Write the raw and C identifiers.
7480  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7481    # Fake it for dumpbin and say T for any non-static function,
7482    # D for any global variable and I for any imported variable.
7483    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7484    # which start with @ or ?.
7485    lt_cv_sys_global_symbol_pipe="$AWK '"\
7486"     {last_section=section; section=\$ 3};"\
7487"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7488"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7489"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7490"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7491"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7492"     \$ 0!~/External *\|/{next};"\
7493"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7494"     {if(hide[section]) next};"\
7495"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7496"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7497"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7498"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7499"     ' prfx=^$ac_symprfx"
7500  else
7501    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7502  fi
7503  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7504
7505  # Check to see that the pipe works correctly.
7506  pipe_works=no
7507
7508  rm -f conftest*
7509  cat > conftest.$ac_ext <<_LT_EOF
7510#ifdef __cplusplus
7511extern "C" {
7512#endif
7513char nm_test_var;
7514void nm_test_func(void);
7515void nm_test_func(void){}
7516#ifdef __cplusplus
7517}
7518#endif
7519int main(){nm_test_var='a';nm_test_func();return(0);}
7520_LT_EOF
7521
7522  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7523  (eval $ac_compile) 2>&5
7524  ac_status=$?
7525  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7526  test $ac_status = 0; }; then
7527    # Now try to grab the symbols.
7528    nlist=conftest.nm
7529    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7530  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7531  ac_status=$?
7532  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7533  test $ac_status = 0; } && test -s "$nlist"; then
7534      # Try sorting and uniquifying the output.
7535      if sort "$nlist" | uniq > "$nlist"T; then
7536	mv -f "$nlist"T "$nlist"
7537      else
7538	rm -f "$nlist"T
7539      fi
7540
7541      # Make sure that we snagged all the symbols we need.
7542      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7543	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7544	  cat <<_LT_EOF > conftest.$ac_ext
7545/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7546#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7547/* DATA imports from DLLs on WIN32 can't be const, because runtime
7548   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7549# define LT_DLSYM_CONST
7550#elif defined __osf__
7551/* This system does not cope well with relocations in const data.  */
7552# define LT_DLSYM_CONST
7553#else
7554# define LT_DLSYM_CONST const
7555#endif
7556
7557#ifdef __cplusplus
7558extern "C" {
7559#endif
7560
7561_LT_EOF
7562	  # Now generate the symbol file.
7563	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7564
7565	  cat <<_LT_EOF >> conftest.$ac_ext
7566
7567/* The mapping between symbol names and symbols.  */
7568LT_DLSYM_CONST struct {
7569  const char *name;
7570  void       *address;
7571}
7572lt__PROGRAM__LTX_preloaded_symbols[] =
7573{
7574  { "@PROGRAM@", (void *) 0 },
7575_LT_EOF
7576	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7577	  cat <<\_LT_EOF >> conftest.$ac_ext
7578  {0, (void *) 0}
7579};
7580
7581/* This works around a problem in FreeBSD linker */
7582#ifdef FREEBSD_WORKAROUND
7583static const void *lt_preloaded_setup() {
7584  return lt__PROGRAM__LTX_preloaded_symbols;
7585}
7586#endif
7587
7588#ifdef __cplusplus
7589}
7590#endif
7591_LT_EOF
7592	  # Now try linking the two files.
7593	  mv conftest.$ac_objext conftstm.$ac_objext
7594	  lt_globsym_save_LIBS=$LIBS
7595	  lt_globsym_save_CFLAGS=$CFLAGS
7596	  LIBS=conftstm.$ac_objext
7597	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7598	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7599  (eval $ac_link) 2>&5
7600  ac_status=$?
7601  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7602  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7603	    pipe_works=yes
7604	  fi
7605	  LIBS=$lt_globsym_save_LIBS
7606	  CFLAGS=$lt_globsym_save_CFLAGS
7607	else
7608	  echo "cannot find nm_test_func in $nlist" >&5
7609	fi
7610      else
7611	echo "cannot find nm_test_var in $nlist" >&5
7612      fi
7613    else
7614      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7615    fi
7616  else
7617    echo "$progname: failed program was:" >&5
7618    cat conftest.$ac_ext >&5
7619  fi
7620  rm -rf conftest* conftst*
7621
7622  # Do not use the global_symbol_pipe unless it works.
7623  if test yes = "$pipe_works"; then
7624    break
7625  else
7626    lt_cv_sys_global_symbol_pipe=
7627  fi
7628done
7629
7630fi
7631
7632if test -z "$lt_cv_sys_global_symbol_pipe"; then
7633  lt_cv_sys_global_symbol_to_cdecl=
7634fi
7635if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7636  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7637printf "%s\n" "failed" >&6; }
7638else
7639  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7640printf "%s\n" "ok" >&6; }
7641fi
7642
7643# Response file support.
7644if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7645  nm_file_list_spec='@'
7646elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7647  nm_file_list_spec='@'
7648fi
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7687printf %s "checking for sysroot... " >&6; }
7688
7689# Check whether --with-sysroot was given.
7690if test ${with_sysroot+y}
7691then :
7692  withval=$with_sysroot;
7693else $as_nop
7694  with_sysroot=no
7695fi
7696
7697
7698lt_sysroot=
7699case $with_sysroot in #(
7700 yes)
7701   if test yes = "$GCC"; then
7702     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7703   fi
7704   ;; #(
7705 /*)
7706   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7707   ;; #(
7708 no|'')
7709   ;; #(
7710 *)
7711   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7712printf "%s\n" "$with_sysroot" >&6; }
7713   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7714   ;;
7715esac
7716
7717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7718printf "%s\n" "${lt_sysroot:-no}" >&6; }
7719
7720
7721
7722
7723
7724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7725printf %s "checking for a working dd... " >&6; }
7726if test ${ac_cv_path_lt_DD+y}
7727then :
7728  printf %s "(cached) " >&6
7729else $as_nop
7730  printf 0123456789abcdef0123456789abcdef >conftest.i
7731cat conftest.i conftest.i >conftest2.i
7732: ${lt_DD:=$DD}
7733if test -z "$lt_DD"; then
7734  ac_path_lt_DD_found=false
7735  # Loop through the user's path and test for each of PROGNAME-LIST
7736  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737for as_dir in $PATH
7738do
7739  IFS=$as_save_IFS
7740  case $as_dir in #(((
7741    '') as_dir=./ ;;
7742    */) ;;
7743    *) as_dir=$as_dir/ ;;
7744  esac
7745    for ac_prog in dd
7746   do
7747    for ac_exec_ext in '' $ac_executable_extensions; do
7748      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7749      as_fn_executable_p "$ac_path_lt_DD" || continue
7750if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7751  cmp -s conftest.i conftest.out \
7752  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7753fi
7754      $ac_path_lt_DD_found && break 3
7755    done
7756  done
7757  done
7758IFS=$as_save_IFS
7759  if test -z "$ac_cv_path_lt_DD"; then
7760    :
7761  fi
7762else
7763  ac_cv_path_lt_DD=$lt_DD
7764fi
7765
7766rm -f conftest.i conftest2.i conftest.out
7767fi
7768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7769printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7770
7771
7772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7773printf %s "checking how to truncate binary pipes... " >&6; }
7774if test ${lt_cv_truncate_bin+y}
7775then :
7776  printf %s "(cached) " >&6
7777else $as_nop
7778  printf 0123456789abcdef0123456789abcdef >conftest.i
7779cat conftest.i conftest.i >conftest2.i
7780lt_cv_truncate_bin=
7781if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7782  cmp -s conftest.i conftest.out \
7783  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7784fi
7785rm -f conftest.i conftest2.i conftest.out
7786test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7787fi
7788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7789printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7790
7791
7792
7793
7794
7795
7796
7797# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7798func_cc_basename ()
7799{
7800    for cc_temp in $*""; do
7801      case $cc_temp in
7802        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7803        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7804        \-*) ;;
7805        *) break;;
7806      esac
7807    done
7808    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7809}
7810
7811# Check whether --enable-libtool-lock was given.
7812if test ${enable_libtool_lock+y}
7813then :
7814  enableval=$enable_libtool_lock;
7815fi
7816
7817test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7818
7819# Some flags need to be propagated to the compiler or linker for good
7820# libtool support.
7821case $host in
7822ia64-*-hpux*)
7823  # Find out what ABI is being produced by ac_compile, and set mode
7824  # options accordingly.
7825  echo 'int i;' > conftest.$ac_ext
7826  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7827  (eval $ac_compile) 2>&5
7828  ac_status=$?
7829  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7830  test $ac_status = 0; }; then
7831    case `$FILECMD conftest.$ac_objext` in
7832      *ELF-32*)
7833	HPUX_IA64_MODE=32
7834	;;
7835      *ELF-64*)
7836	HPUX_IA64_MODE=64
7837	;;
7838    esac
7839  fi
7840  rm -rf conftest*
7841  ;;
7842*-*-irix6*)
7843  # Find out what ABI is being produced by ac_compile, and set linker
7844  # options accordingly.
7845  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7846  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7847  (eval $ac_compile) 2>&5
7848  ac_status=$?
7849  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7850  test $ac_status = 0; }; then
7851    if test yes = "$lt_cv_prog_gnu_ld"; then
7852      case `$FILECMD conftest.$ac_objext` in
7853	*32-bit*)
7854	  LD="${LD-ld} -melf32bsmip"
7855	  ;;
7856	*N32*)
7857	  LD="${LD-ld} -melf32bmipn32"
7858	  ;;
7859	*64-bit*)
7860	  LD="${LD-ld} -melf64bmip"
7861	;;
7862      esac
7863    else
7864      case `$FILECMD conftest.$ac_objext` in
7865	*32-bit*)
7866	  LD="${LD-ld} -32"
7867	  ;;
7868	*N32*)
7869	  LD="${LD-ld} -n32"
7870	  ;;
7871	*64-bit*)
7872	  LD="${LD-ld} -64"
7873	  ;;
7874      esac
7875    fi
7876  fi
7877  rm -rf conftest*
7878  ;;
7879
7880mips64*-*linux*)
7881  # Find out what ABI is being produced by ac_compile, and set linker
7882  # options accordingly.
7883  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7884  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7885  (eval $ac_compile) 2>&5
7886  ac_status=$?
7887  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7888  test $ac_status = 0; }; then
7889    emul=elf
7890    case `$FILECMD conftest.$ac_objext` in
7891      *32-bit*)
7892	emul="${emul}32"
7893	;;
7894      *64-bit*)
7895	emul="${emul}64"
7896	;;
7897    esac
7898    case `$FILECMD conftest.$ac_objext` in
7899      *MSB*)
7900	emul="${emul}btsmip"
7901	;;
7902      *LSB*)
7903	emul="${emul}ltsmip"
7904	;;
7905    esac
7906    case `$FILECMD conftest.$ac_objext` in
7907      *N32*)
7908	emul="${emul}n32"
7909	;;
7910    esac
7911    LD="${LD-ld} -m $emul"
7912  fi
7913  rm -rf conftest*
7914  ;;
7915
7916x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7917s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7918  # Find out what ABI is being produced by ac_compile, and set linker
7919  # options accordingly.  Note that the listed cases only cover the
7920  # situations where additional linker options are needed (such as when
7921  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7922  # vice versa); the common cases where no linker options are needed do
7923  # not appear in the list.
7924  echo 'int i;' > conftest.$ac_ext
7925  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7926  (eval $ac_compile) 2>&5
7927  ac_status=$?
7928  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7929  test $ac_status = 0; }; then
7930    case `$FILECMD conftest.o` in
7931      *32-bit*)
7932	case $host in
7933	  x86_64-*kfreebsd*-gnu)
7934	    LD="${LD-ld} -m elf_i386_fbsd"
7935	    ;;
7936	  x86_64-*linux*)
7937	    case `$FILECMD conftest.o` in
7938	      *x86-64*)
7939		LD="${LD-ld} -m elf32_x86_64"
7940		;;
7941	      *)
7942		LD="${LD-ld} -m elf_i386"
7943		;;
7944	    esac
7945	    ;;
7946	  powerpc64le-*linux*)
7947	    LD="${LD-ld} -m elf32lppclinux"
7948	    ;;
7949	  powerpc64-*linux*)
7950	    LD="${LD-ld} -m elf32ppclinux"
7951	    ;;
7952	  s390x-*linux*)
7953	    LD="${LD-ld} -m elf_s390"
7954	    ;;
7955	  sparc64-*linux*)
7956	    LD="${LD-ld} -m elf32_sparc"
7957	    ;;
7958	esac
7959	;;
7960      *64-bit*)
7961	case $host in
7962	  x86_64-*kfreebsd*-gnu)
7963	    LD="${LD-ld} -m elf_x86_64_fbsd"
7964	    ;;
7965	  x86_64-*linux*)
7966	    LD="${LD-ld} -m elf_x86_64"
7967	    ;;
7968	  powerpcle-*linux*)
7969	    LD="${LD-ld} -m elf64lppc"
7970	    ;;
7971	  powerpc-*linux*)
7972	    LD="${LD-ld} -m elf64ppc"
7973	    ;;
7974	  s390*-*linux*|s390*-*tpf*)
7975	    LD="${LD-ld} -m elf64_s390"
7976	    ;;
7977	  sparc*-*linux*)
7978	    LD="${LD-ld} -m elf64_sparc"
7979	    ;;
7980	esac
7981	;;
7982    esac
7983  fi
7984  rm -rf conftest*
7985  ;;
7986
7987*-*-sco3.2v5*)
7988  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7989  SAVE_CFLAGS=$CFLAGS
7990  CFLAGS="$CFLAGS -belf"
7991  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7992printf %s "checking whether the C compiler needs -belf... " >&6; }
7993if test ${lt_cv_cc_needs_belf+y}
7994then :
7995  printf %s "(cached) " >&6
7996else $as_nop
7997  ac_ext=c
7998ac_cpp='$CPP $CPPFLAGS'
7999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8001ac_compiler_gnu=$ac_cv_c_compiler_gnu
8002
8003     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8004/* end confdefs.h.  */
8005
8006int
8007main (void)
8008{
8009
8010  ;
8011  return 0;
8012}
8013_ACEOF
8014if ac_fn_c_try_link "$LINENO"
8015then :
8016  lt_cv_cc_needs_belf=yes
8017else $as_nop
8018  lt_cv_cc_needs_belf=no
8019fi
8020rm -f core conftest.err conftest.$ac_objext conftest.beam \
8021    conftest$ac_exeext conftest.$ac_ext
8022     ac_ext=c
8023ac_cpp='$CPP $CPPFLAGS'
8024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8026ac_compiler_gnu=$ac_cv_c_compiler_gnu
8027
8028fi
8029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8030printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8031  if test yes != "$lt_cv_cc_needs_belf"; then
8032    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8033    CFLAGS=$SAVE_CFLAGS
8034  fi
8035  ;;
8036*-*solaris*)
8037  # Find out what ABI is being produced by ac_compile, and set linker
8038  # options accordingly.
8039  echo 'int i;' > conftest.$ac_ext
8040  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8041  (eval $ac_compile) 2>&5
8042  ac_status=$?
8043  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8044  test $ac_status = 0; }; then
8045    case `$FILECMD conftest.o` in
8046    *64-bit*)
8047      case $lt_cv_prog_gnu_ld in
8048      yes*)
8049        case $host in
8050        i?86-*-solaris*|x86_64-*-solaris*)
8051          LD="${LD-ld} -m elf_x86_64"
8052          ;;
8053        sparc*-*-solaris*)
8054          LD="${LD-ld} -m elf64_sparc"
8055          ;;
8056        esac
8057        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8058        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8059          LD=${LD-ld}_sol2
8060        fi
8061        ;;
8062      *)
8063	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8064	  LD="${LD-ld} -64"
8065	fi
8066	;;
8067      esac
8068      ;;
8069    esac
8070  fi
8071  rm -rf conftest*
8072  ;;
8073esac
8074
8075need_locks=$enable_libtool_lock
8076
8077if test -n "$ac_tool_prefix"; then
8078  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8079set dummy ${ac_tool_prefix}mt; ac_word=$2
8080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8081printf %s "checking for $ac_word... " >&6; }
8082if test ${ac_cv_prog_MANIFEST_TOOL+y}
8083then :
8084  printf %s "(cached) " >&6
8085else $as_nop
8086  if test -n "$MANIFEST_TOOL"; then
8087  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8088else
8089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090for as_dir in $PATH
8091do
8092  IFS=$as_save_IFS
8093  case $as_dir in #(((
8094    '') as_dir=./ ;;
8095    */) ;;
8096    *) as_dir=$as_dir/ ;;
8097  esac
8098    for ac_exec_ext in '' $ac_executable_extensions; do
8099  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8100    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8101    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8102    break 2
8103  fi
8104done
8105  done
8106IFS=$as_save_IFS
8107
8108fi
8109fi
8110MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8111if test -n "$MANIFEST_TOOL"; then
8112  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8113printf "%s\n" "$MANIFEST_TOOL" >&6; }
8114else
8115  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116printf "%s\n" "no" >&6; }
8117fi
8118
8119
8120fi
8121if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8122  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8123  # Extract the first word of "mt", so it can be a program name with args.
8124set dummy mt; ac_word=$2
8125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126printf %s "checking for $ac_word... " >&6; }
8127if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8128then :
8129  printf %s "(cached) " >&6
8130else $as_nop
8131  if test -n "$ac_ct_MANIFEST_TOOL"; then
8132  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8133else
8134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135for as_dir in $PATH
8136do
8137  IFS=$as_save_IFS
8138  case $as_dir in #(((
8139    '') as_dir=./ ;;
8140    */) ;;
8141    *) as_dir=$as_dir/ ;;
8142  esac
8143    for ac_exec_ext in '' $ac_executable_extensions; do
8144  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8145    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8146    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8147    break 2
8148  fi
8149done
8150  done
8151IFS=$as_save_IFS
8152
8153fi
8154fi
8155ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8156if test -n "$ac_ct_MANIFEST_TOOL"; then
8157  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8158printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8159else
8160  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8161printf "%s\n" "no" >&6; }
8162fi
8163
8164  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8165    MANIFEST_TOOL=":"
8166  else
8167    case $cross_compiling:$ac_tool_warned in
8168yes:)
8169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8170printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8171ac_tool_warned=yes ;;
8172esac
8173    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8174  fi
8175else
8176  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8177fi
8178
8179test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8181printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8182if test ${lt_cv_path_mainfest_tool+y}
8183then :
8184  printf %s "(cached) " >&6
8185else $as_nop
8186  lt_cv_path_mainfest_tool=no
8187  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8188  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8189  cat conftest.err >&5
8190  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8191    lt_cv_path_mainfest_tool=yes
8192  fi
8193  rm -f conftest*
8194fi
8195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8196printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8197if test yes != "$lt_cv_path_mainfest_tool"; then
8198  MANIFEST_TOOL=:
8199fi
8200
8201
8202
8203
8204
8205
8206  case $host_os in
8207    rhapsody* | darwin*)
8208    if test -n "$ac_tool_prefix"; then
8209  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8210set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8212printf %s "checking for $ac_word... " >&6; }
8213if test ${ac_cv_prog_DSYMUTIL+y}
8214then :
8215  printf %s "(cached) " >&6
8216else $as_nop
8217  if test -n "$DSYMUTIL"; then
8218  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8219else
8220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221for as_dir in $PATH
8222do
8223  IFS=$as_save_IFS
8224  case $as_dir in #(((
8225    '') as_dir=./ ;;
8226    */) ;;
8227    *) as_dir=$as_dir/ ;;
8228  esac
8229    for ac_exec_ext in '' $ac_executable_extensions; do
8230  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8231    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8232    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8233    break 2
8234  fi
8235done
8236  done
8237IFS=$as_save_IFS
8238
8239fi
8240fi
8241DSYMUTIL=$ac_cv_prog_DSYMUTIL
8242if test -n "$DSYMUTIL"; then
8243  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8244printf "%s\n" "$DSYMUTIL" >&6; }
8245else
8246  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8247printf "%s\n" "no" >&6; }
8248fi
8249
8250
8251fi
8252if test -z "$ac_cv_prog_DSYMUTIL"; then
8253  ac_ct_DSYMUTIL=$DSYMUTIL
8254  # Extract the first word of "dsymutil", so it can be a program name with args.
8255set dummy dsymutil; ac_word=$2
8256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8257printf %s "checking for $ac_word... " >&6; }
8258if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8259then :
8260  printf %s "(cached) " >&6
8261else $as_nop
8262  if test -n "$ac_ct_DSYMUTIL"; then
8263  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8264else
8265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8266for as_dir in $PATH
8267do
8268  IFS=$as_save_IFS
8269  case $as_dir in #(((
8270    '') as_dir=./ ;;
8271    */) ;;
8272    *) as_dir=$as_dir/ ;;
8273  esac
8274    for ac_exec_ext in '' $ac_executable_extensions; do
8275  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8276    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8277    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8278    break 2
8279  fi
8280done
8281  done
8282IFS=$as_save_IFS
8283
8284fi
8285fi
8286ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8287if test -n "$ac_ct_DSYMUTIL"; then
8288  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8289printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8290else
8291  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292printf "%s\n" "no" >&6; }
8293fi
8294
8295  if test "x$ac_ct_DSYMUTIL" = x; then
8296    DSYMUTIL=":"
8297  else
8298    case $cross_compiling:$ac_tool_warned in
8299yes:)
8300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8301printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8302ac_tool_warned=yes ;;
8303esac
8304    DSYMUTIL=$ac_ct_DSYMUTIL
8305  fi
8306else
8307  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8308fi
8309
8310    if test -n "$ac_tool_prefix"; then
8311  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8312set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8314printf %s "checking for $ac_word... " >&6; }
8315if test ${ac_cv_prog_NMEDIT+y}
8316then :
8317  printf %s "(cached) " >&6
8318else $as_nop
8319  if test -n "$NMEDIT"; then
8320  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8321else
8322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323for as_dir in $PATH
8324do
8325  IFS=$as_save_IFS
8326  case $as_dir in #(((
8327    '') as_dir=./ ;;
8328    */) ;;
8329    *) as_dir=$as_dir/ ;;
8330  esac
8331    for ac_exec_ext in '' $ac_executable_extensions; do
8332  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8333    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8334    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8335    break 2
8336  fi
8337done
8338  done
8339IFS=$as_save_IFS
8340
8341fi
8342fi
8343NMEDIT=$ac_cv_prog_NMEDIT
8344if test -n "$NMEDIT"; then
8345  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8346printf "%s\n" "$NMEDIT" >&6; }
8347else
8348  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8349printf "%s\n" "no" >&6; }
8350fi
8351
8352
8353fi
8354if test -z "$ac_cv_prog_NMEDIT"; then
8355  ac_ct_NMEDIT=$NMEDIT
8356  # Extract the first word of "nmedit", so it can be a program name with args.
8357set dummy nmedit; ac_word=$2
8358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359printf %s "checking for $ac_word... " >&6; }
8360if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8361then :
8362  printf %s "(cached) " >&6
8363else $as_nop
8364  if test -n "$ac_ct_NMEDIT"; then
8365  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8366else
8367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368for as_dir in $PATH
8369do
8370  IFS=$as_save_IFS
8371  case $as_dir in #(((
8372    '') as_dir=./ ;;
8373    */) ;;
8374    *) as_dir=$as_dir/ ;;
8375  esac
8376    for ac_exec_ext in '' $ac_executable_extensions; do
8377  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8378    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8379    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8380    break 2
8381  fi
8382done
8383  done
8384IFS=$as_save_IFS
8385
8386fi
8387fi
8388ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8389if test -n "$ac_ct_NMEDIT"; then
8390  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8391printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8392else
8393  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394printf "%s\n" "no" >&6; }
8395fi
8396
8397  if test "x$ac_ct_NMEDIT" = x; then
8398    NMEDIT=":"
8399  else
8400    case $cross_compiling:$ac_tool_warned in
8401yes:)
8402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8403printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8404ac_tool_warned=yes ;;
8405esac
8406    NMEDIT=$ac_ct_NMEDIT
8407  fi
8408else
8409  NMEDIT="$ac_cv_prog_NMEDIT"
8410fi
8411
8412    if test -n "$ac_tool_prefix"; then
8413  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8414set dummy ${ac_tool_prefix}lipo; ac_word=$2
8415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8416printf %s "checking for $ac_word... " >&6; }
8417if test ${ac_cv_prog_LIPO+y}
8418then :
8419  printf %s "(cached) " >&6
8420else $as_nop
8421  if test -n "$LIPO"; then
8422  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8423else
8424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8425for as_dir in $PATH
8426do
8427  IFS=$as_save_IFS
8428  case $as_dir in #(((
8429    '') as_dir=./ ;;
8430    */) ;;
8431    *) as_dir=$as_dir/ ;;
8432  esac
8433    for ac_exec_ext in '' $ac_executable_extensions; do
8434  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8435    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8436    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8437    break 2
8438  fi
8439done
8440  done
8441IFS=$as_save_IFS
8442
8443fi
8444fi
8445LIPO=$ac_cv_prog_LIPO
8446if test -n "$LIPO"; then
8447  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8448printf "%s\n" "$LIPO" >&6; }
8449else
8450  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8451printf "%s\n" "no" >&6; }
8452fi
8453
8454
8455fi
8456if test -z "$ac_cv_prog_LIPO"; then
8457  ac_ct_LIPO=$LIPO
8458  # Extract the first word of "lipo", so it can be a program name with args.
8459set dummy lipo; ac_word=$2
8460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8461printf %s "checking for $ac_word... " >&6; }
8462if test ${ac_cv_prog_ac_ct_LIPO+y}
8463then :
8464  printf %s "(cached) " >&6
8465else $as_nop
8466  if test -n "$ac_ct_LIPO"; then
8467  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8468else
8469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8470for as_dir in $PATH
8471do
8472  IFS=$as_save_IFS
8473  case $as_dir in #(((
8474    '') as_dir=./ ;;
8475    */) ;;
8476    *) as_dir=$as_dir/ ;;
8477  esac
8478    for ac_exec_ext in '' $ac_executable_extensions; do
8479  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8480    ac_cv_prog_ac_ct_LIPO="lipo"
8481    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8482    break 2
8483  fi
8484done
8485  done
8486IFS=$as_save_IFS
8487
8488fi
8489fi
8490ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8491if test -n "$ac_ct_LIPO"; then
8492  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8493printf "%s\n" "$ac_ct_LIPO" >&6; }
8494else
8495  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8496printf "%s\n" "no" >&6; }
8497fi
8498
8499  if test "x$ac_ct_LIPO" = x; then
8500    LIPO=":"
8501  else
8502    case $cross_compiling:$ac_tool_warned in
8503yes:)
8504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8505printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8506ac_tool_warned=yes ;;
8507esac
8508    LIPO=$ac_ct_LIPO
8509  fi
8510else
8511  LIPO="$ac_cv_prog_LIPO"
8512fi
8513
8514    if test -n "$ac_tool_prefix"; then
8515  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8516set dummy ${ac_tool_prefix}otool; ac_word=$2
8517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518printf %s "checking for $ac_word... " >&6; }
8519if test ${ac_cv_prog_OTOOL+y}
8520then :
8521  printf %s "(cached) " >&6
8522else $as_nop
8523  if test -n "$OTOOL"; then
8524  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8525else
8526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8527for as_dir in $PATH
8528do
8529  IFS=$as_save_IFS
8530  case $as_dir in #(((
8531    '') as_dir=./ ;;
8532    */) ;;
8533    *) as_dir=$as_dir/ ;;
8534  esac
8535    for ac_exec_ext in '' $ac_executable_extensions; do
8536  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8537    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8538    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8539    break 2
8540  fi
8541done
8542  done
8543IFS=$as_save_IFS
8544
8545fi
8546fi
8547OTOOL=$ac_cv_prog_OTOOL
8548if test -n "$OTOOL"; then
8549  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8550printf "%s\n" "$OTOOL" >&6; }
8551else
8552  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553printf "%s\n" "no" >&6; }
8554fi
8555
8556
8557fi
8558if test -z "$ac_cv_prog_OTOOL"; then
8559  ac_ct_OTOOL=$OTOOL
8560  # Extract the first word of "otool", so it can be a program name with args.
8561set dummy otool; ac_word=$2
8562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8563printf %s "checking for $ac_word... " >&6; }
8564if test ${ac_cv_prog_ac_ct_OTOOL+y}
8565then :
8566  printf %s "(cached) " >&6
8567else $as_nop
8568  if test -n "$ac_ct_OTOOL"; then
8569  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8570else
8571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8572for as_dir in $PATH
8573do
8574  IFS=$as_save_IFS
8575  case $as_dir in #(((
8576    '') as_dir=./ ;;
8577    */) ;;
8578    *) as_dir=$as_dir/ ;;
8579  esac
8580    for ac_exec_ext in '' $ac_executable_extensions; do
8581  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8582    ac_cv_prog_ac_ct_OTOOL="otool"
8583    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8584    break 2
8585  fi
8586done
8587  done
8588IFS=$as_save_IFS
8589
8590fi
8591fi
8592ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8593if test -n "$ac_ct_OTOOL"; then
8594  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8595printf "%s\n" "$ac_ct_OTOOL" >&6; }
8596else
8597  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8598printf "%s\n" "no" >&6; }
8599fi
8600
8601  if test "x$ac_ct_OTOOL" = x; then
8602    OTOOL=":"
8603  else
8604    case $cross_compiling:$ac_tool_warned in
8605yes:)
8606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8607printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8608ac_tool_warned=yes ;;
8609esac
8610    OTOOL=$ac_ct_OTOOL
8611  fi
8612else
8613  OTOOL="$ac_cv_prog_OTOOL"
8614fi
8615
8616    if test -n "$ac_tool_prefix"; then
8617  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8618set dummy ${ac_tool_prefix}otool64; ac_word=$2
8619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8620printf %s "checking for $ac_word... " >&6; }
8621if test ${ac_cv_prog_OTOOL64+y}
8622then :
8623  printf %s "(cached) " >&6
8624else $as_nop
8625  if test -n "$OTOOL64"; then
8626  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8627else
8628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629for as_dir in $PATH
8630do
8631  IFS=$as_save_IFS
8632  case $as_dir in #(((
8633    '') as_dir=./ ;;
8634    */) ;;
8635    *) as_dir=$as_dir/ ;;
8636  esac
8637    for ac_exec_ext in '' $ac_executable_extensions; do
8638  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8639    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8640    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8641    break 2
8642  fi
8643done
8644  done
8645IFS=$as_save_IFS
8646
8647fi
8648fi
8649OTOOL64=$ac_cv_prog_OTOOL64
8650if test -n "$OTOOL64"; then
8651  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8652printf "%s\n" "$OTOOL64" >&6; }
8653else
8654  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8655printf "%s\n" "no" >&6; }
8656fi
8657
8658
8659fi
8660if test -z "$ac_cv_prog_OTOOL64"; then
8661  ac_ct_OTOOL64=$OTOOL64
8662  # Extract the first word of "otool64", so it can be a program name with args.
8663set dummy otool64; ac_word=$2
8664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8665printf %s "checking for $ac_word... " >&6; }
8666if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8667then :
8668  printf %s "(cached) " >&6
8669else $as_nop
8670  if test -n "$ac_ct_OTOOL64"; then
8671  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8672else
8673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8674for as_dir in $PATH
8675do
8676  IFS=$as_save_IFS
8677  case $as_dir in #(((
8678    '') as_dir=./ ;;
8679    */) ;;
8680    *) as_dir=$as_dir/ ;;
8681  esac
8682    for ac_exec_ext in '' $ac_executable_extensions; do
8683  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8684    ac_cv_prog_ac_ct_OTOOL64="otool64"
8685    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8686    break 2
8687  fi
8688done
8689  done
8690IFS=$as_save_IFS
8691
8692fi
8693fi
8694ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8695if test -n "$ac_ct_OTOOL64"; then
8696  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8697printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8698else
8699  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8700printf "%s\n" "no" >&6; }
8701fi
8702
8703  if test "x$ac_ct_OTOOL64" = x; then
8704    OTOOL64=":"
8705  else
8706    case $cross_compiling:$ac_tool_warned in
8707yes:)
8708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8709printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8710ac_tool_warned=yes ;;
8711esac
8712    OTOOL64=$ac_ct_OTOOL64
8713  fi
8714else
8715  OTOOL64="$ac_cv_prog_OTOOL64"
8716fi
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8745printf %s "checking for -single_module linker flag... " >&6; }
8746if test ${lt_cv_apple_cc_single_mod+y}
8747then :
8748  printf %s "(cached) " >&6
8749else $as_nop
8750  lt_cv_apple_cc_single_mod=no
8751      if test -z "$LT_MULTI_MODULE"; then
8752	# By default we will add the -single_module flag. You can override
8753	# by either setting the environment variable LT_MULTI_MODULE
8754	# non-empty at configure time, or by adding -multi_module to the
8755	# link flags.
8756	rm -rf libconftest.dylib*
8757	echo "int foo(void){return 1;}" > conftest.c
8758	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8759-dynamiclib -Wl,-single_module conftest.c" >&5
8760	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8761	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8762        _lt_result=$?
8763	# If there is a non-empty error log, and "single_module"
8764	# appears in it, assume the flag caused a linker warning
8765        if test -s conftest.err && $GREP single_module conftest.err; then
8766	  cat conftest.err >&5
8767	# Otherwise, if the output was created with a 0 exit code from
8768	# the compiler, it worked.
8769	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8770	  lt_cv_apple_cc_single_mod=yes
8771	else
8772	  cat conftest.err >&5
8773	fi
8774	rm -rf libconftest.dylib*
8775	rm -f conftest.*
8776      fi
8777fi
8778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8779printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8780
8781    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8782printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8783if test ${lt_cv_ld_exported_symbols_list+y}
8784then :
8785  printf %s "(cached) " >&6
8786else $as_nop
8787  lt_cv_ld_exported_symbols_list=no
8788      save_LDFLAGS=$LDFLAGS
8789      echo "_main" > conftest.sym
8790      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8791      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8792/* end confdefs.h.  */
8793
8794int
8795main (void)
8796{
8797
8798  ;
8799  return 0;
8800}
8801_ACEOF
8802if ac_fn_c_try_link "$LINENO"
8803then :
8804  lt_cv_ld_exported_symbols_list=yes
8805else $as_nop
8806  lt_cv_ld_exported_symbols_list=no
8807fi
8808rm -f core conftest.err conftest.$ac_objext conftest.beam \
8809    conftest$ac_exeext conftest.$ac_ext
8810	LDFLAGS=$save_LDFLAGS
8811
8812fi
8813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8814printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8815
8816    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8817printf %s "checking for -force_load linker flag... " >&6; }
8818if test ${lt_cv_ld_force_load+y}
8819then :
8820  printf %s "(cached) " >&6
8821else $as_nop
8822  lt_cv_ld_force_load=no
8823      cat > conftest.c << _LT_EOF
8824int forced_loaded() { return 2;}
8825_LT_EOF
8826      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8827      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8828      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8829      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8830      echo "$RANLIB libconftest.a" >&5
8831      $RANLIB libconftest.a 2>&5
8832      cat > conftest.c << _LT_EOF
8833int main() { return 0;}
8834_LT_EOF
8835      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8836      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8837      _lt_result=$?
8838      if test -s conftest.err && $GREP force_load conftest.err; then
8839	cat conftest.err >&5
8840      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8841	lt_cv_ld_force_load=yes
8842      else
8843	cat conftest.err >&5
8844      fi
8845        rm -f conftest.err libconftest.a conftest conftest.c
8846        rm -rf conftest.dSYM
8847
8848fi
8849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8850printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8851    case $host_os in
8852    rhapsody* | darwin1.[012])
8853      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8854    darwin1.*)
8855      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8856    darwin*)
8857      case ${MACOSX_DEPLOYMENT_TARGET},$host in
8858        10.[012],*|,*powerpc*-darwin[5-8]*)
8859          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8860        *)
8861          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8862      esac
8863    ;;
8864  esac
8865    if test yes = "$lt_cv_apple_cc_single_mod"; then
8866      _lt_dar_single_mod='$single_module'
8867    fi
8868    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8869      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8870    else
8871      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8872    fi
8873    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8874      _lt_dsymutil='~$DSYMUTIL $lib || :'
8875    else
8876      _lt_dsymutil=
8877    fi
8878    ;;
8879  esac
8880
8881# func_munge_path_list VARIABLE PATH
8882# -----------------------------------
8883# VARIABLE is name of variable containing _space_ separated list of
8884# directories to be munged by the contents of PATH, which is string
8885# having a format:
8886# "DIR[:DIR]:"
8887#       string "DIR[ DIR]" will be prepended to VARIABLE
8888# ":DIR[:DIR]"
8889#       string "DIR[ DIR]" will be appended to VARIABLE
8890# "DIRP[:DIRP]::[DIRA:]DIRA"
8891#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8892#       "DIRA[ DIRA]" will be appended to VARIABLE
8893# "DIR[:DIR]"
8894#       VARIABLE will be replaced by "DIR[ DIR]"
8895func_munge_path_list ()
8896{
8897    case x$2 in
8898    x)
8899        ;;
8900    *:)
8901        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8902        ;;
8903    x:*)
8904        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8905        ;;
8906    *::*)
8907        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8908        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8909        ;;
8910    *)
8911        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8912        ;;
8913    esac
8914}
8915
8916ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8917"
8918if test "x$ac_cv_header_dlfcn_h" = xyes
8919then :
8920  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8921
8922fi
8923
8924
8925
8926
8927
8928# Set options
8929enable_win32_dll=yes
8930
8931case $host in
8932*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8933  if test -n "$ac_tool_prefix"; then
8934  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8935set dummy ${ac_tool_prefix}as; ac_word=$2
8936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8937printf %s "checking for $ac_word... " >&6; }
8938if test ${ac_cv_prog_AS+y}
8939then :
8940  printf %s "(cached) " >&6
8941else $as_nop
8942  if test -n "$AS"; then
8943  ac_cv_prog_AS="$AS" # Let the user override the test.
8944else
8945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946for as_dir in $PATH
8947do
8948  IFS=$as_save_IFS
8949  case $as_dir in #(((
8950    '') as_dir=./ ;;
8951    */) ;;
8952    *) as_dir=$as_dir/ ;;
8953  esac
8954    for ac_exec_ext in '' $ac_executable_extensions; do
8955  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8956    ac_cv_prog_AS="${ac_tool_prefix}as"
8957    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8958    break 2
8959  fi
8960done
8961  done
8962IFS=$as_save_IFS
8963
8964fi
8965fi
8966AS=$ac_cv_prog_AS
8967if test -n "$AS"; then
8968  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8969printf "%s\n" "$AS" >&6; }
8970else
8971  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8972printf "%s\n" "no" >&6; }
8973fi
8974
8975
8976fi
8977if test -z "$ac_cv_prog_AS"; then
8978  ac_ct_AS=$AS
8979  # Extract the first word of "as", so it can be a program name with args.
8980set dummy as; ac_word=$2
8981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8982printf %s "checking for $ac_word... " >&6; }
8983if test ${ac_cv_prog_ac_ct_AS+y}
8984then :
8985  printf %s "(cached) " >&6
8986else $as_nop
8987  if test -n "$ac_ct_AS"; then
8988  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8989else
8990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8991for as_dir in $PATH
8992do
8993  IFS=$as_save_IFS
8994  case $as_dir in #(((
8995    '') as_dir=./ ;;
8996    */) ;;
8997    *) as_dir=$as_dir/ ;;
8998  esac
8999    for ac_exec_ext in '' $ac_executable_extensions; do
9000  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9001    ac_cv_prog_ac_ct_AS="as"
9002    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9003    break 2
9004  fi
9005done
9006  done
9007IFS=$as_save_IFS
9008
9009fi
9010fi
9011ac_ct_AS=$ac_cv_prog_ac_ct_AS
9012if test -n "$ac_ct_AS"; then
9013  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9014printf "%s\n" "$ac_ct_AS" >&6; }
9015else
9016  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9017printf "%s\n" "no" >&6; }
9018fi
9019
9020  if test "x$ac_ct_AS" = x; then
9021    AS="false"
9022  else
9023    case $cross_compiling:$ac_tool_warned in
9024yes:)
9025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9026printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9027ac_tool_warned=yes ;;
9028esac
9029    AS=$ac_ct_AS
9030  fi
9031else
9032  AS="$ac_cv_prog_AS"
9033fi
9034
9035  if test -n "$ac_tool_prefix"; then
9036  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9037set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9039printf %s "checking for $ac_word... " >&6; }
9040if test ${ac_cv_prog_DLLTOOL+y}
9041then :
9042  printf %s "(cached) " >&6
9043else $as_nop
9044  if test -n "$DLLTOOL"; then
9045  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9046else
9047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9048for as_dir in $PATH
9049do
9050  IFS=$as_save_IFS
9051  case $as_dir in #(((
9052    '') as_dir=./ ;;
9053    */) ;;
9054    *) as_dir=$as_dir/ ;;
9055  esac
9056    for ac_exec_ext in '' $ac_executable_extensions; do
9057  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9058    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9059    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9060    break 2
9061  fi
9062done
9063  done
9064IFS=$as_save_IFS
9065
9066fi
9067fi
9068DLLTOOL=$ac_cv_prog_DLLTOOL
9069if test -n "$DLLTOOL"; then
9070  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9071printf "%s\n" "$DLLTOOL" >&6; }
9072else
9073  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9074printf "%s\n" "no" >&6; }
9075fi
9076
9077
9078fi
9079if test -z "$ac_cv_prog_DLLTOOL"; then
9080  ac_ct_DLLTOOL=$DLLTOOL
9081  # Extract the first word of "dlltool", so it can be a program name with args.
9082set dummy dlltool; ac_word=$2
9083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9084printf %s "checking for $ac_word... " >&6; }
9085if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9086then :
9087  printf %s "(cached) " >&6
9088else $as_nop
9089  if test -n "$ac_ct_DLLTOOL"; then
9090  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9091else
9092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9093for as_dir in $PATH
9094do
9095  IFS=$as_save_IFS
9096  case $as_dir in #(((
9097    '') as_dir=./ ;;
9098    */) ;;
9099    *) as_dir=$as_dir/ ;;
9100  esac
9101    for ac_exec_ext in '' $ac_executable_extensions; do
9102  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9103    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9104    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9105    break 2
9106  fi
9107done
9108  done
9109IFS=$as_save_IFS
9110
9111fi
9112fi
9113ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9114if test -n "$ac_ct_DLLTOOL"; then
9115  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9116printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9117else
9118  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119printf "%s\n" "no" >&6; }
9120fi
9121
9122  if test "x$ac_ct_DLLTOOL" = x; then
9123    DLLTOOL="false"
9124  else
9125    case $cross_compiling:$ac_tool_warned in
9126yes:)
9127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9128printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9129ac_tool_warned=yes ;;
9130esac
9131    DLLTOOL=$ac_ct_DLLTOOL
9132  fi
9133else
9134  DLLTOOL="$ac_cv_prog_DLLTOOL"
9135fi
9136
9137  if test -n "$ac_tool_prefix"; then
9138  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9139set dummy ${ac_tool_prefix}objdump; ac_word=$2
9140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9141printf %s "checking for $ac_word... " >&6; }
9142if test ${ac_cv_prog_OBJDUMP+y}
9143then :
9144  printf %s "(cached) " >&6
9145else $as_nop
9146  if test -n "$OBJDUMP"; then
9147  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9148else
9149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9150for as_dir in $PATH
9151do
9152  IFS=$as_save_IFS
9153  case $as_dir in #(((
9154    '') as_dir=./ ;;
9155    */) ;;
9156    *) as_dir=$as_dir/ ;;
9157  esac
9158    for ac_exec_ext in '' $ac_executable_extensions; do
9159  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9160    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9161    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9162    break 2
9163  fi
9164done
9165  done
9166IFS=$as_save_IFS
9167
9168fi
9169fi
9170OBJDUMP=$ac_cv_prog_OBJDUMP
9171if test -n "$OBJDUMP"; then
9172  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9173printf "%s\n" "$OBJDUMP" >&6; }
9174else
9175  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9176printf "%s\n" "no" >&6; }
9177fi
9178
9179
9180fi
9181if test -z "$ac_cv_prog_OBJDUMP"; then
9182  ac_ct_OBJDUMP=$OBJDUMP
9183  # Extract the first word of "objdump", so it can be a program name with args.
9184set dummy objdump; ac_word=$2
9185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9186printf %s "checking for $ac_word... " >&6; }
9187if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9188then :
9189  printf %s "(cached) " >&6
9190else $as_nop
9191  if test -n "$ac_ct_OBJDUMP"; then
9192  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9193else
9194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9195for as_dir in $PATH
9196do
9197  IFS=$as_save_IFS
9198  case $as_dir in #(((
9199    '') as_dir=./ ;;
9200    */) ;;
9201    *) as_dir=$as_dir/ ;;
9202  esac
9203    for ac_exec_ext in '' $ac_executable_extensions; do
9204  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9205    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9206    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9207    break 2
9208  fi
9209done
9210  done
9211IFS=$as_save_IFS
9212
9213fi
9214fi
9215ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9216if test -n "$ac_ct_OBJDUMP"; then
9217  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9218printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9219else
9220  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9221printf "%s\n" "no" >&6; }
9222fi
9223
9224  if test "x$ac_ct_OBJDUMP" = x; then
9225    OBJDUMP="false"
9226  else
9227    case $cross_compiling:$ac_tool_warned in
9228yes:)
9229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9230printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9231ac_tool_warned=yes ;;
9232esac
9233    OBJDUMP=$ac_ct_OBJDUMP
9234  fi
9235else
9236  OBJDUMP="$ac_cv_prog_OBJDUMP"
9237fi
9238
9239  ;;
9240esac
9241
9242test -z "$AS" && AS=as
9243
9244
9245
9246
9247
9248test -z "$DLLTOOL" && DLLTOOL=dlltool
9249
9250
9251
9252
9253
9254test -z "$OBJDUMP" && OBJDUMP=objdump
9255
9256
9257
9258
9259
9260
9261
9262        enable_dlopen=no
9263
9264
9265
9266            # Check whether --enable-shared was given.
9267if test ${enable_shared+y}
9268then :
9269  enableval=$enable_shared; p=${PACKAGE-default}
9270    case $enableval in
9271    yes) enable_shared=yes ;;
9272    no) enable_shared=no ;;
9273    *)
9274      enable_shared=no
9275      # Look at the argument we got.  We use all the common list separators.
9276      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9277      for pkg in $enableval; do
9278	IFS=$lt_save_ifs
9279	if test "X$pkg" = "X$p"; then
9280	  enable_shared=yes
9281	fi
9282      done
9283      IFS=$lt_save_ifs
9284      ;;
9285    esac
9286else $as_nop
9287  enable_shared=yes
9288fi
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298  # Check whether --enable-static was given.
9299if test ${enable_static+y}
9300then :
9301  enableval=$enable_static; p=${PACKAGE-default}
9302    case $enableval in
9303    yes) enable_static=yes ;;
9304    no) enable_static=no ;;
9305    *)
9306     enable_static=no
9307      # Look at the argument we got.  We use all the common list separators.
9308      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9309      for pkg in $enableval; do
9310	IFS=$lt_save_ifs
9311	if test "X$pkg" = "X$p"; then
9312	  enable_static=yes
9313	fi
9314      done
9315      IFS=$lt_save_ifs
9316      ;;
9317    esac
9318else $as_nop
9319  enable_static=yes
9320fi
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331# Check whether --with-pic was given.
9332if test ${with_pic+y}
9333then :
9334  withval=$with_pic; lt_p=${PACKAGE-default}
9335    case $withval in
9336    yes|no) pic_mode=$withval ;;
9337    *)
9338      pic_mode=default
9339      # Look at the argument we got.  We use all the common list separators.
9340      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9341      for lt_pkg in $withval; do
9342	IFS=$lt_save_ifs
9343	if test "X$lt_pkg" = "X$lt_p"; then
9344	  pic_mode=yes
9345	fi
9346      done
9347      IFS=$lt_save_ifs
9348      ;;
9349    esac
9350else $as_nop
9351  pic_mode=default
9352fi
9353
9354
9355
9356
9357
9358
9359
9360
9361  # Check whether --enable-fast-install was given.
9362if test ${enable_fast_install+y}
9363then :
9364  enableval=$enable_fast_install; p=${PACKAGE-default}
9365    case $enableval in
9366    yes) enable_fast_install=yes ;;
9367    no) enable_fast_install=no ;;
9368    *)
9369      enable_fast_install=no
9370      # Look at the argument we got.  We use all the common list separators.
9371      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9372      for pkg in $enableval; do
9373	IFS=$lt_save_ifs
9374	if test "X$pkg" = "X$p"; then
9375	  enable_fast_install=yes
9376	fi
9377      done
9378      IFS=$lt_save_ifs
9379      ;;
9380    esac
9381else $as_nop
9382  enable_fast_install=yes
9383fi
9384
9385
9386
9387
9388
9389
9390
9391
9392  shared_archive_member_spec=
9393case $host,$enable_shared in
9394power*-*-aix[5-9]*,yes)
9395  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9396printf %s "checking which variant of shared library versioning to provide... " >&6; }
9397
9398# Check whether --with-aix-soname was given.
9399if test ${with_aix_soname+y}
9400then :
9401  withval=$with_aix_soname; case $withval in
9402    aix|svr4|both)
9403      ;;
9404    *)
9405      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9406      ;;
9407    esac
9408    lt_cv_with_aix_soname=$with_aix_soname
9409else $as_nop
9410  if test ${lt_cv_with_aix_soname+y}
9411then :
9412  printf %s "(cached) " >&6
9413else $as_nop
9414  lt_cv_with_aix_soname=aix
9415fi
9416
9417    with_aix_soname=$lt_cv_with_aix_soname
9418fi
9419
9420  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9421printf "%s\n" "$with_aix_soname" >&6; }
9422  if test aix != "$with_aix_soname"; then
9423    # For the AIX way of multilib, we name the shared archive member
9424    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9425    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9426    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9427    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9428    if test 64 = "${OBJECT_MODE-32}"; then
9429      shared_archive_member_spec=shr_64
9430    else
9431      shared_archive_member_spec=shr
9432    fi
9433  fi
9434  ;;
9435*)
9436  with_aix_soname=aix
9437  ;;
9438esac
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449# This can be used to rebuild libtool when needed
9450LIBTOOL_DEPS=$ltmain
9451
9452# Always use our own libtool.
9453LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484test -z "$LN_S" && LN_S="ln -s"
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499if test -n "${ZSH_VERSION+set}"; then
9500   setopt NO_GLOB_SUBST
9501fi
9502
9503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9504printf %s "checking for objdir... " >&6; }
9505if test ${lt_cv_objdir+y}
9506then :
9507  printf %s "(cached) " >&6
9508else $as_nop
9509  rm -f .libs 2>/dev/null
9510mkdir .libs 2>/dev/null
9511if test -d .libs; then
9512  lt_cv_objdir=.libs
9513else
9514  # MS-DOS does not allow filenames that begin with a dot.
9515  lt_cv_objdir=_libs
9516fi
9517rmdir .libs 2>/dev/null
9518fi
9519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9520printf "%s\n" "$lt_cv_objdir" >&6; }
9521objdir=$lt_cv_objdir
9522
9523
9524
9525
9526
9527printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9528
9529
9530
9531
9532case $host_os in
9533aix3*)
9534  # AIX sometimes has problems with the GCC collect2 program.  For some
9535  # reason, if we set the COLLECT_NAMES environment variable, the problems
9536  # vanish in a puff of smoke.
9537  if test set != "${COLLECT_NAMES+set}"; then
9538    COLLECT_NAMES=
9539    export COLLECT_NAMES
9540  fi
9541  ;;
9542esac
9543
9544# Global variables:
9545ofile=libtool
9546can_build_shared=yes
9547
9548# All known linkers require a '.a' archive for static linking (except MSVC and
9549# ICC, which need '.lib').
9550libext=a
9551
9552with_gnu_ld=$lt_cv_prog_gnu_ld
9553
9554old_CC=$CC
9555old_CFLAGS=$CFLAGS
9556
9557# Set sane defaults for various variables
9558test -z "$CC" && CC=cc
9559test -z "$LTCC" && LTCC=$CC
9560test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9561test -z "$LD" && LD=ld
9562test -z "$ac_objext" && ac_objext=o
9563
9564func_cc_basename $compiler
9565cc_basename=$func_cc_basename_result
9566
9567
9568# Only perform the check for file, if the check method requires it
9569test -z "$MAGIC_CMD" && MAGIC_CMD=file
9570case $deplibs_check_method in
9571file_magic*)
9572  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9573    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9574printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9575if test ${lt_cv_path_MAGIC_CMD+y}
9576then :
9577  printf %s "(cached) " >&6
9578else $as_nop
9579  case $MAGIC_CMD in
9580[\\/*] |  ?:[\\/]*)
9581  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9582  ;;
9583*)
9584  lt_save_MAGIC_CMD=$MAGIC_CMD
9585  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9586  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9587  for ac_dir in $ac_dummy; do
9588    IFS=$lt_save_ifs
9589    test -z "$ac_dir" && ac_dir=.
9590    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9591      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9592      if test -n "$file_magic_test_file"; then
9593	case $deplibs_check_method in
9594	"file_magic "*)
9595	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9596	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9597	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9598	    $EGREP "$file_magic_regex" > /dev/null; then
9599	    :
9600	  else
9601	    cat <<_LT_EOF 1>&2
9602
9603*** Warning: the command libtool uses to detect shared libraries,
9604*** $file_magic_cmd, produces output that libtool cannot recognize.
9605*** The result is that libtool may fail to recognize shared libraries
9606*** as such.  This will affect the creation of libtool libraries that
9607*** depend on shared libraries, but programs linked with such libtool
9608*** libraries will work regardless of this problem.  Nevertheless, you
9609*** may want to report the problem to your system manager and/or to
9610*** [email protected]
9611
9612_LT_EOF
9613	  fi ;;
9614	esac
9615      fi
9616      break
9617    fi
9618  done
9619  IFS=$lt_save_ifs
9620  MAGIC_CMD=$lt_save_MAGIC_CMD
9621  ;;
9622esac
9623fi
9624
9625MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9626if test -n "$MAGIC_CMD"; then
9627  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9628printf "%s\n" "$MAGIC_CMD" >&6; }
9629else
9630  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631printf "%s\n" "no" >&6; }
9632fi
9633
9634
9635
9636
9637
9638if test -z "$lt_cv_path_MAGIC_CMD"; then
9639  if test -n "$ac_tool_prefix"; then
9640    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9641printf %s "checking for file... " >&6; }
9642if test ${lt_cv_path_MAGIC_CMD+y}
9643then :
9644  printf %s "(cached) " >&6
9645else $as_nop
9646  case $MAGIC_CMD in
9647[\\/*] |  ?:[\\/]*)
9648  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9649  ;;
9650*)
9651  lt_save_MAGIC_CMD=$MAGIC_CMD
9652  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9653  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9654  for ac_dir in $ac_dummy; do
9655    IFS=$lt_save_ifs
9656    test -z "$ac_dir" && ac_dir=.
9657    if test -f "$ac_dir/file"; then
9658      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9659      if test -n "$file_magic_test_file"; then
9660	case $deplibs_check_method in
9661	"file_magic "*)
9662	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9663	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9664	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9665	    $EGREP "$file_magic_regex" > /dev/null; then
9666	    :
9667	  else
9668	    cat <<_LT_EOF 1>&2
9669
9670*** Warning: the command libtool uses to detect shared libraries,
9671*** $file_magic_cmd, produces output that libtool cannot recognize.
9672*** The result is that libtool may fail to recognize shared libraries
9673*** as such.  This will affect the creation of libtool libraries that
9674*** depend on shared libraries, but programs linked with such libtool
9675*** libraries will work regardless of this problem.  Nevertheless, you
9676*** may want to report the problem to your system manager and/or to
9677*** [email protected]
9678
9679_LT_EOF
9680	  fi ;;
9681	esac
9682      fi
9683      break
9684    fi
9685  done
9686  IFS=$lt_save_ifs
9687  MAGIC_CMD=$lt_save_MAGIC_CMD
9688  ;;
9689esac
9690fi
9691
9692MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9693if test -n "$MAGIC_CMD"; then
9694  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9695printf "%s\n" "$MAGIC_CMD" >&6; }
9696else
9697  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9698printf "%s\n" "no" >&6; }
9699fi
9700
9701
9702  else
9703    MAGIC_CMD=:
9704  fi
9705fi
9706
9707  fi
9708  ;;
9709esac
9710
9711# Use C for the default configuration in the libtool script
9712
9713lt_save_CC=$CC
9714ac_ext=c
9715ac_cpp='$CPP $CPPFLAGS'
9716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9718ac_compiler_gnu=$ac_cv_c_compiler_gnu
9719
9720
9721# Source file extension for C test sources.
9722ac_ext=c
9723
9724# Object file extension for compiled C test sources.
9725objext=o
9726objext=$objext
9727
9728# Code to be used in simple compile tests
9729lt_simple_compile_test_code="int some_variable = 0;"
9730
9731# Code to be used in simple link tests
9732lt_simple_link_test_code='int main(){return(0);}'
9733
9734
9735
9736
9737
9738
9739
9740# If no C compiler was specified, use CC.
9741LTCC=${LTCC-"$CC"}
9742
9743# If no C compiler flags were specified, use CFLAGS.
9744LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9745
9746# Allow CC to be a program name with arguments.
9747compiler=$CC
9748
9749# Save the default compiler, since it gets overwritten when the other
9750# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9751compiler_DEFAULT=$CC
9752
9753# save warnings/boilerplate of simple test code
9754ac_outfile=conftest.$ac_objext
9755echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9756eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9757_lt_compiler_boilerplate=`cat conftest.err`
9758$RM conftest*
9759
9760ac_outfile=conftest.$ac_objext
9761echo "$lt_simple_link_test_code" >conftest.$ac_ext
9762eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9763_lt_linker_boilerplate=`cat conftest.err`
9764$RM -r conftest*
9765
9766
9767## CAVEAT EMPTOR:
9768## There is no encapsulation within the following macros, do not change
9769## the running order or otherwise move them around unless you know exactly
9770## what you are doing...
9771if test -n "$compiler"; then
9772
9773lt_prog_compiler_no_builtin_flag=
9774
9775if test yes = "$GCC"; then
9776  case $cc_basename in
9777  nvcc*)
9778    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9779  *)
9780    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9781  esac
9782
9783  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9784printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9785if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9786then :
9787  printf %s "(cached) " >&6
9788else $as_nop
9789  lt_cv_prog_compiler_rtti_exceptions=no
9790   ac_outfile=conftest.$ac_objext
9791   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9792   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9793   # Insert the option either (1) after the last *FLAGS variable, or
9794   # (2) before a word containing "conftest.", or (3) at the end.
9795   # Note that $ac_compile itself does not contain backslashes and begins
9796   # with a dollar sign (not a hyphen), so the echo should work correctly.
9797   # The option is referenced via a variable to avoid confusing sed.
9798   lt_compile=`echo "$ac_compile" | $SED \
9799   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9800   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9801   -e 's:$: $lt_compiler_flag:'`
9802   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9803   (eval "$lt_compile" 2>conftest.err)
9804   ac_status=$?
9805   cat conftest.err >&5
9806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807   if (exit $ac_status) && test -s "$ac_outfile"; then
9808     # The compiler can only warn and ignore the option if not recognized
9809     # So say no if there are warnings other than the usual output.
9810     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9811     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9812     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9813       lt_cv_prog_compiler_rtti_exceptions=yes
9814     fi
9815   fi
9816   $RM conftest*
9817
9818fi
9819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9820printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9821
9822if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9823    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9824else
9825    :
9826fi
9827
9828fi
9829
9830
9831
9832
9833
9834
9835  lt_prog_compiler_wl=
9836lt_prog_compiler_pic=
9837lt_prog_compiler_static=
9838
9839
9840  if test yes = "$GCC"; then
9841    lt_prog_compiler_wl='-Wl,'
9842    lt_prog_compiler_static='-static'
9843
9844    case $host_os in
9845      aix*)
9846      # All AIX code is PIC.
9847      if test ia64 = "$host_cpu"; then
9848	# AIX 5 now supports IA64 processor
9849	lt_prog_compiler_static='-Bstatic'
9850      fi
9851      lt_prog_compiler_pic='-fPIC'
9852      ;;
9853
9854    amigaos*)
9855      case $host_cpu in
9856      powerpc)
9857            # see comment about AmigaOS4 .so support
9858            lt_prog_compiler_pic='-fPIC'
9859        ;;
9860      m68k)
9861            # FIXME: we need at least 68020 code to build shared libraries, but
9862            # adding the '-m68020' flag to GCC prevents building anything better,
9863            # like '-m68040'.
9864            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9865        ;;
9866      esac
9867      ;;
9868
9869    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9870      # PIC is the default for these OSes.
9871      ;;
9872
9873    mingw* | cygwin* | pw32* | os2* | cegcc*)
9874      # This hack is so that the source file can tell whether it is being
9875      # built for inclusion in a dll (and should export symbols for example).
9876      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9877      # (--disable-auto-import) libraries
9878      lt_prog_compiler_pic='-DDLL_EXPORT'
9879      case $host_os in
9880      os2*)
9881	lt_prog_compiler_static='$wl-static'
9882	;;
9883      esac
9884      ;;
9885
9886    darwin* | rhapsody*)
9887      # PIC is the default on this platform
9888      # Common symbols not allowed in MH_DYLIB files
9889      lt_prog_compiler_pic='-fno-common'
9890      ;;
9891
9892    haiku*)
9893      # PIC is the default for Haiku.
9894      # The "-static" flag exists, but is broken.
9895      lt_prog_compiler_static=
9896      ;;
9897
9898    hpux*)
9899      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9900      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9901      # sets the default TLS model and affects inlining.
9902      case $host_cpu in
9903      hppa*64*)
9904	# +Z the default
9905	;;
9906      *)
9907	lt_prog_compiler_pic='-fPIC'
9908	;;
9909      esac
9910      ;;
9911
9912    interix[3-9]*)
9913      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9914      # Instead, we relocate shared libraries at runtime.
9915      ;;
9916
9917    msdosdjgpp*)
9918      # Just because we use GCC doesn't mean we suddenly get shared libraries
9919      # on systems that don't support them.
9920      lt_prog_compiler_can_build_shared=no
9921      enable_shared=no
9922      ;;
9923
9924    *nto* | *qnx*)
9925      # QNX uses GNU C++, but need to define -shared option too, otherwise
9926      # it will coredump.
9927      lt_prog_compiler_pic='-fPIC -shared'
9928      ;;
9929
9930    sysv4*MP*)
9931      if test -d /usr/nec; then
9932	lt_prog_compiler_pic=-Kconform_pic
9933      fi
9934      ;;
9935
9936    *)
9937      lt_prog_compiler_pic='-fPIC'
9938      ;;
9939    esac
9940
9941    case $cc_basename in
9942    nvcc*) # Cuda Compiler Driver 2.2
9943      lt_prog_compiler_wl='-Xlinker '
9944      if test -n "$lt_prog_compiler_pic"; then
9945        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9946      fi
9947      ;;
9948    esac
9949  else
9950    # PORTME Check for flag to pass linker flags through the system compiler.
9951    case $host_os in
9952    aix*)
9953      lt_prog_compiler_wl='-Wl,'
9954      if test ia64 = "$host_cpu"; then
9955	# AIX 5 now supports IA64 processor
9956	lt_prog_compiler_static='-Bstatic'
9957      else
9958	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9959      fi
9960      ;;
9961
9962    darwin* | rhapsody*)
9963      # PIC is the default on this platform
9964      # Common symbols not allowed in MH_DYLIB files
9965      lt_prog_compiler_pic='-fno-common'
9966      case $cc_basename in
9967      nagfor*)
9968        # NAG Fortran compiler
9969        lt_prog_compiler_wl='-Wl,-Wl,,'
9970        lt_prog_compiler_pic='-PIC'
9971        lt_prog_compiler_static='-Bstatic'
9972        ;;
9973      esac
9974      ;;
9975
9976    mingw* | cygwin* | pw32* | os2* | cegcc*)
9977      # This hack is so that the source file can tell whether it is being
9978      # built for inclusion in a dll (and should export symbols for example).
9979      lt_prog_compiler_pic='-DDLL_EXPORT'
9980      case $host_os in
9981      os2*)
9982	lt_prog_compiler_static='$wl-static'
9983	;;
9984      esac
9985      ;;
9986
9987    hpux9* | hpux10* | hpux11*)
9988      lt_prog_compiler_wl='-Wl,'
9989      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9990      # not for PA HP-UX.
9991      case $host_cpu in
9992      hppa*64*|ia64*)
9993	# +Z the default
9994	;;
9995      *)
9996	lt_prog_compiler_pic='+Z'
9997	;;
9998      esac
9999      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10000      lt_prog_compiler_static='$wl-a ${wl}archive'
10001      ;;
10002
10003    irix5* | irix6* | nonstopux*)
10004      lt_prog_compiler_wl='-Wl,'
10005      # PIC (with -KPIC) is the default.
10006      lt_prog_compiler_static='-non_shared'
10007      ;;
10008
10009    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10010      case $cc_basename in
10011      # old Intel for x86_64, which still supported -KPIC.
10012      ecc*)
10013	lt_prog_compiler_wl='-Wl,'
10014	lt_prog_compiler_pic='-KPIC'
10015	lt_prog_compiler_static='-static'
10016        ;;
10017      # icc used to be incompatible with GCC.
10018      # ICC 10 doesn't accept -KPIC any more.
10019      icc* | ifort*)
10020	lt_prog_compiler_wl='-Wl,'
10021	lt_prog_compiler_pic='-fPIC'
10022	lt_prog_compiler_static='-static'
10023        ;;
10024      # Lahey Fortran 8.1.
10025      lf95*)
10026	lt_prog_compiler_wl='-Wl,'
10027	lt_prog_compiler_pic='--shared'
10028	lt_prog_compiler_static='--static'
10029	;;
10030      nagfor*)
10031	# NAG Fortran compiler
10032	lt_prog_compiler_wl='-Wl,-Wl,,'
10033	lt_prog_compiler_pic='-PIC'
10034	lt_prog_compiler_static='-Bstatic'
10035	;;
10036      tcc*)
10037	# Fabrice Bellard et al's Tiny C Compiler
10038	lt_prog_compiler_wl='-Wl,'
10039	lt_prog_compiler_pic='-fPIC'
10040	lt_prog_compiler_static='-static'
10041	;;
10042      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10043        # Portland Group compilers (*not* the Pentium gcc compiler,
10044	# which looks to be a dead project)
10045	lt_prog_compiler_wl='-Wl,'
10046	lt_prog_compiler_pic='-fpic'
10047	lt_prog_compiler_static='-Bstatic'
10048        ;;
10049      ccc*)
10050        lt_prog_compiler_wl='-Wl,'
10051        # All Alpha code is PIC.
10052        lt_prog_compiler_static='-non_shared'
10053        ;;
10054      xl* | bgxl* | bgf* | mpixl*)
10055	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10056	lt_prog_compiler_wl='-Wl,'
10057	lt_prog_compiler_pic='-qpic'
10058	lt_prog_compiler_static='-qstaticlink'
10059	;;
10060      *)
10061	case `$CC -V 2>&1 | $SED 5q` in
10062	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10063	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10064	  lt_prog_compiler_pic='-KPIC'
10065	  lt_prog_compiler_static='-Bstatic'
10066	  lt_prog_compiler_wl=''
10067	  ;;
10068	*Sun\ F* | *Sun*Fortran*)
10069	  lt_prog_compiler_pic='-KPIC'
10070	  lt_prog_compiler_static='-Bstatic'
10071	  lt_prog_compiler_wl='-Qoption ld '
10072	  ;;
10073	*Sun\ C*)
10074	  # Sun C 5.9
10075	  lt_prog_compiler_pic='-KPIC'
10076	  lt_prog_compiler_static='-Bstatic'
10077	  lt_prog_compiler_wl='-Wl,'
10078	  ;;
10079        *Intel*\ [CF]*Compiler*)
10080	  lt_prog_compiler_wl='-Wl,'
10081	  lt_prog_compiler_pic='-fPIC'
10082	  lt_prog_compiler_static='-static'
10083	  ;;
10084	*Portland\ Group*)
10085	  lt_prog_compiler_wl='-Wl,'
10086	  lt_prog_compiler_pic='-fpic'
10087	  lt_prog_compiler_static='-Bstatic'
10088	  ;;
10089	esac
10090	;;
10091      esac
10092      ;;
10093
10094    newsos6)
10095      lt_prog_compiler_pic='-KPIC'
10096      lt_prog_compiler_static='-Bstatic'
10097      ;;
10098
10099    *nto* | *qnx*)
10100      # QNX uses GNU C++, but need to define -shared option too, otherwise
10101      # it will coredump.
10102      lt_prog_compiler_pic='-fPIC -shared'
10103      ;;
10104
10105    osf3* | osf4* | osf5*)
10106      lt_prog_compiler_wl='-Wl,'
10107      # All OSF/1 code is PIC.
10108      lt_prog_compiler_static='-non_shared'
10109      ;;
10110
10111    rdos*)
10112      lt_prog_compiler_static='-non_shared'
10113      ;;
10114
10115    solaris*)
10116      lt_prog_compiler_pic='-KPIC'
10117      lt_prog_compiler_static='-Bstatic'
10118      case $cc_basename in
10119      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10120	lt_prog_compiler_wl='-Qoption ld ';;
10121      *)
10122	lt_prog_compiler_wl='-Wl,';;
10123      esac
10124      ;;
10125
10126    sunos4*)
10127      lt_prog_compiler_wl='-Qoption ld '
10128      lt_prog_compiler_pic='-PIC'
10129      lt_prog_compiler_static='-Bstatic'
10130      ;;
10131
10132    sysv4 | sysv4.2uw2* | sysv4.3*)
10133      lt_prog_compiler_wl='-Wl,'
10134      lt_prog_compiler_pic='-KPIC'
10135      lt_prog_compiler_static='-Bstatic'
10136      ;;
10137
10138    sysv4*MP*)
10139      if test -d /usr/nec; then
10140	lt_prog_compiler_pic='-Kconform_pic'
10141	lt_prog_compiler_static='-Bstatic'
10142      fi
10143      ;;
10144
10145    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10146      lt_prog_compiler_wl='-Wl,'
10147      lt_prog_compiler_pic='-KPIC'
10148      lt_prog_compiler_static='-Bstatic'
10149      ;;
10150
10151    unicos*)
10152      lt_prog_compiler_wl='-Wl,'
10153      lt_prog_compiler_can_build_shared=no
10154      ;;
10155
10156    uts4*)
10157      lt_prog_compiler_pic='-pic'
10158      lt_prog_compiler_static='-Bstatic'
10159      ;;
10160
10161    *)
10162      lt_prog_compiler_can_build_shared=no
10163      ;;
10164    esac
10165  fi
10166
10167case $host_os in
10168  # For platforms that do not support PIC, -DPIC is meaningless:
10169  *djgpp*)
10170    lt_prog_compiler_pic=
10171    ;;
10172  *)
10173    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10174    ;;
10175esac
10176
10177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10178printf %s "checking for $compiler option to produce PIC... " >&6; }
10179if test ${lt_cv_prog_compiler_pic+y}
10180then :
10181  printf %s "(cached) " >&6
10182else $as_nop
10183  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10184fi
10185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10186printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10187lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10188
10189#
10190# Check to make sure the PIC flag actually works.
10191#
10192if test -n "$lt_prog_compiler_pic"; then
10193  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10194printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10195if test ${lt_cv_prog_compiler_pic_works+y}
10196then :
10197  printf %s "(cached) " >&6
10198else $as_nop
10199  lt_cv_prog_compiler_pic_works=no
10200   ac_outfile=conftest.$ac_objext
10201   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10202   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10203   # Insert the option either (1) after the last *FLAGS variable, or
10204   # (2) before a word containing "conftest.", or (3) at the end.
10205   # Note that $ac_compile itself does not contain backslashes and begins
10206   # with a dollar sign (not a hyphen), so the echo should work correctly.
10207   # The option is referenced via a variable to avoid confusing sed.
10208   lt_compile=`echo "$ac_compile" | $SED \
10209   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10210   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10211   -e 's:$: $lt_compiler_flag:'`
10212   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10213   (eval "$lt_compile" 2>conftest.err)
10214   ac_status=$?
10215   cat conftest.err >&5
10216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217   if (exit $ac_status) && test -s "$ac_outfile"; then
10218     # The compiler can only warn and ignore the option if not recognized
10219     # So say no if there are warnings other than the usual output.
10220     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10221     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10222     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10223       lt_cv_prog_compiler_pic_works=yes
10224     fi
10225   fi
10226   $RM conftest*
10227
10228fi
10229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10230printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10231
10232if test yes = "$lt_cv_prog_compiler_pic_works"; then
10233    case $lt_prog_compiler_pic in
10234     "" | " "*) ;;
10235     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10236     esac
10237else
10238    lt_prog_compiler_pic=
10239     lt_prog_compiler_can_build_shared=no
10240fi
10241
10242fi
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254#
10255# Check to make sure the static flag actually works.
10256#
10257wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10259printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10260if test ${lt_cv_prog_compiler_static_works+y}
10261then :
10262  printf %s "(cached) " >&6
10263else $as_nop
10264  lt_cv_prog_compiler_static_works=no
10265   save_LDFLAGS=$LDFLAGS
10266   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10267   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10268   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10269     # The linker can only warn and ignore the option if not recognized
10270     # So say no if there are warnings
10271     if test -s conftest.err; then
10272       # Append any errors to the config.log.
10273       cat conftest.err 1>&5
10274       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10275       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10276       if diff conftest.exp conftest.er2 >/dev/null; then
10277         lt_cv_prog_compiler_static_works=yes
10278       fi
10279     else
10280       lt_cv_prog_compiler_static_works=yes
10281     fi
10282   fi
10283   $RM -r conftest*
10284   LDFLAGS=$save_LDFLAGS
10285
10286fi
10287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10288printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10289
10290if test yes = "$lt_cv_prog_compiler_static_works"; then
10291    :
10292else
10293    lt_prog_compiler_static=
10294fi
10295
10296
10297
10298
10299
10300
10301
10302  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10303printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10304if test ${lt_cv_prog_compiler_c_o+y}
10305then :
10306  printf %s "(cached) " >&6
10307else $as_nop
10308  lt_cv_prog_compiler_c_o=no
10309   $RM -r conftest 2>/dev/null
10310   mkdir conftest
10311   cd conftest
10312   mkdir out
10313   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10314
10315   lt_compiler_flag="-o out/conftest2.$ac_objext"
10316   # Insert the option either (1) after the last *FLAGS variable, or
10317   # (2) before a word containing "conftest.", or (3) at the end.
10318   # Note that $ac_compile itself does not contain backslashes and begins
10319   # with a dollar sign (not a hyphen), so the echo should work correctly.
10320   lt_compile=`echo "$ac_compile" | $SED \
10321   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10322   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10323   -e 's:$: $lt_compiler_flag:'`
10324   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10325   (eval "$lt_compile" 2>out/conftest.err)
10326   ac_status=$?
10327   cat out/conftest.err >&5
10328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10330   then
10331     # The compiler can only warn and ignore the option if not recognized
10332     # So say no if there are warnings
10333     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10334     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10335     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10336       lt_cv_prog_compiler_c_o=yes
10337     fi
10338   fi
10339   chmod u+w . 2>&5
10340   $RM conftest*
10341   # SGI C++ compiler will create directory out/ii_files/ for
10342   # template instantiation
10343   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10344   $RM out/* && rmdir out
10345   cd ..
10346   $RM -r conftest
10347   $RM conftest*
10348
10349fi
10350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10351printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10352
10353
10354
10355
10356
10357
10358  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10359printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10360if test ${lt_cv_prog_compiler_c_o+y}
10361then :
10362  printf %s "(cached) " >&6
10363else $as_nop
10364  lt_cv_prog_compiler_c_o=no
10365   $RM -r conftest 2>/dev/null
10366   mkdir conftest
10367   cd conftest
10368   mkdir out
10369   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10370
10371   lt_compiler_flag="-o out/conftest2.$ac_objext"
10372   # Insert the option either (1) after the last *FLAGS variable, or
10373   # (2) before a word containing "conftest.", or (3) at the end.
10374   # Note that $ac_compile itself does not contain backslashes and begins
10375   # with a dollar sign (not a hyphen), so the echo should work correctly.
10376   lt_compile=`echo "$ac_compile" | $SED \
10377   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10378   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10379   -e 's:$: $lt_compiler_flag:'`
10380   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10381   (eval "$lt_compile" 2>out/conftest.err)
10382   ac_status=$?
10383   cat out/conftest.err >&5
10384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10386   then
10387     # The compiler can only warn and ignore the option if not recognized
10388     # So say no if there are warnings
10389     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10390     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10391     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10392       lt_cv_prog_compiler_c_o=yes
10393     fi
10394   fi
10395   chmod u+w . 2>&5
10396   $RM conftest*
10397   # SGI C++ compiler will create directory out/ii_files/ for
10398   # template instantiation
10399   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10400   $RM out/* && rmdir out
10401   cd ..
10402   $RM -r conftest
10403   $RM conftest*
10404
10405fi
10406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10407printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10408
10409
10410
10411
10412hard_links=nottested
10413if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10414  # do not overwrite the value of need_locks provided by the user
10415  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10416printf %s "checking if we can lock with hard links... " >&6; }
10417  hard_links=yes
10418  $RM conftest*
10419  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10420  touch conftest.a
10421  ln conftest.a conftest.b 2>&5 || hard_links=no
10422  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10423  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10424printf "%s\n" "$hard_links" >&6; }
10425  if test no = "$hard_links"; then
10426    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10427printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10428    need_locks=warn
10429  fi
10430else
10431  need_locks=no
10432fi
10433
10434
10435
10436
10437
10438
10439  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10440printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10441
10442  runpath_var=
10443  allow_undefined_flag=
10444  always_export_symbols=no
10445  archive_cmds=
10446  archive_expsym_cmds=
10447  compiler_needs_object=no
10448  enable_shared_with_static_runtimes=no
10449  export_dynamic_flag_spec=
10450  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10451  hardcode_automatic=no
10452  hardcode_direct=no
10453  hardcode_direct_absolute=no
10454  hardcode_libdir_flag_spec=
10455  hardcode_libdir_separator=
10456  hardcode_minus_L=no
10457  hardcode_shlibpath_var=unsupported
10458  inherit_rpath=no
10459  link_all_deplibs=unknown
10460  module_cmds=
10461  module_expsym_cmds=
10462  old_archive_from_new_cmds=
10463  old_archive_from_expsyms_cmds=
10464  thread_safe_flag_spec=
10465  whole_archive_flag_spec=
10466  # include_expsyms should be a list of space-separated symbols to be *always*
10467  # included in the symbol list
10468  include_expsyms=
10469  # exclude_expsyms can be an extended regexp of symbols to exclude
10470  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10471  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10472  # as well as any symbol that contains 'd'.
10473  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10474  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10475  # platforms (ab)use it in PIC code, but their linkers get confused if
10476  # the symbol is explicitly referenced.  Since portable code cannot
10477  # rely on this symbol name, it's probably fine to never include it in
10478  # preloaded symbol tables.
10479  # Exclude shared library initialization/finalization symbols.
10480  extract_expsyms_cmds=
10481
10482  case $host_os in
10483  cygwin* | mingw* | pw32* | cegcc*)
10484    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10485    # When not using gcc, we currently assume that we are using
10486    # Microsoft Visual C++ or Intel C++ Compiler.
10487    if test yes != "$GCC"; then
10488      with_gnu_ld=no
10489    fi
10490    ;;
10491  interix*)
10492    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10493    with_gnu_ld=yes
10494    ;;
10495  openbsd* | bitrig*)
10496    with_gnu_ld=no
10497    ;;
10498  esac
10499
10500  ld_shlibs=yes
10501
10502  # On some targets, GNU ld is compatible enough with the native linker
10503  # that we're better off using the native interface for both.
10504  lt_use_gnu_ld_interface=no
10505  if test yes = "$with_gnu_ld"; then
10506    case $host_os in
10507      aix*)
10508	# The AIX port of GNU ld has always aspired to compatibility
10509	# with the native linker.  However, as the warning in the GNU ld
10510	# block says, versions before 2.19.5* couldn't really create working
10511	# shared libraries, regardless of the interface used.
10512	case `$LD -v 2>&1` in
10513	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10514	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10515	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10516	  *)
10517	    lt_use_gnu_ld_interface=yes
10518	    ;;
10519	esac
10520	;;
10521      *)
10522	lt_use_gnu_ld_interface=yes
10523	;;
10524    esac
10525  fi
10526
10527  if test yes = "$lt_use_gnu_ld_interface"; then
10528    # If archive_cmds runs LD, not CC, wlarc should be empty
10529    wlarc='$wl'
10530
10531    # Set some defaults for GNU ld with shared library support. These
10532    # are reset later if shared libraries are not supported. Putting them
10533    # here allows them to be overridden if necessary.
10534    runpath_var=LD_RUN_PATH
10535    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10536    export_dynamic_flag_spec='$wl--export-dynamic'
10537    # ancient GNU ld didn't support --whole-archive et. al.
10538    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10539      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10540    else
10541      whole_archive_flag_spec=
10542    fi
10543    supports_anon_versioning=no
10544    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10545      *GNU\ gold*) supports_anon_versioning=yes ;;
10546      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10547      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10548      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10549      *\ 2.11.*) ;; # other 2.11 versions
10550      *) supports_anon_versioning=yes ;;
10551    esac
10552
10553    # See if GNU ld supports shared libraries.
10554    case $host_os in
10555    aix[3-9]*)
10556      # On AIX/PPC, the GNU linker is very broken
10557      if test ia64 != "$host_cpu"; then
10558	ld_shlibs=no
10559	cat <<_LT_EOF 1>&2
10560
10561*** Warning: the GNU linker, at least up to release 2.19, is reported
10562*** to be unable to reliably create shared libraries on AIX.
10563*** Therefore, libtool is disabling shared libraries support.  If you
10564*** really care for shared libraries, you may want to install binutils
10565*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10566*** You will then need to restart the configuration process.
10567
10568_LT_EOF
10569      fi
10570      ;;
10571
10572    amigaos*)
10573      case $host_cpu in
10574      powerpc)
10575            # see comment about AmigaOS4 .so support
10576            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10577            archive_expsym_cmds=''
10578        ;;
10579      m68k)
10580            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)'
10581            hardcode_libdir_flag_spec='-L$libdir'
10582            hardcode_minus_L=yes
10583        ;;
10584      esac
10585      ;;
10586
10587    beos*)
10588      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10589	allow_undefined_flag=unsupported
10590	# Joseph Beckenbach <[email protected]> says some releases of gcc
10591	# support --undefined.  This deserves some investigation.  FIXME
10592	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10593      else
10594	ld_shlibs=no
10595      fi
10596      ;;
10597
10598    cygwin* | mingw* | pw32* | cegcc*)
10599      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10600      # as there is no search path for DLLs.
10601      hardcode_libdir_flag_spec='-L$libdir'
10602      export_dynamic_flag_spec='$wl--export-all-symbols'
10603      allow_undefined_flag=unsupported
10604      always_export_symbols=no
10605      enable_shared_with_static_runtimes=yes
10606      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'
10607      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10608
10609      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10610        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10611	# If the export-symbols file already is a .def file, use it as
10612	# is; otherwise, prepend EXPORTS...
10613	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10614          cp $export_symbols $output_objdir/$soname.def;
10615        else
10616          echo EXPORTS > $output_objdir/$soname.def;
10617          cat $export_symbols >> $output_objdir/$soname.def;
10618        fi~
10619        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10620      else
10621	ld_shlibs=no
10622      fi
10623      ;;
10624
10625    haiku*)
10626      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10627      link_all_deplibs=yes
10628      ;;
10629
10630    os2*)
10631      hardcode_libdir_flag_spec='-L$libdir'
10632      hardcode_minus_L=yes
10633      allow_undefined_flag=unsupported
10634      shrext_cmds=.dll
10635      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10636	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10637	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10638	$ECHO EXPORTS >> $output_objdir/$libname.def~
10639	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10640	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10641	emximp -o $lib $output_objdir/$libname.def'
10642      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10643	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10644	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10645	$ECHO EXPORTS >> $output_objdir/$libname.def~
10646	prefix_cmds="$SED"~
10647	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10648	  prefix_cmds="$prefix_cmds -e 1d";
10649	fi~
10650	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10651	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10652	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10653	emximp -o $lib $output_objdir/$libname.def'
10654      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10655      enable_shared_with_static_runtimes=yes
10656      file_list_spec='@'
10657      ;;
10658
10659    interix[3-9]*)
10660      hardcode_direct=no
10661      hardcode_shlibpath_var=no
10662      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10663      export_dynamic_flag_spec='$wl-E'
10664      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10665      # Instead, shared libraries are loaded at an image base (0x10000000 by
10666      # default) and relocated if they conflict, which is a slow very memory
10667      # consuming and fragmenting process.  To avoid this, we pick a random,
10668      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10669      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10670      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10671      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'
10672      ;;
10673
10674    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10675      tmp_diet=no
10676      if test linux-dietlibc = "$host_os"; then
10677	case $cc_basename in
10678	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10679	esac
10680      fi
10681      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10682	 && test no = "$tmp_diet"
10683      then
10684	tmp_addflag=' $pic_flag'
10685	tmp_sharedflag='-shared'
10686	case $cc_basename,$host_cpu in
10687        pgcc*)				# Portland Group C compiler
10688	  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'
10689	  tmp_addflag=' $pic_flag'
10690	  ;;
10691	pgf77* | pgf90* | pgf95* | pgfortran*)
10692					# Portland Group f77 and f90 compilers
10693	  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'
10694	  tmp_addflag=' $pic_flag -Mnomain' ;;
10695	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10696	  tmp_addflag=' -i_dynamic' ;;
10697	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10698	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10699	ifc* | ifort*)			# Intel Fortran compiler
10700	  tmp_addflag=' -nofor_main' ;;
10701	lf95*)				# Lahey Fortran 8.1
10702	  whole_archive_flag_spec=
10703	  tmp_sharedflag='--shared' ;;
10704        nagfor*)                        # NAGFOR 5.3
10705          tmp_sharedflag='-Wl,-shared' ;;
10706	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10707	  tmp_sharedflag='-qmkshrobj'
10708	  tmp_addflag= ;;
10709	nvcc*)	# Cuda Compiler Driver 2.2
10710	  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'
10711	  compiler_needs_object=yes
10712	  ;;
10713	esac
10714	case `$CC -V 2>&1 | $SED 5q` in
10715	*Sun\ C*)			# Sun C 5.9
10716	  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'
10717	  compiler_needs_object=yes
10718	  tmp_sharedflag='-G' ;;
10719	*Sun\ F*)			# Sun Fortran 8.3
10720	  tmp_sharedflag='-G' ;;
10721	esac
10722	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10723
10724        if test yes = "$supports_anon_versioning"; then
10725          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10726            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10727            echo "local: *; };" >> $output_objdir/$libname.ver~
10728            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10729        fi
10730
10731	case $cc_basename in
10732	tcc*)
10733	  export_dynamic_flag_spec='-rdynamic'
10734	  ;;
10735	xlf* | bgf* | bgxlf* | mpixlf*)
10736	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10737	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10738	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10739	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10740	  if test yes = "$supports_anon_versioning"; then
10741	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10742              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10743              echo "local: *; };" >> $output_objdir/$libname.ver~
10744              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10745	  fi
10746	  ;;
10747	esac
10748      else
10749        ld_shlibs=no
10750      fi
10751      ;;
10752
10753    netbsd*)
10754      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10755	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10756	wlarc=
10757      else
10758	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10759	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10760      fi
10761      ;;
10762
10763    solaris*)
10764      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10765	ld_shlibs=no
10766	cat <<_LT_EOF 1>&2
10767
10768*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10769*** create shared libraries on Solaris systems.  Therefore, libtool
10770*** is disabling shared libraries support.  We urge you to upgrade GNU
10771*** binutils to release 2.9.1 or newer.  Another option is to modify
10772*** your PATH or compiler configuration so that the native linker is
10773*** used, and then restart.
10774
10775_LT_EOF
10776      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10777	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10778	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10779      else
10780	ld_shlibs=no
10781      fi
10782      ;;
10783
10784    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10785      case `$LD -v 2>&1` in
10786        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10787	ld_shlibs=no
10788	cat <<_LT_EOF 1>&2
10789
10790*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10791*** reliably create shared libraries on SCO systems.  Therefore, libtool
10792*** is disabling shared libraries support.  We urge you to upgrade GNU
10793*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10794*** your PATH or compiler configuration so that the native linker is
10795*** used, and then restart.
10796
10797_LT_EOF
10798	;;
10799	*)
10800	  # For security reasons, it is highly recommended that you always
10801	  # use absolute paths for naming shared libraries, and exclude the
10802	  # DT_RUNPATH tag from executables and libraries.  But doing so
10803	  # requires that you compile everything twice, which is a pain.
10804	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10805	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10806	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10807	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10808	  else
10809	    ld_shlibs=no
10810	  fi
10811	;;
10812      esac
10813      ;;
10814
10815    sunos4*)
10816      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10817      wlarc=
10818      hardcode_direct=yes
10819      hardcode_shlibpath_var=no
10820      ;;
10821
10822    *)
10823      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10824	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10825	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10826      else
10827	ld_shlibs=no
10828      fi
10829      ;;
10830    esac
10831
10832    if test no = "$ld_shlibs"; then
10833      runpath_var=
10834      hardcode_libdir_flag_spec=
10835      export_dynamic_flag_spec=
10836      whole_archive_flag_spec=
10837    fi
10838  else
10839    # PORTME fill in a description of your system's linker (not GNU ld)
10840    case $host_os in
10841    aix3*)
10842      allow_undefined_flag=unsupported
10843      always_export_symbols=yes
10844      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'
10845      # Note: this linker hardcodes the directories in LIBPATH if there
10846      # are no directories specified by -L.
10847      hardcode_minus_L=yes
10848      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10849	# Neither direct hardcoding nor static linking is supported with a
10850	# broken collect2.
10851	hardcode_direct=unsupported
10852      fi
10853      ;;
10854
10855    aix[4-9]*)
10856      if test ia64 = "$host_cpu"; then
10857	# On IA64, the linker does run time linking by default, so we don't
10858	# have to do anything special.
10859	aix_use_runtimelinking=no
10860	exp_sym_flag='-Bexport'
10861	no_entry_flag=
10862      else
10863	# If we're using GNU nm, then we don't want the "-C" option.
10864	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10865	# Without the "-l" option, or with the "-B" option, AIX nm treats
10866	# weak defined symbols like other global defined symbols, whereas
10867	# GNU nm marks them as "W".
10868	# While the 'weak' keyword is ignored in the Export File, we need
10869	# it in the Import File for the 'aix-soname' feature, so we have
10870	# to replace the "-B" option with "-P" for AIX nm.
10871	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10872	  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'
10873	else
10874	  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'
10875	fi
10876	aix_use_runtimelinking=no
10877
10878	# Test if we are trying to use run time linking or normal
10879	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10880	# have runtime linking enabled, and use it for executables.
10881	# For shared libraries, we enable/disable runtime linking
10882	# depending on the kind of the shared library created -
10883	# when "with_aix_soname,aix_use_runtimelinking" is:
10884	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10885	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10886	#            lib.a           static archive
10887	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10888	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10889	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10890	#            lib.a(lib.so.V) shared, rtl:no
10891	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10892	#            lib.a           static archive
10893	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10894	  for ld_flag in $LDFLAGS; do
10895	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10896	    aix_use_runtimelinking=yes
10897	    break
10898	  fi
10899	  done
10900	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10901	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10902	    # so we don't have lib.a shared libs to link our executables.
10903	    # We have to force runtime linking in this case.
10904	    aix_use_runtimelinking=yes
10905	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10906	  fi
10907	  ;;
10908	esac
10909
10910	exp_sym_flag='-bexport'
10911	no_entry_flag='-bnoentry'
10912      fi
10913
10914      # When large executables or shared objects are built, AIX ld can
10915      # have problems creating the table of contents.  If linking a library
10916      # or program results in "error TOC overflow" add -mminimal-toc to
10917      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10918      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10919
10920      archive_cmds=''
10921      hardcode_direct=yes
10922      hardcode_direct_absolute=yes
10923      hardcode_libdir_separator=':'
10924      link_all_deplibs=yes
10925      file_list_spec='$wl-f,'
10926      case $with_aix_soname,$aix_use_runtimelinking in
10927      aix,*) ;; # traditional, no import file
10928      svr4,* | *,yes) # use import file
10929	# The Import File defines what to hardcode.
10930	hardcode_direct=no
10931	hardcode_direct_absolute=no
10932	;;
10933      esac
10934
10935      if test yes = "$GCC"; then
10936	case $host_os in aix4.[012]|aix4.[012].*)
10937	# We only want to do this on AIX 4.2 and lower, the check
10938	# below for broken collect2 doesn't work under 4.3+
10939	  collect2name=`$CC -print-prog-name=collect2`
10940	  if test -f "$collect2name" &&
10941	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10942	  then
10943	  # We have reworked collect2
10944	  :
10945	  else
10946	  # We have old collect2
10947	  hardcode_direct=unsupported
10948	  # It fails to find uninstalled libraries when the uninstalled
10949	  # path is not listed in the libpath.  Setting hardcode_minus_L
10950	  # to unsupported forces relinking
10951	  hardcode_minus_L=yes
10952	  hardcode_libdir_flag_spec='-L$libdir'
10953	  hardcode_libdir_separator=
10954	  fi
10955	  ;;
10956	esac
10957	shared_flag='-shared'
10958	if test yes = "$aix_use_runtimelinking"; then
10959	  shared_flag="$shared_flag "'$wl-G'
10960	fi
10961	# Need to ensure runtime linking is disabled for the traditional
10962	# shared library, or the linker may eventually find shared libraries
10963	# /with/ Import File - we do not want to mix them.
10964	shared_flag_aix='-shared'
10965	shared_flag_svr4='-shared $wl-G'
10966      else
10967	# not using gcc
10968	if test ia64 = "$host_cpu"; then
10969	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10970	# chokes on -Wl,-G. The following line is correct:
10971	  shared_flag='-G'
10972	else
10973	  if test yes = "$aix_use_runtimelinking"; then
10974	    shared_flag='$wl-G'
10975	  else
10976	    shared_flag='$wl-bM:SRE'
10977	  fi
10978	  shared_flag_aix='$wl-bM:SRE'
10979	  shared_flag_svr4='$wl-G'
10980	fi
10981      fi
10982
10983      export_dynamic_flag_spec='$wl-bexpall'
10984      # It seems that -bexpall does not export symbols beginning with
10985      # underscore (_), so it is better to generate a list of symbols to export.
10986      always_export_symbols=yes
10987      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10988	# Warning - without using the other runtime loading flags (-brtl),
10989	# -berok will link without error, but may produce a broken library.
10990	allow_undefined_flag='-berok'
10991        # Determine the default libpath from the value encoded in an
10992        # empty executable.
10993        if test set = "${lt_cv_aix_libpath+set}"; then
10994  aix_libpath=$lt_cv_aix_libpath
10995else
10996  if test ${lt_cv_aix_libpath_+y}
10997then :
10998  printf %s "(cached) " >&6
10999else $as_nop
11000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11001/* end confdefs.h.  */
11002
11003int
11004main (void)
11005{
11006
11007  ;
11008  return 0;
11009}
11010_ACEOF
11011if ac_fn_c_try_link "$LINENO"
11012then :
11013
11014  lt_aix_libpath_sed='
11015      /Import File Strings/,/^$/ {
11016	  /^0/ {
11017	      s/^0  *\([^ ]*\) *$/\1/
11018	      p
11019	  }
11020      }'
11021  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11022  # Check for a 64-bit object if we didn't find anything.
11023  if test -z "$lt_cv_aix_libpath_"; then
11024    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11025  fi
11026fi
11027rm -f core conftest.err conftest.$ac_objext conftest.beam \
11028    conftest$ac_exeext conftest.$ac_ext
11029  if test -z "$lt_cv_aix_libpath_"; then
11030    lt_cv_aix_libpath_=/usr/lib:/lib
11031  fi
11032
11033fi
11034
11035  aix_libpath=$lt_cv_aix_libpath_
11036fi
11037
11038        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11039        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
11040      else
11041	if test ia64 = "$host_cpu"; then
11042	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11043	  allow_undefined_flag="-z nodefs"
11044	  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"
11045	else
11046	 # Determine the default libpath from the value encoded in an
11047	 # empty executable.
11048	 if test set = "${lt_cv_aix_libpath+set}"; then
11049  aix_libpath=$lt_cv_aix_libpath
11050else
11051  if test ${lt_cv_aix_libpath_+y}
11052then :
11053  printf %s "(cached) " >&6
11054else $as_nop
11055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11056/* end confdefs.h.  */
11057
11058int
11059main (void)
11060{
11061
11062  ;
11063  return 0;
11064}
11065_ACEOF
11066if ac_fn_c_try_link "$LINENO"
11067then :
11068
11069  lt_aix_libpath_sed='
11070      /Import File Strings/,/^$/ {
11071	  /^0/ {
11072	      s/^0  *\([^ ]*\) *$/\1/
11073	      p
11074	  }
11075      }'
11076  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11077  # Check for a 64-bit object if we didn't find anything.
11078  if test -z "$lt_cv_aix_libpath_"; then
11079    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11080  fi
11081fi
11082rm -f core conftest.err conftest.$ac_objext conftest.beam \
11083    conftest$ac_exeext conftest.$ac_ext
11084  if test -z "$lt_cv_aix_libpath_"; then
11085    lt_cv_aix_libpath_=/usr/lib:/lib
11086  fi
11087
11088fi
11089
11090  aix_libpath=$lt_cv_aix_libpath_
11091fi
11092
11093	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11094	  # Warning - without using the other run time loading flags,
11095	  # -berok will link without error, but may produce a broken library.
11096	  no_undefined_flag=' $wl-bernotok'
11097	  allow_undefined_flag=' $wl-berok'
11098	  if test yes = "$with_gnu_ld"; then
11099	    # We only use this code for GNU lds that support --whole-archive.
11100	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11101	  else
11102	    # Exported symbols can be pulled into shared objects from archives
11103	    whole_archive_flag_spec='$convenience'
11104	  fi
11105	  archive_cmds_need_lc=yes
11106	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11107	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11108	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11109	  if test svr4 != "$with_aix_soname"; then
11110	    # This is similar to how AIX traditionally builds its shared libraries.
11111	    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'
11112	  fi
11113	  if test aix != "$with_aix_soname"; then
11114	    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'
11115	  else
11116	    # used by -dlpreopen to get the symbols
11117	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11118	  fi
11119	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11120	fi
11121      fi
11122      ;;
11123
11124    amigaos*)
11125      case $host_cpu in
11126      powerpc)
11127            # see comment about AmigaOS4 .so support
11128            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11129            archive_expsym_cmds=''
11130        ;;
11131      m68k)
11132            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)'
11133            hardcode_libdir_flag_spec='-L$libdir'
11134            hardcode_minus_L=yes
11135        ;;
11136      esac
11137      ;;
11138
11139    bsdi[45]*)
11140      export_dynamic_flag_spec=-rdynamic
11141      ;;
11142
11143    cygwin* | mingw* | pw32* | cegcc*)
11144      # When not using gcc, we currently assume that we are using
11145      # Microsoft Visual C++ or Intel C++ Compiler.
11146      # hardcode_libdir_flag_spec is actually meaningless, as there is
11147      # no search path for DLLs.
11148      case $cc_basename in
11149      cl* | icl*)
11150	# Native MSVC or ICC
11151	hardcode_libdir_flag_spec=' '
11152	allow_undefined_flag=unsupported
11153	always_export_symbols=yes
11154	file_list_spec='@'
11155	# Tell ltmain to make .lib files, not .a files.
11156	libext=lib
11157	# Tell ltmain to make .dll files, not .so files.
11158	shrext_cmds=.dll
11159	# FIXME: Setting linknames here is a bad hack.
11160	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11161	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11162            cp "$export_symbols" "$output_objdir/$soname.def";
11163            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11164          else
11165            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11166          fi~
11167          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11168          linknames='
11169	# The linker will not automatically build a static lib if we build a DLL.
11170	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11171	enable_shared_with_static_runtimes=yes
11172	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11173	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11174	# Don't use ranlib
11175	old_postinstall_cmds='chmod 644 $oldlib'
11176	postlink_cmds='lt_outputfile="@OUTPUT@"~
11177          lt_tool_outputfile="@TOOL_OUTPUT@"~
11178          case $lt_outputfile in
11179            *.exe|*.EXE) ;;
11180            *)
11181              lt_outputfile=$lt_outputfile.exe
11182              lt_tool_outputfile=$lt_tool_outputfile.exe
11183              ;;
11184          esac~
11185          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11186            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11187            $RM "$lt_outputfile.manifest";
11188          fi'
11189	;;
11190      *)
11191	# Assume MSVC and ICC wrapper
11192	hardcode_libdir_flag_spec=' '
11193	allow_undefined_flag=unsupported
11194	# Tell ltmain to make .lib files, not .a files.
11195	libext=lib
11196	# Tell ltmain to make .dll files, not .so files.
11197	shrext_cmds=.dll
11198	# FIXME: Setting linknames here is a bad hack.
11199	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11200	# The linker will automatically build a .lib file if we build a DLL.
11201	old_archive_from_new_cmds='true'
11202	# FIXME: Should let the user specify the lib program.
11203	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11204	enable_shared_with_static_runtimes=yes
11205	;;
11206      esac
11207      ;;
11208
11209    darwin* | rhapsody*)
11210
11211
11212  archive_cmds_need_lc=no
11213  hardcode_direct=no
11214  hardcode_automatic=yes
11215  hardcode_shlibpath_var=unsupported
11216  if test yes = "$lt_cv_ld_force_load"; then
11217    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\"`'
11218
11219  else
11220    whole_archive_flag_spec=''
11221  fi
11222  link_all_deplibs=yes
11223  allow_undefined_flag=$_lt_dar_allow_undefined
11224  case $cc_basename in
11225     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11226     *) _lt_dar_can_shared=$GCC ;;
11227  esac
11228  if test yes = "$_lt_dar_can_shared"; then
11229    output_verbose_link_cmd=func_echo_all
11230    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11231    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11232    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"
11233    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"
11234
11235  else
11236  ld_shlibs=no
11237  fi
11238
11239      ;;
11240
11241    dgux*)
11242      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11243      hardcode_libdir_flag_spec='-L$libdir'
11244      hardcode_shlibpath_var=no
11245      ;;
11246
11247    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11248    # support.  Future versions do this automatically, but an explicit c++rt0.o
11249    # does not break anything, and helps significantly (at the cost of a little
11250    # extra space).
11251    freebsd2.2*)
11252      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11253      hardcode_libdir_flag_spec='-R$libdir'
11254      hardcode_direct=yes
11255      hardcode_shlibpath_var=no
11256      ;;
11257
11258    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11259    freebsd2.*)
11260      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11261      hardcode_direct=yes
11262      hardcode_minus_L=yes
11263      hardcode_shlibpath_var=no
11264      ;;
11265
11266    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11267    freebsd* | dragonfly* | midnightbsd*)
11268      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11269      hardcode_libdir_flag_spec='-R$libdir'
11270      hardcode_direct=yes
11271      hardcode_shlibpath_var=no
11272      ;;
11273
11274    hpux9*)
11275      if test yes = "$GCC"; then
11276	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'
11277      else
11278	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'
11279      fi
11280      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11281      hardcode_libdir_separator=:
11282      hardcode_direct=yes
11283
11284      # hardcode_minus_L: Not really in the search PATH,
11285      # but as the default location of the library.
11286      hardcode_minus_L=yes
11287      export_dynamic_flag_spec='$wl-E'
11288      ;;
11289
11290    hpux10*)
11291      if test yes,no = "$GCC,$with_gnu_ld"; then
11292	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11293      else
11294	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11295      fi
11296      if test no = "$with_gnu_ld"; then
11297	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11298	hardcode_libdir_separator=:
11299	hardcode_direct=yes
11300	hardcode_direct_absolute=yes
11301	export_dynamic_flag_spec='$wl-E'
11302	# hardcode_minus_L: Not really in the search PATH,
11303	# but as the default location of the library.
11304	hardcode_minus_L=yes
11305      fi
11306      ;;
11307
11308    hpux11*)
11309      if test yes,no = "$GCC,$with_gnu_ld"; then
11310	case $host_cpu in
11311	hppa*64*)
11312	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11313	  ;;
11314	ia64*)
11315	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11316	  ;;
11317	*)
11318	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11319	  ;;
11320	esac
11321      else
11322	case $host_cpu in
11323	hppa*64*)
11324	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11325	  ;;
11326	ia64*)
11327	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11328	  ;;
11329	*)
11330
11331	  # Older versions of the 11.00 compiler do not understand -b yet
11332	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11333	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11334printf %s "checking if $CC understands -b... " >&6; }
11335if test ${lt_cv_prog_compiler__b+y}
11336then :
11337  printf %s "(cached) " >&6
11338else $as_nop
11339  lt_cv_prog_compiler__b=no
11340   save_LDFLAGS=$LDFLAGS
11341   LDFLAGS="$LDFLAGS -b"
11342   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11343   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11344     # The linker can only warn and ignore the option if not recognized
11345     # So say no if there are warnings
11346     if test -s conftest.err; then
11347       # Append any errors to the config.log.
11348       cat conftest.err 1>&5
11349       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11350       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11351       if diff conftest.exp conftest.er2 >/dev/null; then
11352         lt_cv_prog_compiler__b=yes
11353       fi
11354     else
11355       lt_cv_prog_compiler__b=yes
11356     fi
11357   fi
11358   $RM -r conftest*
11359   LDFLAGS=$save_LDFLAGS
11360
11361fi
11362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11363printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11364
11365if test yes = "$lt_cv_prog_compiler__b"; then
11366    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11367else
11368    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11369fi
11370
11371	  ;;
11372	esac
11373      fi
11374      if test no = "$with_gnu_ld"; then
11375	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11376	hardcode_libdir_separator=:
11377
11378	case $host_cpu in
11379	hppa*64*|ia64*)
11380	  hardcode_direct=no
11381	  hardcode_shlibpath_var=no
11382	  ;;
11383	*)
11384	  hardcode_direct=yes
11385	  hardcode_direct_absolute=yes
11386	  export_dynamic_flag_spec='$wl-E'
11387
11388	  # hardcode_minus_L: Not really in the search PATH,
11389	  # but as the default location of the library.
11390	  hardcode_minus_L=yes
11391	  ;;
11392	esac
11393      fi
11394      ;;
11395
11396    irix5* | irix6* | nonstopux*)
11397      if test yes = "$GCC"; then
11398	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'
11399	# Try to use the -exported_symbol ld option, if it does not
11400	# work, assume that -exports_file does not work either and
11401	# implicitly export all symbols.
11402	# This should be the same for all languages, so no per-tag cache variable.
11403	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11404printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11405if test ${lt_cv_irix_exported_symbol+y}
11406then :
11407  printf %s "(cached) " >&6
11408else $as_nop
11409  save_LDFLAGS=$LDFLAGS
11410	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11411	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11412/* end confdefs.h.  */
11413int foo (void) { return 0; }
11414_ACEOF
11415if ac_fn_c_try_link "$LINENO"
11416then :
11417  lt_cv_irix_exported_symbol=yes
11418else $as_nop
11419  lt_cv_irix_exported_symbol=no
11420fi
11421rm -f core conftest.err conftest.$ac_objext conftest.beam \
11422    conftest$ac_exeext conftest.$ac_ext
11423           LDFLAGS=$save_LDFLAGS
11424fi
11425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11426printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11427	if test yes = "$lt_cv_irix_exported_symbol"; then
11428          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'
11429	fi
11430      else
11431	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'
11432	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'
11433      fi
11434      archive_cmds_need_lc='no'
11435      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11436      hardcode_libdir_separator=:
11437      inherit_rpath=yes
11438      link_all_deplibs=yes
11439      ;;
11440
11441    linux*)
11442      case $cc_basename in
11443      tcc*)
11444	# Fabrice Bellard et al's Tiny C Compiler
11445	ld_shlibs=yes
11446	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11447	;;
11448      esac
11449      ;;
11450
11451    netbsd*)
11452      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11453	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11454      else
11455	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11456      fi
11457      hardcode_libdir_flag_spec='-R$libdir'
11458      hardcode_direct=yes
11459      hardcode_shlibpath_var=no
11460      ;;
11461
11462    newsos6)
11463      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11464      hardcode_direct=yes
11465      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11466      hardcode_libdir_separator=:
11467      hardcode_shlibpath_var=no
11468      ;;
11469
11470    *nto* | *qnx*)
11471      ;;
11472
11473    openbsd* | bitrig*)
11474      if test -f /usr/libexec/ld.so; then
11475	hardcode_direct=yes
11476	hardcode_shlibpath_var=no
11477	hardcode_direct_absolute=yes
11478	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11479	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11480	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11481	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11482	  export_dynamic_flag_spec='$wl-E'
11483	else
11484	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11485	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11486	fi
11487      else
11488	ld_shlibs=no
11489      fi
11490      ;;
11491
11492    os2*)
11493      hardcode_libdir_flag_spec='-L$libdir'
11494      hardcode_minus_L=yes
11495      allow_undefined_flag=unsupported
11496      shrext_cmds=.dll
11497      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11498	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11499	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11500	$ECHO EXPORTS >> $output_objdir/$libname.def~
11501	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11502	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11503	emximp -o $lib $output_objdir/$libname.def'
11504      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11505	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11506	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11507	$ECHO EXPORTS >> $output_objdir/$libname.def~
11508	prefix_cmds="$SED"~
11509	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11510	  prefix_cmds="$prefix_cmds -e 1d";
11511	fi~
11512	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11513	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11514	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11515	emximp -o $lib $output_objdir/$libname.def'
11516      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11517      enable_shared_with_static_runtimes=yes
11518      file_list_spec='@'
11519      ;;
11520
11521    osf3*)
11522      if test yes = "$GCC"; then
11523	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11524	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'
11525      else
11526	allow_undefined_flag=' -expect_unresolved \*'
11527	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'
11528      fi
11529      archive_cmds_need_lc='no'
11530      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11531      hardcode_libdir_separator=:
11532      ;;
11533
11534    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11535      if test yes = "$GCC"; then
11536	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11537	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'
11538	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11539      else
11540	allow_undefined_flag=' -expect_unresolved \*'
11541	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'
11542	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~
11543          $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'
11544
11545	# Both c and cxx compiler support -rpath directly
11546	hardcode_libdir_flag_spec='-rpath $libdir'
11547      fi
11548      archive_cmds_need_lc='no'
11549      hardcode_libdir_separator=:
11550      ;;
11551
11552    solaris*)
11553      no_undefined_flag=' -z defs'
11554      if test yes = "$GCC"; then
11555	wlarc='$wl'
11556	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11557	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11558          $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'
11559      else
11560	case `$CC -V 2>&1` in
11561	*"Compilers 5.0"*)
11562	  wlarc=''
11563	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11564	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11565            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11566	  ;;
11567	*)
11568	  wlarc='$wl'
11569	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11570	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11571            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11572	  ;;
11573	esac
11574      fi
11575      hardcode_libdir_flag_spec='-R$libdir'
11576      hardcode_shlibpath_var=no
11577      case $host_os in
11578      solaris2.[0-5] | solaris2.[0-5].*) ;;
11579      *)
11580	# The compiler driver will combine and reorder linker options,
11581	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11582	# but is careful enough not to reorder.
11583	# Supported since Solaris 2.6 (maybe 2.5.1?)
11584	if test yes = "$GCC"; then
11585	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11586	else
11587	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11588	fi
11589	;;
11590      esac
11591      link_all_deplibs=yes
11592      ;;
11593
11594    sunos4*)
11595      if test sequent = "$host_vendor"; then
11596	# Use $CC to link under sequent, because it throws in some extra .o
11597	# files that make .init and .fini sections work.
11598	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11599      else
11600	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11601      fi
11602      hardcode_libdir_flag_spec='-L$libdir'
11603      hardcode_direct=yes
11604      hardcode_minus_L=yes
11605      hardcode_shlibpath_var=no
11606      ;;
11607
11608    sysv4)
11609      case $host_vendor in
11610	sni)
11611	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11612	  hardcode_direct=yes # is this really true???
11613	;;
11614	siemens)
11615	  ## LD is ld it makes a PLAMLIB
11616	  ## CC just makes a GrossModule.
11617	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11618	  reload_cmds='$CC -r -o $output$reload_objs'
11619	  hardcode_direct=no
11620        ;;
11621	motorola)
11622	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11623	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11624	;;
11625      esac
11626      runpath_var='LD_RUN_PATH'
11627      hardcode_shlibpath_var=no
11628      ;;
11629
11630    sysv4.3*)
11631      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11632      hardcode_shlibpath_var=no
11633      export_dynamic_flag_spec='-Bexport'
11634      ;;
11635
11636    sysv4*MP*)
11637      if test -d /usr/nec; then
11638	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11639	hardcode_shlibpath_var=no
11640	runpath_var=LD_RUN_PATH
11641	hardcode_runpath_var=yes
11642	ld_shlibs=yes
11643      fi
11644      ;;
11645
11646    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11647      no_undefined_flag='$wl-z,text'
11648      archive_cmds_need_lc=no
11649      hardcode_shlibpath_var=no
11650      runpath_var='LD_RUN_PATH'
11651
11652      if test yes = "$GCC"; then
11653	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11654	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11655      else
11656	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11657	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11658      fi
11659      ;;
11660
11661    sysv5* | sco3.2v5* | sco5v6*)
11662      # Note: We CANNOT use -z defs as we might desire, because we do not
11663      # link with -lc, and that would cause any symbols used from libc to
11664      # always be unresolved, which means just about no library would
11665      # ever link correctly.  If we're not using GNU ld we use -z text
11666      # though, which does catch some bad symbols but isn't as heavy-handed
11667      # as -z defs.
11668      no_undefined_flag='$wl-z,text'
11669      allow_undefined_flag='$wl-z,nodefs'
11670      archive_cmds_need_lc=no
11671      hardcode_shlibpath_var=no
11672      hardcode_libdir_flag_spec='$wl-R,$libdir'
11673      hardcode_libdir_separator=':'
11674      link_all_deplibs=yes
11675      export_dynamic_flag_spec='$wl-Bexport'
11676      runpath_var='LD_RUN_PATH'
11677
11678      if test yes = "$GCC"; then
11679	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11680	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11681      else
11682	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11683	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11684      fi
11685      ;;
11686
11687    uts4*)
11688      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11689      hardcode_libdir_flag_spec='-L$libdir'
11690      hardcode_shlibpath_var=no
11691      ;;
11692
11693    *)
11694      ld_shlibs=no
11695      ;;
11696    esac
11697
11698    if test sni = "$host_vendor"; then
11699      case $host in
11700      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11701	export_dynamic_flag_spec='$wl-Blargedynsym'
11702	;;
11703      esac
11704    fi
11705  fi
11706
11707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11708printf "%s\n" "$ld_shlibs" >&6; }
11709test no = "$ld_shlibs" && can_build_shared=no
11710
11711with_gnu_ld=$with_gnu_ld
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727#
11728# Do we need to explicitly link libc?
11729#
11730case "x$archive_cmds_need_lc" in
11731x|xyes)
11732  # Assume -lc should be added
11733  archive_cmds_need_lc=yes
11734
11735  if test yes,yes = "$GCC,$enable_shared"; then
11736    case $archive_cmds in
11737    *'~'*)
11738      # FIXME: we may have to deal with multi-command sequences.
11739      ;;
11740    '$CC '*)
11741      # Test whether the compiler implicitly links with -lc since on some
11742      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11743      # to ld, don't add -lc before -lgcc.
11744      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11745printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11746if test ${lt_cv_archive_cmds_need_lc+y}
11747then :
11748  printf %s "(cached) " >&6
11749else $as_nop
11750  $RM conftest*
11751	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11752
11753	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11754  (eval $ac_compile) 2>&5
11755  ac_status=$?
11756  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11757  test $ac_status = 0; } 2>conftest.err; then
11758	  soname=conftest
11759	  lib=conftest
11760	  libobjs=conftest.$ac_objext
11761	  deplibs=
11762	  wl=$lt_prog_compiler_wl
11763	  pic_flag=$lt_prog_compiler_pic
11764	  compiler_flags=-v
11765	  linker_flags=-v
11766	  verstring=
11767	  output_objdir=.
11768	  libname=conftest
11769	  lt_save_allow_undefined_flag=$allow_undefined_flag
11770	  allow_undefined_flag=
11771	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11772  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11773  ac_status=$?
11774  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11775  test $ac_status = 0; }
11776	  then
11777	    lt_cv_archive_cmds_need_lc=no
11778	  else
11779	    lt_cv_archive_cmds_need_lc=yes
11780	  fi
11781	  allow_undefined_flag=$lt_save_allow_undefined_flag
11782	else
11783	  cat conftest.err 1>&5
11784	fi
11785	$RM conftest*
11786
11787fi
11788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11789printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11790      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11791      ;;
11792    esac
11793  fi
11794  ;;
11795esac
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11949printf %s "checking dynamic linker characteristics... " >&6; }
11950
11951if test yes = "$GCC"; then
11952  case $host_os in
11953    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11954    *) lt_awk_arg='/^libraries:/' ;;
11955  esac
11956  case $host_os in
11957    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11958    *) lt_sed_strip_eq='s|=/|/|g' ;;
11959  esac
11960  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11961  case $lt_search_path_spec in
11962  *\;*)
11963    # if the path contains ";" then we assume it to be the separator
11964    # otherwise default to the standard path separator (i.e. ":") - it is
11965    # assumed that no part of a normal pathname contains ";" but that should
11966    # okay in the real world where ";" in dirpaths is itself problematic.
11967    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11968    ;;
11969  *)
11970    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11971    ;;
11972  esac
11973  # Ok, now we have the path, separated by spaces, we can step through it
11974  # and add multilib dir if necessary...
11975  lt_tmp_lt_search_path_spec=
11976  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11977  # ...but if some path component already ends with the multilib dir we assume
11978  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11979  case "$lt_multi_os_dir; $lt_search_path_spec " in
11980  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11981    lt_multi_os_dir=
11982    ;;
11983  esac
11984  for lt_sys_path in $lt_search_path_spec; do
11985    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11986      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11987    elif test -n "$lt_multi_os_dir"; then
11988      test -d "$lt_sys_path" && \
11989	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11990    fi
11991  done
11992  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11993BEGIN {RS = " "; FS = "/|\n";} {
11994  lt_foo = "";
11995  lt_count = 0;
11996  for (lt_i = NF; lt_i > 0; lt_i--) {
11997    if ($lt_i != "" && $lt_i != ".") {
11998      if ($lt_i == "..") {
11999        lt_count++;
12000      } else {
12001        if (lt_count == 0) {
12002          lt_foo = "/" $lt_i lt_foo;
12003        } else {
12004          lt_count--;
12005        }
12006      }
12007    }
12008  }
12009  if (lt_foo != "") { lt_freq[lt_foo]++; }
12010  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12011}'`
12012  # AWK program above erroneously prepends '/' to C:/dos/paths
12013  # for these hosts.
12014  case $host_os in
12015    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12016      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12017  esac
12018  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12019else
12020  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12021fi
12022library_names_spec=
12023libname_spec='lib$name'
12024soname_spec=
12025shrext_cmds=.so
12026postinstall_cmds=
12027postuninstall_cmds=
12028finish_cmds=
12029finish_eval=
12030shlibpath_var=
12031shlibpath_overrides_runpath=unknown
12032version_type=none
12033dynamic_linker="$host_os ld.so"
12034sys_lib_dlsearch_path_spec="/lib /usr/lib"
12035need_lib_prefix=unknown
12036hardcode_into_libs=no
12037
12038# when you set need_version to no, make sure it does not cause -set_version
12039# flags to be left without arguments
12040need_version=unknown
12041
12042
12043
12044case $host_os in
12045aix3*)
12046  version_type=linux # correct to gnu/linux during the next big refactor
12047  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12048  shlibpath_var=LIBPATH
12049
12050  # AIX 3 has no versioning support, so we append a major version to the name.
12051  soname_spec='$libname$release$shared_ext$major'
12052  ;;
12053
12054aix[4-9]*)
12055  version_type=linux # correct to gnu/linux during the next big refactor
12056  need_lib_prefix=no
12057  need_version=no
12058  hardcode_into_libs=yes
12059  if test ia64 = "$host_cpu"; then
12060    # AIX 5 supports IA64
12061    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12062    shlibpath_var=LD_LIBRARY_PATH
12063  else
12064    # With GCC up to 2.95.x, collect2 would create an import file
12065    # for dependence libraries.  The import file would start with
12066    # the line '#! .'.  This would cause the generated library to
12067    # depend on '.', always an invalid library.  This was fixed in
12068    # development snapshots of GCC prior to 3.0.
12069    case $host_os in
12070      aix4 | aix4.[01] | aix4.[01].*)
12071      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12072	   echo ' yes '
12073	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12074	:
12075      else
12076	can_build_shared=no
12077      fi
12078      ;;
12079    esac
12080    # Using Import Files as archive members, it is possible to support
12081    # filename-based versioning of shared library archives on AIX. While
12082    # this would work for both with and without runtime linking, it will
12083    # prevent static linking of such archives. So we do filename-based
12084    # shared library versioning with .so extension only, which is used
12085    # when both runtime linking and shared linking is enabled.
12086    # Unfortunately, runtime linking may impact performance, so we do
12087    # not want this to be the default eventually. Also, we use the
12088    # versioned .so libs for executables only if there is the -brtl
12089    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12090    # To allow for filename-based versioning support, we need to create
12091    # libNAME.so.V as an archive file, containing:
12092    # *) an Import File, referring to the versioned filename of the
12093    #    archive as well as the shared archive member, telling the
12094    #    bitwidth (32 or 64) of that shared object, and providing the
12095    #    list of exported symbols of that shared object, eventually
12096    #    decorated with the 'weak' keyword
12097    # *) the shared object with the F_LOADONLY flag set, to really avoid
12098    #    it being seen by the linker.
12099    # At run time we better use the real file rather than another symlink,
12100    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12101
12102    case $with_aix_soname,$aix_use_runtimelinking in
12103    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12104    # soname into executable. Probably we can add versioning support to
12105    # collect2, so additional links can be useful in future.
12106    aix,yes) # traditional libtool
12107      dynamic_linker='AIX unversionable lib.so'
12108      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12109      # instead of lib<name>.a to let people know that these are not
12110      # typical AIX shared libraries.
12111      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12112      ;;
12113    aix,no) # traditional AIX only
12114      dynamic_linker='AIX lib.a(lib.so.V)'
12115      # We preserve .a as extension for shared libraries through AIX4.2
12116      # and later when we are not doing run time linking.
12117      library_names_spec='$libname$release.a $libname.a'
12118      soname_spec='$libname$release$shared_ext$major'
12119      ;;
12120    svr4,*) # full svr4 only
12121      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12122      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12123      # We do not specify a path in Import Files, so LIBPATH fires.
12124      shlibpath_overrides_runpath=yes
12125      ;;
12126    *,yes) # both, prefer svr4
12127      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12128      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12129      # unpreferred sharedlib libNAME.a needs extra handling
12130      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"'
12131      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"'
12132      # We do not specify a path in Import Files, so LIBPATH fires.
12133      shlibpath_overrides_runpath=yes
12134      ;;
12135    *,no) # both, prefer aix
12136      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12137      library_names_spec='$libname$release.a $libname.a'
12138      soname_spec='$libname$release$shared_ext$major'
12139      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12140      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)'
12141      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"'
12142      ;;
12143    esac
12144    shlibpath_var=LIBPATH
12145  fi
12146  ;;
12147
12148amigaos*)
12149  case $host_cpu in
12150  powerpc)
12151    # Since July 2007 AmigaOS4 officially supports .so libraries.
12152    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12153    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12154    ;;
12155  m68k)
12156    library_names_spec='$libname.ixlibrary $libname.a'
12157    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12158    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'
12159    ;;
12160  esac
12161  ;;
12162
12163beos*)
12164  library_names_spec='$libname$shared_ext'
12165  dynamic_linker="$host_os ld.so"
12166  shlibpath_var=LIBRARY_PATH
12167  ;;
12168
12169bsdi[45]*)
12170  version_type=linux # correct to gnu/linux during the next big refactor
12171  need_version=no
12172  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12173  soname_spec='$libname$release$shared_ext$major'
12174  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12175  shlibpath_var=LD_LIBRARY_PATH
12176  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12177  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12178  # the default ld.so.conf also contains /usr/contrib/lib and
12179  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12180  # libtool to hard-code these into programs
12181  ;;
12182
12183cygwin* | mingw* | pw32* | cegcc*)
12184  version_type=windows
12185  shrext_cmds=.dll
12186  need_version=no
12187  need_lib_prefix=no
12188
12189  case $GCC,$cc_basename in
12190  yes,*)
12191    # gcc
12192    library_names_spec='$libname.dll.a'
12193    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12194    postinstall_cmds='base_file=`basename \$file`~
12195      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12196      dldir=$destdir/`dirname \$dlpath`~
12197      test -d \$dldir || mkdir -p \$dldir~
12198      $install_prog $dir/$dlname \$dldir/$dlname~
12199      chmod a+x \$dldir/$dlname~
12200      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12201        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12202      fi'
12203    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12204      dlpath=$dir/\$dldll~
12205       $RM \$dlpath'
12206    shlibpath_overrides_runpath=yes
12207
12208    case $host_os in
12209    cygwin*)
12210      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12211      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12212
12213      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12214      ;;
12215    mingw* | cegcc*)
12216      # MinGW DLLs use traditional 'lib' prefix
12217      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12218      ;;
12219    pw32*)
12220      # pw32 DLLs use 'pw' prefix rather than 'lib'
12221      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12222      ;;
12223    esac
12224    dynamic_linker='Win32 ld.exe'
12225    ;;
12226
12227  *,cl* | *,icl*)
12228    # Native MSVC or ICC
12229    libname_spec='$name'
12230    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12231    library_names_spec='$libname.dll.lib'
12232
12233    case $build_os in
12234    mingw*)
12235      sys_lib_search_path_spec=
12236      lt_save_ifs=$IFS
12237      IFS=';'
12238      for lt_path in $LIB
12239      do
12240        IFS=$lt_save_ifs
12241        # Let DOS variable expansion print the short 8.3 style file name.
12242        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12243        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12244      done
12245      IFS=$lt_save_ifs
12246      # Convert to MSYS style.
12247      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12248      ;;
12249    cygwin*)
12250      # Convert to unix form, then to dos form, then back to unix form
12251      # but this time dos style (no spaces!) so that the unix form looks
12252      # like /cygdrive/c/PROGRA~1:/cygdr...
12253      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12254      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12255      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12256      ;;
12257    *)
12258      sys_lib_search_path_spec=$LIB
12259      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12260        # It is most probably a Windows format PATH.
12261        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12262      else
12263        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12264      fi
12265      # FIXME: find the short name or the path components, as spaces are
12266      # common. (e.g. "Program Files" -> "PROGRA~1")
12267      ;;
12268    esac
12269
12270    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12271    postinstall_cmds='base_file=`basename \$file`~
12272      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12273      dldir=$destdir/`dirname \$dlpath`~
12274      test -d \$dldir || mkdir -p \$dldir~
12275      $install_prog $dir/$dlname \$dldir/$dlname'
12276    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12277      dlpath=$dir/\$dldll~
12278       $RM \$dlpath'
12279    shlibpath_overrides_runpath=yes
12280    dynamic_linker='Win32 link.exe'
12281    ;;
12282
12283  *)
12284    # Assume MSVC and ICC wrapper
12285    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12286    dynamic_linker='Win32 ld.exe'
12287    ;;
12288  esac
12289  # FIXME: first we should search . and the directory the executable is in
12290  shlibpath_var=PATH
12291  ;;
12292
12293darwin* | rhapsody*)
12294  dynamic_linker="$host_os dyld"
12295  version_type=darwin
12296  need_lib_prefix=no
12297  need_version=no
12298  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12299  soname_spec='$libname$release$major$shared_ext'
12300  shlibpath_overrides_runpath=yes
12301  shlibpath_var=DYLD_LIBRARY_PATH
12302  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12303
12304  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12305  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12306  ;;
12307
12308dgux*)
12309  version_type=linux # correct to gnu/linux during the next big refactor
12310  need_lib_prefix=no
12311  need_version=no
12312  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12313  soname_spec='$libname$release$shared_ext$major'
12314  shlibpath_var=LD_LIBRARY_PATH
12315  ;;
12316
12317freebsd* | dragonfly* | midnightbsd*)
12318  # DragonFly does not have aout.  When/if they implement a new
12319  # versioning mechanism, adjust this.
12320  if test -x /usr/bin/objformat; then
12321    objformat=`/usr/bin/objformat`
12322  else
12323    case $host_os in
12324    freebsd[23].*) objformat=aout ;;
12325    *) objformat=elf ;;
12326    esac
12327  fi
12328  version_type=freebsd-$objformat
12329  case $version_type in
12330    freebsd-elf*)
12331      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12332      soname_spec='$libname$release$shared_ext$major'
12333      need_version=no
12334      need_lib_prefix=no
12335      ;;
12336    freebsd-*)
12337      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12338      need_version=yes
12339      ;;
12340  esac
12341  shlibpath_var=LD_LIBRARY_PATH
12342  case $host_os in
12343  freebsd2.*)
12344    shlibpath_overrides_runpath=yes
12345    ;;
12346  freebsd3.[01]* | freebsdelf3.[01]*)
12347    shlibpath_overrides_runpath=yes
12348    hardcode_into_libs=yes
12349    ;;
12350  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12351  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12352    shlibpath_overrides_runpath=no
12353    hardcode_into_libs=yes
12354    ;;
12355  *) # from 4.6 on, and DragonFly
12356    shlibpath_overrides_runpath=yes
12357    hardcode_into_libs=yes
12358    ;;
12359  esac
12360  ;;
12361
12362haiku*)
12363  version_type=linux # correct to gnu/linux during the next big refactor
12364  need_lib_prefix=no
12365  need_version=no
12366  dynamic_linker="$host_os runtime_loader"
12367  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12368  soname_spec='$libname$release$shared_ext$major'
12369  shlibpath_var=LIBRARY_PATH
12370  shlibpath_overrides_runpath=no
12371  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12372  hardcode_into_libs=yes
12373  ;;
12374
12375hpux9* | hpux10* | hpux11*)
12376  # Give a soname corresponding to the major version so that dld.sl refuses to
12377  # link against other versions.
12378  version_type=sunos
12379  need_lib_prefix=no
12380  need_version=no
12381  case $host_cpu in
12382  ia64*)
12383    shrext_cmds='.so'
12384    hardcode_into_libs=yes
12385    dynamic_linker="$host_os dld.so"
12386    shlibpath_var=LD_LIBRARY_PATH
12387    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12388    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12389    soname_spec='$libname$release$shared_ext$major'
12390    if test 32 = "$HPUX_IA64_MODE"; then
12391      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12392      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12393    else
12394      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12395      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12396    fi
12397    ;;
12398  hppa*64*)
12399    shrext_cmds='.sl'
12400    hardcode_into_libs=yes
12401    dynamic_linker="$host_os dld.sl"
12402    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12403    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12404    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12405    soname_spec='$libname$release$shared_ext$major'
12406    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12407    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12408    ;;
12409  *)
12410    shrext_cmds='.sl'
12411    dynamic_linker="$host_os dld.sl"
12412    shlibpath_var=SHLIB_PATH
12413    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12414    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12415    soname_spec='$libname$release$shared_ext$major'
12416    ;;
12417  esac
12418  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12419  postinstall_cmds='chmod 555 $lib'
12420  # or fails outright, so override atomically:
12421  install_override_mode=555
12422  ;;
12423
12424interix[3-9]*)
12425  version_type=linux # correct to gnu/linux during the next big refactor
12426  need_lib_prefix=no
12427  need_version=no
12428  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12429  soname_spec='$libname$release$shared_ext$major'
12430  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12431  shlibpath_var=LD_LIBRARY_PATH
12432  shlibpath_overrides_runpath=no
12433  hardcode_into_libs=yes
12434  ;;
12435
12436irix5* | irix6* | nonstopux*)
12437  case $host_os in
12438    nonstopux*) version_type=nonstopux ;;
12439    *)
12440	if test yes = "$lt_cv_prog_gnu_ld"; then
12441		version_type=linux # correct to gnu/linux during the next big refactor
12442	else
12443		version_type=irix
12444	fi ;;
12445  esac
12446  need_lib_prefix=no
12447  need_version=no
12448  soname_spec='$libname$release$shared_ext$major'
12449  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12450  case $host_os in
12451  irix5* | nonstopux*)
12452    libsuff= shlibsuff=
12453    ;;
12454  *)
12455    case $LD in # libtool.m4 will add one of these switches to LD
12456    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12457      libsuff= shlibsuff= libmagic=32-bit;;
12458    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12459      libsuff=32 shlibsuff=N32 libmagic=N32;;
12460    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12461      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12462    *) libsuff= shlibsuff= libmagic=never-match;;
12463    esac
12464    ;;
12465  esac
12466  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12467  shlibpath_overrides_runpath=no
12468  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12469  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12470  hardcode_into_libs=yes
12471  ;;
12472
12473# No shared lib support for Linux oldld, aout, or coff.
12474linux*oldld* | linux*aout* | linux*coff*)
12475  dynamic_linker=no
12476  ;;
12477
12478linux*android*)
12479  version_type=none # Android doesn't support versioned libraries.
12480  need_lib_prefix=no
12481  need_version=no
12482  library_names_spec='$libname$release$shared_ext'
12483  soname_spec='$libname$release$shared_ext'
12484  finish_cmds=
12485  shlibpath_var=LD_LIBRARY_PATH
12486  shlibpath_overrides_runpath=yes
12487
12488  # This implies no fast_install, which is unacceptable.
12489  # Some rework will be needed to allow for fast_install
12490  # before this can be enabled.
12491  hardcode_into_libs=yes
12492
12493  dynamic_linker='Android linker'
12494  # Don't embed -rpath directories since the linker doesn't support them.
12495  hardcode_libdir_flag_spec='-L$libdir'
12496  ;;
12497
12498# This must be glibc/ELF.
12499linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12500  version_type=linux # correct to gnu/linux during the next big refactor
12501  need_lib_prefix=no
12502  need_version=no
12503  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12504  soname_spec='$libname$release$shared_ext$major'
12505  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12506  shlibpath_var=LD_LIBRARY_PATH
12507  shlibpath_overrides_runpath=no
12508
12509  # Some binutils ld are patched to set DT_RUNPATH
12510  if test ${lt_cv_shlibpath_overrides_runpath+y}
12511then :
12512  printf %s "(cached) " >&6
12513else $as_nop
12514  lt_cv_shlibpath_overrides_runpath=no
12515    save_LDFLAGS=$LDFLAGS
12516    save_libdir=$libdir
12517    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12518	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12519    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12520/* end confdefs.h.  */
12521
12522int
12523main (void)
12524{
12525
12526  ;
12527  return 0;
12528}
12529_ACEOF
12530if ac_fn_c_try_link "$LINENO"
12531then :
12532  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12533then :
12534  lt_cv_shlibpath_overrides_runpath=yes
12535fi
12536fi
12537rm -f core conftest.err conftest.$ac_objext conftest.beam \
12538    conftest$ac_exeext conftest.$ac_ext
12539    LDFLAGS=$save_LDFLAGS
12540    libdir=$save_libdir
12541
12542fi
12543
12544  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12545
12546  # This implies no fast_install, which is unacceptable.
12547  # Some rework will be needed to allow for fast_install
12548  # before this can be enabled.
12549  hardcode_into_libs=yes
12550
12551  # Ideally, we could use ldconfig to report *all* directores which are
12552  # searched for libraries, however this is still not possible.  Aside from not
12553  # being certain /sbin/ldconfig is available, command
12554  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12555  # even though it is searched at run-time.  Try to do the best guess by
12556  # appending ld.so.conf contents (and includes) to the search path.
12557  if test -f /etc/ld.so.conf; then
12558    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' ' '`
12559    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12560  fi
12561
12562  # We used to test for /lib/ld.so.1 and disable shared libraries on
12563  # powerpc, because MkLinux only supported shared libraries with the
12564  # GNU dynamic linker.  Since this was broken with cross compilers,
12565  # most powerpc-linux boxes support dynamic linking these days and
12566  # people can always --disable-shared, the test was removed, and we
12567  # assume the GNU/Linux dynamic linker is in use.
12568  dynamic_linker='GNU/Linux ld.so'
12569  ;;
12570
12571netbsd*)
12572  version_type=sunos
12573  need_lib_prefix=no
12574  need_version=no
12575  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12576    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12577    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12578    dynamic_linker='NetBSD (a.out) ld.so'
12579  else
12580    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12581    soname_spec='$libname$release$shared_ext$major'
12582    dynamic_linker='NetBSD ld.elf_so'
12583  fi
12584  shlibpath_var=LD_LIBRARY_PATH
12585  shlibpath_overrides_runpath=yes
12586  hardcode_into_libs=yes
12587  ;;
12588
12589newsos6)
12590  version_type=linux # correct to gnu/linux during the next big refactor
12591  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12592  shlibpath_var=LD_LIBRARY_PATH
12593  shlibpath_overrides_runpath=yes
12594  ;;
12595
12596*nto* | *qnx*)
12597  version_type=qnx
12598  need_lib_prefix=no
12599  need_version=no
12600  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12601  soname_spec='$libname$release$shared_ext$major'
12602  shlibpath_var=LD_LIBRARY_PATH
12603  shlibpath_overrides_runpath=no
12604  hardcode_into_libs=yes
12605  dynamic_linker='ldqnx.so'
12606  ;;
12607
12608openbsd* | bitrig*)
12609  version_type=sunos
12610  sys_lib_dlsearch_path_spec=/usr/lib
12611  need_lib_prefix=no
12612  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12613    need_version=no
12614  else
12615    need_version=yes
12616  fi
12617  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12618  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12619  shlibpath_var=LD_LIBRARY_PATH
12620  shlibpath_overrides_runpath=yes
12621  ;;
12622
12623os2*)
12624  libname_spec='$name'
12625  version_type=windows
12626  shrext_cmds=.dll
12627  need_version=no
12628  need_lib_prefix=no
12629  # OS/2 can only load a DLL with a base name of 8 characters or less.
12630  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12631    v=$($ECHO $release$versuffix | tr -d .-);
12632    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12633    $ECHO $n$v`$shared_ext'
12634  library_names_spec='${libname}_dll.$libext'
12635  dynamic_linker='OS/2 ld.exe'
12636  shlibpath_var=BEGINLIBPATH
12637  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12638  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12639  postinstall_cmds='base_file=`basename \$file`~
12640    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12641    dldir=$destdir/`dirname \$dlpath`~
12642    test -d \$dldir || mkdir -p \$dldir~
12643    $install_prog $dir/$dlname \$dldir/$dlname~
12644    chmod a+x \$dldir/$dlname~
12645    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12646      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12647    fi'
12648  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12649    dlpath=$dir/\$dldll~
12650    $RM \$dlpath'
12651  ;;
12652
12653osf3* | osf4* | osf5*)
12654  version_type=osf
12655  need_lib_prefix=no
12656  need_version=no
12657  soname_spec='$libname$release$shared_ext$major'
12658  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12659  shlibpath_var=LD_LIBRARY_PATH
12660  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12661  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12662  ;;
12663
12664rdos*)
12665  dynamic_linker=no
12666  ;;
12667
12668solaris*)
12669  version_type=linux # correct to gnu/linux during the next big refactor
12670  need_lib_prefix=no
12671  need_version=no
12672  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12673  soname_spec='$libname$release$shared_ext$major'
12674  shlibpath_var=LD_LIBRARY_PATH
12675  shlibpath_overrides_runpath=yes
12676  hardcode_into_libs=yes
12677  # ldd complains unless libraries are executable
12678  postinstall_cmds='chmod +x $lib'
12679  ;;
12680
12681sunos4*)
12682  version_type=sunos
12683  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12684  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12685  shlibpath_var=LD_LIBRARY_PATH
12686  shlibpath_overrides_runpath=yes
12687  if test yes = "$with_gnu_ld"; then
12688    need_lib_prefix=no
12689  fi
12690  need_version=yes
12691  ;;
12692
12693sysv4 | sysv4.3*)
12694  version_type=linux # correct to gnu/linux during the next big refactor
12695  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12696  soname_spec='$libname$release$shared_ext$major'
12697  shlibpath_var=LD_LIBRARY_PATH
12698  case $host_vendor in
12699    sni)
12700      shlibpath_overrides_runpath=no
12701      need_lib_prefix=no
12702      runpath_var=LD_RUN_PATH
12703      ;;
12704    siemens)
12705      need_lib_prefix=no
12706      ;;
12707    motorola)
12708      need_lib_prefix=no
12709      need_version=no
12710      shlibpath_overrides_runpath=no
12711      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12712      ;;
12713  esac
12714  ;;
12715
12716sysv4*MP*)
12717  if test -d /usr/nec; then
12718    version_type=linux # correct to gnu/linux during the next big refactor
12719    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12720    soname_spec='$libname$shared_ext.$major'
12721    shlibpath_var=LD_LIBRARY_PATH
12722  fi
12723  ;;
12724
12725sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12726  version_type=sco
12727  need_lib_prefix=no
12728  need_version=no
12729  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12730  soname_spec='$libname$release$shared_ext$major'
12731  shlibpath_var=LD_LIBRARY_PATH
12732  shlibpath_overrides_runpath=yes
12733  hardcode_into_libs=yes
12734  if test yes = "$with_gnu_ld"; then
12735    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12736  else
12737    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12738    case $host_os in
12739      sco3.2v5*)
12740        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12741	;;
12742    esac
12743  fi
12744  sys_lib_dlsearch_path_spec='/usr/lib'
12745  ;;
12746
12747tpf*)
12748  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12749  version_type=linux # correct to gnu/linux during the next big refactor
12750  need_lib_prefix=no
12751  need_version=no
12752  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12753  shlibpath_var=LD_LIBRARY_PATH
12754  shlibpath_overrides_runpath=no
12755  hardcode_into_libs=yes
12756  ;;
12757
12758uts4*)
12759  version_type=linux # correct to gnu/linux during the next big refactor
12760  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12761  soname_spec='$libname$release$shared_ext$major'
12762  shlibpath_var=LD_LIBRARY_PATH
12763  ;;
12764
12765*)
12766  dynamic_linker=no
12767  ;;
12768esac
12769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12770printf "%s\n" "$dynamic_linker" >&6; }
12771test no = "$dynamic_linker" && can_build_shared=no
12772
12773variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12774if test yes = "$GCC"; then
12775  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12776fi
12777
12778if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12779  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12780fi
12781
12782if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12783  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12784fi
12785
12786# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12787configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12788
12789# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12790func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12791
12792# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12793configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12892printf %s "checking how to hardcode library paths into programs... " >&6; }
12893hardcode_action=
12894if test -n "$hardcode_libdir_flag_spec" ||
12895   test -n "$runpath_var" ||
12896   test yes = "$hardcode_automatic"; then
12897
12898  # We can hardcode non-existent directories.
12899  if test no != "$hardcode_direct" &&
12900     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12901     # have to relink, otherwise we might link with an installed library
12902     # when we should be linking with a yet-to-be-installed one
12903     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12904     test no != "$hardcode_minus_L"; then
12905    # Linking always hardcodes the temporary library directory.
12906    hardcode_action=relink
12907  else
12908    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12909    hardcode_action=immediate
12910  fi
12911else
12912  # We cannot hardcode anything, or else we can only hardcode existing
12913  # directories.
12914  hardcode_action=unsupported
12915fi
12916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12917printf "%s\n" "$hardcode_action" >&6; }
12918
12919if test relink = "$hardcode_action" ||
12920   test yes = "$inherit_rpath"; then
12921  # Fast installation is not supported
12922  enable_fast_install=no
12923elif test yes = "$shlibpath_overrides_runpath" ||
12924     test no = "$enable_shared"; then
12925  # Fast installation is not necessary
12926  enable_fast_install=needless
12927fi
12928
12929
12930
12931
12932
12933
12934  if test yes != "$enable_dlopen"; then
12935  enable_dlopen=unknown
12936  enable_dlopen_self=unknown
12937  enable_dlopen_self_static=unknown
12938else
12939  lt_cv_dlopen=no
12940  lt_cv_dlopen_libs=
12941
12942  case $host_os in
12943  beos*)
12944    lt_cv_dlopen=load_add_on
12945    lt_cv_dlopen_libs=
12946    lt_cv_dlopen_self=yes
12947    ;;
12948
12949  mingw* | pw32* | cegcc*)
12950    lt_cv_dlopen=LoadLibrary
12951    lt_cv_dlopen_libs=
12952    ;;
12953
12954  cygwin*)
12955    lt_cv_dlopen=dlopen
12956    lt_cv_dlopen_libs=
12957    ;;
12958
12959  darwin*)
12960    # if libdl is installed we need to link against it
12961    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12962printf %s "checking for dlopen in -ldl... " >&6; }
12963if test ${ac_cv_lib_dl_dlopen+y}
12964then :
12965  printf %s "(cached) " >&6
12966else $as_nop
12967  ac_check_lib_save_LIBS=$LIBS
12968LIBS="-ldl  $LIBS"
12969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12970/* end confdefs.h.  */
12971
12972/* Override any GCC internal prototype to avoid an error.
12973   Use char because int might match the return type of a GCC
12974   builtin and then its argument prototype would still apply.  */
12975char dlopen ();
12976int
12977main (void)
12978{
12979return dlopen ();
12980  ;
12981  return 0;
12982}
12983_ACEOF
12984if ac_fn_c_try_link "$LINENO"
12985then :
12986  ac_cv_lib_dl_dlopen=yes
12987else $as_nop
12988  ac_cv_lib_dl_dlopen=no
12989fi
12990rm -f core conftest.err conftest.$ac_objext conftest.beam \
12991    conftest$ac_exeext conftest.$ac_ext
12992LIBS=$ac_check_lib_save_LIBS
12993fi
12994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12995printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12996if test "x$ac_cv_lib_dl_dlopen" = xyes
12997then :
12998  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12999else $as_nop
13000
13001    lt_cv_dlopen=dyld
13002    lt_cv_dlopen_libs=
13003    lt_cv_dlopen_self=yes
13004
13005fi
13006
13007    ;;
13008
13009  tpf*)
13010    # Don't try to run any link tests for TPF.  We know it's impossible
13011    # because TPF is a cross-compiler, and we know how we open DSOs.
13012    lt_cv_dlopen=dlopen
13013    lt_cv_dlopen_libs=
13014    lt_cv_dlopen_self=no
13015    ;;
13016
13017  *)
13018    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13019if test "x$ac_cv_func_shl_load" = xyes
13020then :
13021  lt_cv_dlopen=shl_load
13022else $as_nop
13023  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13024printf %s "checking for shl_load in -ldld... " >&6; }
13025if test ${ac_cv_lib_dld_shl_load+y}
13026then :
13027  printf %s "(cached) " >&6
13028else $as_nop
13029  ac_check_lib_save_LIBS=$LIBS
13030LIBS="-ldld  $LIBS"
13031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13032/* end confdefs.h.  */
13033
13034/* Override any GCC internal prototype to avoid an error.
13035   Use char because int might match the return type of a GCC
13036   builtin and then its argument prototype would still apply.  */
13037char shl_load ();
13038int
13039main (void)
13040{
13041return shl_load ();
13042  ;
13043  return 0;
13044}
13045_ACEOF
13046if ac_fn_c_try_link "$LINENO"
13047then :
13048  ac_cv_lib_dld_shl_load=yes
13049else $as_nop
13050  ac_cv_lib_dld_shl_load=no
13051fi
13052rm -f core conftest.err conftest.$ac_objext conftest.beam \
13053    conftest$ac_exeext conftest.$ac_ext
13054LIBS=$ac_check_lib_save_LIBS
13055fi
13056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13057printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13058if test "x$ac_cv_lib_dld_shl_load" = xyes
13059then :
13060  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13061else $as_nop
13062  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13063if test "x$ac_cv_func_dlopen" = xyes
13064then :
13065  lt_cv_dlopen=dlopen
13066else $as_nop
13067  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13068printf %s "checking for dlopen in -ldl... " >&6; }
13069if test ${ac_cv_lib_dl_dlopen+y}
13070then :
13071  printf %s "(cached) " >&6
13072else $as_nop
13073  ac_check_lib_save_LIBS=$LIBS
13074LIBS="-ldl  $LIBS"
13075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13076/* end confdefs.h.  */
13077
13078/* Override any GCC internal prototype to avoid an error.
13079   Use char because int might match the return type of a GCC
13080   builtin and then its argument prototype would still apply.  */
13081char dlopen ();
13082int
13083main (void)
13084{
13085return dlopen ();
13086  ;
13087  return 0;
13088}
13089_ACEOF
13090if ac_fn_c_try_link "$LINENO"
13091then :
13092  ac_cv_lib_dl_dlopen=yes
13093else $as_nop
13094  ac_cv_lib_dl_dlopen=no
13095fi
13096rm -f core conftest.err conftest.$ac_objext conftest.beam \
13097    conftest$ac_exeext conftest.$ac_ext
13098LIBS=$ac_check_lib_save_LIBS
13099fi
13100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13101printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13102if test "x$ac_cv_lib_dl_dlopen" = xyes
13103then :
13104  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13105else $as_nop
13106  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13107printf %s "checking for dlopen in -lsvld... " >&6; }
13108if test ${ac_cv_lib_svld_dlopen+y}
13109then :
13110  printf %s "(cached) " >&6
13111else $as_nop
13112  ac_check_lib_save_LIBS=$LIBS
13113LIBS="-lsvld  $LIBS"
13114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13115/* end confdefs.h.  */
13116
13117/* Override any GCC internal prototype to avoid an error.
13118   Use char because int might match the return type of a GCC
13119   builtin and then its argument prototype would still apply.  */
13120char dlopen ();
13121int
13122main (void)
13123{
13124return dlopen ();
13125  ;
13126  return 0;
13127}
13128_ACEOF
13129if ac_fn_c_try_link "$LINENO"
13130then :
13131  ac_cv_lib_svld_dlopen=yes
13132else $as_nop
13133  ac_cv_lib_svld_dlopen=no
13134fi
13135rm -f core conftest.err conftest.$ac_objext conftest.beam \
13136    conftest$ac_exeext conftest.$ac_ext
13137LIBS=$ac_check_lib_save_LIBS
13138fi
13139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13140printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13141if test "x$ac_cv_lib_svld_dlopen" = xyes
13142then :
13143  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13144else $as_nop
13145  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13146printf %s "checking for dld_link in -ldld... " >&6; }
13147if test ${ac_cv_lib_dld_dld_link+y}
13148then :
13149  printf %s "(cached) " >&6
13150else $as_nop
13151  ac_check_lib_save_LIBS=$LIBS
13152LIBS="-ldld  $LIBS"
13153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13154/* end confdefs.h.  */
13155
13156/* Override any GCC internal prototype to avoid an error.
13157   Use char because int might match the return type of a GCC
13158   builtin and then its argument prototype would still apply.  */
13159char dld_link ();
13160int
13161main (void)
13162{
13163return dld_link ();
13164  ;
13165  return 0;
13166}
13167_ACEOF
13168if ac_fn_c_try_link "$LINENO"
13169then :
13170  ac_cv_lib_dld_dld_link=yes
13171else $as_nop
13172  ac_cv_lib_dld_dld_link=no
13173fi
13174rm -f core conftest.err conftest.$ac_objext conftest.beam \
13175    conftest$ac_exeext conftest.$ac_ext
13176LIBS=$ac_check_lib_save_LIBS
13177fi
13178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13179printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13180if test "x$ac_cv_lib_dld_dld_link" = xyes
13181then :
13182  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13183fi
13184
13185
13186fi
13187
13188
13189fi
13190
13191
13192fi
13193
13194
13195fi
13196
13197
13198fi
13199
13200    ;;
13201  esac
13202
13203  if test no = "$lt_cv_dlopen"; then
13204    enable_dlopen=no
13205  else
13206    enable_dlopen=yes
13207  fi
13208
13209  case $lt_cv_dlopen in
13210  dlopen)
13211    save_CPPFLAGS=$CPPFLAGS
13212    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13213
13214    save_LDFLAGS=$LDFLAGS
13215    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13216
13217    save_LIBS=$LIBS
13218    LIBS="$lt_cv_dlopen_libs $LIBS"
13219
13220    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13221printf %s "checking whether a program can dlopen itself... " >&6; }
13222if test ${lt_cv_dlopen_self+y}
13223then :
13224  printf %s "(cached) " >&6
13225else $as_nop
13226  	  if test yes = "$cross_compiling"; then :
13227  lt_cv_dlopen_self=cross
13228else
13229  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13230  lt_status=$lt_dlunknown
13231  cat > conftest.$ac_ext <<_LT_EOF
13232#line $LINENO "configure"
13233#include "confdefs.h"
13234
13235#if HAVE_DLFCN_H
13236#include <dlfcn.h>
13237#endif
13238
13239#include <stdio.h>
13240
13241#ifdef RTLD_GLOBAL
13242#  define LT_DLGLOBAL		RTLD_GLOBAL
13243#else
13244#  ifdef DL_GLOBAL
13245#    define LT_DLGLOBAL		DL_GLOBAL
13246#  else
13247#    define LT_DLGLOBAL		0
13248#  endif
13249#endif
13250
13251/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13252   find out it does not work in some platform. */
13253#ifndef LT_DLLAZY_OR_NOW
13254#  ifdef RTLD_LAZY
13255#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13256#  else
13257#    ifdef DL_LAZY
13258#      define LT_DLLAZY_OR_NOW		DL_LAZY
13259#    else
13260#      ifdef RTLD_NOW
13261#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13262#      else
13263#        ifdef DL_NOW
13264#          define LT_DLLAZY_OR_NOW	DL_NOW
13265#        else
13266#          define LT_DLLAZY_OR_NOW	0
13267#        endif
13268#      endif
13269#    endif
13270#  endif
13271#endif
13272
13273/* When -fvisibility=hidden is used, assume the code has been annotated
13274   correspondingly for the symbols needed.  */
13275#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13276int fnord () __attribute__((visibility("default")));
13277#endif
13278
13279int fnord () { return 42; }
13280int main ()
13281{
13282  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13283  int status = $lt_dlunknown;
13284
13285  if (self)
13286    {
13287      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13288      else
13289        {
13290	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13291          else puts (dlerror ());
13292	}
13293      /* dlclose (self); */
13294    }
13295  else
13296    puts (dlerror ());
13297
13298  return status;
13299}
13300_LT_EOF
13301  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13302  (eval $ac_link) 2>&5
13303  ac_status=$?
13304  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13305  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13306    (./conftest; exit; ) >&5 2>/dev/null
13307    lt_status=$?
13308    case x$lt_status in
13309      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13310      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13311      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13312    esac
13313  else :
13314    # compilation failed
13315    lt_cv_dlopen_self=no
13316  fi
13317fi
13318rm -fr conftest*
13319
13320
13321fi
13322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13323printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13324
13325    if test yes = "$lt_cv_dlopen_self"; then
13326      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13327      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13328printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13329if test ${lt_cv_dlopen_self_static+y}
13330then :
13331  printf %s "(cached) " >&6
13332else $as_nop
13333  	  if test yes = "$cross_compiling"; then :
13334  lt_cv_dlopen_self_static=cross
13335else
13336  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13337  lt_status=$lt_dlunknown
13338  cat > conftest.$ac_ext <<_LT_EOF
13339#line $LINENO "configure"
13340#include "confdefs.h"
13341
13342#if HAVE_DLFCN_H
13343#include <dlfcn.h>
13344#endif
13345
13346#include <stdio.h>
13347
13348#ifdef RTLD_GLOBAL
13349#  define LT_DLGLOBAL		RTLD_GLOBAL
13350#else
13351#  ifdef DL_GLOBAL
13352#    define LT_DLGLOBAL		DL_GLOBAL
13353#  else
13354#    define LT_DLGLOBAL		0
13355#  endif
13356#endif
13357
13358/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13359   find out it does not work in some platform. */
13360#ifndef LT_DLLAZY_OR_NOW
13361#  ifdef RTLD_LAZY
13362#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13363#  else
13364#    ifdef DL_LAZY
13365#      define LT_DLLAZY_OR_NOW		DL_LAZY
13366#    else
13367#      ifdef RTLD_NOW
13368#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13369#      else
13370#        ifdef DL_NOW
13371#          define LT_DLLAZY_OR_NOW	DL_NOW
13372#        else
13373#          define LT_DLLAZY_OR_NOW	0
13374#        endif
13375#      endif
13376#    endif
13377#  endif
13378#endif
13379
13380/* When -fvisibility=hidden is used, assume the code has been annotated
13381   correspondingly for the symbols needed.  */
13382#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13383int fnord () __attribute__((visibility("default")));
13384#endif
13385
13386int fnord () { return 42; }
13387int main ()
13388{
13389  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13390  int status = $lt_dlunknown;
13391
13392  if (self)
13393    {
13394      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13395      else
13396        {
13397	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13398          else puts (dlerror ());
13399	}
13400      /* dlclose (self); */
13401    }
13402  else
13403    puts (dlerror ());
13404
13405  return status;
13406}
13407_LT_EOF
13408  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13409  (eval $ac_link) 2>&5
13410  ac_status=$?
13411  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13412  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13413    (./conftest; exit; ) >&5 2>/dev/null
13414    lt_status=$?
13415    case x$lt_status in
13416      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13417      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13418      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13419    esac
13420  else :
13421    # compilation failed
13422    lt_cv_dlopen_self_static=no
13423  fi
13424fi
13425rm -fr conftest*
13426
13427
13428fi
13429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13430printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13431    fi
13432
13433    CPPFLAGS=$save_CPPFLAGS
13434    LDFLAGS=$save_LDFLAGS
13435    LIBS=$save_LIBS
13436    ;;
13437  esac
13438
13439  case $lt_cv_dlopen_self in
13440  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13441  *) enable_dlopen_self=unknown ;;
13442  esac
13443
13444  case $lt_cv_dlopen_self_static in
13445  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13446  *) enable_dlopen_self_static=unknown ;;
13447  esac
13448fi
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466striplib=
13467old_striplib=
13468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13469printf %s "checking whether stripping libraries is possible... " >&6; }
13470if test -z "$STRIP"; then
13471  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13472printf "%s\n" "no" >&6; }
13473else
13474  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13475    old_striplib="$STRIP --strip-debug"
13476    striplib="$STRIP --strip-unneeded"
13477    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13478printf "%s\n" "yes" >&6; }
13479  else
13480    case $host_os in
13481    darwin*)
13482      # FIXME - insert some real tests, host_os isn't really good enough
13483      striplib="$STRIP -x"
13484      old_striplib="$STRIP -S"
13485      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13486printf "%s\n" "yes" >&6; }
13487      ;;
13488    freebsd*)
13489      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13490        old_striplib="$STRIP --strip-debug"
13491        striplib="$STRIP --strip-unneeded"
13492        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13493printf "%s\n" "yes" >&6; }
13494      else
13495        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13496printf "%s\n" "no" >&6; }
13497      fi
13498      ;;
13499    *)
13500      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13501printf "%s\n" "no" >&6; }
13502      ;;
13503    esac
13504  fi
13505fi
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518  # Report what library types will actually be built
13519  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13520printf %s "checking if libtool supports shared libraries... " >&6; }
13521  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13522printf "%s\n" "$can_build_shared" >&6; }
13523
13524  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13525printf %s "checking whether to build shared libraries... " >&6; }
13526  test no = "$can_build_shared" && enable_shared=no
13527
13528  # On AIX, shared libraries and static libraries use the same namespace, and
13529  # are all built from PIC.
13530  case $host_os in
13531  aix3*)
13532    test yes = "$enable_shared" && enable_static=no
13533    if test -n "$RANLIB"; then
13534      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13535      postinstall_cmds='$RANLIB $lib'
13536    fi
13537    ;;
13538
13539  aix[4-9]*)
13540    if test ia64 != "$host_cpu"; then
13541      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13542      yes,aix,yes) ;;			# shared object as lib.so file only
13543      yes,svr4,*) ;;			# shared object as lib.so archive member only
13544      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13545      esac
13546    fi
13547    ;;
13548  esac
13549  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13550printf "%s\n" "$enable_shared" >&6; }
13551
13552  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13553printf %s "checking whether to build static libraries... " >&6; }
13554  # Make sure either enable_shared or enable_static is yes.
13555  test yes = "$enable_shared" || enable_static=yes
13556  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13557printf "%s\n" "$enable_static" >&6; }
13558
13559
13560
13561
13562fi
13563ac_ext=c
13564ac_cpp='$CPP $CPPFLAGS'
13565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13567ac_compiler_gnu=$ac_cv_c_compiler_gnu
13568
13569CC=$lt_save_CC
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585        ac_config_commands="$ac_config_commands libtool"
13586
13587
13588
13589
13590# Only expand once:
13591
13592
13593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13594printf %s "checking whether ln -s works... " >&6; }
13595LN_S=$as_ln_s
13596if test "$LN_S" = "ln -s"; then
13597  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13598printf "%s\n" "yes" >&6; }
13599else
13600  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13601printf "%s\n" "no, using $LN_S" >&6; }
13602fi
13603
13604
13605# Check whether --enable-largefile was given.
13606if test ${enable_largefile+y}
13607then :
13608  enableval=$enable_largefile;
13609fi
13610
13611if test "$enable_largefile" != no; then
13612
13613  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13614printf %s "checking for special C compiler options needed for large files... " >&6; }
13615if test ${ac_cv_sys_largefile_CC+y}
13616then :
13617  printf %s "(cached) " >&6
13618else $as_nop
13619  ac_cv_sys_largefile_CC=no
13620     if test "$GCC" != yes; then
13621       ac_save_CC=$CC
13622       while :; do
13623	 # IRIX 6.2 and later do not support large files by default,
13624	 # so use the C compiler's -n32 option if that helps.
13625	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13626/* end confdefs.h.  */
13627#include <sys/types.h>
13628 /* Check that off_t can represent 2**63 - 1 correctly.
13629    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13630    since some C++ compilers masquerading as C compilers
13631    incorrectly reject 9223372036854775807.  */
13632#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13633  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13634		       && LARGE_OFF_T % 2147483647 == 1)
13635		      ? 1 : -1];
13636int
13637main (void)
13638{
13639
13640  ;
13641  return 0;
13642}
13643_ACEOF
13644	 if ac_fn_c_try_compile "$LINENO"
13645then :
13646  break
13647fi
13648rm -f core conftest.err conftest.$ac_objext conftest.beam
13649	 CC="$CC -n32"
13650	 if ac_fn_c_try_compile "$LINENO"
13651then :
13652  ac_cv_sys_largefile_CC=' -n32'; break
13653fi
13654rm -f core conftest.err conftest.$ac_objext conftest.beam
13655	 break
13656       done
13657       CC=$ac_save_CC
13658       rm -f conftest.$ac_ext
13659    fi
13660fi
13661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13662printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
13663  if test "$ac_cv_sys_largefile_CC" != no; then
13664    CC=$CC$ac_cv_sys_largefile_CC
13665  fi
13666
13667  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13668printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13669if test ${ac_cv_sys_file_offset_bits+y}
13670then :
13671  printf %s "(cached) " >&6
13672else $as_nop
13673  while :; do
13674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13675/* end confdefs.h.  */
13676#include <sys/types.h>
13677 /* Check that off_t can represent 2**63 - 1 correctly.
13678    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13679    since some C++ compilers masquerading as C compilers
13680    incorrectly reject 9223372036854775807.  */
13681#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13682  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13683		       && LARGE_OFF_T % 2147483647 == 1)
13684		      ? 1 : -1];
13685int
13686main (void)
13687{
13688
13689  ;
13690  return 0;
13691}
13692_ACEOF
13693if ac_fn_c_try_compile "$LINENO"
13694then :
13695  ac_cv_sys_file_offset_bits=no; break
13696fi
13697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13699/* end confdefs.h.  */
13700#define _FILE_OFFSET_BITS 64
13701#include <sys/types.h>
13702 /* Check that off_t can represent 2**63 - 1 correctly.
13703    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13704    since some C++ compilers masquerading as C compilers
13705    incorrectly reject 9223372036854775807.  */
13706#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13707  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13708		       && LARGE_OFF_T % 2147483647 == 1)
13709		      ? 1 : -1];
13710int
13711main (void)
13712{
13713
13714  ;
13715  return 0;
13716}
13717_ACEOF
13718if ac_fn_c_try_compile "$LINENO"
13719then :
13720  ac_cv_sys_file_offset_bits=64; break
13721fi
13722rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13723  ac_cv_sys_file_offset_bits=unknown
13724  break
13725done
13726fi
13727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13728printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
13729case $ac_cv_sys_file_offset_bits in #(
13730  no | unknown) ;;
13731  *)
13732printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
13733;;
13734esac
13735rm -rf conftest*
13736  if test $ac_cv_sys_file_offset_bits = unknown; then
13737    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13738printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
13739if test ${ac_cv_sys_large_files+y}
13740then :
13741  printf %s "(cached) " >&6
13742else $as_nop
13743  while :; do
13744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745/* end confdefs.h.  */
13746#include <sys/types.h>
13747 /* Check that off_t can represent 2**63 - 1 correctly.
13748    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13749    since some C++ compilers masquerading as C compilers
13750    incorrectly reject 9223372036854775807.  */
13751#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13752  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13753		       && LARGE_OFF_T % 2147483647 == 1)
13754		      ? 1 : -1];
13755int
13756main (void)
13757{
13758
13759  ;
13760  return 0;
13761}
13762_ACEOF
13763if ac_fn_c_try_compile "$LINENO"
13764then :
13765  ac_cv_sys_large_files=no; break
13766fi
13767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13769/* end confdefs.h.  */
13770#define _LARGE_FILES 1
13771#include <sys/types.h>
13772 /* Check that off_t can represent 2**63 - 1 correctly.
13773    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13774    since some C++ compilers masquerading as C compilers
13775    incorrectly reject 9223372036854775807.  */
13776#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13777  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13778		       && LARGE_OFF_T % 2147483647 == 1)
13779		      ? 1 : -1];
13780int
13781main (void)
13782{
13783
13784  ;
13785  return 0;
13786}
13787_ACEOF
13788if ac_fn_c_try_compile "$LINENO"
13789then :
13790  ac_cv_sys_large_files=1; break
13791fi
13792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13793  ac_cv_sys_large_files=unknown
13794  break
13795done
13796fi
13797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13798printf "%s\n" "$ac_cv_sys_large_files" >&6; }
13799case $ac_cv_sys_large_files in #(
13800  no | unknown) ;;
13801  *)
13802printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
13803;;
13804esac
13805rm -rf conftest*
13806  fi
13807fi
13808
13809
13810# Check for GCC visibility feature
13811
13812
13813
13814  VISIBILITY_CFLAGS=
13815  VISIBILITY_CXXFLAGS=
13816  HAVE_VISIBILITY=0
13817  if test -n "$GCC"; then
13818                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
13819printf %s "checking whether the -Werror option is usable... " >&6; }
13820    if test ${pcre2_cv_cc_vis_werror+y}
13821then :
13822  printf %s "(cached) " >&6
13823else $as_nop
13824
13825      pcre2_save_CFLAGS="$CFLAGS"
13826      CFLAGS="$CFLAGS -Werror"
13827      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13828/* end confdefs.h.  */
13829
13830int
13831main (void)
13832{
13833
13834  ;
13835  return 0;
13836}
13837_ACEOF
13838if ac_fn_c_try_compile "$LINENO"
13839then :
13840  pcre2_cv_cc_vis_werror=yes
13841else $as_nop
13842  pcre2_cv_cc_vis_werror=no
13843fi
13844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13845      CFLAGS="$pcre2_save_CFLAGS"
13846fi
13847
13848    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pcre2_cv_cc_vis_werror" >&5
13849printf "%s\n" "$pcre2_cv_cc_vis_werror" >&6; }
13850        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
13851printf %s "checking for simple visibility declarations... " >&6; }
13852    if test ${pcre2_cv_cc_visibility+y}
13853then :
13854  printf %s "(cached) " >&6
13855else $as_nop
13856
13857      pcre2_save_CFLAGS="$CFLAGS"
13858      CFLAGS="$CFLAGS -fvisibility=hidden"
13859                                    if test $pcre2_cv_cc_vis_werror = yes; then
13860        CFLAGS="$CFLAGS -Werror"
13861      fi
13862      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13863/* end confdefs.h.  */
13864extern __attribute__((__visibility__("hidden"))) int hiddenvar;
13865             extern __attribute__((__visibility__("default"))) int exportedvar;
13866             extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
13867             extern __attribute__((__visibility__("default"))) int exportedfunc (void);
13868             void dummyfunc (void) {}
13869
13870int
13871main (void)
13872{
13873
13874  ;
13875  return 0;
13876}
13877_ACEOF
13878if ac_fn_c_try_compile "$LINENO"
13879then :
13880  pcre2_cv_cc_visibility=yes
13881else $as_nop
13882  pcre2_cv_cc_visibility=no
13883fi
13884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13885      CFLAGS="$pcre2_save_CFLAGS"
13886fi
13887
13888    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pcre2_cv_cc_visibility" >&5
13889printf "%s\n" "$pcre2_cv_cc_visibility" >&6; }
13890    if test $pcre2_cv_cc_visibility = yes; then
13891      VISIBILITY_CFLAGS="-fvisibility=hidden"
13892      VISIBILITY_CXXFLAGS="-fvisibility=hidden -fvisibility-inlines-hidden"
13893      HAVE_VISIBILITY=1
13894
13895printf "%s\n" "#define PCRE2_EXPORT __attribute__ ((visibility (\"default\")))" >>confdefs.h
13896
13897    else
13898
13899printf "%s\n" "#define PCRE2_EXPORT /**/" >>confdefs.h
13900
13901    fi
13902  fi
13903
13904
13905
13906
13907printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h
13908
13909
13910
13911# Check for the mul_overflow() builtin
13912
13913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_mul_overflow()" >&5
13914printf %s "checking for __builtin_mul_overflow()... " >&6; }
13915ac_ext=c
13916ac_cpp='$CPP $CPPFLAGS'
13917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13919ac_compiler_gnu=$ac_cv_c_compiler_gnu
13920
13921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13922/* end confdefs.h.  */
13923
13924		#ifdef HAVE_SYS_TYPES_H
13925		#include <sys/types.h>
13926		#endif
13927		#include <stddef.h>
13928
13929		int a, b;
13930		size_t m;
13931
13932int
13933main (void)
13934{
13935__builtin_mul_overflow(a, b, &m)
13936  ;
13937  return 0;
13938}
13939_ACEOF
13940if ac_fn_c_try_link "$LINENO"
13941then :
13942  pcre2_cc_cv_builtin_mul_overflow=yes
13943else $as_nop
13944  pcre2_cc_cv_builtin_mul_overflow=no
13945fi
13946rm -f core conftest.err conftest.$ac_objext conftest.beam \
13947    conftest$ac_exeext conftest.$ac_ext
13948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pcre2_cc_cv_builtin_mul_overflow" >&5
13949printf "%s\n" "$pcre2_cc_cv_builtin_mul_overflow" >&6; }
13950if test "$pcre2_cc_cv_builtin_mul_overflow" = yes; then
13951
13952printf "%s\n" "#define HAVE_BUILTIN_MUL_OVERFLOW 1" >>confdefs.h
13953
13954fi
13955ac_ext=c
13956ac_cpp='$CPP $CPPFLAGS'
13957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13959ac_compiler_gnu=$ac_cv_c_compiler_gnu
13960
13961
13962# Check for Clang __attribute__((uninitialized)) feature
13963
13964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((uninitialized))" >&5
13965printf %s "checking for __attribute__((uninitialized))... " >&6; }
13966ac_ext=c
13967ac_cpp='$CPP $CPPFLAGS'
13968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13970ac_compiler_gnu=$ac_cv_c_compiler_gnu
13971
13972tmp_CFLAGS=$CFLAGS
13973CFLAGS="$CFLAGS -Werror"
13974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13975/* end confdefs.h.  */
13976
13977int
13978main (void)
13979{
13980char buf[128] __attribute__((uninitialized));(void)buf
13981  ;
13982  return 0;
13983}
13984_ACEOF
13985if ac_fn_c_try_compile "$LINENO"
13986then :
13987  pcre2_cc_cv_attribute_uninitialized=yes
13988else $as_nop
13989  pcre2_cc_cv_attribute_uninitialized=no
13990fi
13991rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pcre2_cc_cv_attribute_uninitialized" >&5
13993printf "%s\n" "$pcre2_cc_cv_attribute_uninitialized" >&6; }
13994if test "$pcre2_cc_cv_attribute_uninitialized" = yes; then
13995
13996printf "%s\n" "#define HAVE_ATTRIBUTE_UNINITIALIZED 1" >>confdefs.h
13997
13998fi
13999CFLAGS=$tmp_CFLAGS
14000ac_ext=c
14001ac_cpp='$CPP $CPPFLAGS'
14002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14004ac_compiler_gnu=$ac_cv_c_compiler_gnu
14005
14006
14007# Versioning
14008
14009PCRE2_MAJOR="10"
14010PCRE2_MINOR="43"
14011PCRE2_PRERELEASE=""
14012PCRE2_DATE="2024-02-16"
14013
14014if test "$PCRE2_MINOR" = "08" -o "$PCRE2_MINOR" = "09"
14015then
14016  echo "***"
14017  echo "*** Minor version number $PCRE2_MINOR must not be used. ***"
14018  echo "*** Use only 00 to 07 or 10 onwards, to avoid octal issues. ***"
14019  echo "***"
14020  exit 1
14021fi
14022
14023
14024
14025
14026
14027
14028# Set a more sensible default value for $(htmldir).
14029if test "x$htmldir" = 'x${docdir}'
14030then
14031  htmldir='${docdir}/html'
14032fi
14033
14034# Force an error for PCRE1 size options
14035# Check whether --enable-pcre8 was given.
14036if test ${enable_pcre8+y}
14037then :
14038  enableval=$enable_pcre8;
14039else $as_nop
14040  enable_pcre8=no
14041fi
14042
14043# Check whether --enable-pcre16 was given.
14044if test ${enable_pcre16+y}
14045then :
14046  enableval=$enable_pcre16;
14047else $as_nop
14048  enable_pcre16=no
14049fi
14050
14051# Check whether --enable-pcre32 was given.
14052if test ${enable_pcre32+y}
14053then :
14054  enableval=$enable_pcre32;
14055else $as_nop
14056  enable_pcre32=no
14057fi
14058
14059
14060if test "$enable_pcre8$enable_pcre16$enable_pcre32" != "nonono"
14061then
14062  echo "** ERROR: Use --[en|dis]able-pcre2-[8|16|32], not --[en|dis]able-pcre[8|16|32]"
14063  exit 1
14064fi
14065
14066# Handle --disable-pcre2-8 (enabled by default)
14067# Check whether --enable-pcre2-8 was given.
14068if test ${enable_pcre2_8+y}
14069then :
14070  enableval=$enable_pcre2_8;
14071else $as_nop
14072  enable_pcre2_8=unset
14073fi
14074
14075
14076
14077# Handle --enable-pcre2-16 (disabled by default)
14078# Check whether --enable-pcre2-16 was given.
14079if test ${enable_pcre2_16+y}
14080then :
14081  enableval=$enable_pcre2_16;
14082else $as_nop
14083  enable_pcre2_16=unset
14084fi
14085
14086
14087
14088# Handle --enable-pcre2-32 (disabled by default)
14089# Check whether --enable-pcre2-32 was given.
14090if test ${enable_pcre2_32+y}
14091then :
14092  enableval=$enable_pcre2_32;
14093else $as_nop
14094  enable_pcre2_32=unset
14095fi
14096
14097
14098
14099# Handle --enable-debug (disabled by default)
14100# Check whether --enable-debug was given.
14101if test ${enable_debug+y}
14102then :
14103  enableval=$enable_debug;
14104else $as_nop
14105  enable_debug=no
14106fi
14107
14108
14109# Handle --enable-jit (disabled by default)
14110# Check whether --enable-jit was given.
14111if test ${enable_jit+y}
14112then :
14113  enableval=$enable_jit;
14114else $as_nop
14115  enable_jit=no
14116fi
14117
14118
14119# This code enables JIT if the hardware supports it.
14120if test "$enable_jit" = "auto"; then
14121  ac_ext=c
14122ac_cpp='$CPP $CPPFLAGS'
14123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14125ac_compiler_gnu=$ac_cv_c_compiler_gnu
14126
14127  SAVE_CPPFLAGS=$CPPFLAGS
14128  CPPFLAGS=-I$srcdir
14129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14130/* end confdefs.h.  */
14131
14132  #define SLJIT_CONFIG_AUTO 1
14133  #include "src/sljit/sljitConfigInternal.h"
14134  #if (defined SLJIT_CONFIG_UNSUPPORTED && SLJIT_CONFIG_UNSUPPORTED)
14135  #error unsupported
14136  #endif
14137_ACEOF
14138if ac_fn_c_try_compile "$LINENO"
14139then :
14140  enable_jit=yes
14141else $as_nop
14142  enable_jit=no
14143fi
14144rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14145  CPPFLAGS=$SAVE_CPPFLAGS
14146  echo checking for JIT support on this hardware... $enable_jit
14147fi
14148
14149# Handle --enable-jit-sealloc (disabled by default and only experimental)
14150case $host_os in
14151  linux* | netbsd*)
14152    # Check whether --enable-jit-sealloc was given.
14153if test ${enable_jit_sealloc+y}
14154then :
14155  enableval=$enable_jit_sealloc;
14156else $as_nop
14157  enable_jit_sealloc=no
14158fi
14159
14160    ;;
14161  *)
14162    enable_jit_sealloc=unsupported
14163    ;;
14164esac
14165
14166# Handle --disable-pcre2grep-jit (enabled by default)
14167# Check whether --enable-pcre2grep-jit was given.
14168if test ${enable_pcre2grep_jit+y}
14169then :
14170  enableval=$enable_pcre2grep_jit;
14171else $as_nop
14172  enable_pcre2grep_jit=yes
14173fi
14174
14175
14176# Handle --disable-pcre2grep-callout (enabled by default)
14177# Check whether --enable-pcre2grep-callout was given.
14178if test ${enable_pcre2grep_callout+y}
14179then :
14180  enableval=$enable_pcre2grep_callout;
14181else $as_nop
14182  enable_pcre2grep_callout=yes
14183fi
14184
14185
14186# Handle --disable-pcre2grep-callout-fork (enabled by default)
14187# Check whether --enable-pcre2grep-callout-fork was given.
14188if test ${enable_pcre2grep_callout_fork+y}
14189then :
14190  enableval=$enable_pcre2grep_callout_fork;
14191else $as_nop
14192  enable_pcre2grep_callout_fork=yes
14193fi
14194
14195
14196# Handle --enable-rebuild-chartables
14197# Check whether --enable-rebuild-chartables was given.
14198if test ${enable_rebuild_chartables+y}
14199then :
14200  enableval=$enable_rebuild_chartables;
14201else $as_nop
14202  enable_rebuild_chartables=no
14203fi
14204
14205
14206# Handle --disable-unicode (enabled by default)
14207# Check whether --enable-unicode was given.
14208if test ${enable_unicode+y}
14209then :
14210  enableval=$enable_unicode;
14211else $as_nop
14212  enable_unicode=unset
14213fi
14214
14215
14216# Handle newline options
14217ac_pcre2_newline=lf
14218# Check whether --enable-newline-is-cr was given.
14219if test ${enable_newline_is_cr+y}
14220then :
14221  enableval=$enable_newline_is_cr; ac_pcre2_newline=cr
14222fi
14223
14224# Check whether --enable-newline-is-lf was given.
14225if test ${enable_newline_is_lf+y}
14226then :
14227  enableval=$enable_newline_is_lf; ac_pcre2_newline=lf
14228fi
14229
14230# Check whether --enable-newline-is-crlf was given.
14231if test ${enable_newline_is_crlf+y}
14232then :
14233  enableval=$enable_newline_is_crlf; ac_pcre2_newline=crlf
14234fi
14235
14236# Check whether --enable-newline-is-anycrlf was given.
14237if test ${enable_newline_is_anycrlf+y}
14238then :
14239  enableval=$enable_newline_is_anycrlf; ac_pcre2_newline=anycrlf
14240fi
14241
14242# Check whether --enable-newline-is-any was given.
14243if test ${enable_newline_is_any+y}
14244then :
14245  enableval=$enable_newline_is_any; ac_pcre2_newline=any
14246fi
14247
14248# Check whether --enable-newline-is-nul was given.
14249if test ${enable_newline_is_nul+y}
14250then :
14251  enableval=$enable_newline_is_nul; ac_pcre2_newline=nul
14252fi
14253
14254enable_newline="$ac_pcre2_newline"
14255
14256# Handle --enable-bsr-anycrlf
14257# Check whether --enable-bsr-anycrlf was given.
14258if test ${enable_bsr_anycrlf+y}
14259then :
14260  enableval=$enable_bsr_anycrlf;
14261else $as_nop
14262  enable_bsr_anycrlf=no
14263fi
14264
14265
14266# Handle --enable-never-backslash-C
14267# Check whether --enable-never-backslash-C was given.
14268if test ${enable_never_backslash_C+y}
14269then :
14270  enableval=$enable_never_backslash_C;
14271else $as_nop
14272  enable_never_backslash_C=no
14273fi
14274
14275
14276# Handle --enable-ebcdic
14277# Check whether --enable-ebcdic was given.
14278if test ${enable_ebcdic+y}
14279then :
14280  enableval=$enable_ebcdic;
14281else $as_nop
14282  enable_ebcdic=no
14283fi
14284
14285
14286# Handle --enable-ebcdic-nl25
14287# Check whether --enable-ebcdic-nl25 was given.
14288if test ${enable_ebcdic_nl25+y}
14289then :
14290  enableval=$enable_ebcdic_nl25;
14291else $as_nop
14292  enable_ebcdic_nl25=no
14293fi
14294
14295
14296# Handle --enable-pcre2grep-libz
14297# Check whether --enable-pcre2grep-libz was given.
14298if test ${enable_pcre2grep_libz+y}
14299then :
14300  enableval=$enable_pcre2grep_libz;
14301else $as_nop
14302  enable_pcre2grep_libz=no
14303fi
14304
14305
14306# Handle --enable-pcre2grep-libbz2
14307# Check whether --enable-pcre2grep-libbz2 was given.
14308if test ${enable_pcre2grep_libbz2+y}
14309then :
14310  enableval=$enable_pcre2grep_libbz2;
14311else $as_nop
14312  enable_pcre2grep_libbz2=no
14313fi
14314
14315
14316# Handle --with-pcre2grep-bufsize=N
14317
14318# Check whether --with-pcre2grep-bufsize was given.
14319if test ${with_pcre2grep_bufsize+y}
14320then :
14321  withval=$with_pcre2grep_bufsize;
14322else $as_nop
14323  with_pcre2grep_bufsize=20480
14324fi
14325
14326
14327# Handle --with-pcre2grep-max-bufsize=N
14328
14329# Check whether --with-pcre2grep-max-bufsize was given.
14330if test ${with_pcre2grep_max_bufsize+y}
14331then :
14332  withval=$with_pcre2grep_max_bufsize;
14333else $as_nop
14334  with_pcre2grep_max_bufsize=1048576
14335fi
14336
14337
14338# Handle --enable-pcre2test-libedit
14339# Check whether --enable-pcre2test-libedit was given.
14340if test ${enable_pcre2test_libedit+y}
14341then :
14342  enableval=$enable_pcre2test_libedit;
14343else $as_nop
14344  enable_pcre2test_libedit=no
14345fi
14346
14347
14348# Handle --enable-pcre2test-libreadline
14349# Check whether --enable-pcre2test-libreadline was given.
14350if test ${enable_pcre2test_libreadline+y}
14351then :
14352  enableval=$enable_pcre2test_libreadline;
14353else $as_nop
14354  enable_pcre2test_libreadline=no
14355fi
14356
14357
14358# Handle --with-link-size=N
14359
14360# Check whether --with-link-size was given.
14361if test ${with_link_size+y}
14362then :
14363  withval=$with_link_size;
14364else $as_nop
14365  with_link_size=2
14366fi
14367
14368
14369# Handle --with-max-varlookbehind=N
14370
14371# Check whether --with-max-varlookbehind was given.
14372if test ${with_max_varlookbehind+y}
14373then :
14374  withval=$with_max_varlookbehind;
14375else $as_nop
14376  with_max_varlookbehind=255
14377fi
14378
14379
14380# Handle --with-parens-nest-limit=N
14381
14382# Check whether --with-parens-nest-limit was given.
14383if test ${with_parens_nest_limit+y}
14384then :
14385  withval=$with_parens_nest_limit;
14386else $as_nop
14387  with_parens_nest_limit=250
14388fi
14389
14390
14391# Handle --with-heap-limit
14392
14393# Check whether --with-heap-limit was given.
14394if test ${with_heap_limit+y}
14395then :
14396  withval=$with_heap_limit;
14397else $as_nop
14398  with_heap_limit=20000000
14399fi
14400
14401
14402# Handle --with-match-limit=N
14403
14404# Check whether --with-match-limit was given.
14405if test ${with_match_limit+y}
14406then :
14407  withval=$with_match_limit;
14408else $as_nop
14409  with_match_limit=10000000
14410fi
14411
14412
14413# Handle --with-match-limit-depth=N
14414# Recognize old synonym --with-match-limit-recursion
14415#
14416# Note: In config.h, the default is to define MATCH_LIMIT_DEPTH symbolically as
14417# MATCH_LIMIT, which in turn is defined to be some numeric value (e.g.
14418# 10000000). MATCH_LIMIT_DEPTH can otherwise be set to some different numeric
14419# value (or even the same numeric value as MATCH_LIMIT, though no longer
14420# defined in terms of the latter).
14421#
14422
14423# Check whether --with-match-limit-depth was given.
14424if test ${with_match_limit_depth+y}
14425then :
14426  withval=$with_match_limit_depth;
14427else $as_nop
14428  with_match_limit_depth=MATCH_LIMIT
14429fi
14430
14431
14432
14433# Check whether --with-match-limit-recursion was given.
14434if test ${with_match_limit_recursion+y}
14435then :
14436  withval=$with_match_limit_recursion;
14437else $as_nop
14438  with_match_limit_recursion=UNSET
14439fi
14440
14441
14442# Handle --enable-valgrind
14443# Check whether --enable-valgrind was given.
14444if test ${enable_valgrind+y}
14445then :
14446  enableval=$enable_valgrind;
14447else $as_nop
14448  enable_valgrind=no
14449fi
14450
14451
14452# Enable code coverage reports using gcov
14453# Check whether --enable-coverage was given.
14454if test ${enable_coverage+y}
14455then :
14456  enableval=$enable_coverage;
14457else $as_nop
14458  enable_coverage=no
14459fi
14460
14461
14462# Handle --enable-fuzz-support
14463# Check whether --enable-fuzz_support was given.
14464if test ${enable_fuzz_support+y}
14465then :
14466  enableval=$enable_fuzz_support;
14467else $as_nop
14468  enable_fuzz_support=no
14469fi
14470
14471
14472# Handle --enable-diff-fuzz-support
14473# Check whether --enable-diff_fuzz_support was given.
14474if test ${enable_diff_fuzz_support+y}
14475then :
14476  enableval=$enable_diff_fuzz_support;
14477else $as_nop
14478  enable_diff_fuzz_support=no
14479fi
14480
14481
14482# Handle --disable-stack-for-recursion
14483# This option became obsolete at release 10.30.
14484# Check whether --enable-stack-for-recursion was given.
14485if test ${enable_stack_for_recursion+y}
14486then :
14487  enableval=$enable_stack_for_recursion;
14488else $as_nop
14489  enable_stack_for_recursion=yes
14490fi
14491
14492
14493# Original code
14494# AC_ARG_ENABLE(stack-for-recursion,
14495#               AS_HELP_STRING([--disable-stack-for-recursion],
14496#                              [don't use stack recursion when matching]),
14497#               , enable_stack_for_recursion=yes)
14498
14499# Handle --disable-percent_zt (set as "auto" by default)
14500# Check whether --enable-percent-zt was given.
14501if test ${enable_percent_zt+y}
14502then :
14503  enableval=$enable_percent_zt;
14504else $as_nop
14505  enable_percent_zt=auto
14506fi
14507
14508
14509# Set the default value for pcre2-8
14510if test "x$enable_pcre2_8" = "xunset"
14511then
14512  enable_pcre2_8=yes
14513fi
14514
14515# Set the default value for pcre2-16
14516if test "x$enable_pcre2_16" = "xunset"
14517then
14518  enable_pcre2_16=no
14519fi
14520
14521# Set the default value for pcre2-32
14522if test "x$enable_pcre2_32" = "xunset"
14523then
14524  enable_pcre2_32=no
14525fi
14526
14527# Make sure at least one library is selected
14528if test "x$enable_pcre2_8$enable_pcre2_16$enable_pcre2_32" = "xnonono"
14529then
14530  as_fn_error $? "At least one of the 8, 16 or 32 bit libraries must be enabled" "$LINENO" 5
14531fi
14532
14533# Unicode is enabled by default.
14534if test "x$enable_unicode" = "xunset"
14535then
14536  enable_unicode=yes
14537fi
14538
14539# Convert the newline identifier into the appropriate integer value. These must
14540# agree with the PCRE2_NEWLINE_xxx values in pcre2.h.
14541
14542case "$enable_newline" in
14543  cr)      ac_pcre2_newline_value=1 ;;
14544  lf)      ac_pcre2_newline_value=2 ;;
14545  crlf)    ac_pcre2_newline_value=3 ;;
14546  any)     ac_pcre2_newline_value=4 ;;
14547  anycrlf) ac_pcre2_newline_value=5 ;;
14548  nul)     ac_pcre2_newline_value=6 ;;
14549  *)
14550  as_fn_error $? "invalid argument \"$enable_newline\" to --enable-newline option" "$LINENO" 5
14551  ;;
14552esac
14553
14554# --enable-ebcdic-nl25 implies --enable-ebcdic
14555if test "x$enable_ebcdic_nl25" = "xyes"; then
14556  enable_ebcdic=yes
14557fi
14558
14559# Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled.
14560# Also check that UTF support is not requested, because PCRE2 cannot handle
14561# EBCDIC and UTF in the same build. To do so it would need to use different
14562# character constants depending on the mode. Also, EBCDIC cannot be used with
14563# 16-bit and 32-bit libraries.
14564#
14565if test "x$enable_ebcdic" = "xyes"; then
14566  enable_rebuild_chartables=yes
14567  if test "x$enable_unicode" = "xyes"; then
14568    as_fn_error $? "support for EBCDIC and Unicode cannot be enabled at the same time" "$LINENO" 5
14569  fi
14570  if test "x$enable_pcre2_16" = "xyes" -o "x$enable_pcre2_32" = "xyes"; then
14571    as_fn_error $? "EBCDIC support is available only for the 8-bit library" "$LINENO" 5
14572  fi
14573fi
14574
14575# Check argument to --with-link-size
14576case "$with_link_size" in
14577  2|3|4) ;;
14578  *)
14579  as_fn_error $? "invalid argument \"$with_link_size\" to --with-link-size option" "$LINENO" 5
14580  ;;
14581esac
14582
14583
14584
14585# Checks for header files.
14586ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
14587if test "x$ac_cv_header_limits_h" = xyes
14588then :
14589  printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
14590
14591fi
14592ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
14593if test "x$ac_cv_header_sys_types_h" = xyes
14594then :
14595  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
14596
14597fi
14598ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
14599if test "x$ac_cv_header_sys_stat_h" = xyes
14600then :
14601  printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
14602
14603fi
14604ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
14605if test "x$ac_cv_header_dirent_h" = xyes
14606then :
14607  printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
14608
14609fi
14610
14611       for ac_header in windows.h
14612do :
14613  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
14614if test "x$ac_cv_header_windows_h" = xyes
14615then :
14616  printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
14617 HAVE_WINDOWS_H=1
14618fi
14619
14620done
14621       for ac_header in sys/wait.h
14622do :
14623  ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
14624if test "x$ac_cv_header_sys_wait_h" = xyes
14625then :
14626  printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
14627 HAVE_SYS_WAIT_H=1
14628fi
14629
14630done
14631
14632# Conditional compilation
14633 if test "x$enable_pcre2_8" = "xyes"; then
14634  WITH_PCRE2_8_TRUE=
14635  WITH_PCRE2_8_FALSE='#'
14636else
14637  WITH_PCRE2_8_TRUE='#'
14638  WITH_PCRE2_8_FALSE=
14639fi
14640
14641 if test "x$enable_pcre2_16" = "xyes"; then
14642  WITH_PCRE2_16_TRUE=
14643  WITH_PCRE2_16_FALSE='#'
14644else
14645  WITH_PCRE2_16_TRUE='#'
14646  WITH_PCRE2_16_FALSE=
14647fi
14648
14649 if test "x$enable_pcre2_32" = "xyes"; then
14650  WITH_PCRE2_32_TRUE=
14651  WITH_PCRE2_32_FALSE='#'
14652else
14653  WITH_PCRE2_32_TRUE='#'
14654  WITH_PCRE2_32_FALSE=
14655fi
14656
14657 if test "x$enable_debug" = "xyes"; then
14658  WITH_DEBUG_TRUE=
14659  WITH_DEBUG_FALSE='#'
14660else
14661  WITH_DEBUG_TRUE='#'
14662  WITH_DEBUG_FALSE=
14663fi
14664
14665 if test "x$enable_rebuild_chartables" = "xyes"; then
14666  WITH_REBUILD_CHARTABLES_TRUE=
14667  WITH_REBUILD_CHARTABLES_FALSE='#'
14668else
14669  WITH_REBUILD_CHARTABLES_TRUE='#'
14670  WITH_REBUILD_CHARTABLES_FALSE=
14671fi
14672
14673 if test "x$enable_jit" = "xyes"; then
14674  WITH_JIT_TRUE=
14675  WITH_JIT_FALSE='#'
14676else
14677  WITH_JIT_TRUE='#'
14678  WITH_JIT_FALSE=
14679fi
14680
14681 if test "x$enable_unicode" = "xyes"; then
14682  WITH_UNICODE_TRUE=
14683  WITH_UNICODE_FALSE='#'
14684else
14685  WITH_UNICODE_TRUE='#'
14686  WITH_UNICODE_FALSE=
14687fi
14688
14689 if test "x$enable_valgrind" = "xyes"; then
14690  WITH_VALGRIND_TRUE=
14691  WITH_VALGRIND_FALSE='#'
14692else
14693  WITH_VALGRIND_TRUE='#'
14694  WITH_VALGRIND_FALSE=
14695fi
14696
14697 if test "x$enable_fuzz_support" = "xyes"; then
14698  WITH_FUZZ_SUPPORT_TRUE=
14699  WITH_FUZZ_SUPPORT_FALSE='#'
14700else
14701  WITH_FUZZ_SUPPORT_TRUE='#'
14702  WITH_FUZZ_SUPPORT_FALSE=
14703fi
14704
14705 if test "x$enable_diff_fuzz_support" = "xyes"; then
14706  WITH_DIFF_FUZZ_SUPPORT_TRUE=
14707  WITH_DIFF_FUZZ_SUPPORT_FALSE='#'
14708else
14709  WITH_DIFF_FUZZ_SUPPORT_TRUE='#'
14710  WITH_DIFF_FUZZ_SUPPORT_FALSE=
14711fi
14712
14713
14714if test "$enable_fuzz_support" = "yes" -a "$enable_pcre2_8" = "no"; then
14715  echo "** ERROR: Fuzzer support requires the 8-bit library"
14716  exit 1
14717fi
14718
14719if test "$enable_diff_fuzz_support" = "yes"; then
14720  if test "$enable_fuzz_support" = "no"; then
14721    echo "** ERROR: Differential fuzzing support requires fuzzing support"
14722    exit 1
14723  fi
14724  if test "$enable_jit" = "no"; then
14725    echo "** ERROR: Differential fuzzing support requires Just-in-Time compilation support"
14726    exit 1
14727  fi
14728
14729printf "%s\n" "#define SUPPORT_DIFF_FUZZ /**/" >>confdefs.h
14730
14731fi
14732
14733# Checks for typedefs, structures, and compiler characteristics.
14734
14735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14736printf %s "checking for an ANSI C-conforming const... " >&6; }
14737if test ${ac_cv_c_const+y}
14738then :
14739  printf %s "(cached) " >&6
14740else $as_nop
14741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14742/* end confdefs.h.  */
14743
14744int
14745main (void)
14746{
14747
14748#ifndef __cplusplus
14749  /* Ultrix mips cc rejects this sort of thing.  */
14750  typedef int charset[2];
14751  const charset cs = { 0, 0 };
14752  /* SunOS 4.1.1 cc rejects this.  */
14753  char const *const *pcpcc;
14754  char **ppc;
14755  /* NEC SVR4.0.2 mips cc rejects this.  */
14756  struct point {int x, y;};
14757  static struct point const zero = {0,0};
14758  /* IBM XL C 1.02.0.0 rejects this.
14759     It does not let you subtract one const X* pointer from another in
14760     an arm of an if-expression whose if-part is not a constant
14761     expression */
14762  const char *g = "string";
14763  pcpcc = &g + (g ? g-g : 0);
14764  /* HPUX 7.0 cc rejects these. */
14765  ++pcpcc;
14766  ppc = (char**) pcpcc;
14767  pcpcc = (char const *const *) ppc;
14768  { /* SCO 3.2v4 cc rejects this sort of thing.  */
14769    char tx;
14770    char *t = &tx;
14771    char const *s = 0 ? (char *) 0 : (char const *) 0;
14772
14773    *t++ = 0;
14774    if (s) return 0;
14775  }
14776  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14777    int x[] = {25, 17};
14778    const int *foo = &x[0];
14779    ++foo;
14780  }
14781  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14782    typedef const int *iptr;
14783    iptr p = 0;
14784    ++p;
14785  }
14786  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
14787       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14788    struct s { int j; const int *ap[3]; } bx;
14789    struct s *b = &bx; b->j = 5;
14790  }
14791  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14792    const int foo = 10;
14793    if (!foo) return 0;
14794  }
14795  return !cs[0] && !zero.x;
14796#endif
14797
14798  ;
14799  return 0;
14800}
14801_ACEOF
14802if ac_fn_c_try_compile "$LINENO"
14803then :
14804  ac_cv_c_const=yes
14805else $as_nop
14806  ac_cv_c_const=no
14807fi
14808rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14809fi
14810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14811printf "%s\n" "$ac_cv_c_const" >&6; }
14812if test $ac_cv_c_const = no; then
14813
14814printf "%s\n" "#define const /**/" >>confdefs.h
14815
14816fi
14817
14818ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14819if test "x$ac_cv_type_size_t" = xyes
14820then :
14821
14822else $as_nop
14823
14824printf "%s\n" "#define size_t unsigned int" >>confdefs.h
14825
14826fi
14827
14828
14829# Checks for library functions.
14830
14831ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
14832if test "x$ac_cv_func_bcopy" = xyes
14833then :
14834  printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
14835
14836fi
14837ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
14838if test "x$ac_cv_func_memfd_create" = xyes
14839then :
14840  printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
14841
14842fi
14843ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
14844if test "x$ac_cv_func_memmove" = xyes
14845then :
14846  printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
14847
14848fi
14849ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp"
14850if test "x$ac_cv_func_mkostemp" = xyes
14851then :
14852  printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h
14853
14854fi
14855ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
14856if test "x$ac_cv_func_secure_getenv" = xyes
14857then :
14858  printf "%s\n" "#define HAVE_SECURE_GETENV 1" >>confdefs.h
14859
14860fi
14861ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
14862if test "x$ac_cv_func_strerror" = xyes
14863then :
14864  printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
14865
14866fi
14867
14868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for realpath" >&5
14869printf %s "checking for realpath... " >&6; }
14870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14871/* end confdefs.h.  */
14872
14873#include <stdlib.h>
14874#include <limits.h>
14875
14876int
14877main (void)
14878{
14879
14880char buffer[PATH_MAX];
14881realpath(".", buffer);
14882
14883  ;
14884  return 0;
14885}
14886_ACEOF
14887if ac_fn_c_try_link "$LINENO"
14888then :
14889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14890printf "%s\n" "yes" >&6; }
14891
14892printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
14893
14894
14895else $as_nop
14896  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14897printf "%s\n" "no" >&6; }
14898fi
14899rm -f core conftest.err conftest.$ac_objext conftest.beam \
14900    conftest$ac_exeext conftest.$ac_ext
14901
14902# Check for the availability of libz (aka zlib)
14903
14904       for ac_header in zlib.h
14905do :
14906  ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
14907if test "x$ac_cv_header_zlib_h" = xyes
14908then :
14909  printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
14910 HAVE_ZLIB_H=1
14911fi
14912
14913done
14914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
14915printf %s "checking for gzopen in -lz... " >&6; }
14916if test ${ac_cv_lib_z_gzopen+y}
14917then :
14918  printf %s "(cached) " >&6
14919else $as_nop
14920  ac_check_lib_save_LIBS=$LIBS
14921LIBS="-lz  $LIBS"
14922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14923/* end confdefs.h.  */
14924
14925/* Override any GCC internal prototype to avoid an error.
14926   Use char because int might match the return type of a GCC
14927   builtin and then its argument prototype would still apply.  */
14928char gzopen ();
14929int
14930main (void)
14931{
14932return gzopen ();
14933  ;
14934  return 0;
14935}
14936_ACEOF
14937if ac_fn_c_try_link "$LINENO"
14938then :
14939  ac_cv_lib_z_gzopen=yes
14940else $as_nop
14941  ac_cv_lib_z_gzopen=no
14942fi
14943rm -f core conftest.err conftest.$ac_objext conftest.beam \
14944    conftest$ac_exeext conftest.$ac_ext
14945LIBS=$ac_check_lib_save_LIBS
14946fi
14947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
14948printf "%s\n" "$ac_cv_lib_z_gzopen" >&6; }
14949if test "x$ac_cv_lib_z_gzopen" = xyes
14950then :
14951  HAVE_LIBZ=1
14952fi
14953
14954
14955# Check for the availability of libbz2. Originally we just used AC_CHECK_LIB,
14956# as for libz. However, this had the following problem, diagnosed and fixed by
14957# a user:
14958#
14959#   - libbz2 uses the Pascal calling convention (WINAPI) for the functions
14960#     under Win32.
14961#   - The standard autoconf AC_CHECK_LIB fails to include "bzlib.h",
14962#     therefore missing the function definition.
14963#   - The compiler thus generates a "C" signature for the test function.
14964#   - The linker fails to find the "C" function.
14965#   - PCRE2 fails to configure if asked to do so against libbz2.
14966#
14967# Solution:
14968#
14969#   - Replace the AC_CHECK_LIB test with a custom test.
14970
14971       for ac_header in bzlib.h
14972do :
14973  ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
14974if test "x$ac_cv_header_bzlib_h" = xyes
14975then :
14976  printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
14977 HAVE_BZLIB_H=1
14978fi
14979
14980done
14981# Original test
14982# AC_CHECK_LIB([bz2], [BZ2_bzopen], [HAVE_LIBBZ2=1])
14983#
14984# Custom test follows
14985
14986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbz2" >&5
14987printf %s "checking for libbz2... " >&6; }
14988OLD_LIBS="$LIBS"
14989LIBS="$LIBS -lbz2"
14990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14991/* end confdefs.h.  */
14992
14993#ifdef HAVE_BZLIB_H
14994#include <bzlib.h>
14995#endif
14996int
14997main (void)
14998{
14999return (int)BZ2_bzopen("conftest", "rb");
15000  ;
15001  return 0;
15002}
15003_ACEOF
15004if ac_fn_c_try_link "$LINENO"
15005then :
15006  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15007printf "%s\n" "yes" >&6; };HAVE_LIBBZ2=1; break;
15008else $as_nop
15009  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15010printf "%s\n" "no" >&6; }
15011fi
15012rm -f core conftest.err conftest.$ac_objext conftest.beam \
15013    conftest$ac_exeext conftest.$ac_ext
15014LIBS="$OLD_LIBS"
15015
15016# Check for the availabiity of libreadline
15017
15018if test "$enable_pcre2test_libreadline" = "yes"; then
15019        for ac_header in readline/readline.h
15020do :
15021  ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
15022if test "x$ac_cv_header_readline_readline_h" = xyes
15023then :
15024  printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
15025 HAVE_READLINE_H=1
15026fi
15027
15028done
15029        for ac_header in readline/history.h
15030do :
15031  ac_fn_c_check_header_compile "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
15032if test "x$ac_cv_header_readline_history_h" = xyes
15033then :
15034  printf "%s\n" "#define HAVE_READLINE_HISTORY_H 1" >>confdefs.h
15035 HAVE_HISTORY_H=1
15036fi
15037
15038done
15039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
15040printf %s "checking for readline in -lreadline... " >&6; }
15041if test ${ac_cv_lib_readline_readline+y}
15042then :
15043  printf %s "(cached) " >&6
15044else $as_nop
15045  ac_check_lib_save_LIBS=$LIBS
15046LIBS="-lreadline  $LIBS"
15047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15048/* end confdefs.h.  */
15049
15050/* Override any GCC internal prototype to avoid an error.
15051   Use char because int might match the return type of a GCC
15052   builtin and then its argument prototype would still apply.  */
15053char readline ();
15054int
15055main (void)
15056{
15057return readline ();
15058  ;
15059  return 0;
15060}
15061_ACEOF
15062if ac_fn_c_try_link "$LINENO"
15063then :
15064  ac_cv_lib_readline_readline=yes
15065else $as_nop
15066  ac_cv_lib_readline_readline=no
15067fi
15068rm -f core conftest.err conftest.$ac_objext conftest.beam \
15069    conftest$ac_exeext conftest.$ac_ext
15070LIBS=$ac_check_lib_save_LIBS
15071fi
15072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
15073printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
15074if test "x$ac_cv_lib_readline_readline" = xyes
15075then :
15076  LIBREADLINE="-lreadline"
15077else $as_nop
15078  unset ac_cv_lib_readline_readline;
15079    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
15080printf %s "checking for readline in -lreadline... " >&6; }
15081if test ${ac_cv_lib_readline_readline+y}
15082then :
15083  printf %s "(cached) " >&6
15084else $as_nop
15085  ac_check_lib_save_LIBS=$LIBS
15086LIBS="-lreadline -ltinfo $LIBS"
15087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15088/* end confdefs.h.  */
15089
15090/* Override any GCC internal prototype to avoid an error.
15091   Use char because int might match the return type of a GCC
15092   builtin and then its argument prototype would still apply.  */
15093char readline ();
15094int
15095main (void)
15096{
15097return readline ();
15098  ;
15099  return 0;
15100}
15101_ACEOF
15102if ac_fn_c_try_link "$LINENO"
15103then :
15104  ac_cv_lib_readline_readline=yes
15105else $as_nop
15106  ac_cv_lib_readline_readline=no
15107fi
15108rm -f core conftest.err conftest.$ac_objext conftest.beam \
15109    conftest$ac_exeext conftest.$ac_ext
15110LIBS=$ac_check_lib_save_LIBS
15111fi
15112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
15113printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
15114if test "x$ac_cv_lib_readline_readline" = xyes
15115then :
15116  LIBREADLINE="-ltinfo"
15117else $as_nop
15118  unset ac_cv_lib_readline_readline;
15119      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
15120printf %s "checking for readline in -lreadline... " >&6; }
15121if test ${ac_cv_lib_readline_readline+y}
15122then :
15123  printf %s "(cached) " >&6
15124else $as_nop
15125  ac_check_lib_save_LIBS=$LIBS
15126LIBS="-lreadline -lcurses $LIBS"
15127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15128/* end confdefs.h.  */
15129
15130/* Override any GCC internal prototype to avoid an error.
15131   Use char because int might match the return type of a GCC
15132   builtin and then its argument prototype would still apply.  */
15133char readline ();
15134int
15135main (void)
15136{
15137return readline ();
15138  ;
15139  return 0;
15140}
15141_ACEOF
15142if ac_fn_c_try_link "$LINENO"
15143then :
15144  ac_cv_lib_readline_readline=yes
15145else $as_nop
15146  ac_cv_lib_readline_readline=no
15147fi
15148rm -f core conftest.err conftest.$ac_objext conftest.beam \
15149    conftest$ac_exeext conftest.$ac_ext
15150LIBS=$ac_check_lib_save_LIBS
15151fi
15152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
15153printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
15154if test "x$ac_cv_lib_readline_readline" = xyes
15155then :
15156  LIBREADLINE="-lcurses"
15157else $as_nop
15158  unset ac_cv_lib_readline_readline;
15159        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
15160printf %s "checking for readline in -lreadline... " >&6; }
15161if test ${ac_cv_lib_readline_readline+y}
15162then :
15163  printf %s "(cached) " >&6
15164else $as_nop
15165  ac_check_lib_save_LIBS=$LIBS
15166LIBS="-lreadline -lncurses $LIBS"
15167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15168/* end confdefs.h.  */
15169
15170/* Override any GCC internal prototype to avoid an error.
15171   Use char because int might match the return type of a GCC
15172   builtin and then its argument prototype would still apply.  */
15173char readline ();
15174int
15175main (void)
15176{
15177return readline ();
15178  ;
15179  return 0;
15180}
15181_ACEOF
15182if ac_fn_c_try_link "$LINENO"
15183then :
15184  ac_cv_lib_readline_readline=yes
15185else $as_nop
15186  ac_cv_lib_readline_readline=no
15187fi
15188rm -f core conftest.err conftest.$ac_objext conftest.beam \
15189    conftest$ac_exeext conftest.$ac_ext
15190LIBS=$ac_check_lib_save_LIBS
15191fi
15192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
15193printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
15194if test "x$ac_cv_lib_readline_readline" = xyes
15195then :
15196  LIBREADLINE="-lncurses"
15197else $as_nop
15198  unset ac_cv_lib_readline_readline;
15199	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
15200printf %s "checking for readline in -lreadline... " >&6; }
15201if test ${ac_cv_lib_readline_readline+y}
15202then :
15203  printf %s "(cached) " >&6
15204else $as_nop
15205  ac_check_lib_save_LIBS=$LIBS
15206LIBS="-lreadline -lncursesw $LIBS"
15207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15208/* end confdefs.h.  */
15209
15210/* Override any GCC internal prototype to avoid an error.
15211   Use char because int might match the return type of a GCC
15212   builtin and then its argument prototype would still apply.  */
15213char readline ();
15214int
15215main (void)
15216{
15217return readline ();
15218  ;
15219  return 0;
15220}
15221_ACEOF
15222if ac_fn_c_try_link "$LINENO"
15223then :
15224  ac_cv_lib_readline_readline=yes
15225else $as_nop
15226  ac_cv_lib_readline_readline=no
15227fi
15228rm -f core conftest.err conftest.$ac_objext conftest.beam \
15229    conftest$ac_exeext conftest.$ac_ext
15230LIBS=$ac_check_lib_save_LIBS
15231fi
15232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
15233printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
15234if test "x$ac_cv_lib_readline_readline" = xyes
15235then :
15236  LIBREADLINE="-lncursesw"
15237else $as_nop
15238  unset ac_cv_lib_readline_readline;
15239	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
15240printf %s "checking for readline in -lreadline... " >&6; }
15241if test ${ac_cv_lib_readline_readline+y}
15242then :
15243  printf %s "(cached) " >&6
15244else $as_nop
15245  ac_check_lib_save_LIBS=$LIBS
15246LIBS="-lreadline -ltermcap $LIBS"
15247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15248/* end confdefs.h.  */
15249
15250/* Override any GCC internal prototype to avoid an error.
15251   Use char because int might match the return type of a GCC
15252   builtin and then its argument prototype would still apply.  */
15253char readline ();
15254int
15255main (void)
15256{
15257return readline ();
15258  ;
15259  return 0;
15260}
15261_ACEOF
15262if ac_fn_c_try_link "$LINENO"
15263then :
15264  ac_cv_lib_readline_readline=yes
15265else $as_nop
15266  ac_cv_lib_readline_readline=no
15267fi
15268rm -f core conftest.err conftest.$ac_objext conftest.beam \
15269    conftest$ac_exeext conftest.$ac_ext
15270LIBS=$ac_check_lib_save_LIBS
15271fi
15272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
15273printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
15274if test "x$ac_cv_lib_readline_readline" = xyes
15275then :
15276  LIBREADLINE="-ltermcap"
15277else $as_nop
15278  LIBREADLINE=""
15279fi
15280
15281fi
15282
15283fi
15284
15285fi
15286
15287fi
15288
15289fi
15290
15291
15292 if test -n "$LIBREADLINE"; then
15293   if test "$LIBREADLINE" != "-lreadline"; then
15294     echo "-lreadline needs $LIBREADLINE"
15295     LIBREADLINE="-lreadline $LIBREADLINE"
15296   fi
15297 fi
15298fi
15299
15300# Check for the availability of libedit. Different distributions put its
15301# headers in different places. Try to cover the most common ones.
15302
15303if test "$enable_pcre2test_libedit" = "yes"; then
15304         for ac_header in editline/readline.h edit/readline/readline.h readline.h
15305do :
15306  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
15307ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15308if eval test \"x\$"$as_ac_Header"\" = x"yes"
15309then :
15310  cat >>confdefs.h <<_ACEOF
15311#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
15312_ACEOF
15313
15314    HAVE_LIBEDIT_HEADER=1
15315    break
15316
15317fi
15318
15319done
15320  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
15321printf %s "checking for readline in -ledit... " >&6; }
15322if test ${ac_cv_lib_edit_readline+y}
15323then :
15324  printf %s "(cached) " >&6
15325else $as_nop
15326  ac_check_lib_save_LIBS=$LIBS
15327LIBS="-ledit  $LIBS"
15328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15329/* end confdefs.h.  */
15330
15331/* Override any GCC internal prototype to avoid an error.
15332   Use char because int might match the return type of a GCC
15333   builtin and then its argument prototype would still apply.  */
15334char readline ();
15335int
15336main (void)
15337{
15338return readline ();
15339  ;
15340  return 0;
15341}
15342_ACEOF
15343if ac_fn_c_try_link "$LINENO"
15344then :
15345  ac_cv_lib_edit_readline=yes
15346else $as_nop
15347  ac_cv_lib_edit_readline=no
15348fi
15349rm -f core conftest.err conftest.$ac_objext conftest.beam \
15350    conftest$ac_exeext conftest.$ac_ext
15351LIBS=$ac_check_lib_save_LIBS
15352fi
15353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
15354printf "%s\n" "$ac_cv_lib_edit_readline" >&6; }
15355if test "x$ac_cv_lib_edit_readline" = xyes
15356then :
15357  LIBEDIT="-ledit"
15358fi
15359
15360fi
15361
15362PCRE2_STATIC_CFLAG=""
15363if test "x$enable_shared" = "xno" ; then
15364
15365printf "%s\n" "#define PCRE2_STATIC 1" >>confdefs.h
15366
15367  PCRE2_STATIC_CFLAG="-DPCRE2_STATIC"
15368fi
15369
15370
15371PCRE2POSIX_CFLAG=""
15372if test "x$enable_shared" = "xyes" ; then
15373  PCRE2POSIX_CFLAG="-DPCRE2POSIX_SHARED"
15374fi
15375
15376
15377# Here is where PCRE2-specific defines are handled
15378
15379if test "$enable_pcre2_8" = "yes"; then
15380
15381printf "%s\n" "#define SUPPORT_PCRE2_8 /**/" >>confdefs.h
15382
15383fi
15384
15385if test "$enable_pcre2_16" = "yes"; then
15386
15387printf "%s\n" "#define SUPPORT_PCRE2_16 /**/" >>confdefs.h
15388
15389fi
15390
15391if test "$enable_pcre2_32" = "yes"; then
15392
15393printf "%s\n" "#define SUPPORT_PCRE2_32 /**/" >>confdefs.h
15394
15395fi
15396
15397if test "$enable_debug" = "yes"; then
15398
15399printf "%s\n" "#define PCRE2_DEBUG /**/" >>confdefs.h
15400
15401fi
15402
15403if test "$enable_percent_zt" = "no"; then
15404
15405printf "%s\n" "#define DISABLE_PERCENT_ZT /**/" >>confdefs.h
15406
15407else
15408  enable_percent_zt=auto
15409fi
15410
15411# Unless running under Windows, JIT support requires pthreads.
15412
15413if test "$enable_jit" = "yes"; then
15414  if test "$HAVE_WINDOWS_H" != "1"; then
15415
15416
15417ac_ext=c
15418ac_cpp='$CPP $CPPFLAGS'
15419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15421ac_compiler_gnu=$ac_cv_c_compiler_gnu
15422
15423ax_pthread_ok=no
15424
15425# We used to check for pthread.h first, but this fails if pthread.h
15426# requires special compiler flags (e.g. on True64 or Sequent).
15427# It gets checked for in the link test anyway.
15428
15429# First of all, check if the user has set any of the PTHREAD_LIBS,
15430# etcetera environment variables, and if threads linking works using
15431# them:
15432if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15433        save_CFLAGS="$CFLAGS"
15434        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15435        save_LIBS="$LIBS"
15436        LIBS="$PTHREAD_LIBS $LIBS"
15437        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15438printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15439        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15440/* end confdefs.h.  */
15441
15442/* Override any GCC internal prototype to avoid an error.
15443   Use char because int might match the return type of a GCC
15444   builtin and then its argument prototype would still apply.  */
15445char pthread_join ();
15446int
15447main (void)
15448{
15449return pthread_join ();
15450  ;
15451  return 0;
15452}
15453_ACEOF
15454if ac_fn_c_try_link "$LINENO"
15455then :
15456  ax_pthread_ok=yes
15457fi
15458rm -f core conftest.err conftest.$ac_objext conftest.beam \
15459    conftest$ac_exeext conftest.$ac_ext
15460        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15461printf "%s\n" "$ax_pthread_ok" >&6; }
15462        if test x"$ax_pthread_ok" = xno; then
15463                PTHREAD_LIBS=""
15464                PTHREAD_CFLAGS=""
15465        fi
15466        LIBS="$save_LIBS"
15467        CFLAGS="$save_CFLAGS"
15468fi
15469
15470# We must check for the threads library under a number of different
15471# names; the ordering is very important because some systems
15472# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15473# libraries is broken (non-POSIX).
15474
15475# Create a list of thread flags to try.  Items starting with a "-" are
15476# C compiler flags, and other items are library names, except for "none"
15477# which indicates that we try without any flags at all, and "pthread-config"
15478# which is a program returning the flags for the Pth emulation library.
15479
15480ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15481
15482# The ordering *is* (sometimes) important.  Some notes on the
15483# individual items follow:
15484
15485# pthreads: AIX (must check this before -lpthread)
15486# none: in case threads are in libc; should be tried before -Kthread and
15487#       other compiler flags to prevent continual compiler warnings
15488# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15489# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15490# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15491# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15492# -pthreads: Solaris/gcc
15493# -mthreads: Mingw32/gcc, Lynx/gcc
15494# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15495#      doesn't hurt to check since this sometimes defines pthreads too;
15496#      also defines -D_REENTRANT)
15497#      ... -mt is also the pthreads flag for HP/aCC
15498# pthread: Linux, etcetera
15499# --thread-safe: KAI C++
15500# pthread-config: use pthread-config program (for GNU Pth library)
15501
15502case ${host_os} in
15503        solaris*)
15504
15505        # On Solaris (at least, for some versions), libc contains stubbed
15506        # (non-functional) versions of the pthreads routines, so link-based
15507        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
15508        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
15509        # a function called by this macro, so we could check for that, but
15510        # who knows whether they'll stub that too in a future libc.)  So,
15511        # we'll just look for -pthreads and -lpthread first:
15512
15513        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
15514        ;;
15515
15516        darwin*)
15517        ax_pthread_flags="-pthread $ax_pthread_flags"
15518        ;;
15519esac
15520
15521if test x"$ax_pthread_ok" = xno; then
15522for flag in $ax_pthread_flags; do
15523
15524        case $flag in
15525                none)
15526                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15527printf %s "checking whether pthreads work without any flags... " >&6; }
15528                ;;
15529
15530                -*)
15531                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15532printf %s "checking whether pthreads work with $flag... " >&6; }
15533                PTHREAD_CFLAGS="$flag"
15534                ;;
15535
15536                pthread-config)
15537                # Extract the first word of "pthread-config", so it can be a program name with args.
15538set dummy pthread-config; ac_word=$2
15539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15540printf %s "checking for $ac_word... " >&6; }
15541if test ${ac_cv_prog_ax_pthread_config+y}
15542then :
15543  printf %s "(cached) " >&6
15544else $as_nop
15545  if test -n "$ax_pthread_config"; then
15546  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
15547else
15548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15549for as_dir in $PATH
15550do
15551  IFS=$as_save_IFS
15552  case $as_dir in #(((
15553    '') as_dir=./ ;;
15554    */) ;;
15555    *) as_dir=$as_dir/ ;;
15556  esac
15557    for ac_exec_ext in '' $ac_executable_extensions; do
15558  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15559    ac_cv_prog_ax_pthread_config="yes"
15560    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15561    break 2
15562  fi
15563done
15564  done
15565IFS=$as_save_IFS
15566
15567  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
15568fi
15569fi
15570ax_pthread_config=$ac_cv_prog_ax_pthread_config
15571if test -n "$ax_pthread_config"; then
15572  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
15573printf "%s\n" "$ax_pthread_config" >&6; }
15574else
15575  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15576printf "%s\n" "no" >&6; }
15577fi
15578
15579
15580                if test x"$ax_pthread_config" = xno; then continue; fi
15581                PTHREAD_CFLAGS="`pthread-config --cflags`"
15582                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15583                ;;
15584
15585                *)
15586                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15587printf %s "checking for the pthreads library -l$flag... " >&6; }
15588                PTHREAD_LIBS="-l$flag"
15589                ;;
15590        esac
15591
15592        save_LIBS="$LIBS"
15593        save_CFLAGS="$CFLAGS"
15594        LIBS="$PTHREAD_LIBS $LIBS"
15595        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15596
15597        # Check for various functions.  We must include pthread.h,
15598        # since some functions may be macros.  (On the Sequent, we
15599        # need a special flag -Kthread to make this header compile.)
15600        # We check for pthread_join because it is in -lpthread on IRIX
15601        # while pthread_create is in libc.  We check for pthread_attr_init
15602        # due to DEC craziness with -lpthreads.  We check for
15603        # pthread_cleanup_push because it is one of the few pthread
15604        # functions on Solaris that doesn't have a non-functional libc stub.
15605        # We try pthread_create on general principles.
15606        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15607/* end confdefs.h.  */
15608#include <pthread.h>
15609                        static void routine(void *a) { a = 0; }
15610                        static void *start_routine(void *a) { return a; }
15611int
15612main (void)
15613{
15614pthread_t th; pthread_attr_t attr;
15615                        pthread_create(&th, 0, start_routine, 0);
15616                        pthread_join(th, 0);
15617                        pthread_attr_init(&attr);
15618                        pthread_cleanup_push(routine, 0);
15619                        pthread_cleanup_pop(0) /* ; */
15620  ;
15621  return 0;
15622}
15623_ACEOF
15624if ac_fn_c_try_link "$LINENO"
15625then :
15626  ax_pthread_ok=yes
15627fi
15628rm -f core conftest.err conftest.$ac_objext conftest.beam \
15629    conftest$ac_exeext conftest.$ac_ext
15630
15631        LIBS="$save_LIBS"
15632        CFLAGS="$save_CFLAGS"
15633
15634        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15635printf "%s\n" "$ax_pthread_ok" >&6; }
15636        if test "x$ax_pthread_ok" = xyes; then
15637                break;
15638        fi
15639
15640        PTHREAD_LIBS=""
15641        PTHREAD_CFLAGS=""
15642done
15643fi
15644
15645# Various other checks:
15646if test "x$ax_pthread_ok" = xyes; then
15647        save_LIBS="$LIBS"
15648        LIBS="$PTHREAD_LIBS $LIBS"
15649        save_CFLAGS="$CFLAGS"
15650        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15651
15652        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15653        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15654printf %s "checking for joinable pthread attribute... " >&6; }
15655        attr_name=unknown
15656        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15657            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15658/* end confdefs.h.  */
15659#include <pthread.h>
15660int
15661main (void)
15662{
15663int attr = $attr; return attr /* ; */
15664  ;
15665  return 0;
15666}
15667_ACEOF
15668if ac_fn_c_try_link "$LINENO"
15669then :
15670  attr_name=$attr; break
15671fi
15672rm -f core conftest.err conftest.$ac_objext conftest.beam \
15673    conftest$ac_exeext conftest.$ac_ext
15674        done
15675        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15676printf "%s\n" "$attr_name" >&6; }
15677        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15678
15679printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h
15680
15681        fi
15682
15683        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15684printf %s "checking if more special flags are required for pthreads... " >&6; }
15685        flag=no
15686        case ${host_os} in
15687            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
15688            osf* | hpux*) flag="-D_REENTRANT";;
15689            solaris*)
15690            if test "$GCC" = "yes"; then
15691                flag="-D_REENTRANT"
15692            else
15693                flag="-mt -D_REENTRANT"
15694            fi
15695            ;;
15696        esac
15697        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15698printf "%s\n" "${flag}" >&6; }
15699        if test "x$flag" != xno; then
15700            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15701        fi
15702
15703        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
15704printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
15705if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
15706then :
15707  printf %s "(cached) " >&6
15708else $as_nop
15709
15710                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15711/* end confdefs.h.  */
15712
15713                    #include <pthread.h>
15714int
15715main (void)
15716{
15717int i = PTHREAD_PRIO_INHERIT;
15718  ;
15719  return 0;
15720}
15721_ACEOF
15722if ac_fn_c_try_link "$LINENO"
15723then :
15724  ax_cv_PTHREAD_PRIO_INHERIT=yes
15725else $as_nop
15726  ax_cv_PTHREAD_PRIO_INHERIT=no
15727fi
15728rm -f core conftest.err conftest.$ac_objext conftest.beam \
15729    conftest$ac_exeext conftest.$ac_ext
15730
15731fi
15732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
15733printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
15734        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"
15735then :
15736
15737printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
15738
15739fi
15740
15741        LIBS="$save_LIBS"
15742        CFLAGS="$save_CFLAGS"
15743
15744        # More AIX lossage: must compile with xlc_r or cc_r
15745        if test x"$GCC" != xyes; then
15746          for ac_prog in xlc_r cc_r
15747do
15748  # Extract the first word of "$ac_prog", so it can be a program name with args.
15749set dummy $ac_prog; ac_word=$2
15750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15751printf %s "checking for $ac_word... " >&6; }
15752if test ${ac_cv_prog_PTHREAD_CC+y}
15753then :
15754  printf %s "(cached) " >&6
15755else $as_nop
15756  if test -n "$PTHREAD_CC"; then
15757  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15758else
15759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15760for as_dir in $PATH
15761do
15762  IFS=$as_save_IFS
15763  case $as_dir in #(((
15764    '') as_dir=./ ;;
15765    */) ;;
15766    *) as_dir=$as_dir/ ;;
15767  esac
15768    for ac_exec_ext in '' $ac_executable_extensions; do
15769  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15770    ac_cv_prog_PTHREAD_CC="$ac_prog"
15771    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15772    break 2
15773  fi
15774done
15775  done
15776IFS=$as_save_IFS
15777
15778fi
15779fi
15780PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15781if test -n "$PTHREAD_CC"; then
15782  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15783printf "%s\n" "$PTHREAD_CC" >&6; }
15784else
15785  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15786printf "%s\n" "no" >&6; }
15787fi
15788
15789
15790  test -n "$PTHREAD_CC" && break
15791done
15792test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15793
15794        else
15795          PTHREAD_CC=$CC
15796        fi
15797else
15798        PTHREAD_CC="$CC"
15799fi
15800
15801
15802
15803
15804
15805# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15806if test x"$ax_pthread_ok" = xyes; then
15807
15808printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
15809
15810        :
15811else
15812        ax_pthread_ok=no
15813        as_fn_error $? "JIT support requires pthreads" "$LINENO" 5
15814fi
15815ac_ext=c
15816ac_cpp='$CPP $CPPFLAGS'
15817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15819ac_compiler_gnu=$ac_cv_c_compiler_gnu
15820
15821
15822    CC="$PTHREAD_CC"
15823    CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
15824    LIBS="$PTHREAD_LIBS $LIBS"
15825  fi
15826
15827printf "%s\n" "#define SUPPORT_JIT /**/" >>confdefs.h
15828
15829else
15830  enable_pcre2grep_jit="no"
15831fi
15832
15833if test "$enable_jit_sealloc" = "yes"; then
15834
15835printf "%s\n" "#define SLJIT_PROT_EXECUTABLE_ALLOCATOR 1" >>confdefs.h
15836
15837fi
15838
15839if test "$enable_pcre2grep_jit" = "yes"; then
15840
15841printf "%s\n" "#define SUPPORT_PCRE2GREP_JIT /**/" >>confdefs.h
15842
15843fi
15844
15845if test "$enable_pcre2grep_callout" = "yes"; then
15846  if test "$enable_pcre2grep_callout_fork" = "yes"; then
15847    if test "$HAVE_WINDOWS_H" != "1"; then
15848      if test "$HAVE_SYS_WAIT_H" != "1"; then
15849        as_fn_error $? "Callout script support needs sys/wait.h." "$LINENO" 5
15850      fi
15851    fi
15852
15853printf "%s\n" "#define SUPPORT_PCRE2GREP_CALLOUT_FORK /**/" >>confdefs.h
15854
15855  fi
15856
15857printf "%s\n" "#define SUPPORT_PCRE2GREP_CALLOUT /**/" >>confdefs.h
15858
15859else
15860  enable_pcre2grep_callout_fork="no"
15861fi
15862
15863if test "$enable_unicode" = "yes"; then
15864
15865printf "%s\n" "#define SUPPORT_UNICODE /**/" >>confdefs.h
15866
15867fi
15868
15869if test "$enable_pcre2grep_libz" = "yes"; then
15870
15871printf "%s\n" "#define SUPPORT_LIBZ /**/" >>confdefs.h
15872
15873fi
15874
15875if test "$enable_pcre2grep_libbz2" = "yes"; then
15876
15877printf "%s\n" "#define SUPPORT_LIBBZ2 /**/" >>confdefs.h
15878
15879fi
15880
15881if test $with_pcre2grep_bufsize -lt 8192 ; then
15882  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $with_pcre2grep_bufsize is too small for --with-pcre2grep-bufsize; using 8192" >&5
15883printf "%s\n" "$as_me: WARNING: $with_pcre2grep_bufsize is too small for --with-pcre2grep-bufsize; using 8192" >&2;}
15884  with_pcre2grep_bufsize="8192"
15885else
15886  if test $? -gt 1 ; then
15887  as_fn_error $? "Bad value for --with-pcre2grep-bufsize" "$LINENO" 5
15888  fi
15889fi
15890
15891if test $with_pcre2grep_max_bufsize -lt $with_pcre2grep_bufsize ; then
15892  with_pcre2grep_max_bufsize="$with_pcre2grep_bufsize"
15893else
15894  if test $? -gt 1 ; then
15895  as_fn_error $? "Bad value for --with-pcre2grep-max-bufsize" "$LINENO" 5
15896  fi
15897fi
15898
15899
15900printf "%s\n" "#define PCRE2GREP_BUFSIZE $with_pcre2grep_bufsize" >>confdefs.h
15901
15902
15903
15904printf "%s\n" "#define PCRE2GREP_MAX_BUFSIZE $with_pcre2grep_max_bufsize" >>confdefs.h
15905
15906
15907if test "$enable_pcre2test_libedit" = "yes"; then
15908
15909printf "%s\n" "#define SUPPORT_LIBEDIT /**/" >>confdefs.h
15910
15911  LIBREADLINE="$LIBEDIT"
15912elif test "$enable_pcre2test_libreadline" = "yes"; then
15913
15914printf "%s\n" "#define SUPPORT_LIBREADLINE /**/" >>confdefs.h
15915
15916fi
15917
15918
15919printf "%s\n" "#define NEWLINE_DEFAULT $ac_pcre2_newline_value" >>confdefs.h
15920
15921
15922if test "$enable_bsr_anycrlf" = "yes"; then
15923
15924printf "%s\n" "#define BSR_ANYCRLF /**/" >>confdefs.h
15925
15926fi
15927
15928if test "$enable_never_backslash_C" = "yes"; then
15929
15930printf "%s\n" "#define NEVER_BACKSLASH_C /**/" >>confdefs.h
15931
15932fi
15933
15934
15935printf "%s\n" "#define LINK_SIZE $with_link_size" >>confdefs.h
15936
15937
15938
15939printf "%s\n" "#define MAX_VARLOOKBEHIND $with_max_varlookbehind" >>confdefs.h
15940
15941
15942
15943printf "%s\n" "#define PARENS_NEST_LIMIT $with_parens_nest_limit" >>confdefs.h
15944
15945
15946
15947printf "%s\n" "#define MATCH_LIMIT $with_match_limit" >>confdefs.h
15948
15949
15950# --with-match-limit-recursion is an obsolete synonym for --with-match-limit-depth
15951
15952if test "$with_match_limit_recursion" != "UNSET"; then
15953cat <<EOF
15954
15955WARNING: --with-match-limit-recursion is an obsolete option. Please use
15956  --with-match-limit-depth in future. If both are set, --with-match-limit-depth
15957  will be used. See also --with-heap-limit.
15958
15959EOF
15960if test "$with_match_limit_depth" = "MATCH_LIMIT"; then
15961  with_match_limit_depth=$with_match_limit_recursion
15962fi
15963fi
15964
15965
15966printf "%s\n" "#define MATCH_LIMIT_DEPTH $with_match_limit_depth" >>confdefs.h
15967
15968
15969
15970printf "%s\n" "#define HEAP_LIMIT $with_heap_limit" >>confdefs.h
15971
15972
15973
15974printf "%s\n" "#define MAX_NAME_SIZE 32" >>confdefs.h
15975
15976
15977
15978printf "%s\n" "#define MAX_NAME_COUNT 10000" >>confdefs.h
15979
15980
15981
15982
15983if test "$enable_ebcdic" = "yes"; then
15984
15985printf "%s\n" "#define EBCDIC /**/" >>confdefs.h
15986
15987fi
15988
15989if test "$enable_ebcdic_nl25" = "yes"; then
15990
15991printf "%s\n" "#define EBCDIC_NL25 /**/" >>confdefs.h
15992
15993fi
15994
15995if test "$enable_valgrind" = "yes"; then
15996
15997printf "%s\n" "#define SUPPORT_VALGRIND /**/" >>confdefs.h
15998
15999fi
16000
16001# Platform specific issues
16002NO_UNDEFINED=
16003EXPORT_ALL_SYMBOLS=
16004case $host_os in
16005  cygwin* | mingw* )
16006    if test X"$enable_shared" = Xyes; then
16007      NO_UNDEFINED="-no-undefined"
16008      EXPORT_ALL_SYMBOLS="-Wl,--export-all-symbols"
16009    fi
16010    ;;
16011esac
16012
16013# The extra LDFLAGS for each particular library. The libpcre2*_version values
16014# are m4 variables, assigned above.
16015
16016EXTRA_LIBPCRE2_8_LDFLAGS="$EXTRA_LIBPCRE2_8_LDFLAGS \
16017  $NO_UNDEFINED -version-info 12:0:12"
16018
16019EXTRA_LIBPCRE2_16_LDFLAGS="$EXTRA_LIBPCRE2_16_LDFLAGS \
16020  $NO_UNDEFINED -version-info 12:0:12"
16021
16022EXTRA_LIBPCRE2_32_LDFLAGS="$EXTRA_LIBPCRE2_32_LDFLAGS \
16023  $NO_UNDEFINED -version-info 12:0:12"
16024
16025EXTRA_LIBPCRE2_POSIX_LDFLAGS="$EXTRA_LIBPCRE2_POSIX_LDFLAGS \
16026  $NO_UNDEFINED -version-info 3:5:0"
16027
16028
16029
16030
16031
16032
16033# When we run 'make distcheck', use these arguments. Turning off compiler
16034# optimization makes it run faster.
16035DISTCHECK_CONFIGURE_FLAGS="CFLAGS='' CXXFLAGS='' --enable-pcre2-16 --enable-pcre2-32 --enable-jit"
16036
16037
16038# Check that, if --enable-pcre2grep-libz or --enable-pcre2grep-libbz2 is
16039# specified, the relevant library is available.
16040
16041if test "$enable_pcre2grep_libz" = "yes"; then
16042  if test "$HAVE_ZLIB_H" != "1"; then
16043    echo "** Cannot --enable-pcre2grep-libz because zlib.h was not found"
16044    exit 1
16045  fi
16046  if test "$HAVE_LIBZ" != "1"; then
16047    echo "** Cannot --enable-pcre2grep-libz because libz was not found"
16048    exit 1
16049  fi
16050  LIBZ="-lz"
16051fi
16052
16053
16054if test "$enable_pcre2grep_libbz2" = "yes"; then
16055  if test "$HAVE_BZLIB_H" != "1"; then
16056    echo "** Cannot --enable-pcre2grep-libbz2 because bzlib.h was not found"
16057    exit 1
16058  fi
16059  if test "$HAVE_LIBBZ2" != "1"; then
16060    echo "** Cannot --enable-pcre2grep-libbz2 because libbz2 was not found"
16061    exit 1
16062  fi
16063  LIBBZ2="-lbz2"
16064fi
16065
16066
16067# Similarly for --enable-pcre2test-readline
16068
16069if test "$enable_pcre2test_libedit" = "yes"; then
16070  if test "$enable_pcre2test_libreadline" = "yes"; then
16071    echo "** Cannot use both --enable-pcre2test-libedit and --enable-pcre2test-readline"
16072    exit 1
16073  fi
16074  if test -z "$HAVE_LIBEDIT_HEADER"; then
16075    echo "** Cannot --enable-pcre2test-libedit because neither editline/readline.h,"
16076    echo "** edit/readline/readline.h nor a compatible header was found."
16077    exit 1
16078  fi
16079  if test -z "$LIBEDIT"; then
16080    echo "** Cannot --enable-pcre2test-libedit because libedit library was not found."
16081    exit 1
16082  fi
16083fi
16084
16085if test "$enable_pcre2test_libreadline" = "yes"; then
16086  if test "$HAVE_READLINE_H" != "1"; then
16087    echo "** Cannot --enable-pcre2test-readline because readline/readline.h was not found."
16088    exit 1
16089  fi
16090  if test "$HAVE_HISTORY_H" != "1"; then
16091    echo "** Cannot --enable-pcre2test-readline because readline/history.h was not found."
16092    exit 1
16093  fi
16094  if test -z "$LIBREADLINE"; then
16095    echo "** Cannot --enable-pcre2test-readline because readline library was not found."
16096    exit 1
16097  fi
16098fi
16099
16100# Handle valgrind support
16101
16102if test "$enable_valgrind" = "yes"; then
16103
16104
16105
16106
16107
16108
16109
16110if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16111	if test -n "$ac_tool_prefix"; then
16112  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16113set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16115printf %s "checking for $ac_word... " >&6; }
16116if test ${ac_cv_path_PKG_CONFIG+y}
16117then :
16118  printf %s "(cached) " >&6
16119else $as_nop
16120  case $PKG_CONFIG in
16121  [\\/]* | ?:[\\/]*)
16122  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16123  ;;
16124  *)
16125  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16126for as_dir in $PATH
16127do
16128  IFS=$as_save_IFS
16129  case $as_dir in #(((
16130    '') as_dir=./ ;;
16131    */) ;;
16132    *) as_dir=$as_dir/ ;;
16133  esac
16134    for ac_exec_ext in '' $ac_executable_extensions; do
16135  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16136    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
16137    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16138    break 2
16139  fi
16140done
16141  done
16142IFS=$as_save_IFS
16143
16144  ;;
16145esac
16146fi
16147PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16148if test -n "$PKG_CONFIG"; then
16149  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16150printf "%s\n" "$PKG_CONFIG" >&6; }
16151else
16152  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16153printf "%s\n" "no" >&6; }
16154fi
16155
16156
16157fi
16158if test -z "$ac_cv_path_PKG_CONFIG"; then
16159  ac_pt_PKG_CONFIG=$PKG_CONFIG
16160  # Extract the first word of "pkg-config", so it can be a program name with args.
16161set dummy pkg-config; ac_word=$2
16162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16163printf %s "checking for $ac_word... " >&6; }
16164if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
16165then :
16166  printf %s "(cached) " >&6
16167else $as_nop
16168  case $ac_pt_PKG_CONFIG in
16169  [\\/]* | ?:[\\/]*)
16170  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16171  ;;
16172  *)
16173  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16174for as_dir in $PATH
16175do
16176  IFS=$as_save_IFS
16177  case $as_dir in #(((
16178    '') as_dir=./ ;;
16179    */) ;;
16180    *) as_dir=$as_dir/ ;;
16181  esac
16182    for ac_exec_ext in '' $ac_executable_extensions; do
16183  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16184    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
16185    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16186    break 2
16187  fi
16188done
16189  done
16190IFS=$as_save_IFS
16191
16192  ;;
16193esac
16194fi
16195ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16196if test -n "$ac_pt_PKG_CONFIG"; then
16197  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16198printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
16199else
16200  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16201printf "%s\n" "no" >&6; }
16202fi
16203
16204  if test "x$ac_pt_PKG_CONFIG" = x; then
16205    PKG_CONFIG=""
16206  else
16207    case $cross_compiling:$ac_tool_warned in
16208yes:)
16209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16210printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16211ac_tool_warned=yes ;;
16212esac
16213    PKG_CONFIG=$ac_pt_PKG_CONFIG
16214  fi
16215else
16216  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16217fi
16218
16219fi
16220if test -n "$PKG_CONFIG"; then
16221	_pkg_min_version=0.9.0
16222	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16223printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16224	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16225		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16226printf "%s\n" "yes" >&6; }
16227	else
16228		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16229printf "%s\n" "no" >&6; }
16230		PKG_CONFIG=""
16231	fi
16232fi
16233
16234pkg_failed=no
16235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for valgrind" >&5
16236printf %s "checking for valgrind... " >&6; }
16237
16238if test -n "$VALGRIND_CFLAGS"; then
16239    pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
16240 elif test -n "$PKG_CONFIG"; then
16241    if test -n "$PKG_CONFIG" && \
16242    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
16243  ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
16244  ac_status=$?
16245  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16246  test $ac_status = 0; }; then
16247  pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
16248		      test "x$?" != "x0" && pkg_failed=yes
16249else
16250  pkg_failed=yes
16251fi
16252 else
16253    pkg_failed=untried
16254fi
16255if test -n "$VALGRIND_LIBS"; then
16256    pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
16257 elif test -n "$PKG_CONFIG"; then
16258    if test -n "$PKG_CONFIG" && \
16259    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
16260  ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
16261  ac_status=$?
16262  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16263  test $ac_status = 0; }; then
16264  pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
16265		      test "x$?" != "x0" && pkg_failed=yes
16266else
16267  pkg_failed=yes
16268fi
16269 else
16270    pkg_failed=untried
16271fi
16272
16273
16274
16275if test $pkg_failed = yes; then
16276        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16277printf "%s\n" "no" >&6; }
16278
16279if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16280        _pkg_short_errors_supported=yes
16281else
16282        _pkg_short_errors_supported=no
16283fi
16284        if test $_pkg_short_errors_supported = yes; then
16285                VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1`
16286        else
16287                VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1`
16288        fi
16289        # Put the nasty error message in config.log where it belongs
16290        echo "$VALGRIND_PKG_ERRORS" >&5
16291
16292        as_fn_error $? "Package requirements (valgrind) were not met:
16293
16294$VALGRIND_PKG_ERRORS
16295
16296Consider adjusting the PKG_CONFIG_PATH environment variable if you
16297installed software in a non-standard prefix.
16298
16299Alternatively, you may set the environment variables VALGRIND_CFLAGS
16300and VALGRIND_LIBS to avoid the need to call pkg-config.
16301See the pkg-config man page for more details." "$LINENO" 5
16302elif test $pkg_failed = untried; then
16303        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16304printf "%s\n" "no" >&6; }
16305        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16306printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16307as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16308is in your PATH or set the PKG_CONFIG environment variable to the full
16309path to pkg-config.
16310
16311Alternatively, you may set the environment variables VALGRIND_CFLAGS
16312and VALGRIND_LIBS to avoid the need to call pkg-config.
16313See the pkg-config man page for more details.
16314
16315To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16316See \`config.log' for more details" "$LINENO" 5; }
16317else
16318        VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
16319        VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
16320        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16321printf "%s\n" "yes" >&6; }
16322
16323fi
16324fi
16325
16326# Handle code coverage reporting support
16327if test "$enable_coverage" = "yes"; then
16328  if test "x$GCC" != "xyes"; then
16329    as_fn_error $? "Code coverage reports can only be generated when using GCC" "$LINENO" 5
16330  fi
16331
16332  # ccache is incompatible with gcov
16333  # Extract the first word of "shtool", so it can be a program name with args.
16334set dummy shtool; ac_word=$2
16335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16336printf %s "checking for $ac_word... " >&6; }
16337if test ${ac_cv_path_SHTOOL+y}
16338then :
16339  printf %s "(cached) " >&6
16340else $as_nop
16341  case $SHTOOL in
16342  [\\/]* | ?:[\\/]*)
16343  ac_cv_path_SHTOOL="$SHTOOL" # Let the user override the test with a path.
16344  ;;
16345  *)
16346  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16347for as_dir in $PATH
16348do
16349  IFS=$as_save_IFS
16350  case $as_dir in #(((
16351    '') as_dir=./ ;;
16352    */) ;;
16353    *) as_dir=$as_dir/ ;;
16354  esac
16355    for ac_exec_ext in '' $ac_executable_extensions; do
16356  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16357    ac_cv_path_SHTOOL="$as_dir$ac_word$ac_exec_ext"
16358    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16359    break 2
16360  fi
16361done
16362  done
16363IFS=$as_save_IFS
16364
16365  test -z "$ac_cv_path_SHTOOL" && ac_cv_path_SHTOOL="false"
16366  ;;
16367esac
16368fi
16369SHTOOL=$ac_cv_path_SHTOOL
16370if test -n "$SHTOOL"; then
16371  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
16372printf "%s\n" "$SHTOOL" >&6; }
16373else
16374  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16375printf "%s\n" "no" >&6; }
16376fi
16377
16378
16379  case `$SHTOOL path $CC` in
16380    *ccache*) cc_ccache=yes;;
16381    *) cc_ccache=no;;
16382  esac
16383
16384  if test "$cc_ccache" = "yes"; then
16385    if test -z "$CCACHE_DISABLE" -o "$CCACHE_DISABLE" != "1"; then
16386      as_fn_error $? "must export CCACHE_DISABLE=1 to disable ccache for code coverage" "$LINENO" 5
16387    fi
16388  fi
16389
16390
16391  # Extract the first word of "lcov", so it can be a program name with args.
16392set dummy lcov; ac_word=$2
16393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16394printf %s "checking for $ac_word... " >&6; }
16395if test ${ac_cv_path_LCOV+y}
16396then :
16397  printf %s "(cached) " >&6
16398else $as_nop
16399  case $LCOV in
16400  [\\/]* | ?:[\\/]*)
16401  ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
16402  ;;
16403  *)
16404  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16405for as_dir in $PATH
16406do
16407  IFS=$as_save_IFS
16408  case $as_dir in #(((
16409    '') as_dir=./ ;;
16410    */) ;;
16411    *) as_dir=$as_dir/ ;;
16412  esac
16413    for ac_exec_ext in '' $ac_executable_extensions; do
16414  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16415    ac_cv_path_LCOV="$as_dir$ac_word$ac_exec_ext"
16416    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16417    break 2
16418  fi
16419done
16420  done
16421IFS=$as_save_IFS
16422
16423  test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="false"
16424  ;;
16425esac
16426fi
16427LCOV=$ac_cv_path_LCOV
16428if test -n "$LCOV"; then
16429  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
16430printf "%s\n" "$LCOV" >&6; }
16431else
16432  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16433printf "%s\n" "no" >&6; }
16434fi
16435
16436
16437  if test "x$LCOV" = "xfalse"; then
16438    as_fn_error $? "lcov not found" "$LINENO" 5
16439  fi
16440
16441
16442  # Extract the first word of "genhtml", so it can be a program name with args.
16443set dummy genhtml; ac_word=$2
16444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16445printf %s "checking for $ac_word... " >&6; }
16446if test ${ac_cv_path_GENHTML+y}
16447then :
16448  printf %s "(cached) " >&6
16449else $as_nop
16450  case $GENHTML in
16451  [\\/]* | ?:[\\/]*)
16452  ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
16453  ;;
16454  *)
16455  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16456for as_dir in $PATH
16457do
16458  IFS=$as_save_IFS
16459  case $as_dir in #(((
16460    '') as_dir=./ ;;
16461    */) ;;
16462    *) as_dir=$as_dir/ ;;
16463  esac
16464    for ac_exec_ext in '' $ac_executable_extensions; do
16465  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16466    ac_cv_path_GENHTML="$as_dir$ac_word$ac_exec_ext"
16467    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16468    break 2
16469  fi
16470done
16471  done
16472IFS=$as_save_IFS
16473
16474  test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="false"
16475  ;;
16476esac
16477fi
16478GENHTML=$ac_cv_path_GENHTML
16479if test -n "$GENHTML"; then
16480  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
16481printf "%s\n" "$GENHTML" >&6; }
16482else
16483  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16484printf "%s\n" "no" >&6; }
16485fi
16486
16487
16488  if test "x$GENHTML" = "xfalse"; then
16489    as_fn_error $? "genhtml not found" "$LINENO" 5
16490  fi
16491
16492  # Set flags needed for gcov
16493  GCOV_CFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
16494  GCOV_CXXFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
16495  GCOV_LIBS="-lgcov"
16496
16497
16498
16499fi # enable_coverage
16500
16501 if test "x$enable_coverage" = "xyes"; then
16502  WITH_GCOV_TRUE=
16503  WITH_GCOV_FALSE='#'
16504else
16505  WITH_GCOV_TRUE='#'
16506  WITH_GCOV_FALSE=
16507fi
16508
16509
16510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Intel CET is enabled" >&5
16511printf %s "checking whether Intel CET is enabled... " >&6; }
16512ac_ext=c
16513ac_cpp='$CPP $CPPFLAGS'
16514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16516ac_compiler_gnu=$ac_cv_c_compiler_gnu
16517
16518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16519/* end confdefs.h.  */
16520
16521int
16522main (void)
16523{
16524#ifndef __CET__
16525# error CET is not enabled
16526#endif
16527  ;
16528  return 0;
16529}
16530_ACEOF
16531if ac_fn_c_try_compile "$LINENO"
16532then :
16533  pcre2_cc_cv_intel_cet_enabled=yes
16534else $as_nop
16535  pcre2_cc_cv_intel_cet_enabled=no
16536fi
16537rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pcre2_cc_cv_intel_cet_enabled" >&5
16539printf "%s\n" "$pcre2_cc_cv_intel_cet_enabled" >&6; }
16540if test "$pcre2_cc_cv_intel_cet_enabled" = yes; then
16541  CET_CFLAGS="-mshstk"
16542
16543fi
16544ac_ext=c
16545ac_cpp='$CPP $CPPFLAGS'
16546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16548ac_compiler_gnu=$ac_cv_c_compiler_gnu
16549
16550
16551# LIB_POSTFIX is used by CMakeLists.txt for Windows debug builds.
16552# Pass empty LIB_POSTFIX to *.pc files and pcre2-config here.
16553
16554
16555# Produce these files, in addition to config.h.
16556
16557ac_config_files="$ac_config_files Makefile libpcre2-8.pc libpcre2-16.pc libpcre2-32.pc libpcre2-posix.pc pcre2-config src/pcre2.h"
16558
16559
16560# Make the generated script files executable.
16561ac_config_commands="$ac_config_commands script-chmod"
16562
16563
16564# Make sure that pcre2_chartables.c is removed in case the method for
16565# creating it was changed by reconfiguration.
16566ac_config_commands="$ac_config_commands delete-old-chartables"
16567
16568
16569cat >confcache <<\_ACEOF
16570# This file is a shell script that caches the results of configure
16571# tests run on this system so they can be shared between configure
16572# scripts and configure runs, see configure's option --config-cache.
16573# It is not useful on other systems.  If it contains results you don't
16574# want to keep, you may remove or edit it.
16575#
16576# config.status only pays attention to the cache file if you give it
16577# the --recheck option to rerun configure.
16578#
16579# `ac_cv_env_foo' variables (set or unset) will be overridden when
16580# loading this file, other *unset* `ac_cv_foo' will be assigned the
16581# following values.
16582
16583_ACEOF
16584
16585# The following way of writing the cache mishandles newlines in values,
16586# but we know of no workaround that is simple, portable, and efficient.
16587# So, we kill variables containing newlines.
16588# Ultrix sh set writes to stderr and can't be redirected directly,
16589# and sets the high bit in the cache file unless we assign to the vars.
16590(
16591  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16592    eval ac_val=\$$ac_var
16593    case $ac_val in #(
16594    *${as_nl}*)
16595      case $ac_var in #(
16596      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16597printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16598      esac
16599      case $ac_var in #(
16600      _ | IFS | as_nl) ;; #(
16601      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16602      *) { eval $ac_var=; unset $ac_var;} ;;
16603      esac ;;
16604    esac
16605  done
16606
16607  (set) 2>&1 |
16608    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16609    *${as_nl}ac_space=\ *)
16610      # `set' does not quote correctly, so add quotes: double-quote
16611      # substitution turns \\\\ into \\, and sed turns \\ into \.
16612      sed -n \
16613	"s/'/'\\\\''/g;
16614	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16615      ;; #(
16616    *)
16617      # `set' quotes correctly as required by POSIX, so do not add quotes.
16618      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16619      ;;
16620    esac |
16621    sort
16622) |
16623  sed '
16624     /^ac_cv_env_/b end
16625     t clear
16626     :clear
16627     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16628     t end
16629     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16630     :end' >>confcache
16631if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16632  if test -w "$cache_file"; then
16633    if test "x$cache_file" != "x/dev/null"; then
16634      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16635printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16636      if test ! -f "$cache_file" || test -h "$cache_file"; then
16637	cat confcache >"$cache_file"
16638      else
16639        case $cache_file in #(
16640        */* | ?:*)
16641	  mv -f confcache "$cache_file"$$ &&
16642	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16643        *)
16644	  mv -f confcache "$cache_file" ;;
16645	esac
16646      fi
16647    fi
16648  else
16649    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16650printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16651  fi
16652fi
16653rm -f confcache
16654
16655test "x$prefix" = xNONE && prefix=$ac_default_prefix
16656# Let make expand exec_prefix.
16657test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16658
16659DEFS=-DHAVE_CONFIG_H
16660
16661ac_libobjs=
16662ac_ltlibobjs=
16663U=
16664for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16665  # 1. Remove the extension, and $U if already installed.
16666  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16667  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16668  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16669  #    will be set to the directory where LIBOBJS objects are built.
16670  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16671  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16672done
16673LIBOBJS=$ac_libobjs
16674
16675LTLIBOBJS=$ac_ltlibobjs
16676
16677
16678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16679printf %s "checking that generated files are newer than configure... " >&6; }
16680   if test -n "$am_sleep_pid"; then
16681     # Hide warnings about reused PIDs.
16682     wait $am_sleep_pid 2>/dev/null
16683   fi
16684   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
16685printf "%s\n" "done" >&6; }
16686 if test -n "$EXEEXT"; then
16687  am__EXEEXT_TRUE=
16688  am__EXEEXT_FALSE='#'
16689else
16690  am__EXEEXT_TRUE='#'
16691  am__EXEEXT_FALSE=
16692fi
16693
16694if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16695  as_fn_error $? "conditional \"AMDEP\" was never defined.
16696Usually this means the macro was only invoked conditionally." "$LINENO" 5
16697fi
16698if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16699  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16700Usually this means the macro was only invoked conditionally." "$LINENO" 5
16701fi
16702if test -z "${WITH_PCRE2_8_TRUE}" && test -z "${WITH_PCRE2_8_FALSE}"; then
16703  as_fn_error $? "conditional \"WITH_PCRE2_8\" was never defined.
16704Usually this means the macro was only invoked conditionally." "$LINENO" 5
16705fi
16706if test -z "${WITH_PCRE2_16_TRUE}" && test -z "${WITH_PCRE2_16_FALSE}"; then
16707  as_fn_error $? "conditional \"WITH_PCRE2_16\" was never defined.
16708Usually this means the macro was only invoked conditionally." "$LINENO" 5
16709fi
16710if test -z "${WITH_PCRE2_32_TRUE}" && test -z "${WITH_PCRE2_32_FALSE}"; then
16711  as_fn_error $? "conditional \"WITH_PCRE2_32\" was never defined.
16712Usually this means the macro was only invoked conditionally." "$LINENO" 5
16713fi
16714if test -z "${WITH_DEBUG_TRUE}" && test -z "${WITH_DEBUG_FALSE}"; then
16715  as_fn_error $? "conditional \"WITH_DEBUG\" was never defined.
16716Usually this means the macro was only invoked conditionally." "$LINENO" 5
16717fi
16718if test -z "${WITH_REBUILD_CHARTABLES_TRUE}" && test -z "${WITH_REBUILD_CHARTABLES_FALSE}"; then
16719  as_fn_error $? "conditional \"WITH_REBUILD_CHARTABLES\" was never defined.
16720Usually this means the macro was only invoked conditionally." "$LINENO" 5
16721fi
16722if test -z "${WITH_JIT_TRUE}" && test -z "${WITH_JIT_FALSE}"; then
16723  as_fn_error $? "conditional \"WITH_JIT\" was never defined.
16724Usually this means the macro was only invoked conditionally." "$LINENO" 5
16725fi
16726if test -z "${WITH_UNICODE_TRUE}" && test -z "${WITH_UNICODE_FALSE}"; then
16727  as_fn_error $? "conditional \"WITH_UNICODE\" was never defined.
16728Usually this means the macro was only invoked conditionally." "$LINENO" 5
16729fi
16730if test -z "${WITH_VALGRIND_TRUE}" && test -z "${WITH_VALGRIND_FALSE}"; then
16731  as_fn_error $? "conditional \"WITH_VALGRIND\" was never defined.
16732Usually this means the macro was only invoked conditionally." "$LINENO" 5
16733fi
16734if test -z "${WITH_FUZZ_SUPPORT_TRUE}" && test -z "${WITH_FUZZ_SUPPORT_FALSE}"; then
16735  as_fn_error $? "conditional \"WITH_FUZZ_SUPPORT\" was never defined.
16736Usually this means the macro was only invoked conditionally." "$LINENO" 5
16737fi
16738if test -z "${WITH_DIFF_FUZZ_SUPPORT_TRUE}" && test -z "${WITH_DIFF_FUZZ_SUPPORT_FALSE}"; then
16739  as_fn_error $? "conditional \"WITH_DIFF_FUZZ_SUPPORT\" was never defined.
16740Usually this means the macro was only invoked conditionally." "$LINENO" 5
16741fi
16742if test -z "${WITH_GCOV_TRUE}" && test -z "${WITH_GCOV_FALSE}"; then
16743  as_fn_error $? "conditional \"WITH_GCOV\" was never defined.
16744Usually this means the macro was only invoked conditionally." "$LINENO" 5
16745fi
16746
16747: "${CONFIG_STATUS=./config.status}"
16748ac_write_fail=0
16749ac_clean_files_save=$ac_clean_files
16750ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16752printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16753as_write_fail=0
16754cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16755#! $SHELL
16756# Generated by $as_me.
16757# Run this file to recreate the current configuration.
16758# Compiler output produced by configure, useful for debugging
16759# configure, is in config.log if it exists.
16760
16761debug=false
16762ac_cs_recheck=false
16763ac_cs_silent=false
16764
16765SHELL=\${CONFIG_SHELL-$SHELL}
16766export SHELL
16767_ASEOF
16768cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16769## -------------------- ##
16770## M4sh Initialization. ##
16771## -------------------- ##
16772
16773# Be more Bourne compatible
16774DUALCASE=1; export DUALCASE # for MKS sh
16775as_nop=:
16776if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16777then :
16778  emulate sh
16779  NULLCMD=:
16780  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16781  # is contrary to our usage.  Disable this feature.
16782  alias -g '${1+"$@"}'='"$@"'
16783  setopt NO_GLOB_SUBST
16784else $as_nop
16785  case `(set -o) 2>/dev/null` in #(
16786  *posix*) :
16787    set -o posix ;; #(
16788  *) :
16789     ;;
16790esac
16791fi
16792
16793
16794
16795# Reset variables that may have inherited troublesome values from
16796# the environment.
16797
16798# IFS needs to be set, to space, tab, and newline, in precisely that order.
16799# (If _AS_PATH_WALK were called with IFS unset, it would have the
16800# side effect of setting IFS to empty, thus disabling word splitting.)
16801# Quoting is to prevent editors from complaining about space-tab.
16802as_nl='
16803'
16804export as_nl
16805IFS=" ""	$as_nl"
16806
16807PS1='$ '
16808PS2='> '
16809PS4='+ '
16810
16811# Ensure predictable behavior from utilities with locale-dependent output.
16812LC_ALL=C
16813export LC_ALL
16814LANGUAGE=C
16815export LANGUAGE
16816
16817# We cannot yet rely on "unset" to work, but we need these variables
16818# to be unset--not just set to an empty or harmless value--now, to
16819# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
16820# also avoids known problems related to "unset" and subshell syntax
16821# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16822for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16823do eval test \${$as_var+y} \
16824  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16825done
16826
16827# Ensure that fds 0, 1, and 2 are open.
16828if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16829if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16830if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
16831
16832# The user is always right.
16833if ${PATH_SEPARATOR+false} :; then
16834  PATH_SEPARATOR=:
16835  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16836    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16837      PATH_SEPARATOR=';'
16838  }
16839fi
16840
16841
16842# Find who we are.  Look in the path if we contain no directory separator.
16843as_myself=
16844case $0 in #((
16845  *[\\/]* ) as_myself=$0 ;;
16846  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16847for as_dir in $PATH
16848do
16849  IFS=$as_save_IFS
16850  case $as_dir in #(((
16851    '') as_dir=./ ;;
16852    */) ;;
16853    *) as_dir=$as_dir/ ;;
16854  esac
16855    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16856  done
16857IFS=$as_save_IFS
16858
16859     ;;
16860esac
16861# We did not find ourselves, most probably we were run as `sh COMMAND'
16862# in which case we are not to be found in the path.
16863if test "x$as_myself" = x; then
16864  as_myself=$0
16865fi
16866if test ! -f "$as_myself"; then
16867  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16868  exit 1
16869fi
16870
16871
16872
16873# as_fn_error STATUS ERROR [LINENO LOG_FD]
16874# ----------------------------------------
16875# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16876# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16877# script with STATUS, using 1 if that was 0.
16878as_fn_error ()
16879{
16880  as_status=$1; test $as_status -eq 0 && as_status=1
16881  if test "$4"; then
16882    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16883    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16884  fi
16885  printf "%s\n" "$as_me: error: $2" >&2
16886  as_fn_exit $as_status
16887} # as_fn_error
16888
16889
16890
16891# as_fn_set_status STATUS
16892# -----------------------
16893# Set $? to STATUS, without forking.
16894as_fn_set_status ()
16895{
16896  return $1
16897} # as_fn_set_status
16898
16899# as_fn_exit STATUS
16900# -----------------
16901# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16902as_fn_exit ()
16903{
16904  set +e
16905  as_fn_set_status $1
16906  exit $1
16907} # as_fn_exit
16908
16909# as_fn_unset VAR
16910# ---------------
16911# Portably unset VAR.
16912as_fn_unset ()
16913{
16914  { eval $1=; unset $1;}
16915}
16916as_unset=as_fn_unset
16917
16918# as_fn_append VAR VALUE
16919# ----------------------
16920# Append the text in VALUE to the end of the definition contained in VAR. Take
16921# advantage of any shell optimizations that allow amortized linear growth over
16922# repeated appends, instead of the typical quadratic growth present in naive
16923# implementations.
16924if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16925then :
16926  eval 'as_fn_append ()
16927  {
16928    eval $1+=\$2
16929  }'
16930else $as_nop
16931  as_fn_append ()
16932  {
16933    eval $1=\$$1\$2
16934  }
16935fi # as_fn_append
16936
16937# as_fn_arith ARG...
16938# ------------------
16939# Perform arithmetic evaluation on the ARGs, and store the result in the
16940# global $as_val. Take advantage of shells that can avoid forks. The arguments
16941# must be portable across $(()) and expr.
16942if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16943then :
16944  eval 'as_fn_arith ()
16945  {
16946    as_val=$(( $* ))
16947  }'
16948else $as_nop
16949  as_fn_arith ()
16950  {
16951    as_val=`expr "$@" || test $? -eq 1`
16952  }
16953fi # as_fn_arith
16954
16955
16956if expr a : '\(a\)' >/dev/null 2>&1 &&
16957   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16958  as_expr=expr
16959else
16960  as_expr=false
16961fi
16962
16963if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16964  as_basename=basename
16965else
16966  as_basename=false
16967fi
16968
16969if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16970  as_dirname=dirname
16971else
16972  as_dirname=false
16973fi
16974
16975as_me=`$as_basename -- "$0" ||
16976$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16977	 X"$0" : 'X\(//\)$' \| \
16978	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16979printf "%s\n" X/"$0" |
16980    sed '/^.*\/\([^/][^/]*\)\/*$/{
16981	    s//\1/
16982	    q
16983	  }
16984	  /^X\/\(\/\/\)$/{
16985	    s//\1/
16986	    q
16987	  }
16988	  /^X\/\(\/\).*/{
16989	    s//\1/
16990	    q
16991	  }
16992	  s/.*/./; q'`
16993
16994# Avoid depending upon Character Ranges.
16995as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16996as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16997as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16998as_cr_digits='0123456789'
16999as_cr_alnum=$as_cr_Letters$as_cr_digits
17000
17001
17002# Determine whether it's possible to make 'echo' print without a newline.
17003# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
17004# for compatibility with existing Makefiles.
17005ECHO_C= ECHO_N= ECHO_T=
17006case `echo -n x` in #(((((
17007-n*)
17008  case `echo 'xy\c'` in
17009  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17010  xy)  ECHO_C='\c';;
17011  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17012       ECHO_T='	';;
17013  esac;;
17014*)
17015  ECHO_N='-n';;
17016esac
17017
17018# For backward compatibility with old third-party macros, we provide
17019# the shell variables $as_echo and $as_echo_n.  New code should use
17020# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
17021as_echo='printf %s\n'
17022as_echo_n='printf %s'
17023
17024rm -f conf$$ conf$$.exe conf$$.file
17025if test -d conf$$.dir; then
17026  rm -f conf$$.dir/conf$$.file
17027else
17028  rm -f conf$$.dir
17029  mkdir conf$$.dir 2>/dev/null
17030fi
17031if (echo >conf$$.file) 2>/dev/null; then
17032  if ln -s conf$$.file conf$$ 2>/dev/null; then
17033    as_ln_s='ln -s'
17034    # ... but there are two gotchas:
17035    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17036    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17037    # In both cases, we have to default to `cp -pR'.
17038    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17039      as_ln_s='cp -pR'
17040  elif ln conf$$.file conf$$ 2>/dev/null; then
17041    as_ln_s=ln
17042  else
17043    as_ln_s='cp -pR'
17044  fi
17045else
17046  as_ln_s='cp -pR'
17047fi
17048rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17049rmdir conf$$.dir 2>/dev/null
17050
17051
17052# as_fn_mkdir_p
17053# -------------
17054# Create "$as_dir" as a directory, including parents if necessary.
17055as_fn_mkdir_p ()
17056{
17057
17058  case $as_dir in #(
17059  -*) as_dir=./$as_dir;;
17060  esac
17061  test -d "$as_dir" || eval $as_mkdir_p || {
17062    as_dirs=
17063    while :; do
17064      case $as_dir in #(
17065      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17066      *) as_qdir=$as_dir;;
17067      esac
17068      as_dirs="'$as_qdir' $as_dirs"
17069      as_dir=`$as_dirname -- "$as_dir" ||
17070$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17071	 X"$as_dir" : 'X\(//\)[^/]' \| \
17072	 X"$as_dir" : 'X\(//\)$' \| \
17073	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17074printf "%s\n" X"$as_dir" |
17075    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17076	    s//\1/
17077	    q
17078	  }
17079	  /^X\(\/\/\)[^/].*/{
17080	    s//\1/
17081	    q
17082	  }
17083	  /^X\(\/\/\)$/{
17084	    s//\1/
17085	    q
17086	  }
17087	  /^X\(\/\).*/{
17088	    s//\1/
17089	    q
17090	  }
17091	  s/.*/./; q'`
17092      test -d "$as_dir" && break
17093    done
17094    test -z "$as_dirs" || eval "mkdir $as_dirs"
17095  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17096
17097
17098} # as_fn_mkdir_p
17099if mkdir -p . 2>/dev/null; then
17100  as_mkdir_p='mkdir -p "$as_dir"'
17101else
17102  test -d ./-p && rmdir ./-p
17103  as_mkdir_p=false
17104fi
17105
17106
17107# as_fn_executable_p FILE
17108# -----------------------
17109# Test if FILE is an executable regular file.
17110as_fn_executable_p ()
17111{
17112  test -f "$1" && test -x "$1"
17113} # as_fn_executable_p
17114as_test_x='test -x'
17115as_executable_p=as_fn_executable_p
17116
17117# Sed expression to map a string onto a valid CPP name.
17118as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17119
17120# Sed expression to map a string onto a valid variable name.
17121as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17122
17123
17124exec 6>&1
17125## ----------------------------------- ##
17126## Main body of $CONFIG_STATUS script. ##
17127## ----------------------------------- ##
17128_ASEOF
17129test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17130
17131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17132# Save the log message, to keep $0 and so on meaningful, and to
17133# report actual input values of CONFIG_FILES etc. instead of their
17134# values after options handling.
17135ac_log="
17136This file was extended by PCRE2 $as_me 10.43, which was
17137generated by GNU Autoconf 2.71.  Invocation command line was
17138
17139  CONFIG_FILES    = $CONFIG_FILES
17140  CONFIG_HEADERS  = $CONFIG_HEADERS
17141  CONFIG_LINKS    = $CONFIG_LINKS
17142  CONFIG_COMMANDS = $CONFIG_COMMANDS
17143  $ $0 $@
17144
17145on `(hostname || uname -n) 2>/dev/null | sed 1q`
17146"
17147
17148_ACEOF
17149
17150case $ac_config_files in *"
17151"*) set x $ac_config_files; shift; ac_config_files=$*;;
17152esac
17153
17154case $ac_config_headers in *"
17155"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17156esac
17157
17158
17159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17160# Files that config.status was made for.
17161config_files="$ac_config_files"
17162config_headers="$ac_config_headers"
17163config_commands="$ac_config_commands"
17164
17165_ACEOF
17166
17167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17168ac_cs_usage="\
17169\`$as_me' instantiates files and other configuration actions
17170from templates according to the current configuration.  Unless the files
17171and actions are specified as TAGs, all are instantiated by default.
17172
17173Usage: $0 [OPTION]... [TAG]...
17174
17175  -h, --help       print this help, then exit
17176  -V, --version    print version number and configuration settings, then exit
17177      --config     print configuration, then exit
17178  -q, --quiet, --silent
17179                   do not print progress messages
17180  -d, --debug      don't remove temporary files
17181      --recheck    update $as_me by reconfiguring in the same conditions
17182      --file=FILE[:TEMPLATE]
17183                   instantiate the configuration file FILE
17184      --header=FILE[:TEMPLATE]
17185                   instantiate the configuration header FILE
17186
17187Configuration files:
17188$config_files
17189
17190Configuration headers:
17191$config_headers
17192
17193Configuration commands:
17194$config_commands
17195
17196Report bugs to the package provider."
17197
17198_ACEOF
17199ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
17200ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
17201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17202ac_cs_config='$ac_cs_config_escaped'
17203ac_cs_version="\\
17204PCRE2 config.status 10.43
17205configured by $0, generated by GNU Autoconf 2.71,
17206  with options \\"\$ac_cs_config\\"
17207
17208Copyright (C) 2021 Free Software Foundation, Inc.
17209This config.status script is free software; the Free Software Foundation
17210gives unlimited permission to copy, distribute and modify it."
17211
17212ac_pwd='$ac_pwd'
17213srcdir='$srcdir'
17214INSTALL='$INSTALL'
17215MKDIR_P='$MKDIR_P'
17216AWK='$AWK'
17217test -n "\$AWK" || AWK=awk
17218_ACEOF
17219
17220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17221# The default lists apply if the user does not specify any file.
17222ac_need_defaults=:
17223while test $# != 0
17224do
17225  case $1 in
17226  --*=?*)
17227    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17228    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17229    ac_shift=:
17230    ;;
17231  --*=)
17232    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17233    ac_optarg=
17234    ac_shift=:
17235    ;;
17236  *)
17237    ac_option=$1
17238    ac_optarg=$2
17239    ac_shift=shift
17240    ;;
17241  esac
17242
17243  case $ac_option in
17244  # Handling of the options.
17245  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17246    ac_cs_recheck=: ;;
17247  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17248    printf "%s\n" "$ac_cs_version"; exit ;;
17249  --config | --confi | --conf | --con | --co | --c )
17250    printf "%s\n" "$ac_cs_config"; exit ;;
17251  --debug | --debu | --deb | --de | --d | -d )
17252    debug=: ;;
17253  --file | --fil | --fi | --f )
17254    $ac_shift
17255    case $ac_optarg in
17256    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17257    '') as_fn_error $? "missing file argument" ;;
17258    esac
17259    as_fn_append CONFIG_FILES " '$ac_optarg'"
17260    ac_need_defaults=false;;
17261  --header | --heade | --head | --hea )
17262    $ac_shift
17263    case $ac_optarg in
17264    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17265    esac
17266    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17267    ac_need_defaults=false;;
17268  --he | --h)
17269    # Conflict between --help and --header
17270    as_fn_error $? "ambiguous option: \`$1'
17271Try \`$0 --help' for more information.";;
17272  --help | --hel | -h )
17273    printf "%s\n" "$ac_cs_usage"; exit ;;
17274  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17275  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17276    ac_cs_silent=: ;;
17277
17278  # This is an error.
17279  -*) as_fn_error $? "unrecognized option: \`$1'
17280Try \`$0 --help' for more information." ;;
17281
17282  *) as_fn_append ac_config_targets " $1"
17283     ac_need_defaults=false ;;
17284
17285  esac
17286  shift
17287done
17288
17289ac_configure_extra_args=
17290
17291if $ac_cs_silent; then
17292  exec 6>/dev/null
17293  ac_configure_extra_args="$ac_configure_extra_args --silent"
17294fi
17295
17296_ACEOF
17297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17298if \$ac_cs_recheck; then
17299  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17300  shift
17301  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
17302  CONFIG_SHELL='$SHELL'
17303  export CONFIG_SHELL
17304  exec "\$@"
17305fi
17306
17307_ACEOF
17308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17309exec 5>>config.log
17310{
17311  echo
17312  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17313## Running $as_me. ##
17314_ASBOX
17315  printf "%s\n" "$ac_log"
17316} >&5
17317
17318_ACEOF
17319cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17320#
17321# INIT-COMMANDS
17322#
17323AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17324
17325
17326# The HP-UX ksh and POSIX shell print the target directory to stdout
17327# if CDPATH is set.
17328(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17329
17330sed_quote_subst='$sed_quote_subst'
17331double_quote_subst='$double_quote_subst'
17332delay_variable_subst='$delay_variable_subst'
17333macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17334macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17335AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17336DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17337OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17338enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17339enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17340pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17341enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17342shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17343SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17344ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17345PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17346host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17347host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17348host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17349build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17350build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17351build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17352SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17353Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17354GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17355EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17356FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17357LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17358NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17359LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17360max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17361ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17362exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17363lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17364lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17365lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17366lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17367lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17368reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17369reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17370FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
17371deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17372file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17373file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17374want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17375sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17376AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17377lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
17378AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17379archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17380STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17381RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17382old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17383old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17384old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17385lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17386CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17387CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17388compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17389GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17390lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17391lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17392lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17393lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17394lt_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"`'
17395lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17396nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17397lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17398lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17399objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17400MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17401lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17402lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17403lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17404lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17405lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17406need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17407MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17408DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17409NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17410LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17411OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17412OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17413libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17414shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17415extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17416archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17417enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17418export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17419whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17420compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17421old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17422old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17423archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17424archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17425module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17426module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17427with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17428allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17429no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17430hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17431hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17432hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17433hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17434hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17435hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17436hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17437inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17438link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17439always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17440export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17441exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17442include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17443prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17444postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17445file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17446variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17447need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17448need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17449version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17450runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17451shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17452shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17453libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17454library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17455soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17456install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17457postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17458postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17459finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17460finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17461hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17462sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17463configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17464configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17465hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17466enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17467enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17468enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17469old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17470striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17471
17472LTCC='$LTCC'
17473LTCFLAGS='$LTCFLAGS'
17474compiler='$compiler_DEFAULT'
17475
17476# A function that is used when there is no print builtin or printf.
17477func_fallback_echo ()
17478{
17479  eval 'cat <<_LTECHO_EOF
17480\$1
17481_LTECHO_EOF'
17482}
17483
17484# Quote evaled strings.
17485for var in AS \
17486DLLTOOL \
17487OBJDUMP \
17488SHELL \
17489ECHO \
17490PATH_SEPARATOR \
17491SED \
17492GREP \
17493EGREP \
17494FGREP \
17495LD \
17496NM \
17497LN_S \
17498lt_SP2NL \
17499lt_NL2SP \
17500reload_flag \
17501FILECMD \
17502deplibs_check_method \
17503file_magic_cmd \
17504file_magic_glob \
17505want_nocaseglob \
17506sharedlib_from_linklib_cmd \
17507AR \
17508archiver_list_spec \
17509STRIP \
17510RANLIB \
17511CC \
17512CFLAGS \
17513compiler \
17514lt_cv_sys_global_symbol_pipe \
17515lt_cv_sys_global_symbol_to_cdecl \
17516lt_cv_sys_global_symbol_to_import \
17517lt_cv_sys_global_symbol_to_c_name_address \
17518lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17519lt_cv_nm_interface \
17520nm_file_list_spec \
17521lt_cv_truncate_bin \
17522lt_prog_compiler_no_builtin_flag \
17523lt_prog_compiler_pic \
17524lt_prog_compiler_wl \
17525lt_prog_compiler_static \
17526lt_cv_prog_compiler_c_o \
17527need_locks \
17528MANIFEST_TOOL \
17529DSYMUTIL \
17530NMEDIT \
17531LIPO \
17532OTOOL \
17533OTOOL64 \
17534shrext_cmds \
17535export_dynamic_flag_spec \
17536whole_archive_flag_spec \
17537compiler_needs_object \
17538with_gnu_ld \
17539allow_undefined_flag \
17540no_undefined_flag \
17541hardcode_libdir_flag_spec \
17542hardcode_libdir_separator \
17543exclude_expsyms \
17544include_expsyms \
17545file_list_spec \
17546variables_saved_for_relink \
17547libname_spec \
17548library_names_spec \
17549soname_spec \
17550install_override_mode \
17551finish_eval \
17552old_striplib \
17553striplib; do
17554    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17555    *[\\\\\\\`\\"\\\$]*)
17556      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17557      ;;
17558    *)
17559      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17560      ;;
17561    esac
17562done
17563
17564# Double-quote double-evaled strings.
17565for var in reload_cmds \
17566old_postinstall_cmds \
17567old_postuninstall_cmds \
17568old_archive_cmds \
17569extract_expsyms_cmds \
17570old_archive_from_new_cmds \
17571old_archive_from_expsyms_cmds \
17572archive_cmds \
17573archive_expsym_cmds \
17574module_cmds \
17575module_expsym_cmds \
17576export_symbols_cmds \
17577prelink_cmds \
17578postlink_cmds \
17579postinstall_cmds \
17580postuninstall_cmds \
17581finish_cmds \
17582sys_lib_search_path_spec \
17583configure_time_dlsearch_path \
17584configure_time_lt_sys_library_path; do
17585    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17586    *[\\\\\\\`\\"\\\$]*)
17587      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17588      ;;
17589    *)
17590      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17591      ;;
17592    esac
17593done
17594
17595ac_aux_dir='$ac_aux_dir'
17596
17597# See if we are running on zsh, and set the options that allow our
17598# commands through without removal of \ escapes INIT.
17599if test -n "\${ZSH_VERSION+set}"; then
17600   setopt NO_GLOB_SUBST
17601fi
17602
17603
17604    PACKAGE='$PACKAGE'
17605    VERSION='$VERSION'
17606    RM='$RM'
17607    ofile='$ofile'
17608
17609
17610
17611
17612_ACEOF
17613
17614cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17615
17616# Handling of arguments.
17617for ac_config_target in $ac_config_targets
17618do
17619  case $ac_config_target in
17620    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
17621    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17622    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17623    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17624    "libpcre2-8.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-8.pc" ;;
17625    "libpcre2-16.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-16.pc" ;;
17626    "libpcre2-32.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-32.pc" ;;
17627    "libpcre2-posix.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-posix.pc" ;;
17628    "pcre2-config") CONFIG_FILES="$CONFIG_FILES pcre2-config" ;;
17629    "src/pcre2.h") CONFIG_FILES="$CONFIG_FILES src/pcre2.h" ;;
17630    "script-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS script-chmod" ;;
17631    "delete-old-chartables") CONFIG_COMMANDS="$CONFIG_COMMANDS delete-old-chartables" ;;
17632
17633  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17634  esac
17635done
17636
17637
17638# If the user did not use the arguments to specify the items to instantiate,
17639# then the envvar interface is used.  Set only those that are not.
17640# We use the long form for the default assignment because of an extremely
17641# bizarre bug on SunOS 4.1.3.
17642if $ac_need_defaults; then
17643  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
17644  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
17645  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
17646fi
17647
17648# Have a temporary directory for convenience.  Make it in the build tree
17649# simply because there is no reason against having it here, and in addition,
17650# creating and moving files from /tmp can sometimes cause problems.
17651# Hook for its removal unless debugging.
17652# Note that there is a small window in which the directory will not be cleaned:
17653# after its creation but before its name has been assigned to `$tmp'.
17654$debug ||
17655{
17656  tmp= ac_tmp=
17657  trap 'exit_status=$?
17658  : "${ac_tmp:=$tmp}"
17659  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17660' 0
17661  trap 'as_fn_exit 1' 1 2 13 15
17662}
17663# Create a (secure) tmp directory for tmp files.
17664
17665{
17666  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17667  test -d "$tmp"
17668}  ||
17669{
17670  tmp=./conf$$-$RANDOM
17671  (umask 077 && mkdir "$tmp")
17672} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17673ac_tmp=$tmp
17674
17675# Set up the scripts for CONFIG_FILES section.
17676# No need to generate them if there are no CONFIG_FILES.
17677# This happens for instance with `./config.status config.h'.
17678if test -n "$CONFIG_FILES"; then
17679
17680
17681ac_cr=`echo X | tr X '\015'`
17682# On cygwin, bash can eat \r inside `` if the user requested igncr.
17683# But we know of no other shell where ac_cr would be empty at this
17684# point, so we can use a bashism as a fallback.
17685if test "x$ac_cr" = x; then
17686  eval ac_cr=\$\'\\r\'
17687fi
17688ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17689if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17690  ac_cs_awk_cr='\\r'
17691else
17692  ac_cs_awk_cr=$ac_cr
17693fi
17694
17695echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17696_ACEOF
17697
17698
17699{
17700  echo "cat >conf$$subs.awk <<_ACEOF" &&
17701  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17702  echo "_ACEOF"
17703} >conf$$subs.sh ||
17704  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17705ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17706ac_delim='%!_!# '
17707for ac_last_try in false false false false false :; do
17708  . ./conf$$subs.sh ||
17709    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17710
17711  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17712  if test $ac_delim_n = $ac_delim_num; then
17713    break
17714  elif $ac_last_try; then
17715    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17716  else
17717    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17718  fi
17719done
17720rm -f conf$$subs.sh
17721
17722cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17723cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17724_ACEOF
17725sed -n '
17726h
17727s/^/S["/; s/!.*/"]=/
17728p
17729g
17730s/^[^!]*!//
17731:repl
17732t repl
17733s/'"$ac_delim"'$//
17734t delim
17735:nl
17736h
17737s/\(.\{148\}\)..*/\1/
17738t more1
17739s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17740p
17741n
17742b repl
17743:more1
17744s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17745p
17746g
17747s/.\{148\}//
17748t nl
17749:delim
17750h
17751s/\(.\{148\}\)..*/\1/
17752t more2
17753s/["\\]/\\&/g; s/^/"/; s/$/"/
17754p
17755b
17756:more2
17757s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17758p
17759g
17760s/.\{148\}//
17761t delim
17762' <conf$$subs.awk | sed '
17763/^[^""]/{
17764  N
17765  s/\n//
17766}
17767' >>$CONFIG_STATUS || ac_write_fail=1
17768rm -f conf$$subs.awk
17769cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17770_ACAWK
17771cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17772  for (key in S) S_is_set[key] = 1
17773  FS = ""
17774
17775}
17776{
17777  line = $ 0
17778  nfields = split(line, field, "@")
17779  substed = 0
17780  len = length(field[1])
17781  for (i = 2; i < nfields; i++) {
17782    key = field[i]
17783    keylen = length(key)
17784    if (S_is_set[key]) {
17785      value = S[key]
17786      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17787      len += length(value) + length(field[++i])
17788      substed = 1
17789    } else
17790      len += 1 + keylen
17791  }
17792
17793  print line
17794}
17795
17796_ACAWK
17797_ACEOF
17798cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17799if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17800  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17801else
17802  cat
17803fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17804  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17805_ACEOF
17806
17807# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17808# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17809# trailing colons and then remove the whole line if VPATH becomes empty
17810# (actually we leave an empty line to preserve line numbers).
17811if test "x$srcdir" = x.; then
17812  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
17813h
17814s///
17815s/^/:/
17816s/[	 ]*$/:/
17817s/:\$(srcdir):/:/g
17818s/:\${srcdir}:/:/g
17819s/:@srcdir@:/:/g
17820s/^:*//
17821s/:*$//
17822x
17823s/\(=[	 ]*\).*/\1/
17824G
17825s/\n//
17826s/^[^=]*=[	 ]*$//
17827}'
17828fi
17829
17830cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17831fi # test -n "$CONFIG_FILES"
17832
17833# Set up the scripts for CONFIG_HEADERS section.
17834# No need to generate them if there are no CONFIG_HEADERS.
17835# This happens for instance with `./config.status Makefile'.
17836if test -n "$CONFIG_HEADERS"; then
17837cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17838BEGIN {
17839_ACEOF
17840
17841# Transform confdefs.h into an awk script `defines.awk', embedded as
17842# here-document in config.status, that substitutes the proper values into
17843# config.h.in to produce config.h.
17844
17845# Create a delimiter string that does not exist in confdefs.h, to ease
17846# handling of long lines.
17847ac_delim='%!_!# '
17848for ac_last_try in false false :; do
17849  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17850  if test -z "$ac_tt"; then
17851    break
17852  elif $ac_last_try; then
17853    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17854  else
17855    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17856  fi
17857done
17858
17859# For the awk script, D is an array of macro values keyed by name,
17860# likewise P contains macro parameters if any.  Preserve backslash
17861# newline sequences.
17862
17863ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17864sed -n '
17865s/.\{148\}/&'"$ac_delim"'/g
17866t rset
17867:rset
17868s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17869t def
17870d
17871:def
17872s/\\$//
17873t bsnl
17874s/["\\]/\\&/g
17875s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17876D["\1"]=" \3"/p
17877s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17878d
17879:bsnl
17880s/["\\]/\\&/g
17881s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17882D["\1"]=" \3\\\\\\n"\\/p
17883t cont
17884s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17885t cont
17886d
17887:cont
17888n
17889s/.\{148\}/&'"$ac_delim"'/g
17890t clear
17891:clear
17892s/\\$//
17893t bsnlc
17894s/["\\]/\\&/g; s/^/"/; s/$/"/p
17895d
17896:bsnlc
17897s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17898b cont
17899' <confdefs.h | sed '
17900s/'"$ac_delim"'/"\\\
17901"/g' >>$CONFIG_STATUS || ac_write_fail=1
17902
17903cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17904  for (key in D) D_is_set[key] = 1
17905  FS = ""
17906}
17907/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17908  line = \$ 0
17909  split(line, arg, " ")
17910  if (arg[1] == "#") {
17911    defundef = arg[2]
17912    mac1 = arg[3]
17913  } else {
17914    defundef = substr(arg[1], 2)
17915    mac1 = arg[2]
17916  }
17917  split(mac1, mac2, "(") #)
17918  macro = mac2[1]
17919  prefix = substr(line, 1, index(line, defundef) - 1)
17920  if (D_is_set[macro]) {
17921    # Preserve the white space surrounding the "#".
17922    print prefix "define", macro P[macro] D[macro]
17923    next
17924  } else {
17925    # Replace #undef with comments.  This is necessary, for example,
17926    # in the case of _POSIX_SOURCE, which is predefined and required
17927    # on some systems where configure will not decide to define it.
17928    if (defundef == "undef") {
17929      print "/*", prefix defundef, macro, "*/"
17930      next
17931    }
17932  }
17933}
17934{ print }
17935_ACAWK
17936_ACEOF
17937cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17938  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17939fi # test -n "$CONFIG_HEADERS"
17940
17941
17942eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17943shift
17944for ac_tag
17945do
17946  case $ac_tag in
17947  :[FHLC]) ac_mode=$ac_tag; continue;;
17948  esac
17949  case $ac_mode$ac_tag in
17950  :[FHL]*:*);;
17951  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17952  :[FH]-) ac_tag=-:-;;
17953  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17954  esac
17955  ac_save_IFS=$IFS
17956  IFS=:
17957  set x $ac_tag
17958  IFS=$ac_save_IFS
17959  shift
17960  ac_file=$1
17961  shift
17962
17963  case $ac_mode in
17964  :L) ac_source=$1;;
17965  :[FH])
17966    ac_file_inputs=
17967    for ac_f
17968    do
17969      case $ac_f in
17970      -) ac_f="$ac_tmp/stdin";;
17971      *) # Look for the file first in the build tree, then in the source tree
17972	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17973	 # because $ac_f cannot contain `:'.
17974	 test -f "$ac_f" ||
17975	   case $ac_f in
17976	   [\\/$]*) false;;
17977	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17978	   esac ||
17979	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17980      esac
17981      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17982      as_fn_append ac_file_inputs " '$ac_f'"
17983    done
17984
17985    # Let's still pretend it is `configure' which instantiates (i.e., don't
17986    # use $as_me), people would be surprised to read:
17987    #    /* config.h.  Generated by config.status.  */
17988    configure_input='Generated from '`
17989	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17990	`' by configure.'
17991    if test x"$ac_file" != x-; then
17992      configure_input="$ac_file.  $configure_input"
17993      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17994printf "%s\n" "$as_me: creating $ac_file" >&6;}
17995    fi
17996    # Neutralize special characters interpreted by sed in replacement strings.
17997    case $configure_input in #(
17998    *\&* | *\|* | *\\* )
17999       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
18000       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18001    *) ac_sed_conf_input=$configure_input;;
18002    esac
18003
18004    case $ac_tag in
18005    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18006      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18007    esac
18008    ;;
18009  esac
18010
18011  ac_dir=`$as_dirname -- "$ac_file" ||
18012$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18013	 X"$ac_file" : 'X\(//\)[^/]' \| \
18014	 X"$ac_file" : 'X\(//\)$' \| \
18015	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18016printf "%s\n" X"$ac_file" |
18017    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18018	    s//\1/
18019	    q
18020	  }
18021	  /^X\(\/\/\)[^/].*/{
18022	    s//\1/
18023	    q
18024	  }
18025	  /^X\(\/\/\)$/{
18026	    s//\1/
18027	    q
18028	  }
18029	  /^X\(\/\).*/{
18030	    s//\1/
18031	    q
18032	  }
18033	  s/.*/./; q'`
18034  as_dir="$ac_dir"; as_fn_mkdir_p
18035  ac_builddir=.
18036
18037case "$ac_dir" in
18038.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18039*)
18040  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
18041  # A ".." for each directory in $ac_dir_suffix.
18042  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18043  case $ac_top_builddir_sub in
18044  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18045  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18046  esac ;;
18047esac
18048ac_abs_top_builddir=$ac_pwd
18049ac_abs_builddir=$ac_pwd$ac_dir_suffix
18050# for backward compatibility:
18051ac_top_builddir=$ac_top_build_prefix
18052
18053case $srcdir in
18054  .)  # We are building in place.
18055    ac_srcdir=.
18056    ac_top_srcdir=$ac_top_builddir_sub
18057    ac_abs_top_srcdir=$ac_pwd ;;
18058  [\\/]* | ?:[\\/]* )  # Absolute name.
18059    ac_srcdir=$srcdir$ac_dir_suffix;
18060    ac_top_srcdir=$srcdir
18061    ac_abs_top_srcdir=$srcdir ;;
18062  *) # Relative name.
18063    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18064    ac_top_srcdir=$ac_top_build_prefix$srcdir
18065    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18066esac
18067ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18068
18069
18070  case $ac_mode in
18071  :F)
18072  #
18073  # CONFIG_FILE
18074  #
18075
18076  case $INSTALL in
18077  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18078  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18079  esac
18080  ac_MKDIR_P=$MKDIR_P
18081  case $MKDIR_P in
18082  [\\/$]* | ?:[\\/]* ) ;;
18083  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18084  esac
18085_ACEOF
18086
18087cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18088# If the template does not know about datarootdir, expand it.
18089# FIXME: This hack should be removed a few years after 2.60.
18090ac_datarootdir_hack=; ac_datarootdir_seen=
18091ac_sed_dataroot='
18092/datarootdir/ {
18093  p
18094  q
18095}
18096/@datadir@/p
18097/@docdir@/p
18098/@infodir@/p
18099/@localedir@/p
18100/@mandir@/p'
18101case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18102*datarootdir*) ac_datarootdir_seen=yes;;
18103*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18104  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18105printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18106_ACEOF
18107cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18108  ac_datarootdir_hack='
18109  s&@datadir@&$datadir&g
18110  s&@docdir@&$docdir&g
18111  s&@infodir@&$infodir&g
18112  s&@localedir@&$localedir&g
18113  s&@mandir@&$mandir&g
18114  s&\\\${datarootdir}&$datarootdir&g' ;;
18115esac
18116_ACEOF
18117
18118# Neutralize VPATH when `$srcdir' = `.'.
18119# Shell code in configure.ac might set extrasub.
18120# FIXME: do we really want to maintain this feature?
18121cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18122ac_sed_extra="$ac_vpsub
18123$extrasub
18124_ACEOF
18125cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18126:t
18127/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18128s|@configure_input@|$ac_sed_conf_input|;t t
18129s&@top_builddir@&$ac_top_builddir_sub&;t t
18130s&@top_build_prefix@&$ac_top_build_prefix&;t t
18131s&@srcdir@&$ac_srcdir&;t t
18132s&@abs_srcdir@&$ac_abs_srcdir&;t t
18133s&@top_srcdir@&$ac_top_srcdir&;t t
18134s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18135s&@builddir@&$ac_builddir&;t t
18136s&@abs_builddir@&$ac_abs_builddir&;t t
18137s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18138s&@INSTALL@&$ac_INSTALL&;t t
18139s&@MKDIR_P@&$ac_MKDIR_P&;t t
18140$ac_datarootdir_hack
18141"
18142eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18143  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18144
18145test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18146  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18147  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18148      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18149  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18150which seems to be undefined.  Please make sure it is defined" >&5
18151printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18152which seems to be undefined.  Please make sure it is defined" >&2;}
18153
18154  rm -f "$ac_tmp/stdin"
18155  case $ac_file in
18156  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18157  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18158  esac \
18159  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18160 ;;
18161  :H)
18162  #
18163  # CONFIG_HEADER
18164  #
18165  if test x"$ac_file" != x-; then
18166    {
18167      printf "%s\n" "/* $configure_input  */" >&1 \
18168      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18169    } >"$ac_tmp/config.h" \
18170      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18171    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18172      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18173printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
18174    else
18175      rm -f "$ac_file"
18176      mv "$ac_tmp/config.h" "$ac_file" \
18177	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18178    fi
18179  else
18180    printf "%s\n" "/* $configure_input  */" >&1 \
18181      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18182      || as_fn_error $? "could not create -" "$LINENO" 5
18183  fi
18184# Compute "$ac_file"'s index in $config_headers.
18185_am_arg="$ac_file"
18186_am_stamp_count=1
18187for _am_header in $config_headers :; do
18188  case $_am_header in
18189    $_am_arg | $_am_arg:* )
18190      break ;;
18191    * )
18192      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18193  esac
18194done
18195echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18196$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18197	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18198	 X"$_am_arg" : 'X\(//\)$' \| \
18199	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18200printf "%s\n" X"$_am_arg" |
18201    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18202	    s//\1/
18203	    q
18204	  }
18205	  /^X\(\/\/\)[^/].*/{
18206	    s//\1/
18207	    q
18208	  }
18209	  /^X\(\/\/\)$/{
18210	    s//\1/
18211	    q
18212	  }
18213	  /^X\(\/\).*/{
18214	    s//\1/
18215	    q
18216	  }
18217	  s/.*/./; q'`/stamp-h$_am_stamp_count
18218 ;;
18219
18220  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18221printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
18222 ;;
18223  esac
18224
18225
18226  case $ac_file$ac_mode in
18227    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18228  # Older Autoconf quotes --file arguments for eval, but not when files
18229  # are listed without --file.  Let's play safe and only enable the eval
18230  # if we detect the quoting.
18231  # TODO: see whether this extra hack can be removed once we start
18232  # requiring Autoconf 2.70 or later.
18233  case $CONFIG_FILES in #(
18234  *\'*) :
18235    eval set x "$CONFIG_FILES" ;; #(
18236  *) :
18237    set x $CONFIG_FILES ;; #(
18238  *) :
18239     ;;
18240esac
18241  shift
18242  # Used to flag and report bootstrapping failures.
18243  am_rc=0
18244  for am_mf
18245  do
18246    # Strip MF so we end up with the name of the file.
18247    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
18248    # Check whether this is an Automake generated Makefile which includes
18249    # dependency-tracking related rules and includes.
18250    # Grep'ing the whole file directly is not great: AIX grep has a line
18251    # limit of 2048, but all sed's we know have understand at least 4000.
18252    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18253      || continue
18254    am_dirpart=`$as_dirname -- "$am_mf" ||
18255$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18256	 X"$am_mf" : 'X\(//\)[^/]' \| \
18257	 X"$am_mf" : 'X\(//\)$' \| \
18258	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18259printf "%s\n" X"$am_mf" |
18260    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18261	    s//\1/
18262	    q
18263	  }
18264	  /^X\(\/\/\)[^/].*/{
18265	    s//\1/
18266	    q
18267	  }
18268	  /^X\(\/\/\)$/{
18269	    s//\1/
18270	    q
18271	  }
18272	  /^X\(\/\).*/{
18273	    s//\1/
18274	    q
18275	  }
18276	  s/.*/./; q'`
18277    am_filepart=`$as_basename -- "$am_mf" ||
18278$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18279	 X"$am_mf" : 'X\(//\)$' \| \
18280	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18281printf "%s\n" X/"$am_mf" |
18282    sed '/^.*\/\([^/][^/]*\)\/*$/{
18283	    s//\1/
18284	    q
18285	  }
18286	  /^X\/\(\/\/\)$/{
18287	    s//\1/
18288	    q
18289	  }
18290	  /^X\/\(\/\).*/{
18291	    s//\1/
18292	    q
18293	  }
18294	  s/.*/./; q'`
18295    { echo "$as_me:$LINENO: cd "$am_dirpart" \
18296      && sed -e '/# am--include-marker/d' "$am_filepart" \
18297        | $MAKE -f - am--depfiles" >&5
18298   (cd "$am_dirpart" \
18299      && sed -e '/# am--include-marker/d' "$am_filepart" \
18300        | $MAKE -f - am--depfiles) >&5 2>&5
18301   ac_status=$?
18302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303   (exit $ac_status); } || am_rc=$?
18304  done
18305  if test $am_rc -ne 0; then
18306    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18307printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18308as_fn_error $? "Something went wrong bootstrapping makefile fragments
18309    for automatic dependency tracking.  If GNU make was not used, consider
18310    re-running the configure script with MAKE=\"gmake\" (or whatever is
18311    necessary).  You can also try re-running configure with the
18312    '--disable-dependency-tracking' option to at least be able to build
18313    the package (albeit without support for automatic dependency tracking).
18314See \`config.log' for more details" "$LINENO" 5; }
18315  fi
18316  { am_dirpart=; unset am_dirpart;}
18317  { am_filepart=; unset am_filepart;}
18318  { am_mf=; unset am_mf;}
18319  { am_rc=; unset am_rc;}
18320  rm -f conftest-deps.mk
18321}
18322 ;;
18323    "libtool":C)
18324
18325    # See if we are running on zsh, and set the options that allow our
18326    # commands through without removal of \ escapes.
18327    if test -n "${ZSH_VERSION+set}"; then
18328      setopt NO_GLOB_SUBST
18329    fi
18330
18331    cfgfile=${ofile}T
18332    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18333    $RM "$cfgfile"
18334
18335    cat <<_LT_EOF >> "$cfgfile"
18336#! $SHELL
18337# Generated automatically by $as_me ($PACKAGE) $VERSION
18338# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18339
18340# Provide generalized library-building support services.
18341# Written by Gordon Matzigkeit, 1996
18342
18343# Copyright (C) 2014 Free Software Foundation, Inc.
18344# This is free software; see the source for copying conditions.  There is NO
18345# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18346
18347# GNU Libtool is free software; you can redistribute it and/or modify
18348# it under the terms of the GNU General Public License as published by
18349# the Free Software Foundation; either version 2 of of the License, or
18350# (at your option) any later version.
18351#
18352# As a special exception to the GNU General Public License, if you
18353# distribute this file as part of a program or library that is built
18354# using GNU Libtool, you may include this file under the  same
18355# distribution terms that you use for the rest of that program.
18356#
18357# GNU Libtool is distributed in the hope that it will be useful, but
18358# WITHOUT ANY WARRANTY; without even the implied warranty of
18359# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18360# GNU General Public License for more details.
18361#
18362# You should have received a copy of the GNU General Public License
18363# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18364
18365
18366# The names of the tagged configurations supported by this script.
18367available_tags=''
18368
18369# Configured defaults for sys_lib_dlsearch_path munging.
18370: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18371
18372# ### BEGIN LIBTOOL CONFIG
18373
18374# Which release of libtool.m4 was used?
18375macro_version=$macro_version
18376macro_revision=$macro_revision
18377
18378# Assembler program.
18379AS=$lt_AS
18380
18381# DLL creation program.
18382DLLTOOL=$lt_DLLTOOL
18383
18384# Object dumper program.
18385OBJDUMP=$lt_OBJDUMP
18386
18387# Whether or not to build shared libraries.
18388build_libtool_libs=$enable_shared
18389
18390# Whether or not to build static libraries.
18391build_old_libs=$enable_static
18392
18393# What type of objects to build.
18394pic_mode=$pic_mode
18395
18396# Whether or not to optimize for fast installation.
18397fast_install=$enable_fast_install
18398
18399# Shared archive member basename,for filename based shared library versioning on AIX.
18400shared_archive_member_spec=$shared_archive_member_spec
18401
18402# Shell to use when invoking shell scripts.
18403SHELL=$lt_SHELL
18404
18405# An echo program that protects backslashes.
18406ECHO=$lt_ECHO
18407
18408# The PATH separator for the build system.
18409PATH_SEPARATOR=$lt_PATH_SEPARATOR
18410
18411# The host system.
18412host_alias=$host_alias
18413host=$host
18414host_os=$host_os
18415
18416# The build system.
18417build_alias=$build_alias
18418build=$build
18419build_os=$build_os
18420
18421# A sed program that does not truncate output.
18422SED=$lt_SED
18423
18424# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18425Xsed="\$SED -e 1s/^X//"
18426
18427# A grep program that handles long lines.
18428GREP=$lt_GREP
18429
18430# An ERE matcher.
18431EGREP=$lt_EGREP
18432
18433# A literal string matcher.
18434FGREP=$lt_FGREP
18435
18436# A BSD- or MS-compatible name lister.
18437NM=$lt_NM
18438
18439# Whether we need soft or hard links.
18440LN_S=$lt_LN_S
18441
18442# What is the maximum length of a command?
18443max_cmd_len=$max_cmd_len
18444
18445# Object file suffix (normally "o").
18446objext=$ac_objext
18447
18448# Executable file suffix (normally "").
18449exeext=$exeext
18450
18451# whether the shell understands "unset".
18452lt_unset=$lt_unset
18453
18454# turn spaces into newlines.
18455SP2NL=$lt_lt_SP2NL
18456
18457# turn newlines into spaces.
18458NL2SP=$lt_lt_NL2SP
18459
18460# convert \$build file names to \$host format.
18461to_host_file_cmd=$lt_cv_to_host_file_cmd
18462
18463# convert \$build files to toolchain format.
18464to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18465
18466# A file(cmd) program that detects file types.
18467FILECMD=$lt_FILECMD
18468
18469# Method to check whether dependent libraries are shared objects.
18470deplibs_check_method=$lt_deplibs_check_method
18471
18472# Command to use when deplibs_check_method = "file_magic".
18473file_magic_cmd=$lt_file_magic_cmd
18474
18475# How to find potential files when deplibs_check_method = "file_magic".
18476file_magic_glob=$lt_file_magic_glob
18477
18478# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18479want_nocaseglob=$lt_want_nocaseglob
18480
18481# Command to associate shared and link libraries.
18482sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18483
18484# The archiver.
18485AR=$lt_AR
18486
18487# Flags to create an archive (by configure).
18488lt_ar_flags=$lt_ar_flags
18489
18490# Flags to create an archive.
18491AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
18492
18493# How to feed a file listing to the archiver.
18494archiver_list_spec=$lt_archiver_list_spec
18495
18496# A symbol stripping program.
18497STRIP=$lt_STRIP
18498
18499# Commands used to install an old-style archive.
18500RANLIB=$lt_RANLIB
18501old_postinstall_cmds=$lt_old_postinstall_cmds
18502old_postuninstall_cmds=$lt_old_postuninstall_cmds
18503
18504# Whether to use a lock for old archive extraction.
18505lock_old_archive_extraction=$lock_old_archive_extraction
18506
18507# A C compiler.
18508LTCC=$lt_CC
18509
18510# LTCC compiler flags.
18511LTCFLAGS=$lt_CFLAGS
18512
18513# Take the output of nm and produce a listing of raw symbols and C names.
18514global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18515
18516# Transform the output of nm in a proper C declaration.
18517global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18518
18519# Transform the output of nm into a list of symbols to manually relocate.
18520global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18521
18522# Transform the output of nm in a C name address pair.
18523global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18524
18525# Transform the output of nm in a C name address pair when lib prefix is needed.
18526global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18527
18528# The name lister interface.
18529nm_interface=$lt_lt_cv_nm_interface
18530
18531# Specify filename containing input files for \$NM.
18532nm_file_list_spec=$lt_nm_file_list_spec
18533
18534# The root where to search for dependent libraries,and where our libraries should be installed.
18535lt_sysroot=$lt_sysroot
18536
18537# Command to truncate a binary pipe.
18538lt_truncate_bin=$lt_lt_cv_truncate_bin
18539
18540# The name of the directory that contains temporary libtool files.
18541objdir=$objdir
18542
18543# Used to examine libraries when file_magic_cmd begins with "file".
18544MAGIC_CMD=$MAGIC_CMD
18545
18546# Must we lock files when doing compilation?
18547need_locks=$lt_need_locks
18548
18549# Manifest tool.
18550MANIFEST_TOOL=$lt_MANIFEST_TOOL
18551
18552# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18553DSYMUTIL=$lt_DSYMUTIL
18554
18555# Tool to change global to local symbols on Mac OS X.
18556NMEDIT=$lt_NMEDIT
18557
18558# Tool to manipulate fat objects and archives on Mac OS X.
18559LIPO=$lt_LIPO
18560
18561# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18562OTOOL=$lt_OTOOL
18563
18564# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18565OTOOL64=$lt_OTOOL64
18566
18567# Old archive suffix (normally "a").
18568libext=$libext
18569
18570# Shared library suffix (normally ".so").
18571shrext_cmds=$lt_shrext_cmds
18572
18573# The commands to extract the exported symbol list from a shared archive.
18574extract_expsyms_cmds=$lt_extract_expsyms_cmds
18575
18576# Variables whose values should be saved in libtool wrapper scripts and
18577# restored at link time.
18578variables_saved_for_relink=$lt_variables_saved_for_relink
18579
18580# Do we need the "lib" prefix for modules?
18581need_lib_prefix=$need_lib_prefix
18582
18583# Do we need a version for libraries?
18584need_version=$need_version
18585
18586# Library versioning type.
18587version_type=$version_type
18588
18589# Shared library runtime path variable.
18590runpath_var=$runpath_var
18591
18592# Shared library path variable.
18593shlibpath_var=$shlibpath_var
18594
18595# Is shlibpath searched before the hard-coded library search path?
18596shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18597
18598# Format of library name prefix.
18599libname_spec=$lt_libname_spec
18600
18601# List of archive names.  First name is the real one, the rest are links.
18602# The last name is the one that the linker finds with -lNAME
18603library_names_spec=$lt_library_names_spec
18604
18605# The coded name of the library, if different from the real name.
18606soname_spec=$lt_soname_spec
18607
18608# Permission mode override for installation of shared libraries.
18609install_override_mode=$lt_install_override_mode
18610
18611# Command to use after installation of a shared archive.
18612postinstall_cmds=$lt_postinstall_cmds
18613
18614# Command to use after uninstallation of a shared archive.
18615postuninstall_cmds=$lt_postuninstall_cmds
18616
18617# Commands used to finish a libtool library installation in a directory.
18618finish_cmds=$lt_finish_cmds
18619
18620# As "finish_cmds", except a single script fragment to be evaled but
18621# not shown.
18622finish_eval=$lt_finish_eval
18623
18624# Whether we should hardcode library paths into libraries.
18625hardcode_into_libs=$hardcode_into_libs
18626
18627# Compile-time system search path for libraries.
18628sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18629
18630# Detected run-time system search path for libraries.
18631sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18632
18633# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18634configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18635
18636# Whether dlopen is supported.
18637dlopen_support=$enable_dlopen
18638
18639# Whether dlopen of programs is supported.
18640dlopen_self=$enable_dlopen_self
18641
18642# Whether dlopen of statically linked programs is supported.
18643dlopen_self_static=$enable_dlopen_self_static
18644
18645# Commands to strip libraries.
18646old_striplib=$lt_old_striplib
18647striplib=$lt_striplib
18648
18649
18650# The linker used to build libraries.
18651LD=$lt_LD
18652
18653# How to create reloadable object files.
18654reload_flag=$lt_reload_flag
18655reload_cmds=$lt_reload_cmds
18656
18657# Commands used to build an old-style archive.
18658old_archive_cmds=$lt_old_archive_cmds
18659
18660# A language specific compiler.
18661CC=$lt_compiler
18662
18663# Is the compiler the GNU compiler?
18664with_gcc=$GCC
18665
18666# Compiler flag to turn off builtin functions.
18667no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18668
18669# Additional compiler flags for building library objects.
18670pic_flag=$lt_lt_prog_compiler_pic
18671
18672# How to pass a linker flag through the compiler.
18673wl=$lt_lt_prog_compiler_wl
18674
18675# Compiler flag to prevent dynamic linking.
18676link_static_flag=$lt_lt_prog_compiler_static
18677
18678# Does compiler simultaneously support -c and -o options?
18679compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18680
18681# Whether or not to add -lc for building shared libraries.
18682build_libtool_need_lc=$archive_cmds_need_lc
18683
18684# Whether or not to disallow shared libs when runtime libs are static.
18685allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18686
18687# Compiler flag to allow reflexive dlopens.
18688export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18689
18690# Compiler flag to generate shared objects directly from archives.
18691whole_archive_flag_spec=$lt_whole_archive_flag_spec
18692
18693# Whether the compiler copes with passing no objects directly.
18694compiler_needs_object=$lt_compiler_needs_object
18695
18696# Create an old-style archive from a shared archive.
18697old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18698
18699# Create a temporary old-style archive to link instead of a shared archive.
18700old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18701
18702# Commands used to build a shared archive.
18703archive_cmds=$lt_archive_cmds
18704archive_expsym_cmds=$lt_archive_expsym_cmds
18705
18706# Commands used to build a loadable module if different from building
18707# a shared archive.
18708module_cmds=$lt_module_cmds
18709module_expsym_cmds=$lt_module_expsym_cmds
18710
18711# Whether we are building with GNU ld or not.
18712with_gnu_ld=$lt_with_gnu_ld
18713
18714# Flag that allows shared libraries with undefined symbols to be built.
18715allow_undefined_flag=$lt_allow_undefined_flag
18716
18717# Flag that enforces no undefined symbols.
18718no_undefined_flag=$lt_no_undefined_flag
18719
18720# Flag to hardcode \$libdir into a binary during linking.
18721# This must work even if \$libdir does not exist
18722hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18723
18724# Whether we need a single "-rpath" flag with a separated argument.
18725hardcode_libdir_separator=$lt_hardcode_libdir_separator
18726
18727# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18728# DIR into the resulting binary.
18729hardcode_direct=$hardcode_direct
18730
18731# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18732# DIR into the resulting binary and the resulting library dependency is
18733# "absolute",i.e impossible to change by setting \$shlibpath_var if the
18734# library is relocated.
18735hardcode_direct_absolute=$hardcode_direct_absolute
18736
18737# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18738# into the resulting binary.
18739hardcode_minus_L=$hardcode_minus_L
18740
18741# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18742# into the resulting binary.
18743hardcode_shlibpath_var=$hardcode_shlibpath_var
18744
18745# Set to "yes" if building a shared library automatically hardcodes DIR
18746# into the library and all subsequent libraries and executables linked
18747# against it.
18748hardcode_automatic=$hardcode_automatic
18749
18750# Set to yes if linker adds runtime paths of dependent libraries
18751# to runtime path list.
18752inherit_rpath=$inherit_rpath
18753
18754# Whether libtool must link a program against all its dependency libraries.
18755link_all_deplibs=$link_all_deplibs
18756
18757# Set to "yes" if exported symbols are required.
18758always_export_symbols=$always_export_symbols
18759
18760# The commands to list exported symbols.
18761export_symbols_cmds=$lt_export_symbols_cmds
18762
18763# Symbols that should not be listed in the preloaded symbols.
18764exclude_expsyms=$lt_exclude_expsyms
18765
18766# Symbols that must always be exported.
18767include_expsyms=$lt_include_expsyms
18768
18769# Commands necessary for linking programs (against libraries) with templates.
18770prelink_cmds=$lt_prelink_cmds
18771
18772# Commands necessary for finishing linking programs.
18773postlink_cmds=$lt_postlink_cmds
18774
18775# Specify filename containing input files.
18776file_list_spec=$lt_file_list_spec
18777
18778# How to hardcode a shared library path into an executable.
18779hardcode_action=$hardcode_action
18780
18781# ### END LIBTOOL CONFIG
18782
18783_LT_EOF
18784
18785    cat <<'_LT_EOF' >> "$cfgfile"
18786
18787# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18788
18789# func_munge_path_list VARIABLE PATH
18790# -----------------------------------
18791# VARIABLE is name of variable containing _space_ separated list of
18792# directories to be munged by the contents of PATH, which is string
18793# having a format:
18794# "DIR[:DIR]:"
18795#       string "DIR[ DIR]" will be prepended to VARIABLE
18796# ":DIR[:DIR]"
18797#       string "DIR[ DIR]" will be appended to VARIABLE
18798# "DIRP[:DIRP]::[DIRA:]DIRA"
18799#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18800#       "DIRA[ DIRA]" will be appended to VARIABLE
18801# "DIR[:DIR]"
18802#       VARIABLE will be replaced by "DIR[ DIR]"
18803func_munge_path_list ()
18804{
18805    case x$2 in
18806    x)
18807        ;;
18808    *:)
18809        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18810        ;;
18811    x:*)
18812        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18813        ;;
18814    *::*)
18815        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18816        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18817        ;;
18818    *)
18819        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18820        ;;
18821    esac
18822}
18823
18824
18825# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
18826func_cc_basename ()
18827{
18828    for cc_temp in $*""; do
18829      case $cc_temp in
18830        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18831        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18832        \-*) ;;
18833        *) break;;
18834      esac
18835    done
18836    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18837}
18838
18839
18840# ### END FUNCTIONS SHARED WITH CONFIGURE
18841
18842_LT_EOF
18843
18844  case $host_os in
18845  aix3*)
18846    cat <<\_LT_EOF >> "$cfgfile"
18847# AIX sometimes has problems with the GCC collect2 program.  For some
18848# reason, if we set the COLLECT_NAMES environment variable, the problems
18849# vanish in a puff of smoke.
18850if test set != "${COLLECT_NAMES+set}"; then
18851  COLLECT_NAMES=
18852  export COLLECT_NAMES
18853fi
18854_LT_EOF
18855    ;;
18856  esac
18857
18858
18859
18860ltmain=$ac_aux_dir/ltmain.sh
18861
18862
18863  # We use sed instead of cat because bash on DJGPP gets confused if
18864  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18865  # text mode, it properly converts lines to CR/LF.  This bash problem
18866  # is reportedly fixed, but why not run on old versions too?
18867  $SED '$q' "$ltmain" >> "$cfgfile" \
18868     || (rm -f "$cfgfile"; exit 1)
18869
18870   mv -f "$cfgfile" "$ofile" ||
18871    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18872  chmod +x "$ofile"
18873
18874 ;;
18875    "script-chmod":C) chmod a+x pcre2-config ;;
18876    "delete-old-chartables":C) rm -f pcre2_chartables.c ;;
18877
18878  esac
18879done # for ac_tag
18880
18881
18882as_fn_exit 0
18883_ACEOF
18884ac_clean_files=$ac_clean_files_save
18885
18886test $ac_write_fail = 0 ||
18887  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18888
18889
18890# configure is writing to config.log, and then calls config.status.
18891# config.status does its own redirection, appending to config.log.
18892# Unfortunately, on DOS this fails, as config.log is still kept open
18893# by configure, so config.status won't be able to write to it; its
18894# output is simply discarded.  So we exec the FD to /dev/null,
18895# effectively closing config.log, so it can be properly (re)opened and
18896# appended to by config.status.  When coming back to configure, we
18897# need to make the FD available again.
18898if test "$no_create" != yes; then
18899  ac_cs_success=:
18900  ac_config_status_args=
18901  test "$silent" = yes &&
18902    ac_config_status_args="$ac_config_status_args --quiet"
18903  exec 5>/dev/null
18904  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18905  exec 5>>config.log
18906  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18907  # would make configure fail if this is the last instruction.
18908  $ac_cs_success || as_fn_exit 1
18909fi
18910if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18911  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18912printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18913fi
18914
18915
18916# --disable-stack-for-recursion is obsolete and has no effect.
18917
18918if test "$enable_stack_for_recursion" = "no"; then
18919cat <<EOF
18920
18921WARNING: --disable-stack-for-recursion is obsolete and has no effect.
18922EOF
18923fi
18924
18925# Print out a nice little message after configure is run displaying the
18926# chosen options.
18927
18928ebcdic_nl_code=n/a
18929if test "$enable_ebcdic_nl25" = "yes"; then
18930  ebcdic_nl_code=0x25
18931elif test "$enable_ebcdic" = "yes"; then
18932  ebcdic_nl_code=0x15
18933fi
18934
18935cat <<EOF
18936
18937$PACKAGE-$VERSION configuration summary:
18938
18939    Install prefix ..................... : ${prefix}
18940    C preprocessor ..................... : ${CPP}
18941    C compiler ......................... : ${CC}
18942    Linker ............................. : ${LD}
18943    C preprocessor flags ............... : ${CPPFLAGS}
18944    C compiler flags ................... : ${CFLAGS} ${VISIBILITY_CFLAGS}
18945    Linker flags ....................... : ${LDFLAGS}
18946    Extra libraries .................... : ${LIBS}
18947
18948    Build 8-bit pcre2 library .......... : ${enable_pcre2_8}
18949    Build 16-bit pcre2 library ......... : ${enable_pcre2_16}
18950    Build 32-bit pcre2 library ......... : ${enable_pcre2_32}
18951    Include debugging code ............. : ${enable_debug}
18952    Enable JIT compiling support ....... : ${enable_jit}
18953    Use SELinux allocator in JIT ....... : ${enable_jit_sealloc}
18954    Enable Unicode support ............. : ${enable_unicode}
18955    Newline char/sequence .............. : ${enable_newline}
18956    \R matches only ANYCRLF ............ : ${enable_bsr_anycrlf}
18957    \C is disabled ..................... : ${enable_never_backslash_C}
18958    EBCDIC coding ...................... : ${enable_ebcdic}
18959    EBCDIC code for NL ................. : ${ebcdic_nl_code}
18960    Rebuild char tables ................ : ${enable_rebuild_chartables}
18961    Internal link size ................. : ${with_link_size}
18962    Maximum variable lookbehind ........ : ${with_max_varlookbehind}
18963    Nested parentheses limit ........... : ${with_parens_nest_limit}
18964    Heap limit ......................... : ${with_heap_limit} kibibytes
18965    Match limit ........................ : ${with_match_limit}
18966    Match depth limit .................. : ${with_match_limit_depth}
18967    Build shared libs .................. : ${enable_shared}
18968    Build static libs .................. : ${enable_static}
18969    Use JIT in pcre2grep ............... : ${enable_pcre2grep_jit}
18970    Enable callouts in pcre2grep ....... : ${enable_pcre2grep_callout}
18971    Enable fork in pcre2grep callouts .. : ${enable_pcre2grep_callout_fork}
18972    Initial buffer size for pcre2grep .. : ${with_pcre2grep_bufsize}
18973    Maximum buffer size for pcre2grep .. : ${with_pcre2grep_max_bufsize}
18974    Link pcre2grep with libz ........... : ${enable_pcre2grep_libz}
18975    Link pcre2grep with libbz2 ......... : ${enable_pcre2grep_libbz2}
18976    Link pcre2test with libedit ........ : ${enable_pcre2test_libedit}
18977    Link pcre2test with libreadline .... : ${enable_pcre2test_libreadline}
18978    Valgrind support ................... : ${enable_valgrind}
18979    Code coverage ...................... : ${enable_coverage}
18980    Fuzzer support ..................... : ${enable_fuzz_support}
18981    Differential fuzzer support ........ : ${enable_diff_fuzz_support}
18982    Use %zu and %td .................... : ${enable_percent_zt}
18983
18984EOF
18985
18986
18987