1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for PCRE2 10.36.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
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  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    PATH=/empty FPATH=/empty; export PATH FPATH
206    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
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'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='PCRE2'
589PACKAGE_TARNAME='pcre2'
590PACKAGE_VERSION='10.36'
591PACKAGE_STRING='PCRE2 10.36'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="src/pcre2.h.in"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636LIB_POSTFIX
637CET_CFLAGS
638WITH_GCOV_FALSE
639WITH_GCOV_TRUE
640GCOV_LIBS
641GCOV_CXXFLAGS
642GCOV_CFLAGS
643GENHTML
644LCOV
645SHTOOL
646VALGRIND_LIBS
647VALGRIND_CFLAGS
648PKG_CONFIG_LIBDIR
649PKG_CONFIG_PATH
650PKG_CONFIG
651LIBBZ2
652LIBZ
653DISTCHECK_CONFIGURE_FLAGS
654EXTRA_LIBPCRE2_POSIX_LDFLAGS
655EXTRA_LIBPCRE2_32_LDFLAGS
656EXTRA_LIBPCRE2_16_LDFLAGS
657EXTRA_LIBPCRE2_8_LDFLAGS
658PTHREAD_CFLAGS
659PTHREAD_LIBS
660PTHREAD_CC
661ax_pthread_config
662PCRE2_STATIC_CFLAG
663LIBREADLINE
664WITH_FUZZ_SUPPORT_FALSE
665WITH_FUZZ_SUPPORT_TRUE
666WITH_VALGRIND_FALSE
667WITH_VALGRIND_TRUE
668WITH_UNICODE_FALSE
669WITH_UNICODE_TRUE
670WITH_JIT_FALSE
671WITH_JIT_TRUE
672WITH_REBUILD_CHARTABLES_FALSE
673WITH_REBUILD_CHARTABLES_TRUE
674WITH_DEBUG_FALSE
675WITH_DEBUG_TRUE
676WITH_PCRE2_32_FALSE
677WITH_PCRE2_32_TRUE
678WITH_PCRE2_16_FALSE
679WITH_PCRE2_16_TRUE
680WITH_PCRE2_8_FALSE
681WITH_PCRE2_8_TRUE
682enable_pcre2_32
683enable_pcre2_16
684enable_pcre2_8
685PCRE2_DATE
686PCRE2_PRERELEASE
687PCRE2_MINOR
688PCRE2_MAJOR
689HAVE_VISIBILITY
690VISIBILITY_CXXFLAGS
691VISIBILITY_CFLAGS
692LT_SYS_LIBRARY_PATH
693OTOOL64
694OTOOL
695LIPO
696NMEDIT
697DSYMUTIL
698MANIFEST_TOOL
699RANLIB
700LN_S
701NM
702ac_ct_DUMPBIN
703DUMPBIN
704LD
705FGREP
706SED
707LIBTOOL
708OBJDUMP
709DLLTOOL
710AS
711host_os
712host_vendor
713host_cpu
714host
715build_os
716build_vendor
717build_cpu
718build
719ac_ct_AR
720AR
721EGREP
722GREP
723CPP
724am__fastdepCC_FALSE
725am__fastdepCC_TRUE
726CCDEPMODE
727am__nodep
728AMDEPBACKSLASH
729AMDEP_FALSE
730AMDEP_TRUE
731am__include
732DEPDIR
733OBJEXT
734EXEEXT
735ac_ct_CC
736CPPFLAGS
737LDFLAGS
738CFLAGS
739CC
740AM_BACKSLASH
741AM_DEFAULT_VERBOSITY
742AM_DEFAULT_V
743AM_V
744am__untar
745am__tar
746AMTAR
747am__leading_dot
748SET_MAKE
749AWK
750mkdir_p
751MKDIR_P
752INSTALL_STRIP_PROGRAM
753STRIP
754install_sh
755MAKEINFO
756AUTOHEADER
757AUTOMAKE
758AUTOCONF
759ACLOCAL
760VERSION
761PACKAGE
762CYGPATH_W
763am__isrc
764INSTALL_DATA
765INSTALL_SCRIPT
766INSTALL_PROGRAM
767target_alias
768host_alias
769build_alias
770LIBS
771ECHO_T
772ECHO_N
773ECHO_C
774DEFS
775mandir
776localedir
777libdir
778psdir
779pdfdir
780dvidir
781htmldir
782infodir
783docdir
784oldincludedir
785includedir
786localstatedir
787sharedstatedir
788sysconfdir
789datadir
790datarootdir
791libexecdir
792sbindir
793bindir
794program_transform_name
795prefix
796exec_prefix
797PACKAGE_URL
798PACKAGE_BUGREPORT
799PACKAGE_STRING
800PACKAGE_VERSION
801PACKAGE_TARNAME
802PACKAGE_NAME
803PATH_SEPARATOR
804SHELL
805am__quote'
806ac_subst_files=''
807ac_user_opts='
808enable_option_checking
809enable_silent_rules
810enable_dependency_tracking
811enable_shared
812enable_static
813with_pic
814enable_fast_install
815with_aix_soname
816with_gnu_ld
817with_sysroot
818enable_libtool_lock
819enable_pcre8
820enable_pcre16
821enable_pcre32
822enable_pcre2_8
823enable_pcre2_16
824enable_pcre2_32
825enable_debug
826enable_jit
827enable_jit_sealloc
828enable_pcre2grep_jit
829enable_pcre2grep_callout
830enable_pcre2grep_callout_fork
831enable_rebuild_chartables
832enable_unicode
833enable_newline_is_cr
834enable_newline_is_lf
835enable_newline_is_crlf
836enable_newline_is_anycrlf
837enable_newline_is_any
838enable_newline_is_nul
839enable_bsr_anycrlf
840enable_never_backslash_C
841enable_ebcdic
842enable_ebcdic_nl25
843enable_pcre2grep_libz
844enable_pcre2grep_libbz2
845with_pcre2grep_bufsize
846with_pcre2grep_max_bufsize
847enable_pcre2test_libedit
848enable_pcre2test_libreadline
849with_link_size
850with_parens_nest_limit
851with_heap_limit
852with_match_limit
853with_match_limit_depth
854with_match_limit_recursion
855enable_valgrind
856enable_coverage
857enable_fuzz_support
858enable_stack_for_recursion
859enable_percent_zt
860'
861      ac_precious_vars='build_alias
862host_alias
863target_alias
864CC
865CFLAGS
866LDFLAGS
867LIBS
868CPPFLAGS
869CPP
870LT_SYS_LIBRARY_PATH
871PKG_CONFIG
872PKG_CONFIG_PATH
873PKG_CONFIG_LIBDIR
874VALGRIND_CFLAGS
875VALGRIND_LIBS
876LCOV
877GENHTML'
878
879
880# Initialize some variables set by options.
881ac_init_help=
882ac_init_version=false
883ac_unrecognized_opts=
884ac_unrecognized_sep=
885# The variables have the same names as the options, with
886# dashes changed to underlines.
887cache_file=/dev/null
888exec_prefix=NONE
889no_create=
890no_recursion=
891prefix=NONE
892program_prefix=NONE
893program_suffix=NONE
894program_transform_name=s,x,x,
895silent=
896site=
897srcdir=
898verbose=
899x_includes=NONE
900x_libraries=NONE
901
902# Installation directory options.
903# These are left unexpanded so users can "make install exec_prefix=/foo"
904# and all the variables that are supposed to be based on exec_prefix
905# by default will actually change.
906# Use braces instead of parens because sh, perl, etc. also accept them.
907# (The list follows the same order as the GNU Coding Standards.)
908bindir='${exec_prefix}/bin'
909sbindir='${exec_prefix}/sbin'
910libexecdir='${exec_prefix}/libexec'
911datarootdir='${prefix}/share'
912datadir='${datarootdir}'
913sysconfdir='${prefix}/etc'
914sharedstatedir='${prefix}/com'
915localstatedir='${prefix}/var'
916includedir='${prefix}/include'
917oldincludedir='/usr/include'
918docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
919infodir='${datarootdir}/info'
920htmldir='${docdir}'
921dvidir='${docdir}'
922pdfdir='${docdir}'
923psdir='${docdir}'
924libdir='${exec_prefix}/lib'
925localedir='${datarootdir}/locale'
926mandir='${datarootdir}/man'
927
928ac_prev=
929ac_dashdash=
930for ac_option
931do
932  # If the previous option needs an argument, assign it.
933  if test -n "$ac_prev"; then
934    eval $ac_prev=\$ac_option
935    ac_prev=
936    continue
937  fi
938
939  case $ac_option in
940  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
941  *=)   ac_optarg= ;;
942  *)    ac_optarg=yes ;;
943  esac
944
945  # Accept the important Cygnus configure options, so we can diagnose typos.
946
947  case $ac_dashdash$ac_option in
948  --)
949    ac_dashdash=yes ;;
950
951  -bindir | --bindir | --bindi | --bind | --bin | --bi)
952    ac_prev=bindir ;;
953  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
954    bindir=$ac_optarg ;;
955
956  -build | --build | --buil | --bui | --bu)
957    ac_prev=build_alias ;;
958  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
959    build_alias=$ac_optarg ;;
960
961  -cache-file | --cache-file | --cache-fil | --cache-fi \
962  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963    ac_prev=cache_file ;;
964  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
966    cache_file=$ac_optarg ;;
967
968  --config-cache | -C)
969    cache_file=config.cache ;;
970
971  -datadir | --datadir | --datadi | --datad)
972    ac_prev=datadir ;;
973  -datadir=* | --datadir=* | --datadi=* | --datad=*)
974    datadir=$ac_optarg ;;
975
976  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977  | --dataroo | --dataro | --datar)
978    ac_prev=datarootdir ;;
979  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981    datarootdir=$ac_optarg ;;
982
983  -disable-* | --disable-*)
984    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985    # Reject names that are not valid shell variable names.
986    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987      as_fn_error $? "invalid feature name: $ac_useropt"
988    ac_useropt_orig=$ac_useropt
989    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990    case $ac_user_opts in
991      *"
992"enable_$ac_useropt"
993"*) ;;
994      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
995	 ac_unrecognized_sep=', ';;
996    esac
997    eval enable_$ac_useropt=no ;;
998
999  -docdir | --docdir | --docdi | --doc | --do)
1000    ac_prev=docdir ;;
1001  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1002    docdir=$ac_optarg ;;
1003
1004  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1005    ac_prev=dvidir ;;
1006  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1007    dvidir=$ac_optarg ;;
1008
1009  -enable-* | --enable-*)
1010    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1011    # Reject names that are not valid shell variable names.
1012    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013      as_fn_error $? "invalid feature name: $ac_useropt"
1014    ac_useropt_orig=$ac_useropt
1015    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016    case $ac_user_opts in
1017      *"
1018"enable_$ac_useropt"
1019"*) ;;
1020      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1021	 ac_unrecognized_sep=', ';;
1022    esac
1023    eval enable_$ac_useropt=\$ac_optarg ;;
1024
1025  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027  | --exec | --exe | --ex)
1028    ac_prev=exec_prefix ;;
1029  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031  | --exec=* | --exe=* | --ex=*)
1032    exec_prefix=$ac_optarg ;;
1033
1034  -gas | --gas | --ga | --g)
1035    # Obsolete; use --with-gas.
1036    with_gas=yes ;;
1037
1038  -help | --help | --hel | --he | -h)
1039    ac_init_help=long ;;
1040  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041    ac_init_help=recursive ;;
1042  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043    ac_init_help=short ;;
1044
1045  -host | --host | --hos | --ho)
1046    ac_prev=host_alias ;;
1047  -host=* | --host=* | --hos=* | --ho=*)
1048    host_alias=$ac_optarg ;;
1049
1050  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051    ac_prev=htmldir ;;
1052  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053  | --ht=*)
1054    htmldir=$ac_optarg ;;
1055
1056  -includedir | --includedir | --includedi | --included | --include \
1057  | --includ | --inclu | --incl | --inc)
1058    ac_prev=includedir ;;
1059  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060  | --includ=* | --inclu=* | --incl=* | --inc=*)
1061    includedir=$ac_optarg ;;
1062
1063  -infodir | --infodir | --infodi | --infod | --info | --inf)
1064    ac_prev=infodir ;;
1065  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066    infodir=$ac_optarg ;;
1067
1068  -libdir | --libdir | --libdi | --libd)
1069    ac_prev=libdir ;;
1070  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071    libdir=$ac_optarg ;;
1072
1073  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074  | --libexe | --libex | --libe)
1075    ac_prev=libexecdir ;;
1076  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077  | --libexe=* | --libex=* | --libe=*)
1078    libexecdir=$ac_optarg ;;
1079
1080  -localedir | --localedir | --localedi | --localed | --locale)
1081    ac_prev=localedir ;;
1082  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083    localedir=$ac_optarg ;;
1084
1085  -localstatedir | --localstatedir | --localstatedi | --localstated \
1086  | --localstate | --localstat | --localsta | --localst | --locals)
1087    ac_prev=localstatedir ;;
1088  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090    localstatedir=$ac_optarg ;;
1091
1092  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093    ac_prev=mandir ;;
1094  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095    mandir=$ac_optarg ;;
1096
1097  -nfp | --nfp | --nf)
1098    # Obsolete; use --without-fp.
1099    with_fp=no ;;
1100
1101  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102  | --no-cr | --no-c | -n)
1103    no_create=yes ;;
1104
1105  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107    no_recursion=yes ;;
1108
1109  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111  | --oldin | --oldi | --old | --ol | --o)
1112    ac_prev=oldincludedir ;;
1113  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116    oldincludedir=$ac_optarg ;;
1117
1118  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119    ac_prev=prefix ;;
1120  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121    prefix=$ac_optarg ;;
1122
1123  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124  | --program-pre | --program-pr | --program-p)
1125    ac_prev=program_prefix ;;
1126  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128    program_prefix=$ac_optarg ;;
1129
1130  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131  | --program-suf | --program-su | --program-s)
1132    ac_prev=program_suffix ;;
1133  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135    program_suffix=$ac_optarg ;;
1136
1137  -program-transform-name | --program-transform-name \
1138  | --program-transform-nam | --program-transform-na \
1139  | --program-transform-n | --program-transform- \
1140  | --program-transform | --program-transfor \
1141  | --program-transfo | --program-transf \
1142  | --program-trans | --program-tran \
1143  | --progr-tra | --program-tr | --program-t)
1144    ac_prev=program_transform_name ;;
1145  -program-transform-name=* | --program-transform-name=* \
1146  | --program-transform-nam=* | --program-transform-na=* \
1147  | --program-transform-n=* | --program-transform-=* \
1148  | --program-transform=* | --program-transfor=* \
1149  | --program-transfo=* | --program-transf=* \
1150  | --program-trans=* | --program-tran=* \
1151  | --progr-tra=* | --program-tr=* | --program-t=*)
1152    program_transform_name=$ac_optarg ;;
1153
1154  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155    ac_prev=pdfdir ;;
1156  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157    pdfdir=$ac_optarg ;;
1158
1159  -psdir | --psdir | --psdi | --psd | --ps)
1160    ac_prev=psdir ;;
1161  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162    psdir=$ac_optarg ;;
1163
1164  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165  | -silent | --silent | --silen | --sile | --sil)
1166    silent=yes ;;
1167
1168  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169    ac_prev=sbindir ;;
1170  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171  | --sbi=* | --sb=*)
1172    sbindir=$ac_optarg ;;
1173
1174  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176  | --sharedst | --shareds | --shared | --share | --shar \
1177  | --sha | --sh)
1178    ac_prev=sharedstatedir ;;
1179  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182  | --sha=* | --sh=*)
1183    sharedstatedir=$ac_optarg ;;
1184
1185  -site | --site | --sit)
1186    ac_prev=site ;;
1187  -site=* | --site=* | --sit=*)
1188    site=$ac_optarg ;;
1189
1190  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191    ac_prev=srcdir ;;
1192  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193    srcdir=$ac_optarg ;;
1194
1195  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196  | --syscon | --sysco | --sysc | --sys | --sy)
1197    ac_prev=sysconfdir ;;
1198  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200    sysconfdir=$ac_optarg ;;
1201
1202  -target | --target | --targe | --targ | --tar | --ta | --t)
1203    ac_prev=target_alias ;;
1204  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205    target_alias=$ac_optarg ;;
1206
1207  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208    verbose=yes ;;
1209
1210  -version | --version | --versio | --versi | --vers | -V)
1211    ac_init_version=: ;;
1212
1213  -with-* | --with-*)
1214    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215    # Reject names that are not valid shell variable names.
1216    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217      as_fn_error $? "invalid package name: $ac_useropt"
1218    ac_useropt_orig=$ac_useropt
1219    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220    case $ac_user_opts in
1221      *"
1222"with_$ac_useropt"
1223"*) ;;
1224      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1225	 ac_unrecognized_sep=', ';;
1226    esac
1227    eval with_$ac_useropt=\$ac_optarg ;;
1228
1229  -without-* | --without-*)
1230    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1231    # Reject names that are not valid shell variable names.
1232    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1233      as_fn_error $? "invalid package name: $ac_useropt"
1234    ac_useropt_orig=$ac_useropt
1235    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236    case $ac_user_opts in
1237      *"
1238"with_$ac_useropt"
1239"*) ;;
1240      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1241	 ac_unrecognized_sep=', ';;
1242    esac
1243    eval with_$ac_useropt=no ;;
1244
1245  --x)
1246    # Obsolete; use --with-x.
1247    with_x=yes ;;
1248
1249  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250  | --x-incl | --x-inc | --x-in | --x-i)
1251    ac_prev=x_includes ;;
1252  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1254    x_includes=$ac_optarg ;;
1255
1256  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258    ac_prev=x_libraries ;;
1259  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1261    x_libraries=$ac_optarg ;;
1262
1263  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1264Try \`$0 --help' for more information"
1265    ;;
1266
1267  *=*)
1268    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1269    # Reject names that are not valid shell variable names.
1270    case $ac_envvar in #(
1271      '' | [0-9]* | *[!_$as_cr_alnum]* )
1272      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1273    esac
1274    eval $ac_envvar=\$ac_optarg
1275    export $ac_envvar ;;
1276
1277  *)
1278    # FIXME: should be removed in autoconf 3.0.
1279    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1283    ;;
1284
1285  esac
1286done
1287
1288if test -n "$ac_prev"; then
1289  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1290  as_fn_error $? "missing argument to $ac_option"
1291fi
1292
1293if test -n "$ac_unrecognized_opts"; then
1294  case $enable_option_checking in
1295    no) ;;
1296    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1297    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1298  esac
1299fi
1300
1301# Check all directory arguments for consistency.
1302for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303		datadir sysconfdir sharedstatedir localstatedir includedir \
1304		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305		libdir localedir mandir
1306do
1307  eval ac_val=\$$ac_var
1308  # Remove trailing slashes.
1309  case $ac_val in
1310    */ )
1311      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1312      eval $ac_var=\$ac_val;;
1313  esac
1314  # Be sure to have absolute directory names.
1315  case $ac_val in
1316    [\\/$]* | ?:[\\/]* )  continue;;
1317    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1318  esac
1319  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1320done
1321
1322# There might be people who depend on the old broken behavior: `$host'
1323# used to hold the argument of --host etc.
1324# FIXME: To remove some day.
1325build=$build_alias
1326host=$host_alias
1327target=$target_alias
1328
1329# FIXME: To remove some day.
1330if test "x$host_alias" != x; then
1331  if test "x$build_alias" = x; then
1332    cross_compiling=maybe
1333  elif test "x$build_alias" != "x$host_alias"; then
1334    cross_compiling=yes
1335  fi
1336fi
1337
1338ac_tool_prefix=
1339test -n "$host_alias" && ac_tool_prefix=$host_alias-
1340
1341test "$silent" = yes && exec 6>/dev/null
1342
1343
1344ac_pwd=`pwd` && test -n "$ac_pwd" &&
1345ac_ls_di=`ls -di .` &&
1346ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1347  as_fn_error $? "working directory cannot be determined"
1348test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349  as_fn_error $? "pwd does not report name of working directory"
1350
1351
1352# Find the source files, if location was not specified.
1353if test -z "$srcdir"; then
1354  ac_srcdir_defaulted=yes
1355  # Try the directory containing this script, then the parent directory.
1356  ac_confdir=`$as_dirname -- "$as_myself" ||
1357$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1358	 X"$as_myself" : 'X\(//\)[^/]' \| \
1359	 X"$as_myself" : 'X\(//\)$' \| \
1360	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1361$as_echo X"$as_myself" |
1362    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1363	    s//\1/
1364	    q
1365	  }
1366	  /^X\(\/\/\)[^/].*/{
1367	    s//\1/
1368	    q
1369	  }
1370	  /^X\(\/\/\)$/{
1371	    s//\1/
1372	    q
1373	  }
1374	  /^X\(\/\).*/{
1375	    s//\1/
1376	    q
1377	  }
1378	  s/.*/./; q'`
1379  srcdir=$ac_confdir
1380  if test ! -r "$srcdir/$ac_unique_file"; then
1381    srcdir=..
1382  fi
1383else
1384  ac_srcdir_defaulted=no
1385fi
1386if test ! -r "$srcdir/$ac_unique_file"; then
1387  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1388  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1389fi
1390ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1391ac_abs_confdir=`(
1392	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1393	pwd)`
1394# When building in place, set srcdir=.
1395if test "$ac_abs_confdir" = "$ac_pwd"; then
1396  srcdir=.
1397fi
1398# Remove unnecessary trailing slashes from srcdir.
1399# Double slashes in file names in object file debugging info
1400# mess up M-x gdb in Emacs.
1401case $srcdir in
1402*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403esac
1404for ac_var in $ac_precious_vars; do
1405  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406  eval ac_env_${ac_var}_value=\$${ac_var}
1407  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409done
1410
1411#
1412# Report the --help message.
1413#
1414if test "$ac_init_help" = "long"; then
1415  # Omit some internal or obsolete options to make the list less imposing.
1416  # This message is too long to be a string in the A/UX 3.1 sh.
1417  cat <<_ACEOF
1418\`configure' configures PCRE2 10.36 to adapt to many kinds of systems.
1419
1420Usage: $0 [OPTION]... [VAR=VALUE]...
1421
1422To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423VAR=VALUE.  See below for descriptions of some of the useful variables.
1424
1425Defaults for the options are specified in brackets.
1426
1427Configuration:
1428  -h, --help              display this help and exit
1429      --help=short        display options specific to this package
1430      --help=recursive    display the short help of all the included packages
1431  -V, --version           display version information and exit
1432  -q, --quiet, --silent   do not print \`checking ...' messages
1433      --cache-file=FILE   cache test results in FILE [disabled]
1434  -C, --config-cache      alias for \`--cache-file=config.cache'
1435  -n, --no-create         do not create output files
1436      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1437
1438Installation directories:
1439  --prefix=PREFIX         install architecture-independent files in PREFIX
1440                          [$ac_default_prefix]
1441  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1442                          [PREFIX]
1443
1444By default, \`make install' will install all the files in
1445\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1446an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447for instance \`--prefix=\$HOME'.
1448
1449For better control, use the options below.
1450
1451Fine tuning of the installation directories:
1452  --bindir=DIR            user executables [EPREFIX/bin]
1453  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1454  --libexecdir=DIR        program executables [EPREFIX/libexec]
1455  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1456  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1457  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1458  --libdir=DIR            object code libraries [EPREFIX/lib]
1459  --includedir=DIR        C header files [PREFIX/include]
1460  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1461  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1462  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1463  --infodir=DIR           info documentation [DATAROOTDIR/info]
1464  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1465  --mandir=DIR            man documentation [DATAROOTDIR/man]
1466  --docdir=DIR            documentation root [DATAROOTDIR/doc/pcre2]
1467  --htmldir=DIR           html documentation [DOCDIR]
1468  --dvidir=DIR            dvi documentation [DOCDIR]
1469  --pdfdir=DIR            pdf documentation [DOCDIR]
1470  --psdir=DIR             ps documentation [DOCDIR]
1471_ACEOF
1472
1473  cat <<\_ACEOF
1474
1475Program names:
1476  --program-prefix=PREFIX            prepend PREFIX to installed program names
1477  --program-suffix=SUFFIX            append SUFFIX to installed program names
1478  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1479
1480System types:
1481  --build=BUILD     configure for building on BUILD [guessed]
1482  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1483_ACEOF
1484fi
1485
1486if test -n "$ac_init_help"; then
1487  case $ac_init_help in
1488     short | recursive ) echo "Configuration of PCRE2 10.36:";;
1489   esac
1490  cat <<\_ACEOF
1491
1492Optional Features:
1493  --disable-option-checking  ignore unrecognized --enable/--with options
1494  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1495  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1496  --enable-silent-rules   less verbose build output (undo: "make V=1")
1497  --disable-silent-rules  verbose build output (undo: "make V=0")
1498  --enable-dependency-tracking
1499                          do not reject slow dependency extractors
1500  --disable-dependency-tracking
1501                          speeds up one-time build
1502  --enable-shared[=PKGS]  build shared libraries [default=yes]
1503  --enable-static[=PKGS]  build static libraries [default=yes]
1504  --enable-fast-install[=PKGS]
1505                          optimize for fast installation [default=yes]
1506  --disable-libtool-lock  avoid locking (might break parallel builds)
1507
1508  --disable-pcre2-8       disable 8 bit character support
1509  --enable-pcre2-16       enable 16 bit character support
1510  --enable-pcre2-32       enable 32 bit character support
1511  --enable-debug          enable debugging code
1512  --enable-jit            enable Just-In-Time compiling support
1513  --enable-jit-sealloc    enable SELinux compatible execmem allocator in JIT
1514                          (experimental)
1515  --disable-pcre2grep-jit disable JIT support in pcre2grep
1516  --disable-pcre2grep-callout
1517                          disable callout script support in pcre2grep
1518  --disable-pcre2grep-callout-fork
1519                          disable callout script fork support in pcre2grep
1520  --enable-rebuild-chartables
1521                          rebuild character tables in current locale
1522  --disable-unicode       disable Unicode support
1523  --enable-newline-is-cr  use CR as newline character
1524  --enable-newline-is-lf  use LF as newline character (default)
1525  --enable-newline-is-crlf
1526                          use CRLF as newline sequence
1527  --enable-newline-is-anycrlf
1528                          use CR, LF, or CRLF as newline sequence
1529  --enable-newline-is-any use any valid Unicode newline sequence
1530  --enable-newline-is-nul use NUL (binary zero) as newline character
1531  --enable-bsr-anycrlf    \R matches only CR, LF, CRLF by default
1532  --enable-never-backslash-C
1533                          use of \C causes an error
1534  --enable-ebcdic         assume EBCDIC coding rather than ASCII; incompatible
1535                          with --enable-utf; use only in (uncommon) EBCDIC
1536                          environments; it implies --enable-rebuild-chartables
1537  --enable-ebcdic-nl25    set EBCDIC code for NL to 0x25 instead of 0x15; it
1538                          implies --enable-ebcdic
1539  --enable-pcre2grep-libz link pcre2grep with libz to handle .gz files
1540  --enable-pcre2grep-libbz2
1541                          link pcre2grep with libbz2 to handle .bz2 files
1542  --enable-pcre2test-libedit
1543                          link pcre2test with libedit
1544  --enable-pcre2test-libreadline
1545                          link pcre2test with libreadline
1546  --enable-valgrind       enable valgrind support
1547  --enable-coverage       enable code coverage reports using gcov
1548  --enable-fuzz-support   enable fuzzer support
1549  --disable-percent-zt    disable the use of z and t formatting modifiers
1550
1551Optional Packages:
1552  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1553  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1554  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1555                          both]
1556  --with-aix-soname=aix|svr4|both
1557                          shared library versioning (aka "SONAME") variant to
1558                          provide on AIX, [default=aix].
1559  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1560  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1561                          compiler's sysroot if not specified).
1562  --with-pcre2grep-bufsize=N
1563                          pcre2grep initial buffer size (default=20480,
1564                          minimum=8192)
1565  --with-pcre2grep-max-bufsize=N
1566                          pcre2grep maximum buffer size (default=1048576,
1567                          minimum=8192)
1568  --with-link-size=N      internal link size (2, 3, or 4 allowed; default=2)
1569  --with-parens-nest-limit=N
1570                          nested parentheses limit (default=250)
1571  --with-heap-limit=N     default limit on heap memory (kibibytes,
1572                          default=20000000)
1573  --with-match-limit=N    default limit on internal looping (default=10000000)
1574  --with-match-limit-depth=N
1575                          default limit on match tree depth
1576                          (default=MATCH_LIMIT)
1577
1578
1579Some influential environment variables:
1580  CC          C compiler command
1581  CFLAGS      C compiler flags
1582  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1583              nonstandard directory <lib dir>
1584  LIBS        libraries to pass to the linker, e.g. -l<library>
1585  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1586              you have headers in a nonstandard directory <include dir>
1587  CPP         C preprocessor
1588  LT_SYS_LIBRARY_PATH
1589              User-defined run-time library search path.
1590  PKG_CONFIG  path to pkg-config utility
1591  PKG_CONFIG_PATH
1592              directories to add to pkg-config's search path
1593  PKG_CONFIG_LIBDIR
1594              path overriding pkg-config's built-in search path
1595  VALGRIND_CFLAGS
1596              C compiler flags for VALGRIND, overriding pkg-config
1597  VALGRIND_LIBS
1598              linker flags for VALGRIND, overriding pkg-config
1599  LCOV        the ltp lcov program
1600  GENHTML     the ltp genhtml program
1601
1602Use these variables to override the choices made by `configure' or to help
1603it to find libraries and programs with nonstandard names/locations.
1604
1605Report bugs to the package provider.
1606_ACEOF
1607ac_status=$?
1608fi
1609
1610if test "$ac_init_help" = "recursive"; then
1611  # If there are subdirs, report their specific --help.
1612  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1613    test -d "$ac_dir" ||
1614      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1615      continue
1616    ac_builddir=.
1617
1618case "$ac_dir" in
1619.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620*)
1621  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1622  # A ".." for each directory in $ac_dir_suffix.
1623  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1624  case $ac_top_builddir_sub in
1625  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1627  esac ;;
1628esac
1629ac_abs_top_builddir=$ac_pwd
1630ac_abs_builddir=$ac_pwd$ac_dir_suffix
1631# for backward compatibility:
1632ac_top_builddir=$ac_top_build_prefix
1633
1634case $srcdir in
1635  .)  # We are building in place.
1636    ac_srcdir=.
1637    ac_top_srcdir=$ac_top_builddir_sub
1638    ac_abs_top_srcdir=$ac_pwd ;;
1639  [\\/]* | ?:[\\/]* )  # Absolute name.
1640    ac_srcdir=$srcdir$ac_dir_suffix;
1641    ac_top_srcdir=$srcdir
1642    ac_abs_top_srcdir=$srcdir ;;
1643  *) # Relative name.
1644    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1645    ac_top_srcdir=$ac_top_build_prefix$srcdir
1646    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1647esac
1648ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1649
1650    cd "$ac_dir" || { ac_status=$?; continue; }
1651    # Check for guested configure.
1652    if test -f "$ac_srcdir/configure.gnu"; then
1653      echo &&
1654      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1655    elif test -f "$ac_srcdir/configure"; then
1656      echo &&
1657      $SHELL "$ac_srcdir/configure" --help=recursive
1658    else
1659      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1660    fi || ac_status=$?
1661    cd "$ac_pwd" || { ac_status=$?; break; }
1662  done
1663fi
1664
1665test -n "$ac_init_help" && exit $ac_status
1666if $ac_init_version; then
1667  cat <<\_ACEOF
1668PCRE2 configure 10.36
1669generated by GNU Autoconf 2.69
1670
1671Copyright (C) 2012 Free Software Foundation, Inc.
1672This configure script is free software; the Free Software Foundation
1673gives unlimited permission to copy, distribute and modify it.
1674_ACEOF
1675  exit
1676fi
1677
1678## ------------------------ ##
1679## Autoconf initialization. ##
1680## ------------------------ ##
1681
1682# ac_fn_c_try_compile LINENO
1683# --------------------------
1684# Try to compile conftest.$ac_ext, and return whether this succeeded.
1685ac_fn_c_try_compile ()
1686{
1687  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688  rm -f conftest.$ac_objext
1689  if { { ac_try="$ac_compile"
1690case "(($ac_try" in
1691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692  *) ac_try_echo=$ac_try;;
1693esac
1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695$as_echo "$ac_try_echo"; } >&5
1696  (eval "$ac_compile") 2>conftest.err
1697  ac_status=$?
1698  if test -s conftest.err; then
1699    grep -v '^ *+' conftest.err >conftest.er1
1700    cat conftest.er1 >&5
1701    mv -f conftest.er1 conftest.err
1702  fi
1703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704  test $ac_status = 0; } && {
1705	 test -z "$ac_c_werror_flag" ||
1706	 test ! -s conftest.err
1707       } && test -s conftest.$ac_objext; then :
1708  ac_retval=0
1709else
1710  $as_echo "$as_me: failed program was:" >&5
1711sed 's/^/| /' conftest.$ac_ext >&5
1712
1713	ac_retval=1
1714fi
1715  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716  as_fn_set_status $ac_retval
1717
1718} # ac_fn_c_try_compile
1719
1720# ac_fn_c_try_cpp LINENO
1721# ----------------------
1722# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1723ac_fn_c_try_cpp ()
1724{
1725  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726  if { { ac_try="$ac_cpp conftest.$ac_ext"
1727case "(($ac_try" in
1728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729  *) ac_try_echo=$ac_try;;
1730esac
1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732$as_echo "$ac_try_echo"; } >&5
1733  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1734  ac_status=$?
1735  if test -s conftest.err; then
1736    grep -v '^ *+' conftest.err >conftest.er1
1737    cat conftest.er1 >&5
1738    mv -f conftest.er1 conftest.err
1739  fi
1740  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741  test $ac_status = 0; } > conftest.i && {
1742	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1743	 test ! -s conftest.err
1744       }; then :
1745  ac_retval=0
1746else
1747  $as_echo "$as_me: failed program was:" >&5
1748sed 's/^/| /' conftest.$ac_ext >&5
1749
1750    ac_retval=1
1751fi
1752  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753  as_fn_set_status $ac_retval
1754
1755} # ac_fn_c_try_cpp
1756
1757# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1758# -------------------------------------------------------
1759# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1760# the include files in INCLUDES and setting the cache variable VAR
1761# accordingly.
1762ac_fn_c_check_header_mongrel ()
1763{
1764  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765  if eval \${$3+:} false; then :
1766  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767$as_echo_n "checking for $2... " >&6; }
1768if eval \${$3+:} false; then :
1769  $as_echo_n "(cached) " >&6
1770fi
1771eval ac_res=\$$3
1772	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773$as_echo "$ac_res" >&6; }
1774else
1775  # Is the header compilable?
1776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1777$as_echo_n "checking $2 usability... " >&6; }
1778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779/* end confdefs.h.  */
1780$4
1781#include <$2>
1782_ACEOF
1783if ac_fn_c_try_compile "$LINENO"; then :
1784  ac_header_compiler=yes
1785else
1786  ac_header_compiler=no
1787fi
1788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1790$as_echo "$ac_header_compiler" >&6; }
1791
1792# Is the header present?
1793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1794$as_echo_n "checking $2 presence... " >&6; }
1795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796/* end confdefs.h.  */
1797#include <$2>
1798_ACEOF
1799if ac_fn_c_try_cpp "$LINENO"; then :
1800  ac_header_preproc=yes
1801else
1802  ac_header_preproc=no
1803fi
1804rm -f conftest.err conftest.i conftest.$ac_ext
1805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1806$as_echo "$ac_header_preproc" >&6; }
1807
1808# So?  What about this header?
1809case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1810  yes:no: )
1811    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1812$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1813    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1814$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1815    ;;
1816  no:yes:* )
1817    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1818$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1819    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1820$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1821    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1822$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1823    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1824$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1825    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1826$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1827    ;;
1828esac
1829  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830$as_echo_n "checking for $2... " >&6; }
1831if eval \${$3+:} false; then :
1832  $as_echo_n "(cached) " >&6
1833else
1834  eval "$3=\$ac_header_compiler"
1835fi
1836eval ac_res=\$$3
1837	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838$as_echo "$ac_res" >&6; }
1839fi
1840  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841
1842} # ac_fn_c_check_header_mongrel
1843
1844# ac_fn_c_try_run LINENO
1845# ----------------------
1846# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1847# that executables *can* be run.
1848ac_fn_c_try_run ()
1849{
1850  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851  if { { ac_try="$ac_link"
1852case "(($ac_try" in
1853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854  *) ac_try_echo=$ac_try;;
1855esac
1856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857$as_echo "$ac_try_echo"; } >&5
1858  (eval "$ac_link") 2>&5
1859  ac_status=$?
1860  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1862  { { case "(($ac_try" in
1863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864  *) ac_try_echo=$ac_try;;
1865esac
1866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867$as_echo "$ac_try_echo"; } >&5
1868  (eval "$ac_try") 2>&5
1869  ac_status=$?
1870  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871  test $ac_status = 0; }; }; then :
1872  ac_retval=0
1873else
1874  $as_echo "$as_me: program exited with status $ac_status" >&5
1875       $as_echo "$as_me: failed program was:" >&5
1876sed 's/^/| /' conftest.$ac_ext >&5
1877
1878       ac_retval=$ac_status
1879fi
1880  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1881  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882  as_fn_set_status $ac_retval
1883
1884} # ac_fn_c_try_run
1885
1886# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1887# -------------------------------------------------------
1888# Tests whether HEADER exists and can be compiled using the include files in
1889# INCLUDES, setting the cache variable VAR accordingly.
1890ac_fn_c_check_header_compile ()
1891{
1892  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894$as_echo_n "checking for $2... " >&6; }
1895if eval \${$3+:} false; then :
1896  $as_echo_n "(cached) " >&6
1897else
1898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899/* end confdefs.h.  */
1900$4
1901#include <$2>
1902_ACEOF
1903if ac_fn_c_try_compile "$LINENO"; then :
1904  eval "$3=yes"
1905else
1906  eval "$3=no"
1907fi
1908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909fi
1910eval ac_res=\$$3
1911	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912$as_echo "$ac_res" >&6; }
1913  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914
1915} # ac_fn_c_check_header_compile
1916
1917# ac_fn_c_find_intX_t LINENO BITS VAR
1918# -----------------------------------
1919# Finds a signed integer type with width BITS, setting cache variable VAR
1920# accordingly.
1921ac_fn_c_find_intX_t ()
1922{
1923  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1925$as_echo_n "checking for int$2_t... " >&6; }
1926if eval \${$3+:} false; then :
1927  $as_echo_n "(cached) " >&6
1928else
1929  eval "$3=no"
1930     # Order is important - never check a type that is potentially smaller
1931     # than half of the expected target width.
1932     for ac_type in int$2_t 'int' 'long int' \
1933	 'long long int' 'short int' 'signed char'; do
1934       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935/* end confdefs.h.  */
1936$ac_includes_default
1937	     enum { N = $2 / 2 - 1 };
1938int
1939main ()
1940{
1941static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1942test_array [0] = 0;
1943return test_array [0];
1944
1945  ;
1946  return 0;
1947}
1948_ACEOF
1949if ac_fn_c_try_compile "$LINENO"; then :
1950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951/* end confdefs.h.  */
1952$ac_includes_default
1953	        enum { N = $2 / 2 - 1 };
1954int
1955main ()
1956{
1957static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1958		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1959test_array [0] = 0;
1960return test_array [0];
1961
1962  ;
1963  return 0;
1964}
1965_ACEOF
1966if ac_fn_c_try_compile "$LINENO"; then :
1967
1968else
1969  case $ac_type in #(
1970  int$2_t) :
1971    eval "$3=yes" ;; #(
1972  *) :
1973    eval "$3=\$ac_type" ;;
1974esac
1975fi
1976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977fi
1978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979       if eval test \"x\$"$3"\" = x"no"; then :
1980
1981else
1982  break
1983fi
1984     done
1985fi
1986eval ac_res=\$$3
1987	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988$as_echo "$ac_res" >&6; }
1989  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990
1991} # ac_fn_c_find_intX_t
1992
1993# ac_fn_c_try_link LINENO
1994# -----------------------
1995# Try to link conftest.$ac_ext, and return whether this succeeded.
1996ac_fn_c_try_link ()
1997{
1998  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999  rm -f conftest.$ac_objext conftest$ac_exeext
2000  if { { ac_try="$ac_link"
2001case "(($ac_try" in
2002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003  *) ac_try_echo=$ac_try;;
2004esac
2005eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006$as_echo "$ac_try_echo"; } >&5
2007  (eval "$ac_link") 2>conftest.err
2008  ac_status=$?
2009  if test -s conftest.err; then
2010    grep -v '^ *+' conftest.err >conftest.er1
2011    cat conftest.er1 >&5
2012    mv -f conftest.er1 conftest.err
2013  fi
2014  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015  test $ac_status = 0; } && {
2016	 test -z "$ac_c_werror_flag" ||
2017	 test ! -s conftest.err
2018       } && test -s conftest$ac_exeext && {
2019	 test "$cross_compiling" = yes ||
2020	 test -x conftest$ac_exeext
2021       }; then :
2022  ac_retval=0
2023else
2024  $as_echo "$as_me: failed program was:" >&5
2025sed 's/^/| /' conftest.$ac_ext >&5
2026
2027	ac_retval=1
2028fi
2029  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2030  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2031  # interfere with the next link command; also delete a directory that is
2032  # left behind by Apple's compiler.  We do this before executing the actions.
2033  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2034  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035  as_fn_set_status $ac_retval
2036
2037} # ac_fn_c_try_link
2038
2039# ac_fn_c_check_func LINENO FUNC VAR
2040# ----------------------------------
2041# Tests whether FUNC exists, setting the cache variable VAR accordingly
2042ac_fn_c_check_func ()
2043{
2044  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2046$as_echo_n "checking for $2... " >&6; }
2047if eval \${$3+:} false; then :
2048  $as_echo_n "(cached) " >&6
2049else
2050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051/* end confdefs.h.  */
2052/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2053   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2054#define $2 innocuous_$2
2055
2056/* System header to define __stub macros and hopefully few prototypes,
2057    which can conflict with char $2 (); below.
2058    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2059    <limits.h> exists even on freestanding compilers.  */
2060
2061#ifdef __STDC__
2062# include <limits.h>
2063#else
2064# include <assert.h>
2065#endif
2066
2067#undef $2
2068
2069/* Override any GCC internal prototype to avoid an error.
2070   Use char because int might match the return type of a GCC
2071   builtin and then its argument prototype would still apply.  */
2072#ifdef __cplusplus
2073extern "C"
2074#endif
2075char $2 ();
2076/* The GNU C library defines this for functions which it implements
2077    to always fail with ENOSYS.  Some functions are actually named
2078    something starting with __ and the normal name is an alias.  */
2079#if defined __stub_$2 || defined __stub___$2
2080choke me
2081#endif
2082
2083int
2084main ()
2085{
2086return $2 ();
2087  ;
2088  return 0;
2089}
2090_ACEOF
2091if ac_fn_c_try_link "$LINENO"; then :
2092  eval "$3=yes"
2093else
2094  eval "$3=no"
2095fi
2096rm -f core conftest.err conftest.$ac_objext \
2097    conftest$ac_exeext conftest.$ac_ext
2098fi
2099eval ac_res=\$$3
2100	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101$as_echo "$ac_res" >&6; }
2102  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2103
2104} # ac_fn_c_check_func
2105
2106# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2107# -------------------------------------------
2108# Tests whether TYPE exists after having included INCLUDES, setting cache
2109# variable VAR accordingly.
2110ac_fn_c_check_type ()
2111{
2112  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2114$as_echo_n "checking for $2... " >&6; }
2115if eval \${$3+:} false; then :
2116  $as_echo_n "(cached) " >&6
2117else
2118  eval "$3=no"
2119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120/* end confdefs.h.  */
2121$4
2122int
2123main ()
2124{
2125if (sizeof ($2))
2126	 return 0;
2127  ;
2128  return 0;
2129}
2130_ACEOF
2131if ac_fn_c_try_compile "$LINENO"; then :
2132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133/* end confdefs.h.  */
2134$4
2135int
2136main ()
2137{
2138if (sizeof (($2)))
2139	    return 0;
2140  ;
2141  return 0;
2142}
2143_ACEOF
2144if ac_fn_c_try_compile "$LINENO"; then :
2145
2146else
2147  eval "$3=yes"
2148fi
2149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150fi
2151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152fi
2153eval ac_res=\$$3
2154	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2155$as_echo "$ac_res" >&6; }
2156  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157
2158} # ac_fn_c_check_type
2159cat >config.log <<_ACEOF
2160This file contains any messages produced by compilers while
2161running configure, to aid debugging if configure makes a mistake.
2162
2163It was created by PCRE2 $as_me 10.36, which was
2164generated by GNU Autoconf 2.69.  Invocation command line was
2165
2166  $ $0 $@
2167
2168_ACEOF
2169exec 5>>config.log
2170{
2171cat <<_ASUNAME
2172## --------- ##
2173## Platform. ##
2174## --------- ##
2175
2176hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2177uname -m = `(uname -m) 2>/dev/null || echo unknown`
2178uname -r = `(uname -r) 2>/dev/null || echo unknown`
2179uname -s = `(uname -s) 2>/dev/null || echo unknown`
2180uname -v = `(uname -v) 2>/dev/null || echo unknown`
2181
2182/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2183/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2184
2185/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2186/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2187/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2188/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2189/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2190/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2191/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2192
2193_ASUNAME
2194
2195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196for as_dir in $PATH
2197do
2198  IFS=$as_save_IFS
2199  test -z "$as_dir" && as_dir=.
2200    $as_echo "PATH: $as_dir"
2201  done
2202IFS=$as_save_IFS
2203
2204} >&5
2205
2206cat >&5 <<_ACEOF
2207
2208
2209## ----------- ##
2210## Core tests. ##
2211## ----------- ##
2212
2213_ACEOF
2214
2215
2216# Keep a trace of the command line.
2217# Strip out --no-create and --no-recursion so they do not pile up.
2218# Strip out --silent because we don't want to record it for future runs.
2219# Also quote any args containing shell meta-characters.
2220# Make two passes to allow for proper duplicate-argument suppression.
2221ac_configure_args=
2222ac_configure_args0=
2223ac_configure_args1=
2224ac_must_keep_next=false
2225for ac_pass in 1 2
2226do
2227  for ac_arg
2228  do
2229    case $ac_arg in
2230    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2231    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2232    | -silent | --silent | --silen | --sile | --sil)
2233      continue ;;
2234    *\'*)
2235      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2236    esac
2237    case $ac_pass in
2238    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2239    2)
2240      as_fn_append ac_configure_args1 " '$ac_arg'"
2241      if test $ac_must_keep_next = true; then
2242	ac_must_keep_next=false # Got value, back to normal.
2243      else
2244	case $ac_arg in
2245	  *=* | --config-cache | -C | -disable-* | --disable-* \
2246	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2247	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2248	  | -with-* | --with-* | -without-* | --without-* | --x)
2249	    case "$ac_configure_args0 " in
2250	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2251	    esac
2252	    ;;
2253	  -* ) ac_must_keep_next=true ;;
2254	esac
2255      fi
2256      as_fn_append ac_configure_args " '$ac_arg'"
2257      ;;
2258    esac
2259  done
2260done
2261{ ac_configure_args0=; unset ac_configure_args0;}
2262{ ac_configure_args1=; unset ac_configure_args1;}
2263
2264# When interrupted or exit'd, cleanup temporary files, and complete
2265# config.log.  We remove comments because anyway the quotes in there
2266# would cause problems or look ugly.
2267# WARNING: Use '\'' to represent an apostrophe within the trap.
2268# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2269trap 'exit_status=$?
2270  # Save into config.log some information that might help in debugging.
2271  {
2272    echo
2273
2274    $as_echo "## ---------------- ##
2275## Cache variables. ##
2276## ---------------- ##"
2277    echo
2278    # The following way of writing the cache mishandles newlines in values,
2279(
2280  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2281    eval ac_val=\$$ac_var
2282    case $ac_val in #(
2283    *${as_nl}*)
2284      case $ac_var in #(
2285      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2286$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2287      esac
2288      case $ac_var in #(
2289      _ | IFS | as_nl) ;; #(
2290      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2291      *) { eval $ac_var=; unset $ac_var;} ;;
2292      esac ;;
2293    esac
2294  done
2295  (set) 2>&1 |
2296    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2297    *${as_nl}ac_space=\ *)
2298      sed -n \
2299	"s/'\''/'\''\\\\'\'''\''/g;
2300	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2301      ;; #(
2302    *)
2303      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2304      ;;
2305    esac |
2306    sort
2307)
2308    echo
2309
2310    $as_echo "## ----------------- ##
2311## Output variables. ##
2312## ----------------- ##"
2313    echo
2314    for ac_var in $ac_subst_vars
2315    do
2316      eval ac_val=\$$ac_var
2317      case $ac_val in
2318      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2319      esac
2320      $as_echo "$ac_var='\''$ac_val'\''"
2321    done | sort
2322    echo
2323
2324    if test -n "$ac_subst_files"; then
2325      $as_echo "## ------------------- ##
2326## File substitutions. ##
2327## ------------------- ##"
2328      echo
2329      for ac_var in $ac_subst_files
2330      do
2331	eval ac_val=\$$ac_var
2332	case $ac_val in
2333	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334	esac
2335	$as_echo "$ac_var='\''$ac_val'\''"
2336      done | sort
2337      echo
2338    fi
2339
2340    if test -s confdefs.h; then
2341      $as_echo "## ----------- ##
2342## confdefs.h. ##
2343## ----------- ##"
2344      echo
2345      cat confdefs.h
2346      echo
2347    fi
2348    test "$ac_signal" != 0 &&
2349      $as_echo "$as_me: caught signal $ac_signal"
2350    $as_echo "$as_me: exit $exit_status"
2351  } >&5
2352  rm -f core *.core core.conftest.* &&
2353    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2354    exit $exit_status
2355' 0
2356for ac_signal in 1 2 13 15; do
2357  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2358done
2359ac_signal=0
2360
2361# confdefs.h avoids OS command line length limits that DEFS can exceed.
2362rm -f -r conftest* confdefs.h
2363
2364$as_echo "/* confdefs.h */" > confdefs.h
2365
2366# Predefined preprocessor variables.
2367
2368cat >>confdefs.h <<_ACEOF
2369#define PACKAGE_NAME "$PACKAGE_NAME"
2370_ACEOF
2371
2372cat >>confdefs.h <<_ACEOF
2373#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2374_ACEOF
2375
2376cat >>confdefs.h <<_ACEOF
2377#define PACKAGE_VERSION "$PACKAGE_VERSION"
2378_ACEOF
2379
2380cat >>confdefs.h <<_ACEOF
2381#define PACKAGE_STRING "$PACKAGE_STRING"
2382_ACEOF
2383
2384cat >>confdefs.h <<_ACEOF
2385#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2386_ACEOF
2387
2388cat >>confdefs.h <<_ACEOF
2389#define PACKAGE_URL "$PACKAGE_URL"
2390_ACEOF
2391
2392
2393# Let the site file select an alternate cache file if it wants to.
2394# Prefer an explicitly selected file to automatically selected ones.
2395ac_site_file1=NONE
2396ac_site_file2=NONE
2397if test -n "$CONFIG_SITE"; then
2398  # We do not want a PATH search for config.site.
2399  case $CONFIG_SITE in #((
2400    -*)  ac_site_file1=./$CONFIG_SITE;;
2401    */*) ac_site_file1=$CONFIG_SITE;;
2402    *)   ac_site_file1=./$CONFIG_SITE;;
2403  esac
2404elif test "x$prefix" != xNONE; then
2405  ac_site_file1=$prefix/share/config.site
2406  ac_site_file2=$prefix/etc/config.site
2407else
2408  ac_site_file1=$ac_default_prefix/share/config.site
2409  ac_site_file2=$ac_default_prefix/etc/config.site
2410fi
2411for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2412do
2413  test "x$ac_site_file" = xNONE && continue
2414  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2415    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2416$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2417    sed 's/^/| /' "$ac_site_file" >&5
2418    . "$ac_site_file" \
2419      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2421as_fn_error $? "failed to load site script $ac_site_file
2422See \`config.log' for more details" "$LINENO" 5; }
2423  fi
2424done
2425
2426if test -r "$cache_file"; then
2427  # Some versions of bash will fail to source /dev/null (special files
2428  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2429  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2430    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2431$as_echo "$as_me: loading cache $cache_file" >&6;}
2432    case $cache_file in
2433      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2434      *)                      . "./$cache_file";;
2435    esac
2436  fi
2437else
2438  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2439$as_echo "$as_me: creating cache $cache_file" >&6;}
2440  >$cache_file
2441fi
2442
2443# Check that the precious variables saved in the cache have kept the same
2444# value.
2445ac_cache_corrupted=false
2446for ac_var in $ac_precious_vars; do
2447  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2448  eval ac_new_set=\$ac_env_${ac_var}_set
2449  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2450  eval ac_new_val=\$ac_env_${ac_var}_value
2451  case $ac_old_set,$ac_new_set in
2452    set,)
2453      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2454$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2455      ac_cache_corrupted=: ;;
2456    ,set)
2457      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2458$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2459      ac_cache_corrupted=: ;;
2460    ,);;
2461    *)
2462      if test "x$ac_old_val" != "x$ac_new_val"; then
2463	# differences in whitespace do not lead to failure.
2464	ac_old_val_w=`echo x $ac_old_val`
2465	ac_new_val_w=`echo x $ac_new_val`
2466	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2467	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2468$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2469	  ac_cache_corrupted=:
2470	else
2471	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2472$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2473	  eval $ac_var=\$ac_old_val
2474	fi
2475	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2476$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2477	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2478$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2479      fi;;
2480  esac
2481  # Pass precious variables to config.status.
2482  if test "$ac_new_set" = set; then
2483    case $ac_new_val in
2484    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2485    *) ac_arg=$ac_var=$ac_new_val ;;
2486    esac
2487    case " $ac_configure_args " in
2488      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2489      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2490    esac
2491  fi
2492done
2493if $ac_cache_corrupted; then
2494  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2495$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2496  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2497$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2498  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2499fi
2500## -------------------- ##
2501## Main body of script. ##
2502## -------------------- ##
2503
2504ac_ext=c
2505ac_cpp='$CPP $CPPFLAGS'
2506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2508ac_compiler_gnu=$ac_cv_c_compiler_gnu
2509
2510
2511
2512am__api_version='1.16'
2513
2514ac_aux_dir=
2515for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2516  if test -f "$ac_dir/install-sh"; then
2517    ac_aux_dir=$ac_dir
2518    ac_install_sh="$ac_aux_dir/install-sh -c"
2519    break
2520  elif test -f "$ac_dir/install.sh"; then
2521    ac_aux_dir=$ac_dir
2522    ac_install_sh="$ac_aux_dir/install.sh -c"
2523    break
2524  elif test -f "$ac_dir/shtool"; then
2525    ac_aux_dir=$ac_dir
2526    ac_install_sh="$ac_aux_dir/shtool install -c"
2527    break
2528  fi
2529done
2530if test -z "$ac_aux_dir"; then
2531  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2532fi
2533
2534# These three variables are undocumented and unsupported,
2535# and are intended to be withdrawn in a future Autoconf release.
2536# They can cause serious problems if a builder's source tree is in a directory
2537# whose full name contains unusual characters.
2538ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2539ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2540ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2541
2542
2543# Find a good install program.  We prefer a C program (faster),
2544# so one script is as good as another.  But avoid the broken or
2545# incompatible versions:
2546# SysV /etc/install, /usr/sbin/install
2547# SunOS /usr/etc/install
2548# IRIX /sbin/install
2549# AIX /bin/install
2550# AmigaOS /C/install, which installs bootblocks on floppy discs
2551# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2552# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2553# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2554# OS/2's system install, which has a completely different semantic
2555# ./install, which can be erroneously created by make from ./install.sh.
2556# Reject install programs that cannot install multiple files.
2557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2558$as_echo_n "checking for a BSD-compatible install... " >&6; }
2559if test -z "$INSTALL"; then
2560if ${ac_cv_path_install+:} false; then :
2561  $as_echo_n "(cached) " >&6
2562else
2563  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564for as_dir in $PATH
2565do
2566  IFS=$as_save_IFS
2567  test -z "$as_dir" && as_dir=.
2568    # Account for people who put trailing slashes in PATH elements.
2569case $as_dir/ in #((
2570  ./ | .// | /[cC]/* | \
2571  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2572  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2573  /usr/ucb/* ) ;;
2574  *)
2575    # OSF1 and SCO ODT 3.0 have their own names for install.
2576    # Don't use installbsd from OSF since it installs stuff as root
2577    # by default.
2578    for ac_prog in ginstall scoinst install; do
2579      for ac_exec_ext in '' $ac_executable_extensions; do
2580	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2581	  if test $ac_prog = install &&
2582	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2583	    # AIX install.  It has an incompatible calling convention.
2584	    :
2585	  elif test $ac_prog = install &&
2586	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2587	    # program-specific install script used by HP pwplus--don't use.
2588	    :
2589	  else
2590	    rm -rf conftest.one conftest.two conftest.dir
2591	    echo one > conftest.one
2592	    echo two > conftest.two
2593	    mkdir conftest.dir
2594	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2595	      test -s conftest.one && test -s conftest.two &&
2596	      test -s conftest.dir/conftest.one &&
2597	      test -s conftest.dir/conftest.two
2598	    then
2599	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2600	      break 3
2601	    fi
2602	  fi
2603	fi
2604      done
2605    done
2606    ;;
2607esac
2608
2609  done
2610IFS=$as_save_IFS
2611
2612rm -rf conftest.one conftest.two conftest.dir
2613
2614fi
2615  if test "${ac_cv_path_install+set}" = set; then
2616    INSTALL=$ac_cv_path_install
2617  else
2618    # As a last resort, use the slow shell script.  Don't cache a
2619    # value for INSTALL within a source directory, because that will
2620    # break other packages using the cache if that directory is
2621    # removed, or if the value is a relative name.
2622    INSTALL=$ac_install_sh
2623  fi
2624fi
2625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2626$as_echo "$INSTALL" >&6; }
2627
2628# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2629# It thinks the first close brace ends the variable substitution.
2630test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2631
2632test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2633
2634test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2635
2636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2637$as_echo_n "checking whether build environment is sane... " >&6; }
2638# Reject unsafe characters in $srcdir or the absolute working directory
2639# name.  Accept space and tab only in the latter.
2640am_lf='
2641'
2642case `pwd` in
2643  *[\\\"\#\$\&\'\`$am_lf]*)
2644    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2645esac
2646case $srcdir in
2647  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2648    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2649esac
2650
2651# Do 'set' in a subshell so we don't clobber the current shell's
2652# arguments.  Must try -L first in case configure is actually a
2653# symlink; some systems play weird games with the mod time of symlinks
2654# (eg FreeBSD returns the mod time of the symlink's containing
2655# directory).
2656if (
2657   am_has_slept=no
2658   for am_try in 1 2; do
2659     echo "timestamp, slept: $am_has_slept" > conftest.file
2660     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2661     if test "$*" = "X"; then
2662	# -L didn't work.
2663	set X `ls -t "$srcdir/configure" conftest.file`
2664     fi
2665     if test "$*" != "X $srcdir/configure conftest.file" \
2666	&& test "$*" != "X conftest.file $srcdir/configure"; then
2667
2668	# If neither matched, then we have a broken ls.  This can happen
2669	# if, for instance, CONFIG_SHELL is bash and it inherits a
2670	# broken ls alias from the environment.  This has actually
2671	# happened.  Such a system could not be considered "sane".
2672	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2673  alias in your environment" "$LINENO" 5
2674     fi
2675     if test "$2" = conftest.file || test $am_try -eq 2; then
2676       break
2677     fi
2678     # Just in case.
2679     sleep 1
2680     am_has_slept=yes
2681   done
2682   test "$2" = conftest.file
2683   )
2684then
2685   # Ok.
2686   :
2687else
2688   as_fn_error $? "newly created file is older than distributed files!
2689Check your system clock" "$LINENO" 5
2690fi
2691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2692$as_echo "yes" >&6; }
2693# If we didn't sleep, we still need to ensure time stamps of config.status and
2694# generated files are strictly newer.
2695am_sleep_pid=
2696if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2697  ( sleep 1 ) &
2698  am_sleep_pid=$!
2699fi
2700
2701rm -f conftest.file
2702
2703test "$program_prefix" != NONE &&
2704  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2705# Use a double $ so make ignores it.
2706test "$program_suffix" != NONE &&
2707  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2708# Double any \ or $.
2709# By default was `s,x,x', remove it if useless.
2710ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2711program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2712
2713# Expand $ac_aux_dir to an absolute path.
2714am_aux_dir=`cd "$ac_aux_dir" && pwd`
2715
2716if test x"${MISSING+set}" != xset; then
2717  case $am_aux_dir in
2718  *\ * | *\	*)
2719    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2720  *)
2721    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2722  esac
2723fi
2724# Use eval to expand $SHELL
2725if eval "$MISSING --is-lightweight"; then
2726  am_missing_run="$MISSING "
2727else
2728  am_missing_run=
2729  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2730$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2731fi
2732
2733if test x"${install_sh+set}" != xset; then
2734  case $am_aux_dir in
2735  *\ * | *\	*)
2736    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2737  *)
2738    install_sh="\${SHELL} $am_aux_dir/install-sh"
2739  esac
2740fi
2741
2742# Installed binaries are usually stripped using 'strip' when the user
2743# run "make install-strip".  However 'strip' might not be the right
2744# tool to use in cross-compilation environments, therefore Automake
2745# will honor the 'STRIP' environment variable to overrule this program.
2746if test "$cross_compiling" != no; then
2747  if test -n "$ac_tool_prefix"; then
2748  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2749set dummy ${ac_tool_prefix}strip; ac_word=$2
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751$as_echo_n "checking for $ac_word... " >&6; }
2752if ${ac_cv_prog_STRIP+:} false; then :
2753  $as_echo_n "(cached) " >&6
2754else
2755  if test -n "$STRIP"; then
2756  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2757else
2758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759for as_dir in $PATH
2760do
2761  IFS=$as_save_IFS
2762  test -z "$as_dir" && as_dir=.
2763    for ac_exec_ext in '' $ac_executable_extensions; do
2764  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2765    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2766    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2767    break 2
2768  fi
2769done
2770  done
2771IFS=$as_save_IFS
2772
2773fi
2774fi
2775STRIP=$ac_cv_prog_STRIP
2776if test -n "$STRIP"; then
2777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2778$as_echo "$STRIP" >&6; }
2779else
2780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781$as_echo "no" >&6; }
2782fi
2783
2784
2785fi
2786if test -z "$ac_cv_prog_STRIP"; then
2787  ac_ct_STRIP=$STRIP
2788  # Extract the first word of "strip", so it can be a program name with args.
2789set dummy strip; ac_word=$2
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791$as_echo_n "checking for $ac_word... " >&6; }
2792if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2793  $as_echo_n "(cached) " >&6
2794else
2795  if test -n "$ac_ct_STRIP"; then
2796  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2797else
2798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799for as_dir in $PATH
2800do
2801  IFS=$as_save_IFS
2802  test -z "$as_dir" && as_dir=.
2803    for ac_exec_ext in '' $ac_executable_extensions; do
2804  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2805    ac_cv_prog_ac_ct_STRIP="strip"
2806    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2807    break 2
2808  fi
2809done
2810  done
2811IFS=$as_save_IFS
2812
2813fi
2814fi
2815ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2816if test -n "$ac_ct_STRIP"; then
2817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2818$as_echo "$ac_ct_STRIP" >&6; }
2819else
2820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821$as_echo "no" >&6; }
2822fi
2823
2824  if test "x$ac_ct_STRIP" = x; then
2825    STRIP=":"
2826  else
2827    case $cross_compiling:$ac_tool_warned in
2828yes:)
2829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2831ac_tool_warned=yes ;;
2832esac
2833    STRIP=$ac_ct_STRIP
2834  fi
2835else
2836  STRIP="$ac_cv_prog_STRIP"
2837fi
2838
2839fi
2840INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2841
2842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2843$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2844if test -z "$MKDIR_P"; then
2845  if ${ac_cv_path_mkdir+:} false; then :
2846  $as_echo_n "(cached) " >&6
2847else
2848  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2850do
2851  IFS=$as_save_IFS
2852  test -z "$as_dir" && as_dir=.
2853    for ac_prog in mkdir gmkdir; do
2854	 for ac_exec_ext in '' $ac_executable_extensions; do
2855	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2856	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2857	     'mkdir (GNU coreutils) '* | \
2858	     'mkdir (coreutils) '* | \
2859	     'mkdir (fileutils) '4.1*)
2860	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2861	       break 3;;
2862	   esac
2863	 done
2864       done
2865  done
2866IFS=$as_save_IFS
2867
2868fi
2869
2870  test -d ./--version && rmdir ./--version
2871  if test "${ac_cv_path_mkdir+set}" = set; then
2872    MKDIR_P="$ac_cv_path_mkdir -p"
2873  else
2874    # As a last resort, use the slow shell script.  Don't cache a
2875    # value for MKDIR_P within a source directory, because that will
2876    # break other packages using the cache if that directory is
2877    # removed, or if the value is a relative name.
2878    MKDIR_P="$ac_install_sh -d"
2879  fi
2880fi
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2882$as_echo "$MKDIR_P" >&6; }
2883
2884for ac_prog in gawk mawk nawk awk
2885do
2886  # Extract the first word of "$ac_prog", so it can be a program name with args.
2887set dummy $ac_prog; ac_word=$2
2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889$as_echo_n "checking for $ac_word... " >&6; }
2890if ${ac_cv_prog_AWK+:} false; then :
2891  $as_echo_n "(cached) " >&6
2892else
2893  if test -n "$AWK"; then
2894  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2895else
2896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897for as_dir in $PATH
2898do
2899  IFS=$as_save_IFS
2900  test -z "$as_dir" && as_dir=.
2901    for ac_exec_ext in '' $ac_executable_extensions; do
2902  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2903    ac_cv_prog_AWK="$ac_prog"
2904    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905    break 2
2906  fi
2907done
2908  done
2909IFS=$as_save_IFS
2910
2911fi
2912fi
2913AWK=$ac_cv_prog_AWK
2914if test -n "$AWK"; then
2915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2916$as_echo "$AWK" >&6; }
2917else
2918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919$as_echo "no" >&6; }
2920fi
2921
2922
2923  test -n "$AWK" && break
2924done
2925
2926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2927$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2928set x ${MAKE-make}
2929ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2930if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2931  $as_echo_n "(cached) " >&6
2932else
2933  cat >conftest.make <<\_ACEOF
2934SHELL = /bin/sh
2935all:
2936	@echo '@@@%%%=$(MAKE)=@@@%%%'
2937_ACEOF
2938# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2939case `${MAKE-make} -f conftest.make 2>/dev/null` in
2940  *@@@%%%=?*=@@@%%%*)
2941    eval ac_cv_prog_make_${ac_make}_set=yes;;
2942  *)
2943    eval ac_cv_prog_make_${ac_make}_set=no;;
2944esac
2945rm -f conftest.make
2946fi
2947if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2949$as_echo "yes" >&6; }
2950  SET_MAKE=
2951else
2952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953$as_echo "no" >&6; }
2954  SET_MAKE="MAKE=${MAKE-make}"
2955fi
2956
2957rm -rf .tst 2>/dev/null
2958mkdir .tst 2>/dev/null
2959if test -d .tst; then
2960  am__leading_dot=.
2961else
2962  am__leading_dot=_
2963fi
2964rmdir .tst 2>/dev/null
2965
2966# Check whether --enable-silent-rules was given.
2967if test "${enable_silent_rules+set}" = set; then :
2968  enableval=$enable_silent_rules;
2969fi
2970
2971case $enable_silent_rules in # (((
2972  yes) AM_DEFAULT_VERBOSITY=0;;
2973   no) AM_DEFAULT_VERBOSITY=1;;
2974    *) AM_DEFAULT_VERBOSITY=1;;
2975esac
2976am_make=${MAKE-make}
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2978$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2979if ${am_cv_make_support_nested_variables+:} false; then :
2980  $as_echo_n "(cached) " >&6
2981else
2982  if $as_echo 'TRUE=$(BAR$(V))
2983BAR0=false
2984BAR1=true
2985V=1
2986am__doit:
2987	@$(TRUE)
2988.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2989  am_cv_make_support_nested_variables=yes
2990else
2991  am_cv_make_support_nested_variables=no
2992fi
2993fi
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2995$as_echo "$am_cv_make_support_nested_variables" >&6; }
2996if test $am_cv_make_support_nested_variables = yes; then
2997    AM_V='$(V)'
2998  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2999else
3000  AM_V=$AM_DEFAULT_VERBOSITY
3001  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3002fi
3003AM_BACKSLASH='\'
3004
3005if test "`cd $srcdir && pwd`" != "`pwd`"; then
3006  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3007  # is not polluted with repeated "-I."
3008  am__isrc=' -I$(srcdir)'
3009  # test to see if srcdir already configured
3010  if test -f $srcdir/config.status; then
3011    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3012  fi
3013fi
3014
3015# test whether we have cygpath
3016if test -z "$CYGPATH_W"; then
3017  if (cygpath --version) >/dev/null 2>/dev/null; then
3018    CYGPATH_W='cygpath -w'
3019  else
3020    CYGPATH_W=echo
3021  fi
3022fi
3023
3024
3025# Define the identity of the package.
3026 PACKAGE='pcre2'
3027 VERSION='10.36'
3028
3029
3030cat >>confdefs.h <<_ACEOF
3031#define PACKAGE "$PACKAGE"
3032_ACEOF
3033
3034
3035cat >>confdefs.h <<_ACEOF
3036#define VERSION "$VERSION"
3037_ACEOF
3038
3039# Some tools Automake needs.
3040
3041ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3042
3043
3044AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3045
3046
3047AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3048
3049
3050AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3051
3052
3053MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3054
3055# For better backward compatibility.  To be removed once Automake 1.9.x
3056# dies out for good.  For more background, see:
3057# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3058# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3059mkdir_p='$(MKDIR_P)'
3060
3061# We need awk for the "check" target (and possibly the TAP driver).  The
3062# system "awk" is bad on some platforms.
3063# Always define AMTAR for backward compatibility.  Yes, it's still used
3064# in the wild :-(  We should find a proper way to deprecate it ...
3065AMTAR='$${TAR-tar}'
3066
3067
3068# We'll loop over all known methods to create a tar archive until one works.
3069_am_tools='gnutar  pax cpio none'
3070
3071am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3072
3073
3074
3075
3076
3077
3078# POSIX will say in a future version that running "rm -f" with no argument
3079# is OK; and we want to be able to make that assumption in our Makefile
3080# recipes.  So use an aggressive probe to check that the usage we want is
3081# actually supported "in the wild" to an acceptable degree.
3082# See automake bug#10828.
3083# To make any issue more visible, cause the running configure to be aborted
3084# by default if the 'rm' program in use doesn't match our expectations; the
3085# user can still override this though.
3086if rm -f && rm -fr && rm -rf; then : OK; else
3087  cat >&2 <<'END'
3088Oops!
3089
3090Your 'rm' program seems unable to run without file operands specified
3091on the command line, even when the '-f' option is present.  This is contrary
3092to the behaviour of most rm programs out there, and not conforming with
3093the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3094
3095Please tell bug-automake@gnu.org about your system, including the value
3096of your $PATH and any error possibly output before this message.  This
3097can help us improve future automake versions.
3098
3099END
3100  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3101    echo 'Configuration will proceed anyway, since you have set the' >&2
3102    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3103    echo >&2
3104  else
3105    cat >&2 <<'END'
3106Aborting the configuration process, to ensure you take notice of the issue.
3107
3108You can download and install GNU coreutils to get an 'rm' implementation
3109that behaves properly: <https://www.gnu.org/software/coreutils/>.
3110
3111If you want to complete the configuration process using your problematic
3112'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3113to "yes", and re-run configure.
3114
3115END
3116    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3117  fi
3118fi
3119
3120# Check whether --enable-silent-rules was given.
3121if test "${enable_silent_rules+set}" = set; then :
3122  enableval=$enable_silent_rules;
3123fi
3124
3125case $enable_silent_rules in # (((
3126  yes) AM_DEFAULT_VERBOSITY=0;;
3127   no) AM_DEFAULT_VERBOSITY=1;;
3128    *) AM_DEFAULT_VERBOSITY=0;;
3129esac
3130am_make=${MAKE-make}
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3132$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3133if ${am_cv_make_support_nested_variables+:} false; then :
3134  $as_echo_n "(cached) " >&6
3135else
3136  if $as_echo 'TRUE=$(BAR$(V))
3137BAR0=false
3138BAR1=true
3139V=1
3140am__doit:
3141	@$(TRUE)
3142.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3143  am_cv_make_support_nested_variables=yes
3144else
3145  am_cv_make_support_nested_variables=no
3146fi
3147fi
3148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3149$as_echo "$am_cv_make_support_nested_variables" >&6; }
3150if test $am_cv_make_support_nested_variables = yes; then
3151    AM_V='$(V)'
3152  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3153else
3154  AM_V=$AM_DEFAULT_VERBOSITY
3155  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3156fi
3157AM_BACKSLASH='\'
3158
3159ac_config_headers="$ac_config_headers src/config.h"
3160
3161
3162# This was added at the suggestion of libtoolize (03-Jan-10)
3163
3164
3165# The default CFLAGS in Autoconf are "-g -O2" for gcc and just "-g" for any
3166# other compiler. There doesn't seem to be a standard way of getting rid of the
3167# -g (which I don't think is needed for a production library). This fudge seems
3168# to achieve the necessary. First, we remember the externally set values of
3169# CFLAGS. Then call the AC_PROG_CC macro to find the compiler - if CFLAGS is
3170# not set, it will be set to Autoconf's defaults. Afterwards, if the original
3171# values were not set, remove the -g from the Autoconf defaults.
3172
3173remember_set_CFLAGS="$CFLAGS"
3174
3175ac_ext=c
3176ac_cpp='$CPP $CPPFLAGS'
3177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3179ac_compiler_gnu=$ac_cv_c_compiler_gnu
3180if test -n "$ac_tool_prefix"; then
3181  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3182set dummy ${ac_tool_prefix}gcc; ac_word=$2
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184$as_echo_n "checking for $ac_word... " >&6; }
3185if ${ac_cv_prog_CC+:} false; then :
3186  $as_echo_n "(cached) " >&6
3187else
3188  if test -n "$CC"; then
3189  ac_cv_prog_CC="$CC" # Let the user override the test.
3190else
3191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192for as_dir in $PATH
3193do
3194  IFS=$as_save_IFS
3195  test -z "$as_dir" && as_dir=.
3196    for ac_exec_ext in '' $ac_executable_extensions; do
3197  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3198    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3199    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200    break 2
3201  fi
3202done
3203  done
3204IFS=$as_save_IFS
3205
3206fi
3207fi
3208CC=$ac_cv_prog_CC
3209if test -n "$CC"; then
3210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3211$as_echo "$CC" >&6; }
3212else
3213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214$as_echo "no" >&6; }
3215fi
3216
3217
3218fi
3219if test -z "$ac_cv_prog_CC"; then
3220  ac_ct_CC=$CC
3221  # Extract the first word of "gcc", so it can be a program name with args.
3222set dummy gcc; ac_word=$2
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224$as_echo_n "checking for $ac_word... " >&6; }
3225if ${ac_cv_prog_ac_ct_CC+:} false; then :
3226  $as_echo_n "(cached) " >&6
3227else
3228  if test -n "$ac_ct_CC"; then
3229  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3230else
3231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232for as_dir in $PATH
3233do
3234  IFS=$as_save_IFS
3235  test -z "$as_dir" && as_dir=.
3236    for ac_exec_ext in '' $ac_executable_extensions; do
3237  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3238    ac_cv_prog_ac_ct_CC="gcc"
3239    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240    break 2
3241  fi
3242done
3243  done
3244IFS=$as_save_IFS
3245
3246fi
3247fi
3248ac_ct_CC=$ac_cv_prog_ac_ct_CC
3249if test -n "$ac_ct_CC"; then
3250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3251$as_echo "$ac_ct_CC" >&6; }
3252else
3253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254$as_echo "no" >&6; }
3255fi
3256
3257  if test "x$ac_ct_CC" = x; then
3258    CC=""
3259  else
3260    case $cross_compiling:$ac_tool_warned in
3261yes:)
3262{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3263$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3264ac_tool_warned=yes ;;
3265esac
3266    CC=$ac_ct_CC
3267  fi
3268else
3269  CC="$ac_cv_prog_CC"
3270fi
3271
3272if test -z "$CC"; then
3273          if test -n "$ac_tool_prefix"; then
3274    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3275set dummy ${ac_tool_prefix}cc; ac_word=$2
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277$as_echo_n "checking for $ac_word... " >&6; }
3278if ${ac_cv_prog_CC+:} false; then :
3279  $as_echo_n "(cached) " >&6
3280else
3281  if test -n "$CC"; then
3282  ac_cv_prog_CC="$CC" # Let the user override the test.
3283else
3284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285for as_dir in $PATH
3286do
3287  IFS=$as_save_IFS
3288  test -z "$as_dir" && as_dir=.
3289    for ac_exec_ext in '' $ac_executable_extensions; do
3290  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291    ac_cv_prog_CC="${ac_tool_prefix}cc"
3292    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293    break 2
3294  fi
3295done
3296  done
3297IFS=$as_save_IFS
3298
3299fi
3300fi
3301CC=$ac_cv_prog_CC
3302if test -n "$CC"; then
3303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3304$as_echo "$CC" >&6; }
3305else
3306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307$as_echo "no" >&6; }
3308fi
3309
3310
3311  fi
3312fi
3313if test -z "$CC"; then
3314  # Extract the first word of "cc", so it can be a program name with args.
3315set dummy cc; ac_word=$2
3316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317$as_echo_n "checking for $ac_word... " >&6; }
3318if ${ac_cv_prog_CC+:} false; then :
3319  $as_echo_n "(cached) " >&6
3320else
3321  if test -n "$CC"; then
3322  ac_cv_prog_CC="$CC" # Let the user override the test.
3323else
3324  ac_prog_rejected=no
3325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326for as_dir in $PATH
3327do
3328  IFS=$as_save_IFS
3329  test -z "$as_dir" && as_dir=.
3330    for ac_exec_ext in '' $ac_executable_extensions; do
3331  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3333       ac_prog_rejected=yes
3334       continue
3335     fi
3336    ac_cv_prog_CC="cc"
3337    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3338    break 2
3339  fi
3340done
3341  done
3342IFS=$as_save_IFS
3343
3344if test $ac_prog_rejected = yes; then
3345  # We found a bogon in the path, so make sure we never use it.
3346  set dummy $ac_cv_prog_CC
3347  shift
3348  if test $# != 0; then
3349    # We chose a different compiler from the bogus one.
3350    # However, it has the same basename, so the bogon will be chosen
3351    # first if we set CC to just the basename; use the full file name.
3352    shift
3353    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3354  fi
3355fi
3356fi
3357fi
3358CC=$ac_cv_prog_CC
3359if test -n "$CC"; then
3360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3361$as_echo "$CC" >&6; }
3362else
3363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364$as_echo "no" >&6; }
3365fi
3366
3367
3368fi
3369if test -z "$CC"; then
3370  if test -n "$ac_tool_prefix"; then
3371  for ac_prog in cl.exe
3372  do
3373    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3374set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376$as_echo_n "checking for $ac_word... " >&6; }
3377if ${ac_cv_prog_CC+:} false; then :
3378  $as_echo_n "(cached) " >&6
3379else
3380  if test -n "$CC"; then
3381  ac_cv_prog_CC="$CC" # Let the user override the test.
3382else
3383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384for as_dir in $PATH
3385do
3386  IFS=$as_save_IFS
3387  test -z "$as_dir" && as_dir=.
3388    for ac_exec_ext in '' $ac_executable_extensions; do
3389  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3391    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392    break 2
3393  fi
3394done
3395  done
3396IFS=$as_save_IFS
3397
3398fi
3399fi
3400CC=$ac_cv_prog_CC
3401if test -n "$CC"; then
3402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3403$as_echo "$CC" >&6; }
3404else
3405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406$as_echo "no" >&6; }
3407fi
3408
3409
3410    test -n "$CC" && break
3411  done
3412fi
3413if test -z "$CC"; then
3414  ac_ct_CC=$CC
3415  for ac_prog in cl.exe
3416do
3417  # Extract the first word of "$ac_prog", so it can be a program name with args.
3418set dummy $ac_prog; ac_word=$2
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3420$as_echo_n "checking for $ac_word... " >&6; }
3421if ${ac_cv_prog_ac_ct_CC+:} false; then :
3422  $as_echo_n "(cached) " >&6
3423else
3424  if test -n "$ac_ct_CC"; then
3425  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3426else
3427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428for as_dir in $PATH
3429do
3430  IFS=$as_save_IFS
3431  test -z "$as_dir" && as_dir=.
3432    for ac_exec_ext in '' $ac_executable_extensions; do
3433  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434    ac_cv_prog_ac_ct_CC="$ac_prog"
3435    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3436    break 2
3437  fi
3438done
3439  done
3440IFS=$as_save_IFS
3441
3442fi
3443fi
3444ac_ct_CC=$ac_cv_prog_ac_ct_CC
3445if test -n "$ac_ct_CC"; then
3446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3447$as_echo "$ac_ct_CC" >&6; }
3448else
3449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3450$as_echo "no" >&6; }
3451fi
3452
3453
3454  test -n "$ac_ct_CC" && break
3455done
3456
3457  if test "x$ac_ct_CC" = x; then
3458    CC=""
3459  else
3460    case $cross_compiling:$ac_tool_warned in
3461yes:)
3462{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3463$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3464ac_tool_warned=yes ;;
3465esac
3466    CC=$ac_ct_CC
3467  fi
3468fi
3469
3470fi
3471
3472
3473test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3475as_fn_error $? "no acceptable C compiler found in \$PATH
3476See \`config.log' for more details" "$LINENO" 5; }
3477
3478# Provide some information about the compiler.
3479$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3480set X $ac_compile
3481ac_compiler=$2
3482for ac_option in --version -v -V -qversion; do
3483  { { ac_try="$ac_compiler $ac_option >&5"
3484case "(($ac_try" in
3485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486  *) ac_try_echo=$ac_try;;
3487esac
3488eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489$as_echo "$ac_try_echo"; } >&5
3490  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3491  ac_status=$?
3492  if test -s conftest.err; then
3493    sed '10a\
3494... rest of stderr output deleted ...
3495         10q' conftest.err >conftest.er1
3496    cat conftest.er1 >&5
3497  fi
3498  rm -f conftest.er1 conftest.err
3499  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3500  test $ac_status = 0; }
3501done
3502
3503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504/* end confdefs.h.  */
3505
3506int
3507main ()
3508{
3509
3510  ;
3511  return 0;
3512}
3513_ACEOF
3514ac_clean_files_save=$ac_clean_files
3515ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3516# Try to create an executable without -o first, disregard a.out.
3517# It will help us diagnose broken compilers, and finding out an intuition
3518# of exeext.
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3520$as_echo_n "checking whether the C compiler works... " >&6; }
3521ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3522
3523# The possible output files:
3524ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3525
3526ac_rmfiles=
3527for ac_file in $ac_files
3528do
3529  case $ac_file in
3530    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3531    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3532  esac
3533done
3534rm -f $ac_rmfiles
3535
3536if { { ac_try="$ac_link_default"
3537case "(($ac_try" in
3538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539  *) ac_try_echo=$ac_try;;
3540esac
3541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3542$as_echo "$ac_try_echo"; } >&5
3543  (eval "$ac_link_default") 2>&5
3544  ac_status=$?
3545  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546  test $ac_status = 0; }; then :
3547  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3548# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3549# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3550# so that the user can short-circuit this test for compilers unknown to
3551# Autoconf.
3552for ac_file in $ac_files ''
3553do
3554  test -f "$ac_file" || continue
3555  case $ac_file in
3556    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3557	;;
3558    [ab].out )
3559	# We found the default executable, but exeext='' is most
3560	# certainly right.
3561	break;;
3562    *.* )
3563	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3564	then :; else
3565	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3566	fi
3567	# We set ac_cv_exeext here because the later test for it is not
3568	# safe: cross compilers may not add the suffix if given an `-o'
3569	# argument, so we may need to know it at that point already.
3570	# Even if this section looks crufty: it has the advantage of
3571	# actually working.
3572	break;;
3573    * )
3574	break;;
3575  esac
3576done
3577test "$ac_cv_exeext" = no && ac_cv_exeext=
3578
3579else
3580  ac_file=''
3581fi
3582if test -z "$ac_file"; then :
3583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584$as_echo "no" >&6; }
3585$as_echo "$as_me: failed program was:" >&5
3586sed 's/^/| /' conftest.$ac_ext >&5
3587
3588{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590as_fn_error 77 "C compiler cannot create executables
3591See \`config.log' for more details" "$LINENO" 5; }
3592else
3593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3594$as_echo "yes" >&6; }
3595fi
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3597$as_echo_n "checking for C compiler default output file name... " >&6; }
3598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3599$as_echo "$ac_file" >&6; }
3600ac_exeext=$ac_cv_exeext
3601
3602rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3603ac_clean_files=$ac_clean_files_save
3604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3605$as_echo_n "checking for suffix of executables... " >&6; }
3606if { { ac_try="$ac_link"
3607case "(($ac_try" in
3608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609  *) ac_try_echo=$ac_try;;
3610esac
3611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612$as_echo "$ac_try_echo"; } >&5
3613  (eval "$ac_link") 2>&5
3614  ac_status=$?
3615  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616  test $ac_status = 0; }; then :
3617  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3618# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3619# work properly (i.e., refer to `conftest.exe'), while it won't with
3620# `rm'.
3621for ac_file in conftest.exe conftest conftest.*; do
3622  test -f "$ac_file" || continue
3623  case $ac_file in
3624    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3625    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3626	  break;;
3627    * ) break;;
3628  esac
3629done
3630else
3631  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3632$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3633as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3634See \`config.log' for more details" "$LINENO" 5; }
3635fi
3636rm -f conftest conftest$ac_cv_exeext
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3638$as_echo "$ac_cv_exeext" >&6; }
3639
3640rm -f conftest.$ac_ext
3641EXEEXT=$ac_cv_exeext
3642ac_exeext=$EXEEXT
3643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644/* end confdefs.h.  */
3645#include <stdio.h>
3646int
3647main ()
3648{
3649FILE *f = fopen ("conftest.out", "w");
3650 return ferror (f) || fclose (f) != 0;
3651
3652  ;
3653  return 0;
3654}
3655_ACEOF
3656ac_clean_files="$ac_clean_files conftest.out"
3657# Check that the compiler produces executables we can run.  If not, either
3658# the compiler is broken, or we cross compile.
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3660$as_echo_n "checking whether we are cross compiling... " >&6; }
3661if test "$cross_compiling" != yes; then
3662  { { ac_try="$ac_link"
3663case "(($ac_try" in
3664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665  *) ac_try_echo=$ac_try;;
3666esac
3667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668$as_echo "$ac_try_echo"; } >&5
3669  (eval "$ac_link") 2>&5
3670  ac_status=$?
3671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672  test $ac_status = 0; }
3673  if { ac_try='./conftest$ac_cv_exeext'
3674  { { case "(($ac_try" in
3675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676  *) ac_try_echo=$ac_try;;
3677esac
3678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3679$as_echo "$ac_try_echo"; } >&5
3680  (eval "$ac_try") 2>&5
3681  ac_status=$?
3682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3683  test $ac_status = 0; }; }; then
3684    cross_compiling=no
3685  else
3686    if test "$cross_compiling" = maybe; then
3687	cross_compiling=yes
3688    else
3689	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691as_fn_error $? "cannot run C compiled programs.
3692If you meant to cross compile, use \`--host'.
3693See \`config.log' for more details" "$LINENO" 5; }
3694    fi
3695  fi
3696fi
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3698$as_echo "$cross_compiling" >&6; }
3699
3700rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3701ac_clean_files=$ac_clean_files_save
3702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3703$as_echo_n "checking for suffix of object files... " >&6; }
3704if ${ac_cv_objext+:} false; then :
3705  $as_echo_n "(cached) " >&6
3706else
3707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708/* end confdefs.h.  */
3709
3710int
3711main ()
3712{
3713
3714  ;
3715  return 0;
3716}
3717_ACEOF
3718rm -f conftest.o conftest.obj
3719if { { ac_try="$ac_compile"
3720case "(($ac_try" in
3721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722  *) ac_try_echo=$ac_try;;
3723esac
3724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3725$as_echo "$ac_try_echo"; } >&5
3726  (eval "$ac_compile") 2>&5
3727  ac_status=$?
3728  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3729  test $ac_status = 0; }; then :
3730  for ac_file in conftest.o conftest.obj conftest.*; do
3731  test -f "$ac_file" || continue;
3732  case $ac_file in
3733    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3734    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3735       break;;
3736  esac
3737done
3738else
3739  $as_echo "$as_me: failed program was:" >&5
3740sed 's/^/| /' conftest.$ac_ext >&5
3741
3742{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3744as_fn_error $? "cannot compute suffix of object files: cannot compile
3745See \`config.log' for more details" "$LINENO" 5; }
3746fi
3747rm -f conftest.$ac_cv_objext conftest.$ac_ext
3748fi
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3750$as_echo "$ac_cv_objext" >&6; }
3751OBJEXT=$ac_cv_objext
3752ac_objext=$OBJEXT
3753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3754$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3755if ${ac_cv_c_compiler_gnu+:} false; then :
3756  $as_echo_n "(cached) " >&6
3757else
3758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759/* end confdefs.h.  */
3760
3761int
3762main ()
3763{
3764#ifndef __GNUC__
3765       choke me
3766#endif
3767
3768  ;
3769  return 0;
3770}
3771_ACEOF
3772if ac_fn_c_try_compile "$LINENO"; then :
3773  ac_compiler_gnu=yes
3774else
3775  ac_compiler_gnu=no
3776fi
3777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3778ac_cv_c_compiler_gnu=$ac_compiler_gnu
3779
3780fi
3781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3782$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3783if test $ac_compiler_gnu = yes; then
3784  GCC=yes
3785else
3786  GCC=
3787fi
3788ac_test_CFLAGS=${CFLAGS+set}
3789ac_save_CFLAGS=$CFLAGS
3790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3791$as_echo_n "checking whether $CC accepts -g... " >&6; }
3792if ${ac_cv_prog_cc_g+:} false; then :
3793  $as_echo_n "(cached) " >&6
3794else
3795  ac_save_c_werror_flag=$ac_c_werror_flag
3796   ac_c_werror_flag=yes
3797   ac_cv_prog_cc_g=no
3798   CFLAGS="-g"
3799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800/* end confdefs.h.  */
3801
3802int
3803main ()
3804{
3805
3806  ;
3807  return 0;
3808}
3809_ACEOF
3810if ac_fn_c_try_compile "$LINENO"; then :
3811  ac_cv_prog_cc_g=yes
3812else
3813  CFLAGS=""
3814      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815/* end confdefs.h.  */
3816
3817int
3818main ()
3819{
3820
3821  ;
3822  return 0;
3823}
3824_ACEOF
3825if ac_fn_c_try_compile "$LINENO"; then :
3826
3827else
3828  ac_c_werror_flag=$ac_save_c_werror_flag
3829	 CFLAGS="-g"
3830	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831/* end confdefs.h.  */
3832
3833int
3834main ()
3835{
3836
3837  ;
3838  return 0;
3839}
3840_ACEOF
3841if ac_fn_c_try_compile "$LINENO"; then :
3842  ac_cv_prog_cc_g=yes
3843fi
3844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3845fi
3846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3847fi
3848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849   ac_c_werror_flag=$ac_save_c_werror_flag
3850fi
3851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3852$as_echo "$ac_cv_prog_cc_g" >&6; }
3853if test "$ac_test_CFLAGS" = set; then
3854  CFLAGS=$ac_save_CFLAGS
3855elif test $ac_cv_prog_cc_g = yes; then
3856  if test "$GCC" = yes; then
3857    CFLAGS="-g -O2"
3858  else
3859    CFLAGS="-g"
3860  fi
3861else
3862  if test "$GCC" = yes; then
3863    CFLAGS="-O2"
3864  else
3865    CFLAGS=
3866  fi
3867fi
3868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3869$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3870if ${ac_cv_prog_cc_c89+:} false; then :
3871  $as_echo_n "(cached) " >&6
3872else
3873  ac_cv_prog_cc_c89=no
3874ac_save_CC=$CC
3875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876/* end confdefs.h.  */
3877#include <stdarg.h>
3878#include <stdio.h>
3879struct stat;
3880/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3881struct buf { int x; };
3882FILE * (*rcsopen) (struct buf *, struct stat *, int);
3883static char *e (p, i)
3884     char **p;
3885     int i;
3886{
3887  return p[i];
3888}
3889static char *f (char * (*g) (char **, int), char **p, ...)
3890{
3891  char *s;
3892  va_list v;
3893  va_start (v,p);
3894  s = g (p, va_arg (v,int));
3895  va_end (v);
3896  return s;
3897}
3898
3899/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3900   function prototypes and stuff, but not '\xHH' hex character constants.
3901   These don't provoke an error unfortunately, instead are silently treated
3902   as 'x'.  The following induces an error, until -std is added to get
3903   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3904   array size at least.  It's necessary to write '\x00'==0 to get something
3905   that's true only with -std.  */
3906int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3907
3908/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3909   inside strings and character constants.  */
3910#define FOO(x) 'x'
3911int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3912
3913int test (int i, double x);
3914struct s1 {int (*f) (int a);};
3915struct s2 {int (*f) (double a);};
3916int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3917int argc;
3918char **argv;
3919int
3920main ()
3921{
3922return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3923  ;
3924  return 0;
3925}
3926_ACEOF
3927for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3928	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3929do
3930  CC="$ac_save_CC $ac_arg"
3931  if ac_fn_c_try_compile "$LINENO"; then :
3932  ac_cv_prog_cc_c89=$ac_arg
3933fi
3934rm -f core conftest.err conftest.$ac_objext
3935  test "x$ac_cv_prog_cc_c89" != "xno" && break
3936done
3937rm -f conftest.$ac_ext
3938CC=$ac_save_CC
3939
3940fi
3941# AC_CACHE_VAL
3942case "x$ac_cv_prog_cc_c89" in
3943  x)
3944    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3945$as_echo "none needed" >&6; } ;;
3946  xno)
3947    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3948$as_echo "unsupported" >&6; } ;;
3949  *)
3950    CC="$CC $ac_cv_prog_cc_c89"
3951    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3952$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3953esac
3954if test "x$ac_cv_prog_cc_c89" != xno; then :
3955
3956fi
3957
3958ac_ext=c
3959ac_cpp='$CPP $CPPFLAGS'
3960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963
3964ac_ext=c
3965ac_cpp='$CPP $CPPFLAGS'
3966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3968ac_compiler_gnu=$ac_cv_c_compiler_gnu
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3970$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3971if ${am_cv_prog_cc_c_o+:} false; then :
3972  $as_echo_n "(cached) " >&6
3973else
3974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975/* end confdefs.h.  */
3976
3977int
3978main ()
3979{
3980
3981  ;
3982  return 0;
3983}
3984_ACEOF
3985  # Make sure it works both with $CC and with simple cc.
3986  # Following AC_PROG_CC_C_O, we do the test twice because some
3987  # compilers refuse to overwrite an existing .o file with -o,
3988  # though they will create one.
3989  am_cv_prog_cc_c_o=yes
3990  for am_i in 1 2; do
3991    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3992   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3993   ac_status=$?
3994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995   (exit $ac_status); } \
3996         && test -f conftest2.$ac_objext; then
3997      : OK
3998    else
3999      am_cv_prog_cc_c_o=no
4000      break
4001    fi
4002  done
4003  rm -f core conftest*
4004  unset am_i
4005fi
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4007$as_echo "$am_cv_prog_cc_c_o" >&6; }
4008if test "$am_cv_prog_cc_c_o" != yes; then
4009   # Losing compiler, so override with the script.
4010   # FIXME: It is wrong to rewrite CC.
4011   # But if we don't then we get into trouble of one sort or another.
4012   # A longer-term fix would be to have automake use am__CC in this case,
4013   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4014   CC="$am_aux_dir/compile $CC"
4015fi
4016ac_ext=c
4017ac_cpp='$CPP $CPPFLAGS'
4018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4020ac_compiler_gnu=$ac_cv_c_compiler_gnu
4021
4022DEPDIR="${am__leading_dot}deps"
4023
4024ac_config_commands="$ac_config_commands depfiles"
4025
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4027$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4028cat > confinc.mk << 'END'
4029am__doit:
4030	@echo this is the am__doit target >confinc.out
4031.PHONY: am__doit
4032END
4033am__include="#"
4034am__quote=
4035# BSD make does it like this.
4036echo '.include "confinc.mk" # ignored' > confmf.BSD
4037# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4038echo 'include confinc.mk # ignored' > confmf.GNU
4039_am_result=no
4040for s in GNU BSD; do
4041  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4042   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4043   ac_status=$?
4044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045   (exit $ac_status); }
4046  case $?:`cat confinc.out 2>/dev/null` in #(
4047  '0:this is the am__doit target') :
4048    case $s in #(
4049  BSD) :
4050    am__include='.include' am__quote='"' ;; #(
4051  *) :
4052    am__include='include' am__quote='' ;;
4053esac ;; #(
4054  *) :
4055     ;;
4056esac
4057  if test "$am__include" != "#"; then
4058    _am_result="yes ($s style)"
4059    break
4060  fi
4061done
4062rm -f confinc.* confmf.*
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4064$as_echo "${_am_result}" >&6; }
4065
4066# Check whether --enable-dependency-tracking was given.
4067if test "${enable_dependency_tracking+set}" = set; then :
4068  enableval=$enable_dependency_tracking;
4069fi
4070
4071if test "x$enable_dependency_tracking" != xno; then
4072  am_depcomp="$ac_aux_dir/depcomp"
4073  AMDEPBACKSLASH='\'
4074  am__nodep='_no'
4075fi
4076 if test "x$enable_dependency_tracking" != xno; then
4077  AMDEP_TRUE=
4078  AMDEP_FALSE='#'
4079else
4080  AMDEP_TRUE='#'
4081  AMDEP_FALSE=
4082fi
4083
4084
4085
4086depcc="$CC"   am_compiler_list=
4087
4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4089$as_echo_n "checking dependency style of $depcc... " >&6; }
4090if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4091  $as_echo_n "(cached) " >&6
4092else
4093  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4094  # We make a subdir and do the tests there.  Otherwise we can end up
4095  # making bogus files that we don't know about and never remove.  For
4096  # instance it was reported that on HP-UX the gcc test will end up
4097  # making a dummy file named 'D' -- because '-MD' means "put the output
4098  # in D".
4099  rm -rf conftest.dir
4100  mkdir conftest.dir
4101  # Copy depcomp to subdir because otherwise we won't find it if we're
4102  # using a relative directory.
4103  cp "$am_depcomp" conftest.dir
4104  cd conftest.dir
4105  # We will build objects and dependencies in a subdirectory because
4106  # it helps to detect inapplicable dependency modes.  For instance
4107  # both Tru64's cc and ICC support -MD to output dependencies as a
4108  # side effect of compilation, but ICC will put the dependencies in
4109  # the current directory while Tru64 will put them in the object
4110  # directory.
4111  mkdir sub
4112
4113  am_cv_CC_dependencies_compiler_type=none
4114  if test "$am_compiler_list" = ""; then
4115     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4116  fi
4117  am__universal=false
4118  case " $depcc " in #(
4119     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4120     esac
4121
4122  for depmode in $am_compiler_list; do
4123    # Setup a source with many dependencies, because some compilers
4124    # like to wrap large dependency lists on column 80 (with \), and
4125    # we should not choose a depcomp mode which is confused by this.
4126    #
4127    # We need to recreate these files for each test, as the compiler may
4128    # overwrite some of them when testing with obscure command lines.
4129    # This happens at least with the AIX C compiler.
4130    : > sub/conftest.c
4131    for i in 1 2 3 4 5 6; do
4132      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4133      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4134      # Solaris 10 /bin/sh.
4135      echo '/* dummy */' > sub/conftst$i.h
4136    done
4137    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4138
4139    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4140    # mode.  It turns out that the SunPro C++ compiler does not properly
4141    # handle '-M -o', and we need to detect this.  Also, some Intel
4142    # versions had trouble with output in subdirs.
4143    am__obj=sub/conftest.${OBJEXT-o}
4144    am__minus_obj="-o $am__obj"
4145    case $depmode in
4146    gcc)
4147      # This depmode causes a compiler race in universal mode.
4148      test "$am__universal" = false || continue
4149      ;;
4150    nosideeffect)
4151      # After this tag, mechanisms are not by side-effect, so they'll
4152      # only be used when explicitly requested.
4153      if test "x$enable_dependency_tracking" = xyes; then
4154	continue
4155      else
4156	break
4157      fi
4158      ;;
4159    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4160      # This compiler won't grok '-c -o', but also, the minuso test has
4161      # not run yet.  These depmodes are late enough in the game, and
4162      # so weak that their functioning should not be impacted.
4163      am__obj=conftest.${OBJEXT-o}
4164      am__minus_obj=
4165      ;;
4166    none) break ;;
4167    esac
4168    if depmode=$depmode \
4169       source=sub/conftest.c object=$am__obj \
4170       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4171       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4172         >/dev/null 2>conftest.err &&
4173       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4174       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4175       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4176       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4177      # icc doesn't choke on unknown options, it will just issue warnings
4178      # or remarks (even with -Werror).  So we grep stderr for any message
4179      # that says an option was ignored or not supported.
4180      # When given -MP, icc 7.0 and 7.1 complain thusly:
4181      #   icc: Command line warning: ignoring option '-M'; no argument required
4182      # The diagnosis changed in icc 8.0:
4183      #   icc: Command line remark: option '-MP' not supported
4184      if (grep 'ignoring option' conftest.err ||
4185          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4186        am_cv_CC_dependencies_compiler_type=$depmode
4187        break
4188      fi
4189    fi
4190  done
4191
4192  cd ..
4193  rm -rf conftest.dir
4194else
4195  am_cv_CC_dependencies_compiler_type=none
4196fi
4197
4198fi
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4200$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4201CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4202
4203 if
4204  test "x$enable_dependency_tracking" != xno \
4205  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4206  am__fastdepCC_TRUE=
4207  am__fastdepCC_FALSE='#'
4208else
4209  am__fastdepCC_TRUE='#'
4210  am__fastdepCC_FALSE=
4211fi
4212
4213
4214
4215
4216ac_ext=c
4217ac_cpp='$CPP $CPPFLAGS'
4218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4220ac_compiler_gnu=$ac_cv_c_compiler_gnu
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4222$as_echo_n "checking how to run the C preprocessor... " >&6; }
4223# On Suns, sometimes $CPP names a directory.
4224if test -n "$CPP" && test -d "$CPP"; then
4225  CPP=
4226fi
4227if test -z "$CPP"; then
4228  if ${ac_cv_prog_CPP+:} false; then :
4229  $as_echo_n "(cached) " >&6
4230else
4231      # Double quotes because CPP needs to be expanded
4232    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4233    do
4234      ac_preproc_ok=false
4235for ac_c_preproc_warn_flag in '' yes
4236do
4237  # Use a header file that comes with gcc, so configuring glibc
4238  # with a fresh cross-compiler works.
4239  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4240  # <limits.h> exists even on freestanding compilers.
4241  # On the NeXT, cc -E runs the code through the compiler's parser,
4242  # not just through cpp. "Syntax error" is here to catch this case.
4243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244/* end confdefs.h.  */
4245#ifdef __STDC__
4246# include <limits.h>
4247#else
4248# include <assert.h>
4249#endif
4250		     Syntax error
4251_ACEOF
4252if ac_fn_c_try_cpp "$LINENO"; then :
4253
4254else
4255  # Broken: fails on valid input.
4256continue
4257fi
4258rm -f conftest.err conftest.i conftest.$ac_ext
4259
4260  # OK, works on sane cases.  Now check whether nonexistent headers
4261  # can be detected and how.
4262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263/* end confdefs.h.  */
4264#include <ac_nonexistent.h>
4265_ACEOF
4266if ac_fn_c_try_cpp "$LINENO"; then :
4267  # Broken: success on invalid input.
4268continue
4269else
4270  # Passes both tests.
4271ac_preproc_ok=:
4272break
4273fi
4274rm -f conftest.err conftest.i conftest.$ac_ext
4275
4276done
4277# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4278rm -f conftest.i conftest.err conftest.$ac_ext
4279if $ac_preproc_ok; then :
4280  break
4281fi
4282
4283    done
4284    ac_cv_prog_CPP=$CPP
4285
4286fi
4287  CPP=$ac_cv_prog_CPP
4288else
4289  ac_cv_prog_CPP=$CPP
4290fi
4291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4292$as_echo "$CPP" >&6; }
4293ac_preproc_ok=false
4294for ac_c_preproc_warn_flag in '' yes
4295do
4296  # Use a header file that comes with gcc, so configuring glibc
4297  # with a fresh cross-compiler works.
4298  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4299  # <limits.h> exists even on freestanding compilers.
4300  # On the NeXT, cc -E runs the code through the compiler's parser,
4301  # not just through cpp. "Syntax error" is here to catch this case.
4302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303/* end confdefs.h.  */
4304#ifdef __STDC__
4305# include <limits.h>
4306#else
4307# include <assert.h>
4308#endif
4309		     Syntax error
4310_ACEOF
4311if ac_fn_c_try_cpp "$LINENO"; then :
4312
4313else
4314  # Broken: fails on valid input.
4315continue
4316fi
4317rm -f conftest.err conftest.i conftest.$ac_ext
4318
4319  # OK, works on sane cases.  Now check whether nonexistent headers
4320  # can be detected and how.
4321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322/* end confdefs.h.  */
4323#include <ac_nonexistent.h>
4324_ACEOF
4325if ac_fn_c_try_cpp "$LINENO"; then :
4326  # Broken: success on invalid input.
4327continue
4328else
4329  # Passes both tests.
4330ac_preproc_ok=:
4331break
4332fi
4333rm -f conftest.err conftest.i conftest.$ac_ext
4334
4335done
4336# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4337rm -f conftest.i conftest.err conftest.$ac_ext
4338if $ac_preproc_ok; then :
4339
4340else
4341  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4343as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4344See \`config.log' for more details" "$LINENO" 5; }
4345fi
4346
4347ac_ext=c
4348ac_cpp='$CPP $CPPFLAGS'
4349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4351ac_compiler_gnu=$ac_cv_c_compiler_gnu
4352
4353
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4355$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4356if ${ac_cv_path_GREP+:} false; then :
4357  $as_echo_n "(cached) " >&6
4358else
4359  if test -z "$GREP"; then
4360  ac_path_GREP_found=false
4361  # Loop through the user's path and test for each of PROGNAME-LIST
4362  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4364do
4365  IFS=$as_save_IFS
4366  test -z "$as_dir" && as_dir=.
4367    for ac_prog in grep ggrep; do
4368    for ac_exec_ext in '' $ac_executable_extensions; do
4369      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4370      as_fn_executable_p "$ac_path_GREP" || continue
4371# Check for GNU ac_path_GREP and select it if it is found.
4372  # Check for GNU $ac_path_GREP
4373case `"$ac_path_GREP" --version 2>&1` in
4374*GNU*)
4375  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4376*)
4377  ac_count=0
4378  $as_echo_n 0123456789 >"conftest.in"
4379  while :
4380  do
4381    cat "conftest.in" "conftest.in" >"conftest.tmp"
4382    mv "conftest.tmp" "conftest.in"
4383    cp "conftest.in" "conftest.nl"
4384    $as_echo 'GREP' >> "conftest.nl"
4385    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4386    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4387    as_fn_arith $ac_count + 1 && ac_count=$as_val
4388    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4389      # Best one so far, save it but keep looking for a better one
4390      ac_cv_path_GREP="$ac_path_GREP"
4391      ac_path_GREP_max=$ac_count
4392    fi
4393    # 10*(2^10) chars as input seems more than enough
4394    test $ac_count -gt 10 && break
4395  done
4396  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4397esac
4398
4399      $ac_path_GREP_found && break 3
4400    done
4401  done
4402  done
4403IFS=$as_save_IFS
4404  if test -z "$ac_cv_path_GREP"; then
4405    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4406  fi
4407else
4408  ac_cv_path_GREP=$GREP
4409fi
4410
4411fi
4412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4413$as_echo "$ac_cv_path_GREP" >&6; }
4414 GREP="$ac_cv_path_GREP"
4415
4416
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4418$as_echo_n "checking for egrep... " >&6; }
4419if ${ac_cv_path_EGREP+:} false; then :
4420  $as_echo_n "(cached) " >&6
4421else
4422  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4423   then ac_cv_path_EGREP="$GREP -E"
4424   else
4425     if test -z "$EGREP"; then
4426  ac_path_EGREP_found=false
4427  # Loop through the user's path and test for each of PROGNAME-LIST
4428  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4430do
4431  IFS=$as_save_IFS
4432  test -z "$as_dir" && as_dir=.
4433    for ac_prog in egrep; do
4434    for ac_exec_ext in '' $ac_executable_extensions; do
4435      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4436      as_fn_executable_p "$ac_path_EGREP" || continue
4437# Check for GNU ac_path_EGREP and select it if it is found.
4438  # Check for GNU $ac_path_EGREP
4439case `"$ac_path_EGREP" --version 2>&1` in
4440*GNU*)
4441  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4442*)
4443  ac_count=0
4444  $as_echo_n 0123456789 >"conftest.in"
4445  while :
4446  do
4447    cat "conftest.in" "conftest.in" >"conftest.tmp"
4448    mv "conftest.tmp" "conftest.in"
4449    cp "conftest.in" "conftest.nl"
4450    $as_echo 'EGREP' >> "conftest.nl"
4451    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4452    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4453    as_fn_arith $ac_count + 1 && ac_count=$as_val
4454    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4455      # Best one so far, save it but keep looking for a better one
4456      ac_cv_path_EGREP="$ac_path_EGREP"
4457      ac_path_EGREP_max=$ac_count
4458    fi
4459    # 10*(2^10) chars as input seems more than enough
4460    test $ac_count -gt 10 && break
4461  done
4462  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4463esac
4464
4465      $ac_path_EGREP_found && break 3
4466    done
4467  done
4468  done
4469IFS=$as_save_IFS
4470  if test -z "$ac_cv_path_EGREP"; then
4471    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4472  fi
4473else
4474  ac_cv_path_EGREP=$EGREP
4475fi
4476
4477   fi
4478fi
4479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4480$as_echo "$ac_cv_path_EGREP" >&6; }
4481 EGREP="$ac_cv_path_EGREP"
4482
4483
4484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4485$as_echo_n "checking for ANSI C header files... " >&6; }
4486if ${ac_cv_header_stdc+:} false; then :
4487  $as_echo_n "(cached) " >&6
4488else
4489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490/* end confdefs.h.  */
4491#include <stdlib.h>
4492#include <stdarg.h>
4493#include <string.h>
4494#include <float.h>
4495
4496int
4497main ()
4498{
4499
4500  ;
4501  return 0;
4502}
4503_ACEOF
4504if ac_fn_c_try_compile "$LINENO"; then :
4505  ac_cv_header_stdc=yes
4506else
4507  ac_cv_header_stdc=no
4508fi
4509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510
4511if test $ac_cv_header_stdc = yes; then
4512  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514/* end confdefs.h.  */
4515#include <string.h>
4516
4517_ACEOF
4518if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4519  $EGREP "memchr" >/dev/null 2>&1; then :
4520
4521else
4522  ac_cv_header_stdc=no
4523fi
4524rm -f conftest*
4525
4526fi
4527
4528if test $ac_cv_header_stdc = yes; then
4529  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531/* end confdefs.h.  */
4532#include <stdlib.h>
4533
4534_ACEOF
4535if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4536  $EGREP "free" >/dev/null 2>&1; then :
4537
4538else
4539  ac_cv_header_stdc=no
4540fi
4541rm -f conftest*
4542
4543fi
4544
4545if test $ac_cv_header_stdc = yes; then
4546  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4547  if test "$cross_compiling" = yes; then :
4548  :
4549else
4550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551/* end confdefs.h.  */
4552#include <ctype.h>
4553#include <stdlib.h>
4554#if ((' ' & 0x0FF) == 0x020)
4555# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4556# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4557#else
4558# define ISLOWER(c) \
4559		   (('a' <= (c) && (c) <= 'i') \
4560		     || ('j' <= (c) && (c) <= 'r') \
4561		     || ('s' <= (c) && (c) <= 'z'))
4562# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4563#endif
4564
4565#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4566int
4567main ()
4568{
4569  int i;
4570  for (i = 0; i < 256; i++)
4571    if (XOR (islower (i), ISLOWER (i))
4572	|| toupper (i) != TOUPPER (i))
4573      return 2;
4574  return 0;
4575}
4576_ACEOF
4577if ac_fn_c_try_run "$LINENO"; then :
4578
4579else
4580  ac_cv_header_stdc=no
4581fi
4582rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4583  conftest.$ac_objext conftest.beam conftest.$ac_ext
4584fi
4585
4586fi
4587fi
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4589$as_echo "$ac_cv_header_stdc" >&6; }
4590if test $ac_cv_header_stdc = yes; then
4591
4592$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4593
4594fi
4595
4596# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4597for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4598		  inttypes.h stdint.h unistd.h
4599do :
4600  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4601ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4602"
4603if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4604  cat >>confdefs.h <<_ACEOF
4605#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4606_ACEOF
4607
4608fi
4609
4610done
4611
4612
4613
4614  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4615if test "x$ac_cv_header_minix_config_h" = xyes; then :
4616  MINIX=yes
4617else
4618  MINIX=
4619fi
4620
4621
4622  if test "$MINIX" = yes; then
4623
4624$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4625
4626
4627$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4628
4629
4630$as_echo "#define _MINIX 1" >>confdefs.h
4631
4632  fi
4633
4634
4635  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4636$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4637if ${ac_cv_safe_to_define___extensions__+:} false; then :
4638  $as_echo_n "(cached) " >&6
4639else
4640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641/* end confdefs.h.  */
4642
4643#         define __EXTENSIONS__ 1
4644          $ac_includes_default
4645int
4646main ()
4647{
4648
4649  ;
4650  return 0;
4651}
4652_ACEOF
4653if ac_fn_c_try_compile "$LINENO"; then :
4654  ac_cv_safe_to_define___extensions__=yes
4655else
4656  ac_cv_safe_to_define___extensions__=no
4657fi
4658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4659fi
4660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4661$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4662  test $ac_cv_safe_to_define___extensions__ = yes &&
4663    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4664
4665  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4666
4667  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4668
4669  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4670
4671  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4672
4673
4674
4675if test "x$remember_set_CFLAGS" = "x"
4676then
4677  if test "$CFLAGS" = "-g -O2"
4678  then
4679    CFLAGS="-O2"
4680  elif test "$CFLAGS" = "-g"
4681  then
4682    CFLAGS=""
4683  fi
4684fi
4685
4686# This is a new thing required to stop a warning from automake 1.12
4687if test -n "$ac_tool_prefix"; then
4688  for ac_prog in ar lib "link -lib"
4689  do
4690    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4691set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4693$as_echo_n "checking for $ac_word... " >&6; }
4694if ${ac_cv_prog_AR+:} false; then :
4695  $as_echo_n "(cached) " >&6
4696else
4697  if test -n "$AR"; then
4698  ac_cv_prog_AR="$AR" # Let the user override the test.
4699else
4700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701for as_dir in $PATH
4702do
4703  IFS=$as_save_IFS
4704  test -z "$as_dir" && as_dir=.
4705    for ac_exec_ext in '' $ac_executable_extensions; do
4706  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4707    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4708    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4709    break 2
4710  fi
4711done
4712  done
4713IFS=$as_save_IFS
4714
4715fi
4716fi
4717AR=$ac_cv_prog_AR
4718if test -n "$AR"; then
4719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4720$as_echo "$AR" >&6; }
4721else
4722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723$as_echo "no" >&6; }
4724fi
4725
4726
4727    test -n "$AR" && break
4728  done
4729fi
4730if test -z "$AR"; then
4731  ac_ct_AR=$AR
4732  for ac_prog in ar lib "link -lib"
4733do
4734  # Extract the first word of "$ac_prog", so it can be a program name with args.
4735set dummy $ac_prog; ac_word=$2
4736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737$as_echo_n "checking for $ac_word... " >&6; }
4738if ${ac_cv_prog_ac_ct_AR+:} false; then :
4739  $as_echo_n "(cached) " >&6
4740else
4741  if test -n "$ac_ct_AR"; then
4742  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4743else
4744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745for as_dir in $PATH
4746do
4747  IFS=$as_save_IFS
4748  test -z "$as_dir" && as_dir=.
4749    for ac_exec_ext in '' $ac_executable_extensions; do
4750  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4751    ac_cv_prog_ac_ct_AR="$ac_prog"
4752    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753    break 2
4754  fi
4755done
4756  done
4757IFS=$as_save_IFS
4758
4759fi
4760fi
4761ac_ct_AR=$ac_cv_prog_ac_ct_AR
4762if test -n "$ac_ct_AR"; then
4763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4764$as_echo "$ac_ct_AR" >&6; }
4765else
4766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767$as_echo "no" >&6; }
4768fi
4769
4770
4771  test -n "$ac_ct_AR" && break
4772done
4773
4774  if test "x$ac_ct_AR" = x; then
4775    AR="false"
4776  else
4777    case $cross_compiling:$ac_tool_warned in
4778yes:)
4779{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4780$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4781ac_tool_warned=yes ;;
4782esac
4783    AR=$ac_ct_AR
4784  fi
4785fi
4786
4787: ${AR=ar}
4788
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4790$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4791if ${am_cv_ar_interface+:} false; then :
4792  $as_echo_n "(cached) " >&6
4793else
4794  ac_ext=c
4795ac_cpp='$CPP $CPPFLAGS'
4796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798ac_compiler_gnu=$ac_cv_c_compiler_gnu
4799
4800   am_cv_ar_interface=ar
4801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802/* end confdefs.h.  */
4803int some_variable = 0;
4804_ACEOF
4805if ac_fn_c_try_compile "$LINENO"; then :
4806  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4807      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4808  (eval $am_ar_try) 2>&5
4809  ac_status=$?
4810  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4811  test $ac_status = 0; }
4812      if test "$ac_status" -eq 0; then
4813        am_cv_ar_interface=ar
4814      else
4815        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4816        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4817  (eval $am_ar_try) 2>&5
4818  ac_status=$?
4819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4820  test $ac_status = 0; }
4821        if test "$ac_status" -eq 0; then
4822          am_cv_ar_interface=lib
4823        else
4824          am_cv_ar_interface=unknown
4825        fi
4826      fi
4827      rm -f conftest.lib libconftest.a
4828
4829fi
4830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831   ac_ext=c
4832ac_cpp='$CPP $CPPFLAGS'
4833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4835ac_compiler_gnu=$ac_cv_c_compiler_gnu
4836
4837fi
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4839$as_echo "$am_cv_ar_interface" >&6; }
4840
4841case $am_cv_ar_interface in
4842ar)
4843  ;;
4844lib)
4845  # Microsoft lib, so override with the ar-lib wrapper script.
4846  # FIXME: It is wrong to rewrite AR.
4847  # But if we don't then we get into trouble of one sort or another.
4848  # A longer-term fix would be to have automake use am__AR in this case,
4849  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4850  # similar.
4851  AR="$am_aux_dir/ar-lib $AR"
4852  ;;
4853unknown)
4854  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4855  ;;
4856esac
4857
4858
4859# Check for a 64-bit integer type
4860ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
4861case $ac_cv_c_int64_t in #(
4862  no|yes) ;; #(
4863  *)
4864
4865cat >>confdefs.h <<_ACEOF
4866#define int64_t $ac_cv_c_int64_t
4867_ACEOF
4868;;
4869esac
4870
4871
4872
4873# Make sure we can run config.sub.
4874$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4875  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4876
4877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4878$as_echo_n "checking build system type... " >&6; }
4879if ${ac_cv_build+:} false; then :
4880  $as_echo_n "(cached) " >&6
4881else
4882  ac_build_alias=$build_alias
4883test "x$ac_build_alias" = x &&
4884  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4885test "x$ac_build_alias" = x &&
4886  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4887ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4888  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4889
4890fi
4891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4892$as_echo "$ac_cv_build" >&6; }
4893case $ac_cv_build in
4894*-*-*) ;;
4895*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4896esac
4897build=$ac_cv_build
4898ac_save_IFS=$IFS; IFS='-'
4899set x $ac_cv_build
4900shift
4901build_cpu=$1
4902build_vendor=$2
4903shift; shift
4904# Remember, the first character of IFS is used to create $*,
4905# except with old shells:
4906build_os=$*
4907IFS=$ac_save_IFS
4908case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4909
4910
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4912$as_echo_n "checking host system type... " >&6; }
4913if ${ac_cv_host+:} false; then :
4914  $as_echo_n "(cached) " >&6
4915else
4916  if test "x$host_alias" = x; then
4917  ac_cv_host=$ac_cv_build
4918else
4919  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4920    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4921fi
4922
4923fi
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4925$as_echo "$ac_cv_host" >&6; }
4926case $ac_cv_host in
4927*-*-*) ;;
4928*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4929esac
4930host=$ac_cv_host
4931ac_save_IFS=$IFS; IFS='-'
4932set x $ac_cv_host
4933shift
4934host_cpu=$1
4935host_vendor=$2
4936shift; shift
4937# Remember, the first character of IFS is used to create $*,
4938# except with old shells:
4939host_os=$*
4940IFS=$ac_save_IFS
4941case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4942
4943
4944enable_win32_dll=yes
4945
4946case $host in
4947*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4948  if test -n "$ac_tool_prefix"; then
4949  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4950set dummy ${ac_tool_prefix}as; ac_word=$2
4951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4952$as_echo_n "checking for $ac_word... " >&6; }
4953if ${ac_cv_prog_AS+:} false; then :
4954  $as_echo_n "(cached) " >&6
4955else
4956  if test -n "$AS"; then
4957  ac_cv_prog_AS="$AS" # Let the user override the test.
4958else
4959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960for as_dir in $PATH
4961do
4962  IFS=$as_save_IFS
4963  test -z "$as_dir" && as_dir=.
4964    for ac_exec_ext in '' $ac_executable_extensions; do
4965  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4966    ac_cv_prog_AS="${ac_tool_prefix}as"
4967    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4968    break 2
4969  fi
4970done
4971  done
4972IFS=$as_save_IFS
4973
4974fi
4975fi
4976AS=$ac_cv_prog_AS
4977if test -n "$AS"; then
4978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4979$as_echo "$AS" >&6; }
4980else
4981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982$as_echo "no" >&6; }
4983fi
4984
4985
4986fi
4987if test -z "$ac_cv_prog_AS"; then
4988  ac_ct_AS=$AS
4989  # Extract the first word of "as", so it can be a program name with args.
4990set dummy as; ac_word=$2
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4992$as_echo_n "checking for $ac_word... " >&6; }
4993if ${ac_cv_prog_ac_ct_AS+:} false; then :
4994  $as_echo_n "(cached) " >&6
4995else
4996  if test -n "$ac_ct_AS"; then
4997  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4998else
4999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000for as_dir in $PATH
5001do
5002  IFS=$as_save_IFS
5003  test -z "$as_dir" && as_dir=.
5004    for ac_exec_ext in '' $ac_executable_extensions; do
5005  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5006    ac_cv_prog_ac_ct_AS="as"
5007    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5008    break 2
5009  fi
5010done
5011  done
5012IFS=$as_save_IFS
5013
5014fi
5015fi
5016ac_ct_AS=$ac_cv_prog_ac_ct_AS
5017if test -n "$ac_ct_AS"; then
5018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5019$as_echo "$ac_ct_AS" >&6; }
5020else
5021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022$as_echo "no" >&6; }
5023fi
5024
5025  if test "x$ac_ct_AS" = x; then
5026    AS="false"
5027  else
5028    case $cross_compiling:$ac_tool_warned in
5029yes:)
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5032ac_tool_warned=yes ;;
5033esac
5034    AS=$ac_ct_AS
5035  fi
5036else
5037  AS="$ac_cv_prog_AS"
5038fi
5039
5040  if test -n "$ac_tool_prefix"; then
5041  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5042set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044$as_echo_n "checking for $ac_word... " >&6; }
5045if ${ac_cv_prog_DLLTOOL+:} false; then :
5046  $as_echo_n "(cached) " >&6
5047else
5048  if test -n "$DLLTOOL"; then
5049  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5050else
5051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052for as_dir in $PATH
5053do
5054  IFS=$as_save_IFS
5055  test -z "$as_dir" && as_dir=.
5056    for ac_exec_ext in '' $ac_executable_extensions; do
5057  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5058    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060    break 2
5061  fi
5062done
5063  done
5064IFS=$as_save_IFS
5065
5066fi
5067fi
5068DLLTOOL=$ac_cv_prog_DLLTOOL
5069if test -n "$DLLTOOL"; then
5070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5071$as_echo "$DLLTOOL" >&6; }
5072else
5073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074$as_echo "no" >&6; }
5075fi
5076
5077
5078fi
5079if test -z "$ac_cv_prog_DLLTOOL"; then
5080  ac_ct_DLLTOOL=$DLLTOOL
5081  # Extract the first word of "dlltool", so it can be a program name with args.
5082set dummy dlltool; ac_word=$2
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084$as_echo_n "checking for $ac_word... " >&6; }
5085if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5086  $as_echo_n "(cached) " >&6
5087else
5088  if test -n "$ac_ct_DLLTOOL"; then
5089  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5090else
5091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092for as_dir in $PATH
5093do
5094  IFS=$as_save_IFS
5095  test -z "$as_dir" && as_dir=.
5096    for ac_exec_ext in '' $ac_executable_extensions; do
5097  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5098    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5100    break 2
5101  fi
5102done
5103  done
5104IFS=$as_save_IFS
5105
5106fi
5107fi
5108ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5109if test -n "$ac_ct_DLLTOOL"; then
5110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5111$as_echo "$ac_ct_DLLTOOL" >&6; }
5112else
5113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114$as_echo "no" >&6; }
5115fi
5116
5117  if test "x$ac_ct_DLLTOOL" = x; then
5118    DLLTOOL="false"
5119  else
5120    case $cross_compiling:$ac_tool_warned in
5121yes:)
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5124ac_tool_warned=yes ;;
5125esac
5126    DLLTOOL=$ac_ct_DLLTOOL
5127  fi
5128else
5129  DLLTOOL="$ac_cv_prog_DLLTOOL"
5130fi
5131
5132  if test -n "$ac_tool_prefix"; then
5133  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5134set dummy ${ac_tool_prefix}objdump; ac_word=$2
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136$as_echo_n "checking for $ac_word... " >&6; }
5137if ${ac_cv_prog_OBJDUMP+:} false; then :
5138  $as_echo_n "(cached) " >&6
5139else
5140  if test -n "$OBJDUMP"; then
5141  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5142else
5143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144for as_dir in $PATH
5145do
5146  IFS=$as_save_IFS
5147  test -z "$as_dir" && as_dir=.
5148    for ac_exec_ext in '' $ac_executable_extensions; do
5149  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5150    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5151    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152    break 2
5153  fi
5154done
5155  done
5156IFS=$as_save_IFS
5157
5158fi
5159fi
5160OBJDUMP=$ac_cv_prog_OBJDUMP
5161if test -n "$OBJDUMP"; then
5162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5163$as_echo "$OBJDUMP" >&6; }
5164else
5165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166$as_echo "no" >&6; }
5167fi
5168
5169
5170fi
5171if test -z "$ac_cv_prog_OBJDUMP"; then
5172  ac_ct_OBJDUMP=$OBJDUMP
5173  # Extract the first word of "objdump", so it can be a program name with args.
5174set dummy objdump; ac_word=$2
5175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5176$as_echo_n "checking for $ac_word... " >&6; }
5177if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5178  $as_echo_n "(cached) " >&6
5179else
5180  if test -n "$ac_ct_OBJDUMP"; then
5181  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5182else
5183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184for as_dir in $PATH
5185do
5186  IFS=$as_save_IFS
5187  test -z "$as_dir" && as_dir=.
5188    for ac_exec_ext in '' $ac_executable_extensions; do
5189  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5190    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5192    break 2
5193  fi
5194done
5195  done
5196IFS=$as_save_IFS
5197
5198fi
5199fi
5200ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5201if test -n "$ac_ct_OBJDUMP"; then
5202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5203$as_echo "$ac_ct_OBJDUMP" >&6; }
5204else
5205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206$as_echo "no" >&6; }
5207fi
5208
5209  if test "x$ac_ct_OBJDUMP" = x; then
5210    OBJDUMP="false"
5211  else
5212    case $cross_compiling:$ac_tool_warned in
5213yes:)
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5216ac_tool_warned=yes ;;
5217esac
5218    OBJDUMP=$ac_ct_OBJDUMP
5219  fi
5220else
5221  OBJDUMP="$ac_cv_prog_OBJDUMP"
5222fi
5223
5224  ;;
5225esac
5226
5227test -z "$AS" && AS=as
5228
5229
5230
5231
5232
5233test -z "$DLLTOOL" && DLLTOOL=dlltool
5234
5235
5236
5237
5238
5239test -z "$OBJDUMP" && OBJDUMP=objdump
5240
5241
5242
5243
5244
5245
5246
5247case `pwd` in
5248  *\ * | *\	*)
5249    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5250$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5251esac
5252
5253
5254
5255macro_version='2.4.6.42-b88ce-dirty'
5256macro_revision='2.4.6.42'
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270ltmain=$ac_aux_dir/ltmain.sh
5271
5272# Backslashify metacharacters that are still active within
5273# double-quoted strings.
5274sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5275
5276# Same as above, but do not quote variable references.
5277double_quote_subst='s/\(["`\\]\)/\\\1/g'
5278
5279# Sed substitution to delay expansion of an escaped shell variable in a
5280# double_quote_subst'ed string.
5281delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5282
5283# Sed substitution to delay expansion of an escaped single quote.
5284delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5285
5286# Sed substitution to avoid accidental globbing in evaled expressions
5287no_glob_subst='s/\*/\\\*/g'
5288
5289ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5290ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5291ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5292
5293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5294$as_echo_n "checking how to print strings... " >&6; }
5295# Test print first, because it will be a builtin if present.
5296if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5297   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5298  ECHO='print -r --'
5299elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5300  ECHO='printf %s\n'
5301else
5302  # Use this function as a fallback that always works.
5303  func_fallback_echo ()
5304  {
5305    eval 'cat <<_LTECHO_EOF
5306$1
5307_LTECHO_EOF'
5308  }
5309  ECHO='func_fallback_echo'
5310fi
5311
5312# func_echo_all arg...
5313# Invoke $ECHO with all args, space-separated.
5314func_echo_all ()
5315{
5316    $ECHO ""
5317}
5318
5319case $ECHO in
5320  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5321$as_echo "printf" >&6; } ;;
5322  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5323$as_echo "print -r" >&6; } ;;
5324  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5325$as_echo "cat" >&6; } ;;
5326esac
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5342$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5343if ${ac_cv_path_SED+:} false; then :
5344  $as_echo_n "(cached) " >&6
5345else
5346            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5347     for ac_i in 1 2 3 4 5 6 7; do
5348       ac_script="$ac_script$as_nl$ac_script"
5349     done
5350     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5351     { ac_script=; unset ac_script;}
5352     if test -z "$SED"; then
5353  ac_path_SED_found=false
5354  # Loop through the user's path and test for each of PROGNAME-LIST
5355  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356for as_dir in $PATH
5357do
5358  IFS=$as_save_IFS
5359  test -z "$as_dir" && as_dir=.
5360    for ac_prog in sed gsed; do
5361    for ac_exec_ext in '' $ac_executable_extensions; do
5362      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5363      as_fn_executable_p "$ac_path_SED" || continue
5364# Check for GNU ac_path_SED and select it if it is found.
5365  # Check for GNU $ac_path_SED
5366case `"$ac_path_SED" --version 2>&1` in
5367*GNU*)
5368  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5369*)
5370  ac_count=0
5371  $as_echo_n 0123456789 >"conftest.in"
5372  while :
5373  do
5374    cat "conftest.in" "conftest.in" >"conftest.tmp"
5375    mv "conftest.tmp" "conftest.in"
5376    cp "conftest.in" "conftest.nl"
5377    $as_echo '' >> "conftest.nl"
5378    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5379    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5380    as_fn_arith $ac_count + 1 && ac_count=$as_val
5381    if test $ac_count -gt ${ac_path_SED_max-0}; then
5382      # Best one so far, save it but keep looking for a better one
5383      ac_cv_path_SED="$ac_path_SED"
5384      ac_path_SED_max=$ac_count
5385    fi
5386    # 10*(2^10) chars as input seems more than enough
5387    test $ac_count -gt 10 && break
5388  done
5389  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5390esac
5391
5392      $ac_path_SED_found && break 3
5393    done
5394  done
5395  done
5396IFS=$as_save_IFS
5397  if test -z "$ac_cv_path_SED"; then
5398    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5399  fi
5400else
5401  ac_cv_path_SED=$SED
5402fi
5403
5404fi
5405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5406$as_echo "$ac_cv_path_SED" >&6; }
5407 SED="$ac_cv_path_SED"
5408  rm -f conftest.sed
5409
5410test -z "$SED" && SED=sed
5411Xsed="$SED -e 1s/^X//"
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5424$as_echo_n "checking for fgrep... " >&6; }
5425if ${ac_cv_path_FGREP+:} false; then :
5426  $as_echo_n "(cached) " >&6
5427else
5428  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5429   then ac_cv_path_FGREP="$GREP -F"
5430   else
5431     if test -z "$FGREP"; then
5432  ac_path_FGREP_found=false
5433  # Loop through the user's path and test for each of PROGNAME-LIST
5434  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5436do
5437  IFS=$as_save_IFS
5438  test -z "$as_dir" && as_dir=.
5439    for ac_prog in fgrep; do
5440    for ac_exec_ext in '' $ac_executable_extensions; do
5441      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5442      as_fn_executable_p "$ac_path_FGREP" || continue
5443# Check for GNU ac_path_FGREP and select it if it is found.
5444  # Check for GNU $ac_path_FGREP
5445case `"$ac_path_FGREP" --version 2>&1` in
5446*GNU*)
5447  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5448*)
5449  ac_count=0
5450  $as_echo_n 0123456789 >"conftest.in"
5451  while :
5452  do
5453    cat "conftest.in" "conftest.in" >"conftest.tmp"
5454    mv "conftest.tmp" "conftest.in"
5455    cp "conftest.in" "conftest.nl"
5456    $as_echo 'FGREP' >> "conftest.nl"
5457    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5458    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5459    as_fn_arith $ac_count + 1 && ac_count=$as_val
5460    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5461      # Best one so far, save it but keep looking for a better one
5462      ac_cv_path_FGREP="$ac_path_FGREP"
5463      ac_path_FGREP_max=$ac_count
5464    fi
5465    # 10*(2^10) chars as input seems more than enough
5466    test $ac_count -gt 10 && break
5467  done
5468  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5469esac
5470
5471      $ac_path_FGREP_found && break 3
5472    done
5473  done
5474  done
5475IFS=$as_save_IFS
5476  if test -z "$ac_cv_path_FGREP"; then
5477    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5478  fi
5479else
5480  ac_cv_path_FGREP=$FGREP
5481fi
5482
5483   fi
5484fi
5485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5486$as_echo "$ac_cv_path_FGREP" >&6; }
5487 FGREP="$ac_cv_path_FGREP"
5488
5489
5490test -z "$GREP" && GREP=grep
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510# Check whether --with-gnu-ld was given.
5511if test "${with_gnu_ld+set}" = set; then :
5512  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5513else
5514  with_gnu_ld=no
5515fi
5516
5517ac_prog=ld
5518if test yes = "$GCC"; then
5519  # Check if gcc -print-prog-name=ld gives a path.
5520  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5521$as_echo_n "checking for ld used by $CC... " >&6; }
5522  case $host in
5523  *-*-mingw*)
5524    # gcc leaves a trailing carriage return, which upsets mingw
5525    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5526  *)
5527    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5528  esac
5529  case $ac_prog in
5530    # Accept absolute paths.
5531    [\\/]* | ?:[\\/]*)
5532      re_direlt='/[^/][^/]*/\.\./'
5533      # Canonicalize the pathname of ld
5534      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5535      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5536	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5537      done
5538      test -z "$LD" && LD=$ac_prog
5539      ;;
5540  "")
5541    # If it fails, then pretend we aren't using GCC.
5542    ac_prog=ld
5543    ;;
5544  *)
5545    # If it is relative, then search for the first ld in PATH.
5546    with_gnu_ld=unknown
5547    ;;
5548  esac
5549elif test yes = "$with_gnu_ld"; then
5550  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5551$as_echo_n "checking for GNU ld... " >&6; }
5552else
5553  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5554$as_echo_n "checking for non-GNU ld... " >&6; }
5555fi
5556if ${lt_cv_path_LD+:} false; then :
5557  $as_echo_n "(cached) " >&6
5558else
5559  if test -z "$LD"; then
5560  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5561  for ac_dir in $PATH; do
5562    IFS=$lt_save_ifs
5563    test -z "$ac_dir" && ac_dir=.
5564    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5565      lt_cv_path_LD=$ac_dir/$ac_prog
5566      # Check to see if the program is GNU ld.  I'd rather use --version,
5567      # but apparently some variants of GNU ld only accept -v.
5568      # Break only if it was the GNU/non-GNU ld that we prefer.
5569      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5570      *GNU* | *'with BFD'*)
5571	test no != "$with_gnu_ld" && break
5572	;;
5573      *)
5574	test yes != "$with_gnu_ld" && break
5575	;;
5576      esac
5577    fi
5578  done
5579  IFS=$lt_save_ifs
5580else
5581  lt_cv_path_LD=$LD # Let the user override the test with a path.
5582fi
5583fi
5584
5585LD=$lt_cv_path_LD
5586if test -n "$LD"; then
5587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5588$as_echo "$LD" >&6; }
5589else
5590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591$as_echo "no" >&6; }
5592fi
5593test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5595$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5596if ${lt_cv_prog_gnu_ld+:} false; then :
5597  $as_echo_n "(cached) " >&6
5598else
5599  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5600case `$LD -v 2>&1 </dev/null` in
5601*GNU* | *'with BFD'*)
5602  lt_cv_prog_gnu_ld=yes
5603  ;;
5604*)
5605  lt_cv_prog_gnu_ld=no
5606  ;;
5607esac
5608fi
5609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5610$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5611with_gnu_ld=$lt_cv_prog_gnu_ld
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5622$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5623if ${lt_cv_path_NM+:} false; then :
5624  $as_echo_n "(cached) " >&6
5625else
5626  if test -n "$NM"; then
5627  # Let the user override the test.
5628  lt_cv_path_NM=$NM
5629else
5630  lt_nm_to_check=${ac_tool_prefix}nm
5631  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5632    lt_nm_to_check="$lt_nm_to_check nm"
5633  fi
5634  for lt_tmp_nm in $lt_nm_to_check; do
5635    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5636    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5637      IFS=$lt_save_ifs
5638      test -z "$ac_dir" && ac_dir=.
5639      tmp_nm=$ac_dir/$lt_tmp_nm
5640      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5641	# Check to see if the nm accepts a BSD-compat flag.
5642	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5643	#   nm: unknown option "B" ignored
5644	# Tru64's nm complains that /dev/null is an invalid object file
5645	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5646	case $build_os in
5647	mingw*) lt_bad_file=conftest.nm/nofile ;;
5648	*) lt_bad_file=/dev/null ;;
5649	esac
5650	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5651	*$lt_bad_file* | *'Invalid file or object type'*)
5652	  lt_cv_path_NM="$tmp_nm -B"
5653	  break 2
5654	  ;;
5655	*)
5656	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5657	  */dev/null*)
5658	    lt_cv_path_NM="$tmp_nm -p"
5659	    break 2
5660	    ;;
5661	  *)
5662	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5663	    continue # so that we can try to find one that supports BSD flags
5664	    ;;
5665	  esac
5666	  ;;
5667	esac
5668      fi
5669    done
5670    IFS=$lt_save_ifs
5671  done
5672  : ${lt_cv_path_NM=no}
5673fi
5674fi
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5676$as_echo "$lt_cv_path_NM" >&6; }
5677if test no != "$lt_cv_path_NM"; then
5678  NM=$lt_cv_path_NM
5679else
5680  # Didn't find any BSD compatible name lister, look for dumpbin.
5681  if test -n "$DUMPBIN"; then :
5682    # Let the user override the test.
5683  else
5684    if test -n "$ac_tool_prefix"; then
5685  for ac_prog in dumpbin "link -dump"
5686  do
5687    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5688set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5690$as_echo_n "checking for $ac_word... " >&6; }
5691if ${ac_cv_prog_DUMPBIN+:} false; then :
5692  $as_echo_n "(cached) " >&6
5693else
5694  if test -n "$DUMPBIN"; then
5695  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5696else
5697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698for as_dir in $PATH
5699do
5700  IFS=$as_save_IFS
5701  test -z "$as_dir" && as_dir=.
5702    for ac_exec_ext in '' $ac_executable_extensions; do
5703  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5704    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5706    break 2
5707  fi
5708done
5709  done
5710IFS=$as_save_IFS
5711
5712fi
5713fi
5714DUMPBIN=$ac_cv_prog_DUMPBIN
5715if test -n "$DUMPBIN"; then
5716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5717$as_echo "$DUMPBIN" >&6; }
5718else
5719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720$as_echo "no" >&6; }
5721fi
5722
5723
5724    test -n "$DUMPBIN" && break
5725  done
5726fi
5727if test -z "$DUMPBIN"; then
5728  ac_ct_DUMPBIN=$DUMPBIN
5729  for ac_prog in dumpbin "link -dump"
5730do
5731  # Extract the first word of "$ac_prog", so it can be a program name with args.
5732set dummy $ac_prog; ac_word=$2
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5734$as_echo_n "checking for $ac_word... " >&6; }
5735if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5736  $as_echo_n "(cached) " >&6
5737else
5738  if test -n "$ac_ct_DUMPBIN"; then
5739  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5740else
5741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742for as_dir in $PATH
5743do
5744  IFS=$as_save_IFS
5745  test -z "$as_dir" && as_dir=.
5746    for ac_exec_ext in '' $ac_executable_extensions; do
5747  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5748    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5749    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5750    break 2
5751  fi
5752done
5753  done
5754IFS=$as_save_IFS
5755
5756fi
5757fi
5758ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5759if test -n "$ac_ct_DUMPBIN"; then
5760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5761$as_echo "$ac_ct_DUMPBIN" >&6; }
5762else
5763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764$as_echo "no" >&6; }
5765fi
5766
5767
5768  test -n "$ac_ct_DUMPBIN" && break
5769done
5770
5771  if test "x$ac_ct_DUMPBIN" = x; then
5772    DUMPBIN=":"
5773  else
5774    case $cross_compiling:$ac_tool_warned in
5775yes:)
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5778ac_tool_warned=yes ;;
5779esac
5780    DUMPBIN=$ac_ct_DUMPBIN
5781  fi
5782fi
5783
5784    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5785    *COFF*)
5786      DUMPBIN="$DUMPBIN -symbols -headers"
5787      ;;
5788    *)
5789      DUMPBIN=:
5790      ;;
5791    esac
5792  fi
5793
5794  if test : != "$DUMPBIN"; then
5795    NM=$DUMPBIN
5796  fi
5797fi
5798test -z "$NM" && NM=nm
5799
5800
5801
5802
5803
5804
5805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5806$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5807if ${lt_cv_nm_interface+:} false; then :
5808  $as_echo_n "(cached) " >&6
5809else
5810  lt_cv_nm_interface="BSD nm"
5811  echo "int some_variable = 0;" > conftest.$ac_ext
5812  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5813  (eval "$ac_compile" 2>conftest.err)
5814  cat conftest.err >&5
5815  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5816  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5817  cat conftest.err >&5
5818  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5819  cat conftest.out >&5
5820  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5821    lt_cv_nm_interface="MS dumpbin"
5822  fi
5823  rm -f conftest*
5824fi
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5826$as_echo "$lt_cv_nm_interface" >&6; }
5827
5828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5829$as_echo_n "checking whether ln -s works... " >&6; }
5830LN_S=$as_ln_s
5831if test "$LN_S" = "ln -s"; then
5832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5833$as_echo "yes" >&6; }
5834else
5835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5836$as_echo "no, using $LN_S" >&6; }
5837fi
5838
5839# find the maximum length of command line arguments
5840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5841$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5842if ${lt_cv_sys_max_cmd_len+:} false; then :
5843  $as_echo_n "(cached) " >&6
5844else
5845    i=0
5846  teststring=ABCD
5847
5848  case $build_os in
5849  msdosdjgpp*)
5850    # On DJGPP, this test can blow up pretty badly due to problems in libc
5851    # (any single argument exceeding 2000 bytes causes a buffer overrun
5852    # during glob expansion).  Even if it were fixed, the result of this
5853    # check would be larger than it should be.
5854    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5855    ;;
5856
5857  gnu*)
5858    # Under GNU Hurd, this test is not required because there is
5859    # no limit to the length of command line arguments.
5860    # Libtool will interpret -1 as no limit whatsoever
5861    lt_cv_sys_max_cmd_len=-1;
5862    ;;
5863
5864  cygwin* | mingw* | cegcc*)
5865    # On Win9x/ME, this test blows up -- it succeeds, but takes
5866    # about 5 minutes as the teststring grows exponentially.
5867    # Worse, since 9x/ME are not pre-emptively multitasking,
5868    # you end up with a "frozen" computer, even though with patience
5869    # the test eventually succeeds (with a max line length of 256k).
5870    # Instead, let's just punt: use the minimum linelength reported by
5871    # all of the supported platforms: 8192 (on NT/2K/XP).
5872    lt_cv_sys_max_cmd_len=8192;
5873    ;;
5874
5875  mint*)
5876    # On MiNT this can take a long time and run out of memory.
5877    lt_cv_sys_max_cmd_len=8192;
5878    ;;
5879
5880  amigaos*)
5881    # On AmigaOS with pdksh, this test takes hours, literally.
5882    # So we just punt and use a minimum line length of 8192.
5883    lt_cv_sys_max_cmd_len=8192;
5884    ;;
5885
5886  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5887    # This has been around since 386BSD, at least.  Likely further.
5888    if test -x /sbin/sysctl; then
5889      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5890    elif test -x /usr/sbin/sysctl; then
5891      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5892    else
5893      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5894    fi
5895    # And add a safety zone
5896    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5897    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5898    ;;
5899
5900  interix*)
5901    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5902    lt_cv_sys_max_cmd_len=196608
5903    ;;
5904
5905  os2*)
5906    # The test takes a long time on OS/2.
5907    lt_cv_sys_max_cmd_len=8192
5908    ;;
5909
5910  osf*)
5911    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5912    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5913    # nice to cause kernel panics so lets avoid the loop below.
5914    # First set a reasonable default.
5915    lt_cv_sys_max_cmd_len=16384
5916    #
5917    if test -x /sbin/sysconfig; then
5918      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5919        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5920      esac
5921    fi
5922    ;;
5923  sco3.2v5*)
5924    lt_cv_sys_max_cmd_len=102400
5925    ;;
5926  sysv5* | sco5v6* | sysv4.2uw2*)
5927    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5928    if test -n "$kargmax"; then
5929      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5930    else
5931      lt_cv_sys_max_cmd_len=32768
5932    fi
5933    ;;
5934  *)
5935    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5936    if test -n "$lt_cv_sys_max_cmd_len" && \
5937       test undefined != "$lt_cv_sys_max_cmd_len"; then
5938      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5939      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5940    else
5941      # Make teststring a little bigger before we do anything with it.
5942      # a 1K string should be a reasonable start.
5943      for i in 1 2 3 4 5 6 7 8; do
5944        teststring=$teststring$teststring
5945      done
5946      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5947      # If test is not a shell built-in, we'll probably end up computing a
5948      # maximum length that is only half of the actual maximum length, but
5949      # we can't tell.
5950      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5951	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5952	      test 17 != "$i" # 1/2 MB should be enough
5953      do
5954        i=`expr $i + 1`
5955        teststring=$teststring$teststring
5956      done
5957      # Only check the string length outside the loop.
5958      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5959      teststring=
5960      # Add a significant safety factor because C++ compilers can tack on
5961      # massive amounts of additional arguments before passing them to the
5962      # linker.  It appears as though 1/2 is a usable value.
5963      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5964    fi
5965    ;;
5966  esac
5967
5968fi
5969
5970if test -n "$lt_cv_sys_max_cmd_len"; then
5971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5972$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5973else
5974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5975$as_echo "none" >&6; }
5976fi
5977max_cmd_len=$lt_cv_sys_max_cmd_len
5978
5979
5980
5981
5982
5983
5984: ${CP="cp -f"}
5985: ${MV="mv -f"}
5986: ${RM="rm -f"}
5987
5988if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5989  lt_unset=unset
5990else
5991  lt_unset=false
5992fi
5993
5994
5995
5996
5997
5998# test EBCDIC or ASCII
5999case `echo X|tr X '\101'` in
6000 A) # ASCII based system
6001    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6002  lt_SP2NL='tr \040 \012'
6003  lt_NL2SP='tr \015\012 \040\040'
6004  ;;
6005 *) # EBCDIC based system
6006  lt_SP2NL='tr \100 \n'
6007  lt_NL2SP='tr \r\n \100\100'
6008  ;;
6009esac
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6020$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6021if ${lt_cv_to_host_file_cmd+:} false; then :
6022  $as_echo_n "(cached) " >&6
6023else
6024  case $host in
6025  *-*-mingw* )
6026    case $build in
6027      *-*-mingw* ) # actually msys
6028        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6029        ;;
6030      *-*-cygwin* )
6031        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6032        ;;
6033      * ) # otherwise, assume *nix
6034        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6035        ;;
6036    esac
6037    ;;
6038  *-*-cygwin* )
6039    case $build in
6040      *-*-mingw* ) # actually msys
6041        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6042        ;;
6043      *-*-cygwin* )
6044        lt_cv_to_host_file_cmd=func_convert_file_noop
6045        ;;
6046      * ) # otherwise, assume *nix
6047        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6048        ;;
6049    esac
6050    ;;
6051  * ) # unhandled hosts (and "normal" native builds)
6052    lt_cv_to_host_file_cmd=func_convert_file_noop
6053    ;;
6054esac
6055
6056fi
6057
6058to_host_file_cmd=$lt_cv_to_host_file_cmd
6059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6060$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6061
6062
6063
6064
6065
6066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6067$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6068if ${lt_cv_to_tool_file_cmd+:} false; then :
6069  $as_echo_n "(cached) " >&6
6070else
6071  #assume ordinary cross tools, or native build.
6072lt_cv_to_tool_file_cmd=func_convert_file_noop
6073case $host in
6074  *-*-mingw* )
6075    case $build in
6076      *-*-mingw* ) # actually msys
6077        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6078        ;;
6079    esac
6080    ;;
6081esac
6082
6083fi
6084
6085to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6087$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6088
6089
6090
6091
6092
6093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6094$as_echo_n "checking for $LD option to reload object files... " >&6; }
6095if ${lt_cv_ld_reload_flag+:} false; then :
6096  $as_echo_n "(cached) " >&6
6097else
6098  lt_cv_ld_reload_flag='-r'
6099fi
6100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6101$as_echo "$lt_cv_ld_reload_flag" >&6; }
6102reload_flag=$lt_cv_ld_reload_flag
6103case $reload_flag in
6104"" | " "*) ;;
6105*) reload_flag=" $reload_flag" ;;
6106esac
6107reload_cmds='$LD$reload_flag -o $output$reload_objs'
6108case $host_os in
6109  cygwin* | mingw* | pw32* | cegcc*)
6110    if test yes != "$GCC"; then
6111      reload_cmds=false
6112    fi
6113    ;;
6114  darwin*)
6115    if test yes = "$GCC"; then
6116      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6117    else
6118      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6119    fi
6120    ;;
6121esac
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131if test -n "$ac_tool_prefix"; then
6132  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6133set dummy ${ac_tool_prefix}objdump; ac_word=$2
6134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6135$as_echo_n "checking for $ac_word... " >&6; }
6136if ${ac_cv_prog_OBJDUMP+:} false; then :
6137  $as_echo_n "(cached) " >&6
6138else
6139  if test -n "$OBJDUMP"; then
6140  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6141else
6142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143for as_dir in $PATH
6144do
6145  IFS=$as_save_IFS
6146  test -z "$as_dir" && as_dir=.
6147    for ac_exec_ext in '' $ac_executable_extensions; do
6148  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6149    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6150    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6151    break 2
6152  fi
6153done
6154  done
6155IFS=$as_save_IFS
6156
6157fi
6158fi
6159OBJDUMP=$ac_cv_prog_OBJDUMP
6160if test -n "$OBJDUMP"; then
6161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6162$as_echo "$OBJDUMP" >&6; }
6163else
6164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6165$as_echo "no" >&6; }
6166fi
6167
6168
6169fi
6170if test -z "$ac_cv_prog_OBJDUMP"; then
6171  ac_ct_OBJDUMP=$OBJDUMP
6172  # Extract the first word of "objdump", so it can be a program name with args.
6173set dummy objdump; ac_word=$2
6174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6175$as_echo_n "checking for $ac_word... " >&6; }
6176if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6177  $as_echo_n "(cached) " >&6
6178else
6179  if test -n "$ac_ct_OBJDUMP"; then
6180  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6181else
6182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183for as_dir in $PATH
6184do
6185  IFS=$as_save_IFS
6186  test -z "$as_dir" && as_dir=.
6187    for ac_exec_ext in '' $ac_executable_extensions; do
6188  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6189    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6190    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6191    break 2
6192  fi
6193done
6194  done
6195IFS=$as_save_IFS
6196
6197fi
6198fi
6199ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6200if test -n "$ac_ct_OBJDUMP"; then
6201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6202$as_echo "$ac_ct_OBJDUMP" >&6; }
6203else
6204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6205$as_echo "no" >&6; }
6206fi
6207
6208  if test "x$ac_ct_OBJDUMP" = x; then
6209    OBJDUMP="false"
6210  else
6211    case $cross_compiling:$ac_tool_warned in
6212yes:)
6213{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6215ac_tool_warned=yes ;;
6216esac
6217    OBJDUMP=$ac_ct_OBJDUMP
6218  fi
6219else
6220  OBJDUMP="$ac_cv_prog_OBJDUMP"
6221fi
6222
6223test -z "$OBJDUMP" && OBJDUMP=objdump
6224
6225
6226
6227
6228
6229
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6231$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6232if ${lt_cv_deplibs_check_method+:} false; then :
6233  $as_echo_n "(cached) " >&6
6234else
6235  lt_cv_file_magic_cmd='$MAGIC_CMD'
6236lt_cv_file_magic_test_file=
6237lt_cv_deplibs_check_method='unknown'
6238# Need to set the preceding variable on all platforms that support
6239# interlibrary dependencies.
6240# 'none' -- dependencies not supported.
6241# 'unknown' -- same as none, but documents that we really don't know.
6242# 'pass_all' -- all dependencies passed with no checks.
6243# 'test_compile' -- check by making test program.
6244# 'file_magic [[regex]]' -- check by looking for files in library path
6245# that responds to the $file_magic_cmd with a given extended regex.
6246# If you have 'file' or equivalent on your system and you're not sure
6247# whether 'pass_all' will *always* work, you probably want this one.
6248
6249case $host_os in
6250aix[4-9]*)
6251  lt_cv_deplibs_check_method=pass_all
6252  ;;
6253
6254beos*)
6255  lt_cv_deplibs_check_method=pass_all
6256  ;;
6257
6258bsdi[45]*)
6259  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6260  lt_cv_file_magic_cmd='/usr/bin/file -L'
6261  lt_cv_file_magic_test_file=/shlib/libc.so
6262  ;;
6263
6264cygwin*)
6265  # func_win32_libid is a shell function defined in ltmain.sh
6266  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6267  lt_cv_file_magic_cmd='func_win32_libid'
6268  ;;
6269
6270mingw* | pw32*)
6271  # Base MSYS/MinGW do not provide the 'file' command needed by
6272  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6273  # unless we find 'file', for example because we are cross-compiling.
6274  if ( file / ) >/dev/null 2>&1; then
6275    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6276    lt_cv_file_magic_cmd='func_win32_libid'
6277  else
6278    # Keep this pattern in sync with the one in func_win32_libid.
6279    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6280    lt_cv_file_magic_cmd='$OBJDUMP -f'
6281  fi
6282  ;;
6283
6284cegcc*)
6285  # use the weaker test based on 'objdump'. See mingw*.
6286  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6287  lt_cv_file_magic_cmd='$OBJDUMP -f'
6288  ;;
6289
6290darwin* | rhapsody*)
6291  lt_cv_deplibs_check_method=pass_all
6292  ;;
6293
6294freebsd* | dragonfly*)
6295  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6296    case $host_cpu in
6297    i*86 )
6298      # Not sure whether the presence of OpenBSD here was a mistake.
6299      # Let's accept both of them until this is cleared up.
6300      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6301      lt_cv_file_magic_cmd=/usr/bin/file
6302      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6303      ;;
6304    esac
6305  else
6306    lt_cv_deplibs_check_method=pass_all
6307  fi
6308  ;;
6309
6310haiku*)
6311  lt_cv_deplibs_check_method=pass_all
6312  ;;
6313
6314hpux10.20* | hpux11*)
6315  lt_cv_file_magic_cmd=/usr/bin/file
6316  case $host_cpu in
6317  ia64*)
6318    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6319    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6320    ;;
6321  hppa*64*)
6322    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]'
6323    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6324    ;;
6325  *)
6326    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6327    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6328    ;;
6329  esac
6330  ;;
6331
6332interix[3-9]*)
6333  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6334  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6335  ;;
6336
6337irix5* | irix6* | nonstopux*)
6338  case $LD in
6339  *-32|*"-32 ") libmagic=32-bit;;
6340  *-n32|*"-n32 ") libmagic=N32;;
6341  *-64|*"-64 ") libmagic=64-bit;;
6342  *) libmagic=never-match;;
6343  esac
6344  lt_cv_deplibs_check_method=pass_all
6345  ;;
6346
6347# This must be glibc/ELF.
6348linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6349  lt_cv_deplibs_check_method=pass_all
6350  ;;
6351
6352netbsd*)
6353  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6354    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6355  else
6356    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6357  fi
6358  ;;
6359
6360newos6*)
6361  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6362  lt_cv_file_magic_cmd=/usr/bin/file
6363  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6364  ;;
6365
6366*nto* | *qnx*)
6367  lt_cv_deplibs_check_method=pass_all
6368  ;;
6369
6370openbsd* | bitrig*)
6371  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6372    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6373  else
6374    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6375  fi
6376  ;;
6377
6378osf3* | osf4* | osf5*)
6379  lt_cv_deplibs_check_method=pass_all
6380  ;;
6381
6382rdos*)
6383  lt_cv_deplibs_check_method=pass_all
6384  ;;
6385
6386solaris*)
6387  lt_cv_deplibs_check_method=pass_all
6388  ;;
6389
6390sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6391  lt_cv_deplibs_check_method=pass_all
6392  ;;
6393
6394sysv4 | sysv4.3*)
6395  case $host_vendor in
6396  motorola)
6397    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]'
6398    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6399    ;;
6400  ncr)
6401    lt_cv_deplibs_check_method=pass_all
6402    ;;
6403  sequent)
6404    lt_cv_file_magic_cmd='/bin/file'
6405    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6406    ;;
6407  sni)
6408    lt_cv_file_magic_cmd='/bin/file'
6409    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6410    lt_cv_file_magic_test_file=/lib/libc.so
6411    ;;
6412  siemens)
6413    lt_cv_deplibs_check_method=pass_all
6414    ;;
6415  pc)
6416    lt_cv_deplibs_check_method=pass_all
6417    ;;
6418  esac
6419  ;;
6420
6421tpf*)
6422  lt_cv_deplibs_check_method=pass_all
6423  ;;
6424os2*)
6425  lt_cv_deplibs_check_method=pass_all
6426  ;;
6427esac
6428
6429fi
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6431$as_echo "$lt_cv_deplibs_check_method" >&6; }
6432
6433file_magic_glob=
6434want_nocaseglob=no
6435if test "$build" = "$host"; then
6436  case $host_os in
6437  mingw* | pw32*)
6438    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6439      want_nocaseglob=yes
6440    else
6441      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6442    fi
6443    ;;
6444  esac
6445fi
6446
6447file_magic_cmd=$lt_cv_file_magic_cmd
6448deplibs_check_method=$lt_cv_deplibs_check_method
6449test -z "$deplibs_check_method" && deplibs_check_method=unknown
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472if test -n "$ac_tool_prefix"; then
6473  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6474set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6476$as_echo_n "checking for $ac_word... " >&6; }
6477if ${ac_cv_prog_DLLTOOL+:} false; then :
6478  $as_echo_n "(cached) " >&6
6479else
6480  if test -n "$DLLTOOL"; then
6481  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6482else
6483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484for as_dir in $PATH
6485do
6486  IFS=$as_save_IFS
6487  test -z "$as_dir" && as_dir=.
6488    for ac_exec_ext in '' $ac_executable_extensions; do
6489  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6490    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6491    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6492    break 2
6493  fi
6494done
6495  done
6496IFS=$as_save_IFS
6497
6498fi
6499fi
6500DLLTOOL=$ac_cv_prog_DLLTOOL
6501if test -n "$DLLTOOL"; then
6502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6503$as_echo "$DLLTOOL" >&6; }
6504else
6505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6506$as_echo "no" >&6; }
6507fi
6508
6509
6510fi
6511if test -z "$ac_cv_prog_DLLTOOL"; then
6512  ac_ct_DLLTOOL=$DLLTOOL
6513  # Extract the first word of "dlltool", so it can be a program name with args.
6514set dummy dlltool; ac_word=$2
6515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6516$as_echo_n "checking for $ac_word... " >&6; }
6517if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6518  $as_echo_n "(cached) " >&6
6519else
6520  if test -n "$ac_ct_DLLTOOL"; then
6521  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6522else
6523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524for as_dir in $PATH
6525do
6526  IFS=$as_save_IFS
6527  test -z "$as_dir" && as_dir=.
6528    for ac_exec_ext in '' $ac_executable_extensions; do
6529  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6530    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6531    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6532    break 2
6533  fi
6534done
6535  done
6536IFS=$as_save_IFS
6537
6538fi
6539fi
6540ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6541if test -n "$ac_ct_DLLTOOL"; then
6542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6543$as_echo "$ac_ct_DLLTOOL" >&6; }
6544else
6545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546$as_echo "no" >&6; }
6547fi
6548
6549  if test "x$ac_ct_DLLTOOL" = x; then
6550    DLLTOOL="false"
6551  else
6552    case $cross_compiling:$ac_tool_warned in
6553yes:)
6554{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6556ac_tool_warned=yes ;;
6557esac
6558    DLLTOOL=$ac_ct_DLLTOOL
6559  fi
6560else
6561  DLLTOOL="$ac_cv_prog_DLLTOOL"
6562fi
6563
6564test -z "$DLLTOOL" && DLLTOOL=dlltool
6565
6566
6567
6568
6569
6570
6571
6572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6573$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6574if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6575  $as_echo_n "(cached) " >&6
6576else
6577  lt_cv_sharedlib_from_linklib_cmd='unknown'
6578
6579case $host_os in
6580cygwin* | mingw* | pw32* | cegcc*)
6581  # two different shell functions defined in ltmain.sh;
6582  # decide which one to use based on capabilities of $DLLTOOL
6583  case `$DLLTOOL --help 2>&1` in
6584  *--identify-strict*)
6585    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6586    ;;
6587  *)
6588    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6589    ;;
6590  esac
6591  ;;
6592*)
6593  # fallback: assume linklib IS sharedlib
6594  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6595  ;;
6596esac
6597
6598fi
6599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6600$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6601sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6602test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6603
6604
6605
6606
6607
6608
6609
6610if test -n "$ac_tool_prefix"; then
6611  for ac_prog in ar
6612  do
6613    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6614set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6616$as_echo_n "checking for $ac_word... " >&6; }
6617if ${ac_cv_prog_AR+:} false; then :
6618  $as_echo_n "(cached) " >&6
6619else
6620  if test -n "$AR"; then
6621  ac_cv_prog_AR="$AR" # Let the user override the test.
6622else
6623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624for as_dir in $PATH
6625do
6626  IFS=$as_save_IFS
6627  test -z "$as_dir" && as_dir=.
6628    for ac_exec_ext in '' $ac_executable_extensions; do
6629  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6630    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6632    break 2
6633  fi
6634done
6635  done
6636IFS=$as_save_IFS
6637
6638fi
6639fi
6640AR=$ac_cv_prog_AR
6641if test -n "$AR"; then
6642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6643$as_echo "$AR" >&6; }
6644else
6645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646$as_echo "no" >&6; }
6647fi
6648
6649
6650    test -n "$AR" && break
6651  done
6652fi
6653if test -z "$AR"; then
6654  ac_ct_AR=$AR
6655  for ac_prog in ar
6656do
6657  # Extract the first word of "$ac_prog", so it can be a program name with args.
6658set dummy $ac_prog; ac_word=$2
6659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6660$as_echo_n "checking for $ac_word... " >&6; }
6661if ${ac_cv_prog_ac_ct_AR+:} false; then :
6662  $as_echo_n "(cached) " >&6
6663else
6664  if test -n "$ac_ct_AR"; then
6665  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6666else
6667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668for as_dir in $PATH
6669do
6670  IFS=$as_save_IFS
6671  test -z "$as_dir" && as_dir=.
6672    for ac_exec_ext in '' $ac_executable_extensions; do
6673  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6674    ac_cv_prog_ac_ct_AR="$ac_prog"
6675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6676    break 2
6677  fi
6678done
6679  done
6680IFS=$as_save_IFS
6681
6682fi
6683fi
6684ac_ct_AR=$ac_cv_prog_ac_ct_AR
6685if test -n "$ac_ct_AR"; then
6686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6687$as_echo "$ac_ct_AR" >&6; }
6688else
6689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6690$as_echo "no" >&6; }
6691fi
6692
6693
6694  test -n "$ac_ct_AR" && break
6695done
6696
6697  if test "x$ac_ct_AR" = x; then
6698    AR="false"
6699  else
6700    case $cross_compiling:$ac_tool_warned in
6701yes:)
6702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6704ac_tool_warned=yes ;;
6705esac
6706    AR=$ac_ct_AR
6707  fi
6708fi
6709
6710: ${AR=ar}
6711
6712
6713
6714
6715
6716
6717# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6718# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6719# higher priority because thats what people were doing historically (setting
6720# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6721# variable obsoleted/removed.
6722
6723test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6724lt_ar_flags=$AR_FLAGS
6725
6726
6727
6728
6729
6730
6731# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6732# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6733
6734
6735
6736
6737
6738
6739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6740$as_echo_n "checking for archiver @FILE support... " >&6; }
6741if ${lt_cv_ar_at_file+:} false; then :
6742  $as_echo_n "(cached) " >&6
6743else
6744  lt_cv_ar_at_file=no
6745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746/* end confdefs.h.  */
6747
6748int
6749main ()
6750{
6751
6752  ;
6753  return 0;
6754}
6755_ACEOF
6756if ac_fn_c_try_compile "$LINENO"; then :
6757  echo conftest.$ac_objext > conftest.lst
6758      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6759      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6760  (eval $lt_ar_try) 2>&5
6761  ac_status=$?
6762  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6763  test $ac_status = 0; }
6764      if test 0 -eq "$ac_status"; then
6765	# Ensure the archiver fails upon bogus file names.
6766	rm -f conftest.$ac_objext libconftest.a
6767	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6768  (eval $lt_ar_try) 2>&5
6769  ac_status=$?
6770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6771  test $ac_status = 0; }
6772	if test 0 -ne "$ac_status"; then
6773          lt_cv_ar_at_file=@
6774        fi
6775      fi
6776      rm -f conftest.* libconftest.a
6777
6778fi
6779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6780
6781fi
6782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6783$as_echo "$lt_cv_ar_at_file" >&6; }
6784
6785if test no = "$lt_cv_ar_at_file"; then
6786  archiver_list_spec=
6787else
6788  archiver_list_spec=$lt_cv_ar_at_file
6789fi
6790
6791
6792
6793
6794
6795
6796
6797if test -n "$ac_tool_prefix"; then
6798  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6799set dummy ${ac_tool_prefix}strip; ac_word=$2
6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801$as_echo_n "checking for $ac_word... " >&6; }
6802if ${ac_cv_prog_STRIP+:} false; then :
6803  $as_echo_n "(cached) " >&6
6804else
6805  if test -n "$STRIP"; then
6806  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6807else
6808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809for as_dir in $PATH
6810do
6811  IFS=$as_save_IFS
6812  test -z "$as_dir" && as_dir=.
6813    for ac_exec_ext in '' $ac_executable_extensions; do
6814  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6815    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817    break 2
6818  fi
6819done
6820  done
6821IFS=$as_save_IFS
6822
6823fi
6824fi
6825STRIP=$ac_cv_prog_STRIP
6826if test -n "$STRIP"; then
6827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6828$as_echo "$STRIP" >&6; }
6829else
6830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831$as_echo "no" >&6; }
6832fi
6833
6834
6835fi
6836if test -z "$ac_cv_prog_STRIP"; then
6837  ac_ct_STRIP=$STRIP
6838  # Extract the first word of "strip", so it can be a program name with args.
6839set dummy strip; ac_word=$2
6840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841$as_echo_n "checking for $ac_word... " >&6; }
6842if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6843  $as_echo_n "(cached) " >&6
6844else
6845  if test -n "$ac_ct_STRIP"; then
6846  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6847else
6848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849for as_dir in $PATH
6850do
6851  IFS=$as_save_IFS
6852  test -z "$as_dir" && as_dir=.
6853    for ac_exec_ext in '' $ac_executable_extensions; do
6854  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6855    ac_cv_prog_ac_ct_STRIP="strip"
6856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6857    break 2
6858  fi
6859done
6860  done
6861IFS=$as_save_IFS
6862
6863fi
6864fi
6865ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6866if test -n "$ac_ct_STRIP"; then
6867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6868$as_echo "$ac_ct_STRIP" >&6; }
6869else
6870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871$as_echo "no" >&6; }
6872fi
6873
6874  if test "x$ac_ct_STRIP" = x; then
6875    STRIP=":"
6876  else
6877    case $cross_compiling:$ac_tool_warned in
6878yes:)
6879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6881ac_tool_warned=yes ;;
6882esac
6883    STRIP=$ac_ct_STRIP
6884  fi
6885else
6886  STRIP="$ac_cv_prog_STRIP"
6887fi
6888
6889test -z "$STRIP" && STRIP=:
6890
6891
6892
6893
6894
6895
6896if test -n "$ac_tool_prefix"; then
6897  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6898set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6900$as_echo_n "checking for $ac_word... " >&6; }
6901if ${ac_cv_prog_RANLIB+:} false; then :
6902  $as_echo_n "(cached) " >&6
6903else
6904  if test -n "$RANLIB"; then
6905  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6906else
6907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908for as_dir in $PATH
6909do
6910  IFS=$as_save_IFS
6911  test -z "$as_dir" && as_dir=.
6912    for ac_exec_ext in '' $ac_executable_extensions; do
6913  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6914    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6916    break 2
6917  fi
6918done
6919  done
6920IFS=$as_save_IFS
6921
6922fi
6923fi
6924RANLIB=$ac_cv_prog_RANLIB
6925if test -n "$RANLIB"; then
6926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6927$as_echo "$RANLIB" >&6; }
6928else
6929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930$as_echo "no" >&6; }
6931fi
6932
6933
6934fi
6935if test -z "$ac_cv_prog_RANLIB"; then
6936  ac_ct_RANLIB=$RANLIB
6937  # Extract the first word of "ranlib", so it can be a program name with args.
6938set dummy ranlib; ac_word=$2
6939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6940$as_echo_n "checking for $ac_word... " >&6; }
6941if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6942  $as_echo_n "(cached) " >&6
6943else
6944  if test -n "$ac_ct_RANLIB"; then
6945  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6946else
6947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948for as_dir in $PATH
6949do
6950  IFS=$as_save_IFS
6951  test -z "$as_dir" && as_dir=.
6952    for ac_exec_ext in '' $ac_executable_extensions; do
6953  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6954    ac_cv_prog_ac_ct_RANLIB="ranlib"
6955    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6956    break 2
6957  fi
6958done
6959  done
6960IFS=$as_save_IFS
6961
6962fi
6963fi
6964ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6965if test -n "$ac_ct_RANLIB"; then
6966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6967$as_echo "$ac_ct_RANLIB" >&6; }
6968else
6969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6970$as_echo "no" >&6; }
6971fi
6972
6973  if test "x$ac_ct_RANLIB" = x; then
6974    RANLIB=":"
6975  else
6976    case $cross_compiling:$ac_tool_warned in
6977yes:)
6978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6980ac_tool_warned=yes ;;
6981esac
6982    RANLIB=$ac_ct_RANLIB
6983  fi
6984else
6985  RANLIB="$ac_cv_prog_RANLIB"
6986fi
6987
6988test -z "$RANLIB" && RANLIB=:
6989
6990
6991
6992
6993
6994
6995# Determine commands to create old-style static archives.
6996old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6997old_postinstall_cmds='chmod 644 $oldlib'
6998old_postuninstall_cmds=
6999
7000if test -n "$RANLIB"; then
7001  case $host_os in
7002  bitrig* | openbsd*)
7003    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7004    ;;
7005  *)
7006    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7007    ;;
7008  esac
7009  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7010fi
7011
7012case $host_os in
7013  darwin*)
7014    lock_old_archive_extraction=yes ;;
7015  *)
7016    lock_old_archive_extraction=no ;;
7017esac
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057# If no C compiler was specified, use CC.
7058LTCC=${LTCC-"$CC"}
7059
7060# If no C compiler flags were specified, use CFLAGS.
7061LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7062
7063# Allow CC to be a program name with arguments.
7064compiler=$CC
7065
7066
7067# Check for command to grab the raw symbol name followed by C symbol from nm.
7068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7069$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7070if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7071  $as_echo_n "(cached) " >&6
7072else
7073
7074# These are sane defaults that work on at least a few old systems.
7075# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7076
7077# Character class describing NM global symbol codes.
7078symcode='[BCDEGRST]'
7079
7080# Regexp to match symbols that can be accessed directly from C.
7081sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7082
7083# Define system-specific variables.
7084case $host_os in
7085aix*)
7086  symcode='[BCDT]'
7087  ;;
7088cygwin* | mingw* | pw32* | cegcc*)
7089  symcode='[ABCDGISTW]'
7090  ;;
7091hpux*)
7092  if test ia64 = "$host_cpu"; then
7093    symcode='[ABCDEGRST]'
7094  fi
7095  ;;
7096irix* | nonstopux*)
7097  symcode='[BCDEGRST]'
7098  ;;
7099osf*)
7100  symcode='[BCDEGQRST]'
7101  ;;
7102solaris*)
7103  symcode='[BDRT]'
7104  ;;
7105sco3.2v5*)
7106  symcode='[DT]'
7107  ;;
7108sysv4.2uw2*)
7109  symcode='[DT]'
7110  ;;
7111sysv5* | sco5v6* | unixware* | OpenUNIX*)
7112  symcode='[ABDT]'
7113  ;;
7114sysv4)
7115  symcode='[DFNSTU]'
7116  ;;
7117esac
7118
7119# If we're using GNU nm, then use its standard symbol codes.
7120case `$NM -V 2>&1` in
7121*GNU* | *'with BFD'*)
7122  symcode='[ABCDGIRSTW]' ;;
7123esac
7124
7125if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7126  # Gets list of data symbols to import.
7127  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7128  # Adjust the below global symbol transforms to fixup imported variables.
7129  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7130  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7131  lt_c_name_lib_hook="\
7132  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7133  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7134else
7135  # Disable hooks by default.
7136  lt_cv_sys_global_symbol_to_import=
7137  lt_cdecl_hook=
7138  lt_c_name_hook=
7139  lt_c_name_lib_hook=
7140fi
7141
7142# Transform an extracted symbol line into a proper C declaration.
7143# Some systems (esp. on ia64) link data and code symbols differently,
7144# so use this general approach.
7145lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7146$lt_cdecl_hook\
7147" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7148" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7149
7150# Transform an extracted symbol line into symbol name and symbol address
7151lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7152$lt_c_name_hook\
7153" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7154" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7155
7156# Transform an extracted symbol line into symbol name with lib prefix and
7157# symbol address.
7158lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7159$lt_c_name_lib_hook\
7160" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7161" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7162" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7163
7164# Handle CRLF in mingw tool chain
7165opt_cr=
7166case $build_os in
7167mingw*)
7168  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7169  ;;
7170esac
7171
7172# Try without a prefix underscore, then with it.
7173for ac_symprfx in "" "_"; do
7174
7175  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7176  symxfrm="\\1 $ac_symprfx\\2 \\2"
7177
7178  # Write the raw and C identifiers.
7179  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7180    # Fake it for dumpbin and say T for any non-static function,
7181    # D for any global variable and I for any imported variable.
7182    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7183    # which start with @ or ?.
7184    lt_cv_sys_global_symbol_pipe="$AWK '"\
7185"     {last_section=section; section=\$ 3};"\
7186"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7187"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7188"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7189"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7190"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7191"     \$ 0!~/External *\|/{next};"\
7192"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7193"     {if(hide[section]) next};"\
7194"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7195"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7196"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7197"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7198"     ' prfx=^$ac_symprfx"
7199  else
7200    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7201  fi
7202  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7203
7204  # Check to see that the pipe works correctly.
7205  pipe_works=no
7206
7207  rm -f conftest*
7208  cat > conftest.$ac_ext <<_LT_EOF
7209#ifdef __cplusplus
7210extern "C" {
7211#endif
7212char nm_test_var;
7213void nm_test_func(void);
7214void nm_test_func(void){}
7215#ifdef __cplusplus
7216}
7217#endif
7218int main(){nm_test_var='a';nm_test_func();return(0);}
7219_LT_EOF
7220
7221  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7222  (eval $ac_compile) 2>&5
7223  ac_status=$?
7224  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7225  test $ac_status = 0; }; then
7226    # Now try to grab the symbols.
7227    nlist=conftest.nm
7228    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7229  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7230  ac_status=$?
7231  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7232  test $ac_status = 0; } && test -s "$nlist"; then
7233      # Try sorting and uniquifying the output.
7234      if sort "$nlist" | uniq > "$nlist"T; then
7235	mv -f "$nlist"T "$nlist"
7236      else
7237	rm -f "$nlist"T
7238      fi
7239
7240      # Make sure that we snagged all the symbols we need.
7241      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7242	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7243	  cat <<_LT_EOF > conftest.$ac_ext
7244/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7245#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7246/* DATA imports from DLLs on WIN32 can't be const, because runtime
7247   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7248# define LT_DLSYM_CONST
7249#elif defined __osf__
7250/* This system does not cope well with relocations in const data.  */
7251# define LT_DLSYM_CONST
7252#else
7253# define LT_DLSYM_CONST const
7254#endif
7255
7256#ifdef __cplusplus
7257extern "C" {
7258#endif
7259
7260_LT_EOF
7261	  # Now generate the symbol file.
7262	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7263
7264	  cat <<_LT_EOF >> conftest.$ac_ext
7265
7266/* The mapping between symbol names and symbols.  */
7267LT_DLSYM_CONST struct {
7268  const char *name;
7269  void       *address;
7270}
7271lt__PROGRAM__LTX_preloaded_symbols[] =
7272{
7273  { "@PROGRAM@", (void *) 0 },
7274_LT_EOF
7275	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7276	  cat <<\_LT_EOF >> conftest.$ac_ext
7277  {0, (void *) 0}
7278};
7279
7280/* This works around a problem in FreeBSD linker */
7281#ifdef FREEBSD_WORKAROUND
7282static const void *lt_preloaded_setup() {
7283  return lt__PROGRAM__LTX_preloaded_symbols;
7284}
7285#endif
7286
7287#ifdef __cplusplus
7288}
7289#endif
7290_LT_EOF
7291	  # Now try linking the two files.
7292	  mv conftest.$ac_objext conftstm.$ac_objext
7293	  lt_globsym_save_LIBS=$LIBS
7294	  lt_globsym_save_CFLAGS=$CFLAGS
7295	  LIBS=conftstm.$ac_objext
7296	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7297	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7298  (eval $ac_link) 2>&5
7299  ac_status=$?
7300  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7301  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7302	    pipe_works=yes
7303	  fi
7304	  LIBS=$lt_globsym_save_LIBS
7305	  CFLAGS=$lt_globsym_save_CFLAGS
7306	else
7307	  echo "cannot find nm_test_func in $nlist" >&5
7308	fi
7309      else
7310	echo "cannot find nm_test_var in $nlist" >&5
7311      fi
7312    else
7313      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7314    fi
7315  else
7316    echo "$progname: failed program was:" >&5
7317    cat conftest.$ac_ext >&5
7318  fi
7319  rm -rf conftest* conftst*
7320
7321  # Do not use the global_symbol_pipe unless it works.
7322  if test yes = "$pipe_works"; then
7323    break
7324  else
7325    lt_cv_sys_global_symbol_pipe=
7326  fi
7327done
7328
7329fi
7330
7331if test -z "$lt_cv_sys_global_symbol_pipe"; then
7332  lt_cv_sys_global_symbol_to_cdecl=
7333fi
7334if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7336$as_echo "failed" >&6; }
7337else
7338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7339$as_echo "ok" >&6; }
7340fi
7341
7342# Response file support.
7343if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7344  nm_file_list_spec='@'
7345elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7346  nm_file_list_spec='@'
7347fi
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7386$as_echo_n "checking for sysroot... " >&6; }
7387
7388# Check whether --with-sysroot was given.
7389if test "${with_sysroot+set}" = set; then :
7390  withval=$with_sysroot;
7391else
7392  with_sysroot=no
7393fi
7394
7395
7396lt_sysroot=
7397case $with_sysroot in #(
7398 yes)
7399   if test yes = "$GCC"; then
7400     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7401   fi
7402   ;; #(
7403 /*)
7404   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7405   ;; #(
7406 no|'')
7407   ;; #(
7408 *)
7409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7410$as_echo "$with_sysroot" >&6; }
7411   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7412   ;;
7413esac
7414
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7416$as_echo "${lt_sysroot:-no}" >&6; }
7417
7418
7419
7420
7421
7422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7423$as_echo_n "checking for a working dd... " >&6; }
7424if ${ac_cv_path_lt_DD+:} false; then :
7425  $as_echo_n "(cached) " >&6
7426else
7427  printf 0123456789abcdef0123456789abcdef >conftest.i
7428cat conftest.i conftest.i >conftest2.i
7429: ${lt_DD:=$DD}
7430if test -z "$lt_DD"; then
7431  ac_path_lt_DD_found=false
7432  # Loop through the user's path and test for each of PROGNAME-LIST
7433  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434for as_dir in $PATH
7435do
7436  IFS=$as_save_IFS
7437  test -z "$as_dir" && as_dir=.
7438    for ac_prog in dd; do
7439    for ac_exec_ext in '' $ac_executable_extensions; do
7440      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7441      as_fn_executable_p "$ac_path_lt_DD" || continue
7442if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7443  cmp -s conftest.i conftest.out \
7444  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7445fi
7446      $ac_path_lt_DD_found && break 3
7447    done
7448  done
7449  done
7450IFS=$as_save_IFS
7451  if test -z "$ac_cv_path_lt_DD"; then
7452    :
7453  fi
7454else
7455  ac_cv_path_lt_DD=$lt_DD
7456fi
7457
7458rm -f conftest.i conftest2.i conftest.out
7459fi
7460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7461$as_echo "$ac_cv_path_lt_DD" >&6; }
7462
7463
7464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7465$as_echo_n "checking how to truncate binary pipes... " >&6; }
7466if ${lt_cv_truncate_bin+:} false; then :
7467  $as_echo_n "(cached) " >&6
7468else
7469  printf 0123456789abcdef0123456789abcdef >conftest.i
7470cat conftest.i conftest.i >conftest2.i
7471lt_cv_truncate_bin=
7472if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7473  cmp -s conftest.i conftest.out \
7474  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7475fi
7476rm -f conftest.i conftest2.i conftest.out
7477test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7478fi
7479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7480$as_echo "$lt_cv_truncate_bin" >&6; }
7481
7482
7483
7484
7485
7486
7487
7488# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7489func_cc_basename ()
7490{
7491    for cc_temp in $*""; do
7492      case $cc_temp in
7493        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7494        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7495        \-*) ;;
7496        *) break;;
7497      esac
7498    done
7499    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7500}
7501
7502# Check whether --enable-libtool-lock was given.
7503if test "${enable_libtool_lock+set}" = set; then :
7504  enableval=$enable_libtool_lock;
7505fi
7506
7507test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7508
7509# Some flags need to be propagated to the compiler or linker for good
7510# libtool support.
7511case $host in
7512ia64-*-hpux*)
7513  # Find out what ABI is being produced by ac_compile, and set mode
7514  # options accordingly.
7515  echo 'int i;' > conftest.$ac_ext
7516  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7517  (eval $ac_compile) 2>&5
7518  ac_status=$?
7519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7520  test $ac_status = 0; }; then
7521    case `/usr/bin/file conftest.$ac_objext` in
7522      *ELF-32*)
7523	HPUX_IA64_MODE=32
7524	;;
7525      *ELF-64*)
7526	HPUX_IA64_MODE=64
7527	;;
7528    esac
7529  fi
7530  rm -rf conftest*
7531  ;;
7532*-*-irix6*)
7533  # Find out what ABI is being produced by ac_compile, and set linker
7534  # options accordingly.
7535  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7536  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7537  (eval $ac_compile) 2>&5
7538  ac_status=$?
7539  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7540  test $ac_status = 0; }; then
7541    if test yes = "$lt_cv_prog_gnu_ld"; then
7542      case `/usr/bin/file conftest.$ac_objext` in
7543	*32-bit*)
7544	  LD="${LD-ld} -melf32bsmip"
7545	  ;;
7546	*N32*)
7547	  LD="${LD-ld} -melf32bmipn32"
7548	  ;;
7549	*64-bit*)
7550	  LD="${LD-ld} -melf64bmip"
7551	;;
7552      esac
7553    else
7554      case `/usr/bin/file conftest.$ac_objext` in
7555	*32-bit*)
7556	  LD="${LD-ld} -32"
7557	  ;;
7558	*N32*)
7559	  LD="${LD-ld} -n32"
7560	  ;;
7561	*64-bit*)
7562	  LD="${LD-ld} -64"
7563	  ;;
7564      esac
7565    fi
7566  fi
7567  rm -rf conftest*
7568  ;;
7569
7570mips64*-*linux*)
7571  # Find out what ABI is being produced by ac_compile, and set linker
7572  # options accordingly.
7573  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7574  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7575  (eval $ac_compile) 2>&5
7576  ac_status=$?
7577  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7578  test $ac_status = 0; }; then
7579    emul=elf
7580    case `/usr/bin/file conftest.$ac_objext` in
7581      *32-bit*)
7582	emul="${emul}32"
7583	;;
7584      *64-bit*)
7585	emul="${emul}64"
7586	;;
7587    esac
7588    case `/usr/bin/file conftest.$ac_objext` in
7589      *MSB*)
7590	emul="${emul}btsmip"
7591	;;
7592      *LSB*)
7593	emul="${emul}ltsmip"
7594	;;
7595    esac
7596    case `/usr/bin/file conftest.$ac_objext` in
7597      *N32*)
7598	emul="${emul}n32"
7599	;;
7600    esac
7601    LD="${LD-ld} -m $emul"
7602  fi
7603  rm -rf conftest*
7604  ;;
7605
7606x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7607s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7608  # Find out what ABI is being produced by ac_compile, and set linker
7609  # options accordingly.  Note that the listed cases only cover the
7610  # situations where additional linker options are needed (such as when
7611  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7612  # vice versa); the common cases where no linker options are needed do
7613  # not appear in the list.
7614  echo 'int i;' > conftest.$ac_ext
7615  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7616  (eval $ac_compile) 2>&5
7617  ac_status=$?
7618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7619  test $ac_status = 0; }; then
7620    case `/usr/bin/file conftest.o` in
7621      *32-bit*)
7622	case $host in
7623	  x86_64-*kfreebsd*-gnu)
7624	    LD="${LD-ld} -m elf_i386_fbsd"
7625	    ;;
7626	  x86_64-*linux*)
7627	    case `/usr/bin/file conftest.o` in
7628	      *x86-64*)
7629		LD="${LD-ld} -m elf32_x86_64"
7630		;;
7631	      *)
7632		LD="${LD-ld} -m elf_i386"
7633		;;
7634	    esac
7635	    ;;
7636	  powerpc64le-*linux*)
7637	    LD="${LD-ld} -m elf32lppclinux"
7638	    ;;
7639	  powerpc64-*linux*)
7640	    LD="${LD-ld} -m elf32ppclinux"
7641	    ;;
7642	  s390x-*linux*)
7643	    LD="${LD-ld} -m elf_s390"
7644	    ;;
7645	  sparc64-*linux*)
7646	    LD="${LD-ld} -m elf32_sparc"
7647	    ;;
7648	esac
7649	;;
7650      *64-bit*)
7651	case $host in
7652	  x86_64-*kfreebsd*-gnu)
7653	    LD="${LD-ld} -m elf_x86_64_fbsd"
7654	    ;;
7655	  x86_64-*linux*)
7656	    LD="${LD-ld} -m elf_x86_64"
7657	    ;;
7658	  powerpcle-*linux*)
7659	    LD="${LD-ld} -m elf64lppc"
7660	    ;;
7661	  powerpc-*linux*)
7662	    LD="${LD-ld} -m elf64ppc"
7663	    ;;
7664	  s390*-*linux*|s390*-*tpf*)
7665	    LD="${LD-ld} -m elf64_s390"
7666	    ;;
7667	  sparc*-*linux*)
7668	    LD="${LD-ld} -m elf64_sparc"
7669	    ;;
7670	esac
7671	;;
7672    esac
7673  fi
7674  rm -rf conftest*
7675  ;;
7676
7677*-*-sco3.2v5*)
7678  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7679  SAVE_CFLAGS=$CFLAGS
7680  CFLAGS="$CFLAGS -belf"
7681  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7682$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7683if ${lt_cv_cc_needs_belf+:} false; then :
7684  $as_echo_n "(cached) " >&6
7685else
7686  ac_ext=c
7687ac_cpp='$CPP $CPPFLAGS'
7688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7690ac_compiler_gnu=$ac_cv_c_compiler_gnu
7691
7692     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693/* end confdefs.h.  */
7694
7695int
7696main ()
7697{
7698
7699  ;
7700  return 0;
7701}
7702_ACEOF
7703if ac_fn_c_try_link "$LINENO"; then :
7704  lt_cv_cc_needs_belf=yes
7705else
7706  lt_cv_cc_needs_belf=no
7707fi
7708rm -f core conftest.err conftest.$ac_objext \
7709    conftest$ac_exeext conftest.$ac_ext
7710     ac_ext=c
7711ac_cpp='$CPP $CPPFLAGS'
7712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7714ac_compiler_gnu=$ac_cv_c_compiler_gnu
7715
7716fi
7717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7718$as_echo "$lt_cv_cc_needs_belf" >&6; }
7719  if test yes != "$lt_cv_cc_needs_belf"; then
7720    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7721    CFLAGS=$SAVE_CFLAGS
7722  fi
7723  ;;
7724*-*solaris*)
7725  # Find out what ABI is being produced by ac_compile, and set linker
7726  # options accordingly.
7727  echo 'int i;' > conftest.$ac_ext
7728  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7729  (eval $ac_compile) 2>&5
7730  ac_status=$?
7731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7732  test $ac_status = 0; }; then
7733    case `/usr/bin/file conftest.o` in
7734    *64-bit*)
7735      case $lt_cv_prog_gnu_ld in
7736      yes*)
7737        case $host in
7738        i?86-*-solaris*|x86_64-*-solaris*)
7739          LD="${LD-ld} -m elf_x86_64"
7740          ;;
7741        sparc*-*-solaris*)
7742          LD="${LD-ld} -m elf64_sparc"
7743          ;;
7744        esac
7745        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7746        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7747          LD=${LD-ld}_sol2
7748        fi
7749        ;;
7750      *)
7751	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7752	  LD="${LD-ld} -64"
7753	fi
7754	;;
7755      esac
7756      ;;
7757    esac
7758  fi
7759  rm -rf conftest*
7760  ;;
7761esac
7762
7763need_locks=$enable_libtool_lock
7764
7765if test -n "$ac_tool_prefix"; then
7766  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7767set dummy ${ac_tool_prefix}mt; ac_word=$2
7768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769$as_echo_n "checking for $ac_word... " >&6; }
7770if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7771  $as_echo_n "(cached) " >&6
7772else
7773  if test -n "$MANIFEST_TOOL"; then
7774  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7775else
7776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777for as_dir in $PATH
7778do
7779  IFS=$as_save_IFS
7780  test -z "$as_dir" && as_dir=.
7781    for ac_exec_ext in '' $ac_executable_extensions; do
7782  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7783    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7784    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7785    break 2
7786  fi
7787done
7788  done
7789IFS=$as_save_IFS
7790
7791fi
7792fi
7793MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7794if test -n "$MANIFEST_TOOL"; then
7795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7796$as_echo "$MANIFEST_TOOL" >&6; }
7797else
7798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799$as_echo "no" >&6; }
7800fi
7801
7802
7803fi
7804if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7805  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7806  # Extract the first word of "mt", so it can be a program name with args.
7807set dummy mt; ac_word=$2
7808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7809$as_echo_n "checking for $ac_word... " >&6; }
7810if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7811  $as_echo_n "(cached) " >&6
7812else
7813  if test -n "$ac_ct_MANIFEST_TOOL"; then
7814  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7815else
7816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817for as_dir in $PATH
7818do
7819  IFS=$as_save_IFS
7820  test -z "$as_dir" && as_dir=.
7821    for ac_exec_ext in '' $ac_executable_extensions; do
7822  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7823    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7824    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7825    break 2
7826  fi
7827done
7828  done
7829IFS=$as_save_IFS
7830
7831fi
7832fi
7833ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7834if test -n "$ac_ct_MANIFEST_TOOL"; then
7835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7836$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7837else
7838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839$as_echo "no" >&6; }
7840fi
7841
7842  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7843    MANIFEST_TOOL=":"
7844  else
7845    case $cross_compiling:$ac_tool_warned in
7846yes:)
7847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7849ac_tool_warned=yes ;;
7850esac
7851    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7852  fi
7853else
7854  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7855fi
7856
7857test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7859$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7860if ${lt_cv_path_mainfest_tool+:} false; then :
7861  $as_echo_n "(cached) " >&6
7862else
7863  lt_cv_path_mainfest_tool=no
7864  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7865  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7866  cat conftest.err >&5
7867  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7868    lt_cv_path_mainfest_tool=yes
7869  fi
7870  rm -f conftest*
7871fi
7872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7873$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7874if test yes != "$lt_cv_path_mainfest_tool"; then
7875  MANIFEST_TOOL=:
7876fi
7877
7878
7879
7880
7881
7882
7883  case $host_os in
7884    rhapsody* | darwin*)
7885    if test -n "$ac_tool_prefix"; then
7886  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7887set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7889$as_echo_n "checking for $ac_word... " >&6; }
7890if ${ac_cv_prog_DSYMUTIL+:} false; then :
7891  $as_echo_n "(cached) " >&6
7892else
7893  if test -n "$DSYMUTIL"; then
7894  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7895else
7896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897for as_dir in $PATH
7898do
7899  IFS=$as_save_IFS
7900  test -z "$as_dir" && as_dir=.
7901    for ac_exec_ext in '' $ac_executable_extensions; do
7902  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7903    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7904    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7905    break 2
7906  fi
7907done
7908  done
7909IFS=$as_save_IFS
7910
7911fi
7912fi
7913DSYMUTIL=$ac_cv_prog_DSYMUTIL
7914if test -n "$DSYMUTIL"; then
7915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7916$as_echo "$DSYMUTIL" >&6; }
7917else
7918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919$as_echo "no" >&6; }
7920fi
7921
7922
7923fi
7924if test -z "$ac_cv_prog_DSYMUTIL"; then
7925  ac_ct_DSYMUTIL=$DSYMUTIL
7926  # Extract the first word of "dsymutil", so it can be a program name with args.
7927set dummy dsymutil; ac_word=$2
7928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7929$as_echo_n "checking for $ac_word... " >&6; }
7930if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7931  $as_echo_n "(cached) " >&6
7932else
7933  if test -n "$ac_ct_DSYMUTIL"; then
7934  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7935else
7936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937for as_dir in $PATH
7938do
7939  IFS=$as_save_IFS
7940  test -z "$as_dir" && as_dir=.
7941    for ac_exec_ext in '' $ac_executable_extensions; do
7942  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7943    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7944    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7945    break 2
7946  fi
7947done
7948  done
7949IFS=$as_save_IFS
7950
7951fi
7952fi
7953ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7954if test -n "$ac_ct_DSYMUTIL"; then
7955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7956$as_echo "$ac_ct_DSYMUTIL" >&6; }
7957else
7958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959$as_echo "no" >&6; }
7960fi
7961
7962  if test "x$ac_ct_DSYMUTIL" = x; then
7963    DSYMUTIL=":"
7964  else
7965    case $cross_compiling:$ac_tool_warned in
7966yes:)
7967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7969ac_tool_warned=yes ;;
7970esac
7971    DSYMUTIL=$ac_ct_DSYMUTIL
7972  fi
7973else
7974  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7975fi
7976
7977    if test -n "$ac_tool_prefix"; then
7978  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7979set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981$as_echo_n "checking for $ac_word... " >&6; }
7982if ${ac_cv_prog_NMEDIT+:} false; then :
7983  $as_echo_n "(cached) " >&6
7984else
7985  if test -n "$NMEDIT"; then
7986  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7987else
7988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989for as_dir in $PATH
7990do
7991  IFS=$as_save_IFS
7992  test -z "$as_dir" && as_dir=.
7993    for ac_exec_ext in '' $ac_executable_extensions; do
7994  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7995    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7996    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997    break 2
7998  fi
7999done
8000  done
8001IFS=$as_save_IFS
8002
8003fi
8004fi
8005NMEDIT=$ac_cv_prog_NMEDIT
8006if test -n "$NMEDIT"; then
8007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8008$as_echo "$NMEDIT" >&6; }
8009else
8010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011$as_echo "no" >&6; }
8012fi
8013
8014
8015fi
8016if test -z "$ac_cv_prog_NMEDIT"; then
8017  ac_ct_NMEDIT=$NMEDIT
8018  # Extract the first word of "nmedit", so it can be a program name with args.
8019set dummy nmedit; ac_word=$2
8020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8021$as_echo_n "checking for $ac_word... " >&6; }
8022if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8023  $as_echo_n "(cached) " >&6
8024else
8025  if test -n "$ac_ct_NMEDIT"; then
8026  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8027else
8028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029for as_dir in $PATH
8030do
8031  IFS=$as_save_IFS
8032  test -z "$as_dir" && as_dir=.
8033    for ac_exec_ext in '' $ac_executable_extensions; do
8034  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8035    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8036    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8037    break 2
8038  fi
8039done
8040  done
8041IFS=$as_save_IFS
8042
8043fi
8044fi
8045ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8046if test -n "$ac_ct_NMEDIT"; then
8047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8048$as_echo "$ac_ct_NMEDIT" >&6; }
8049else
8050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051$as_echo "no" >&6; }
8052fi
8053
8054  if test "x$ac_ct_NMEDIT" = x; then
8055    NMEDIT=":"
8056  else
8057    case $cross_compiling:$ac_tool_warned in
8058yes:)
8059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8061ac_tool_warned=yes ;;
8062esac
8063    NMEDIT=$ac_ct_NMEDIT
8064  fi
8065else
8066  NMEDIT="$ac_cv_prog_NMEDIT"
8067fi
8068
8069    if test -n "$ac_tool_prefix"; then
8070  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8071set dummy ${ac_tool_prefix}lipo; ac_word=$2
8072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8073$as_echo_n "checking for $ac_word... " >&6; }
8074if ${ac_cv_prog_LIPO+:} false; then :
8075  $as_echo_n "(cached) " >&6
8076else
8077  if test -n "$LIPO"; then
8078  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8079else
8080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081for as_dir in $PATH
8082do
8083  IFS=$as_save_IFS
8084  test -z "$as_dir" && as_dir=.
8085    for ac_exec_ext in '' $ac_executable_extensions; do
8086  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8087    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8088    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8089    break 2
8090  fi
8091done
8092  done
8093IFS=$as_save_IFS
8094
8095fi
8096fi
8097LIPO=$ac_cv_prog_LIPO
8098if test -n "$LIPO"; then
8099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8100$as_echo "$LIPO" >&6; }
8101else
8102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103$as_echo "no" >&6; }
8104fi
8105
8106
8107fi
8108if test -z "$ac_cv_prog_LIPO"; then
8109  ac_ct_LIPO=$LIPO
8110  # Extract the first word of "lipo", so it can be a program name with args.
8111set dummy lipo; ac_word=$2
8112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8113$as_echo_n "checking for $ac_word... " >&6; }
8114if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8115  $as_echo_n "(cached) " >&6
8116else
8117  if test -n "$ac_ct_LIPO"; then
8118  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8119else
8120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8121for as_dir in $PATH
8122do
8123  IFS=$as_save_IFS
8124  test -z "$as_dir" && as_dir=.
8125    for ac_exec_ext in '' $ac_executable_extensions; do
8126  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8127    ac_cv_prog_ac_ct_LIPO="lipo"
8128    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8129    break 2
8130  fi
8131done
8132  done
8133IFS=$as_save_IFS
8134
8135fi
8136fi
8137ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8138if test -n "$ac_ct_LIPO"; then
8139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8140$as_echo "$ac_ct_LIPO" >&6; }
8141else
8142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8143$as_echo "no" >&6; }
8144fi
8145
8146  if test "x$ac_ct_LIPO" = x; then
8147    LIPO=":"
8148  else
8149    case $cross_compiling:$ac_tool_warned in
8150yes:)
8151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8153ac_tool_warned=yes ;;
8154esac
8155    LIPO=$ac_ct_LIPO
8156  fi
8157else
8158  LIPO="$ac_cv_prog_LIPO"
8159fi
8160
8161    if test -n "$ac_tool_prefix"; then
8162  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8163set dummy ${ac_tool_prefix}otool; ac_word=$2
8164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8165$as_echo_n "checking for $ac_word... " >&6; }
8166if ${ac_cv_prog_OTOOL+:} false; then :
8167  $as_echo_n "(cached) " >&6
8168else
8169  if test -n "$OTOOL"; then
8170  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8171else
8172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173for as_dir in $PATH
8174do
8175  IFS=$as_save_IFS
8176  test -z "$as_dir" && as_dir=.
8177    for ac_exec_ext in '' $ac_executable_extensions; do
8178  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8179    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8180    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8181    break 2
8182  fi
8183done
8184  done
8185IFS=$as_save_IFS
8186
8187fi
8188fi
8189OTOOL=$ac_cv_prog_OTOOL
8190if test -n "$OTOOL"; then
8191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8192$as_echo "$OTOOL" >&6; }
8193else
8194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195$as_echo "no" >&6; }
8196fi
8197
8198
8199fi
8200if test -z "$ac_cv_prog_OTOOL"; then
8201  ac_ct_OTOOL=$OTOOL
8202  # Extract the first word of "otool", so it can be a program name with args.
8203set dummy otool; ac_word=$2
8204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8205$as_echo_n "checking for $ac_word... " >&6; }
8206if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8207  $as_echo_n "(cached) " >&6
8208else
8209  if test -n "$ac_ct_OTOOL"; then
8210  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8211else
8212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213for as_dir in $PATH
8214do
8215  IFS=$as_save_IFS
8216  test -z "$as_dir" && as_dir=.
8217    for ac_exec_ext in '' $ac_executable_extensions; do
8218  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8219    ac_cv_prog_ac_ct_OTOOL="otool"
8220    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8221    break 2
8222  fi
8223done
8224  done
8225IFS=$as_save_IFS
8226
8227fi
8228fi
8229ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8230if test -n "$ac_ct_OTOOL"; then
8231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8232$as_echo "$ac_ct_OTOOL" >&6; }
8233else
8234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8235$as_echo "no" >&6; }
8236fi
8237
8238  if test "x$ac_ct_OTOOL" = x; then
8239    OTOOL=":"
8240  else
8241    case $cross_compiling:$ac_tool_warned in
8242yes:)
8243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8245ac_tool_warned=yes ;;
8246esac
8247    OTOOL=$ac_ct_OTOOL
8248  fi
8249else
8250  OTOOL="$ac_cv_prog_OTOOL"
8251fi
8252
8253    if test -n "$ac_tool_prefix"; then
8254  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8255set dummy ${ac_tool_prefix}otool64; ac_word=$2
8256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8257$as_echo_n "checking for $ac_word... " >&6; }
8258if ${ac_cv_prog_OTOOL64+:} false; then :
8259  $as_echo_n "(cached) " >&6
8260else
8261  if test -n "$OTOOL64"; then
8262  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8263else
8264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8265for as_dir in $PATH
8266do
8267  IFS=$as_save_IFS
8268  test -z "$as_dir" && as_dir=.
8269    for ac_exec_ext in '' $ac_executable_extensions; do
8270  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8271    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8272    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8273    break 2
8274  fi
8275done
8276  done
8277IFS=$as_save_IFS
8278
8279fi
8280fi
8281OTOOL64=$ac_cv_prog_OTOOL64
8282if test -n "$OTOOL64"; then
8283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8284$as_echo "$OTOOL64" >&6; }
8285else
8286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287$as_echo "no" >&6; }
8288fi
8289
8290
8291fi
8292if test -z "$ac_cv_prog_OTOOL64"; then
8293  ac_ct_OTOOL64=$OTOOL64
8294  # Extract the first word of "otool64", so it can be a program name with args.
8295set dummy otool64; ac_word=$2
8296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297$as_echo_n "checking for $ac_word... " >&6; }
8298if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8299  $as_echo_n "(cached) " >&6
8300else
8301  if test -n "$ac_ct_OTOOL64"; then
8302  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8303else
8304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305for as_dir in $PATH
8306do
8307  IFS=$as_save_IFS
8308  test -z "$as_dir" && as_dir=.
8309    for ac_exec_ext in '' $ac_executable_extensions; do
8310  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8311    ac_cv_prog_ac_ct_OTOOL64="otool64"
8312    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8313    break 2
8314  fi
8315done
8316  done
8317IFS=$as_save_IFS
8318
8319fi
8320fi
8321ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8322if test -n "$ac_ct_OTOOL64"; then
8323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8324$as_echo "$ac_ct_OTOOL64" >&6; }
8325else
8326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327$as_echo "no" >&6; }
8328fi
8329
8330  if test "x$ac_ct_OTOOL64" = x; then
8331    OTOOL64=":"
8332  else
8333    case $cross_compiling:$ac_tool_warned in
8334yes:)
8335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8337ac_tool_warned=yes ;;
8338esac
8339    OTOOL64=$ac_ct_OTOOL64
8340  fi
8341else
8342  OTOOL64="$ac_cv_prog_OTOOL64"
8343fi
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8372$as_echo_n "checking for -single_module linker flag... " >&6; }
8373if ${lt_cv_apple_cc_single_mod+:} false; then :
8374  $as_echo_n "(cached) " >&6
8375else
8376  lt_cv_apple_cc_single_mod=no
8377      if test -z "$LT_MULTI_MODULE"; then
8378	# By default we will add the -single_module flag. You can override
8379	# by either setting the environment variable LT_MULTI_MODULE
8380	# non-empty at configure time, or by adding -multi_module to the
8381	# link flags.
8382	rm -rf libconftest.dylib*
8383	echo "int foo(void){return 1;}" > conftest.c
8384	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8385-dynamiclib -Wl,-single_module conftest.c" >&5
8386	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8387	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8388        _lt_result=$?
8389	# If there is a non-empty error log, and "single_module"
8390	# appears in it, assume the flag caused a linker warning
8391        if test -s conftest.err && $GREP single_module conftest.err; then
8392	  cat conftest.err >&5
8393	# Otherwise, if the output was created with a 0 exit code from
8394	# the compiler, it worked.
8395	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8396	  lt_cv_apple_cc_single_mod=yes
8397	else
8398	  cat conftest.err >&5
8399	fi
8400	rm -rf libconftest.dylib*
8401	rm -f conftest.*
8402      fi
8403fi
8404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8405$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8406
8407    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8408$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8409if ${lt_cv_ld_exported_symbols_list+:} false; then :
8410  $as_echo_n "(cached) " >&6
8411else
8412  lt_cv_ld_exported_symbols_list=no
8413      save_LDFLAGS=$LDFLAGS
8414      echo "_main" > conftest.sym
8415      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8416      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8417/* end confdefs.h.  */
8418
8419int
8420main ()
8421{
8422
8423  ;
8424  return 0;
8425}
8426_ACEOF
8427if ac_fn_c_try_link "$LINENO"; then :
8428  lt_cv_ld_exported_symbols_list=yes
8429else
8430  lt_cv_ld_exported_symbols_list=no
8431fi
8432rm -f core conftest.err conftest.$ac_objext \
8433    conftest$ac_exeext conftest.$ac_ext
8434	LDFLAGS=$save_LDFLAGS
8435
8436fi
8437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8438$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8439
8440    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8441$as_echo_n "checking for -force_load linker flag... " >&6; }
8442if ${lt_cv_ld_force_load+:} false; then :
8443  $as_echo_n "(cached) " >&6
8444else
8445  lt_cv_ld_force_load=no
8446      cat > conftest.c << _LT_EOF
8447int forced_loaded() { return 2;}
8448_LT_EOF
8449      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8450      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8451      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8452      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8453      echo "$RANLIB libconftest.a" >&5
8454      $RANLIB libconftest.a 2>&5
8455      cat > conftest.c << _LT_EOF
8456int main() { return 0;}
8457_LT_EOF
8458      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8459      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8460      _lt_result=$?
8461      if test -s conftest.err && $GREP force_load conftest.err; then
8462	cat conftest.err >&5
8463      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8464	lt_cv_ld_force_load=yes
8465      else
8466	cat conftest.err >&5
8467      fi
8468        rm -f conftest.err libconftest.a conftest conftest.c
8469        rm -rf conftest.dSYM
8470
8471fi
8472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8473$as_echo "$lt_cv_ld_force_load" >&6; }
8474    case $host_os in
8475    rhapsody* | darwin1.[012])
8476      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8477    darwin1.*)
8478      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8479    darwin*) # darwin 5.x on
8480      # if running on 10.5 or later, the deployment target defaults
8481      # to the OS version, if on x86, and 10.4, the deployment
8482      # target defaults to 10.4. Don't you love it?
8483      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8484	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8485	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8486	10.[012][,.]*)
8487	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8488	10.*)
8489	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8490      esac
8491    ;;
8492  esac
8493    if test yes = "$lt_cv_apple_cc_single_mod"; then
8494      _lt_dar_single_mod='$single_module'
8495    fi
8496    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8497      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8498    else
8499      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8500    fi
8501    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8502      _lt_dsymutil='~$DSYMUTIL $lib || :'
8503    else
8504      _lt_dsymutil=
8505    fi
8506    ;;
8507  esac
8508
8509# func_munge_path_list VARIABLE PATH
8510# -----------------------------------
8511# VARIABLE is name of variable containing _space_ separated list of
8512# directories to be munged by the contents of PATH, which is string
8513# having a format:
8514# "DIR[:DIR]:"
8515#       string "DIR[ DIR]" will be prepended to VARIABLE
8516# ":DIR[:DIR]"
8517#       string "DIR[ DIR]" will be appended to VARIABLE
8518# "DIRP[:DIRP]::[DIRA:]DIRA"
8519#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8520#       "DIRA[ DIRA]" will be appended to VARIABLE
8521# "DIR[:DIR]"
8522#       VARIABLE will be replaced by "DIR[ DIR]"
8523func_munge_path_list ()
8524{
8525    case x$2 in
8526    x)
8527        ;;
8528    *:)
8529        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8530        ;;
8531    x:*)
8532        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8533        ;;
8534    *::*)
8535        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8536        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8537        ;;
8538    *)
8539        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8540        ;;
8541    esac
8542}
8543
8544for ac_header in dlfcn.h
8545do :
8546  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8547"
8548if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8549  cat >>confdefs.h <<_ACEOF
8550#define HAVE_DLFCN_H 1
8551_ACEOF
8552
8553fi
8554
8555done
8556
8557
8558
8559
8560
8561# Set options
8562
8563
8564
8565        enable_dlopen=no
8566
8567
8568
8569            # Check whether --enable-shared was given.
8570if test "${enable_shared+set}" = set; then :
8571  enableval=$enable_shared; p=${PACKAGE-default}
8572    case $enableval in
8573    yes) enable_shared=yes ;;
8574    no) enable_shared=no ;;
8575    *)
8576      enable_shared=no
8577      # Look at the argument we got.  We use all the common list separators.
8578      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8579      for pkg in $enableval; do
8580	IFS=$lt_save_ifs
8581	if test "X$pkg" = "X$p"; then
8582	  enable_shared=yes
8583	fi
8584      done
8585      IFS=$lt_save_ifs
8586      ;;
8587    esac
8588else
8589  enable_shared=yes
8590fi
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600  # Check whether --enable-static was given.
8601if test "${enable_static+set}" = set; then :
8602  enableval=$enable_static; p=${PACKAGE-default}
8603    case $enableval in
8604    yes) enable_static=yes ;;
8605    no) enable_static=no ;;
8606    *)
8607     enable_static=no
8608      # Look at the argument we got.  We use all the common list separators.
8609      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8610      for pkg in $enableval; do
8611	IFS=$lt_save_ifs
8612	if test "X$pkg" = "X$p"; then
8613	  enable_static=yes
8614	fi
8615      done
8616      IFS=$lt_save_ifs
8617      ;;
8618    esac
8619else
8620  enable_static=yes
8621fi
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632# Check whether --with-pic was given.
8633if test "${with_pic+set}" = set; then :
8634  withval=$with_pic; lt_p=${PACKAGE-default}
8635    case $withval in
8636    yes|no) pic_mode=$withval ;;
8637    *)
8638      pic_mode=default
8639      # Look at the argument we got.  We use all the common list separators.
8640      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8641      for lt_pkg in $withval; do
8642	IFS=$lt_save_ifs
8643	if test "X$lt_pkg" = "X$lt_p"; then
8644	  pic_mode=yes
8645	fi
8646      done
8647      IFS=$lt_save_ifs
8648      ;;
8649    esac
8650else
8651  pic_mode=default
8652fi
8653
8654
8655
8656
8657
8658
8659
8660
8661  # Check whether --enable-fast-install was given.
8662if test "${enable_fast_install+set}" = set; then :
8663  enableval=$enable_fast_install; p=${PACKAGE-default}
8664    case $enableval in
8665    yes) enable_fast_install=yes ;;
8666    no) enable_fast_install=no ;;
8667    *)
8668      enable_fast_install=no
8669      # Look at the argument we got.  We use all the common list separators.
8670      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8671      for pkg in $enableval; do
8672	IFS=$lt_save_ifs
8673	if test "X$pkg" = "X$p"; then
8674	  enable_fast_install=yes
8675	fi
8676      done
8677      IFS=$lt_save_ifs
8678      ;;
8679    esac
8680else
8681  enable_fast_install=yes
8682fi
8683
8684
8685
8686
8687
8688
8689
8690
8691  shared_archive_member_spec=
8692case $host,$enable_shared in
8693power*-*-aix[5-9]*,yes)
8694  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8695$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8696
8697# Check whether --with-aix-soname was given.
8698if test "${with_aix_soname+set}" = set; then :
8699  withval=$with_aix_soname; case $withval in
8700    aix|svr4|both)
8701      ;;
8702    *)
8703      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8704      ;;
8705    esac
8706    lt_cv_with_aix_soname=$with_aix_soname
8707else
8708  if ${lt_cv_with_aix_soname+:} false; then :
8709  $as_echo_n "(cached) " >&6
8710else
8711  lt_cv_with_aix_soname=aix
8712fi
8713
8714    with_aix_soname=$lt_cv_with_aix_soname
8715fi
8716
8717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8718$as_echo "$with_aix_soname" >&6; }
8719  if test aix != "$with_aix_soname"; then
8720    # For the AIX way of multilib, we name the shared archive member
8721    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8722    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8723    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8724    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8725    if test 64 = "${OBJECT_MODE-32}"; then
8726      shared_archive_member_spec=shr_64
8727    else
8728      shared_archive_member_spec=shr
8729    fi
8730  fi
8731  ;;
8732*)
8733  with_aix_soname=aix
8734  ;;
8735esac
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746# This can be used to rebuild libtool when needed
8747LIBTOOL_DEPS=$ltmain
8748
8749# Always use our own libtool.
8750LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781test -z "$LN_S" && LN_S="ln -s"
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796if test -n "${ZSH_VERSION+set}"; then
8797   setopt NO_GLOB_SUBST
8798fi
8799
8800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8801$as_echo_n "checking for objdir... " >&6; }
8802if ${lt_cv_objdir+:} false; then :
8803  $as_echo_n "(cached) " >&6
8804else
8805  rm -f .libs 2>/dev/null
8806mkdir .libs 2>/dev/null
8807if test -d .libs; then
8808  lt_cv_objdir=.libs
8809else
8810  # MS-DOS does not allow filenames that begin with a dot.
8811  lt_cv_objdir=_libs
8812fi
8813rmdir .libs 2>/dev/null
8814fi
8815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8816$as_echo "$lt_cv_objdir" >&6; }
8817objdir=$lt_cv_objdir
8818
8819
8820
8821
8822
8823cat >>confdefs.h <<_ACEOF
8824#define LT_OBJDIR "$lt_cv_objdir/"
8825_ACEOF
8826
8827
8828
8829
8830case $host_os in
8831aix3*)
8832  # AIX sometimes has problems with the GCC collect2 program.  For some
8833  # reason, if we set the COLLECT_NAMES environment variable, the problems
8834  # vanish in a puff of smoke.
8835  if test set != "${COLLECT_NAMES+set}"; then
8836    COLLECT_NAMES=
8837    export COLLECT_NAMES
8838  fi
8839  ;;
8840esac
8841
8842# Global variables:
8843ofile=libtool
8844can_build_shared=yes
8845
8846# All known linkers require a '.a' archive for static linking (except MSVC and
8847# ICC, which need '.lib').
8848libext=a
8849
8850with_gnu_ld=$lt_cv_prog_gnu_ld
8851
8852old_CC=$CC
8853old_CFLAGS=$CFLAGS
8854
8855# Set sane defaults for various variables
8856test -z "$CC" && CC=cc
8857test -z "$LTCC" && LTCC=$CC
8858test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8859test -z "$LD" && LD=ld
8860test -z "$ac_objext" && ac_objext=o
8861
8862func_cc_basename $compiler
8863cc_basename=$func_cc_basename_result
8864
8865
8866# Only perform the check for file, if the check method requires it
8867test -z "$MAGIC_CMD" && MAGIC_CMD=file
8868case $deplibs_check_method in
8869file_magic*)
8870  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8871    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8872$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8873if ${lt_cv_path_MAGIC_CMD+:} false; then :
8874  $as_echo_n "(cached) " >&6
8875else
8876  case $MAGIC_CMD in
8877[\\/*] |  ?:[\\/]*)
8878  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8879  ;;
8880*)
8881  lt_save_MAGIC_CMD=$MAGIC_CMD
8882  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8883  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8884  for ac_dir in $ac_dummy; do
8885    IFS=$lt_save_ifs
8886    test -z "$ac_dir" && ac_dir=.
8887    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8888      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8889      if test -n "$file_magic_test_file"; then
8890	case $deplibs_check_method in
8891	"file_magic "*)
8892	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8893	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8894	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8895	    $EGREP "$file_magic_regex" > /dev/null; then
8896	    :
8897	  else
8898	    cat <<_LT_EOF 1>&2
8899
8900*** Warning: the command libtool uses to detect shared libraries,
8901*** $file_magic_cmd, produces output that libtool cannot recognize.
8902*** The result is that libtool may fail to recognize shared libraries
8903*** as such.  This will affect the creation of libtool libraries that
8904*** depend on shared libraries, but programs linked with such libtool
8905*** libraries will work regardless of this problem.  Nevertheless, you
8906*** may want to report the problem to your system manager and/or to
8907*** bug-libtool@gnu.org
8908
8909_LT_EOF
8910	  fi ;;
8911	esac
8912      fi
8913      break
8914    fi
8915  done
8916  IFS=$lt_save_ifs
8917  MAGIC_CMD=$lt_save_MAGIC_CMD
8918  ;;
8919esac
8920fi
8921
8922MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8923if test -n "$MAGIC_CMD"; then
8924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8925$as_echo "$MAGIC_CMD" >&6; }
8926else
8927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8928$as_echo "no" >&6; }
8929fi
8930
8931
8932
8933
8934
8935if test -z "$lt_cv_path_MAGIC_CMD"; then
8936  if test -n "$ac_tool_prefix"; then
8937    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8938$as_echo_n "checking for file... " >&6; }
8939if ${lt_cv_path_MAGIC_CMD+:} false; then :
8940  $as_echo_n "(cached) " >&6
8941else
8942  case $MAGIC_CMD in
8943[\\/*] |  ?:[\\/]*)
8944  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8945  ;;
8946*)
8947  lt_save_MAGIC_CMD=$MAGIC_CMD
8948  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8949  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8950  for ac_dir in $ac_dummy; do
8951    IFS=$lt_save_ifs
8952    test -z "$ac_dir" && ac_dir=.
8953    if test -f "$ac_dir/file"; then
8954      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8955      if test -n "$file_magic_test_file"; then
8956	case $deplibs_check_method in
8957	"file_magic "*)
8958	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8959	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8960	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8961	    $EGREP "$file_magic_regex" > /dev/null; then
8962	    :
8963	  else
8964	    cat <<_LT_EOF 1>&2
8965
8966*** Warning: the command libtool uses to detect shared libraries,
8967*** $file_magic_cmd, produces output that libtool cannot recognize.
8968*** The result is that libtool may fail to recognize shared libraries
8969*** as such.  This will affect the creation of libtool libraries that
8970*** depend on shared libraries, but programs linked with such libtool
8971*** libraries will work regardless of this problem.  Nevertheless, you
8972*** may want to report the problem to your system manager and/or to
8973*** bug-libtool@gnu.org
8974
8975_LT_EOF
8976	  fi ;;
8977	esac
8978      fi
8979      break
8980    fi
8981  done
8982  IFS=$lt_save_ifs
8983  MAGIC_CMD=$lt_save_MAGIC_CMD
8984  ;;
8985esac
8986fi
8987
8988MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8989if test -n "$MAGIC_CMD"; then
8990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8991$as_echo "$MAGIC_CMD" >&6; }
8992else
8993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8994$as_echo "no" >&6; }
8995fi
8996
8997
8998  else
8999    MAGIC_CMD=:
9000  fi
9001fi
9002
9003  fi
9004  ;;
9005esac
9006
9007# Use C for the default configuration in the libtool script
9008
9009lt_save_CC=$CC
9010ac_ext=c
9011ac_cpp='$CPP $CPPFLAGS'
9012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9014ac_compiler_gnu=$ac_cv_c_compiler_gnu
9015
9016
9017# Source file extension for C test sources.
9018ac_ext=c
9019
9020# Object file extension for compiled C test sources.
9021objext=o
9022objext=$objext
9023
9024# Code to be used in simple compile tests
9025lt_simple_compile_test_code="int some_variable = 0;"
9026
9027# Code to be used in simple link tests
9028lt_simple_link_test_code='int main(){return(0);}'
9029
9030
9031
9032
9033
9034
9035
9036# If no C compiler was specified, use CC.
9037LTCC=${LTCC-"$CC"}
9038
9039# If no C compiler flags were specified, use CFLAGS.
9040LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9041
9042# Allow CC to be a program name with arguments.
9043compiler=$CC
9044
9045# Save the default compiler, since it gets overwritten when the other
9046# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9047compiler_DEFAULT=$CC
9048
9049# save warnings/boilerplate of simple test code
9050ac_outfile=conftest.$ac_objext
9051echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9052eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9053_lt_compiler_boilerplate=`cat conftest.err`
9054$RM conftest*
9055
9056ac_outfile=conftest.$ac_objext
9057echo "$lt_simple_link_test_code" >conftest.$ac_ext
9058eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9059_lt_linker_boilerplate=`cat conftest.err`
9060$RM -r conftest*
9061
9062
9063## CAVEAT EMPTOR:
9064## There is no encapsulation within the following macros, do not change
9065## the running order or otherwise move them around unless you know exactly
9066## what you are doing...
9067if test -n "$compiler"; then
9068
9069lt_prog_compiler_no_builtin_flag=
9070
9071if test yes = "$GCC"; then
9072  case $cc_basename in
9073  nvcc*)
9074    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9075  *)
9076    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9077  esac
9078
9079  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9080$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9081if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9082  $as_echo_n "(cached) " >&6
9083else
9084  lt_cv_prog_compiler_rtti_exceptions=no
9085   ac_outfile=conftest.$ac_objext
9086   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9087   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9088   # Insert the option either (1) after the last *FLAGS variable, or
9089   # (2) before a word containing "conftest.", or (3) at the end.
9090   # Note that $ac_compile itself does not contain backslashes and begins
9091   # with a dollar sign (not a hyphen), so the echo should work correctly.
9092   # The option is referenced via a variable to avoid confusing sed.
9093   lt_compile=`echo "$ac_compile" | $SED \
9094   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9095   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9096   -e 's:$: $lt_compiler_flag:'`
9097   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9098   (eval "$lt_compile" 2>conftest.err)
9099   ac_status=$?
9100   cat conftest.err >&5
9101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102   if (exit $ac_status) && test -s "$ac_outfile"; then
9103     # The compiler can only warn and ignore the option if not recognized
9104     # So say no if there are warnings other than the usual output.
9105     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9106     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9107     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9108       lt_cv_prog_compiler_rtti_exceptions=yes
9109     fi
9110   fi
9111   $RM conftest*
9112
9113fi
9114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9115$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9116
9117if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9118    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9119else
9120    :
9121fi
9122
9123fi
9124
9125
9126
9127
9128
9129
9130  lt_prog_compiler_wl=
9131lt_prog_compiler_pic=
9132lt_prog_compiler_static=
9133
9134
9135  if test yes = "$GCC"; then
9136    lt_prog_compiler_wl='-Wl,'
9137    lt_prog_compiler_static='-static'
9138
9139    case $host_os in
9140      aix*)
9141      # All AIX code is PIC.
9142      if test ia64 = "$host_cpu"; then
9143	# AIX 5 now supports IA64 processor
9144	lt_prog_compiler_static='-Bstatic'
9145      fi
9146      lt_prog_compiler_pic='-fPIC'
9147      ;;
9148
9149    amigaos*)
9150      case $host_cpu in
9151      powerpc)
9152            # see comment about AmigaOS4 .so support
9153            lt_prog_compiler_pic='-fPIC'
9154        ;;
9155      m68k)
9156            # FIXME: we need at least 68020 code to build shared libraries, but
9157            # adding the '-m68020' flag to GCC prevents building anything better,
9158            # like '-m68040'.
9159            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9160        ;;
9161      esac
9162      ;;
9163
9164    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9165      # PIC is the default for these OSes.
9166      ;;
9167
9168    mingw* | cygwin* | pw32* | os2* | cegcc*)
9169      # This hack is so that the source file can tell whether it is being
9170      # built for inclusion in a dll (and should export symbols for example).
9171      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9172      # (--disable-auto-import) libraries
9173      lt_prog_compiler_pic='-DDLL_EXPORT'
9174      case $host_os in
9175      os2*)
9176	lt_prog_compiler_static='$wl-static'
9177	;;
9178      esac
9179      ;;
9180
9181    darwin* | rhapsody*)
9182      # PIC is the default on this platform
9183      # Common symbols not allowed in MH_DYLIB files
9184      lt_prog_compiler_pic='-fno-common'
9185      ;;
9186
9187    haiku*)
9188      # PIC is the default for Haiku.
9189      # The "-static" flag exists, but is broken.
9190      lt_prog_compiler_static=
9191      ;;
9192
9193    hpux*)
9194      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9195      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9196      # sets the default TLS model and affects inlining.
9197      case $host_cpu in
9198      hppa*64*)
9199	# +Z the default
9200	;;
9201      *)
9202	lt_prog_compiler_pic='-fPIC'
9203	;;
9204      esac
9205      ;;
9206
9207    interix[3-9]*)
9208      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9209      # Instead, we relocate shared libraries at runtime.
9210      ;;
9211
9212    msdosdjgpp*)
9213      # Just because we use GCC doesn't mean we suddenly get shared libraries
9214      # on systems that don't support them.
9215      lt_prog_compiler_can_build_shared=no
9216      enable_shared=no
9217      ;;
9218
9219    *nto* | *qnx*)
9220      # QNX uses GNU C++, but need to define -shared option too, otherwise
9221      # it will coredump.
9222      lt_prog_compiler_pic='-fPIC -shared'
9223      ;;
9224
9225    sysv4*MP*)
9226      if test -d /usr/nec; then
9227	lt_prog_compiler_pic=-Kconform_pic
9228      fi
9229      ;;
9230
9231    *)
9232      lt_prog_compiler_pic='-fPIC'
9233      ;;
9234    esac
9235
9236    case $cc_basename in
9237    nvcc*) # Cuda Compiler Driver 2.2
9238      lt_prog_compiler_wl='-Xlinker '
9239      if test -n "$lt_prog_compiler_pic"; then
9240        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9241      fi
9242      ;;
9243    esac
9244  else
9245    # PORTME Check for flag to pass linker flags through the system compiler.
9246    case $host_os in
9247    aix*)
9248      lt_prog_compiler_wl='-Wl,'
9249      if test ia64 = "$host_cpu"; then
9250	# AIX 5 now supports IA64 processor
9251	lt_prog_compiler_static='-Bstatic'
9252      else
9253	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9254      fi
9255      ;;
9256
9257    darwin* | rhapsody*)
9258      # PIC is the default on this platform
9259      # Common symbols not allowed in MH_DYLIB files
9260      lt_prog_compiler_pic='-fno-common'
9261      case $cc_basename in
9262      nagfor*)
9263        # NAG Fortran compiler
9264        lt_prog_compiler_wl='-Wl,-Wl,,'
9265        lt_prog_compiler_pic='-PIC'
9266        lt_prog_compiler_static='-Bstatic'
9267        ;;
9268      esac
9269      ;;
9270
9271    mingw* | cygwin* | pw32* | os2* | cegcc*)
9272      # This hack is so that the source file can tell whether it is being
9273      # built for inclusion in a dll (and should export symbols for example).
9274      lt_prog_compiler_pic='-DDLL_EXPORT'
9275      case $host_os in
9276      os2*)
9277	lt_prog_compiler_static='$wl-static'
9278	;;
9279      esac
9280      ;;
9281
9282    hpux9* | hpux10* | hpux11*)
9283      lt_prog_compiler_wl='-Wl,'
9284      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9285      # not for PA HP-UX.
9286      case $host_cpu in
9287      hppa*64*|ia64*)
9288	# +Z the default
9289	;;
9290      *)
9291	lt_prog_compiler_pic='+Z'
9292	;;
9293      esac
9294      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9295      lt_prog_compiler_static='$wl-a ${wl}archive'
9296      ;;
9297
9298    irix5* | irix6* | nonstopux*)
9299      lt_prog_compiler_wl='-Wl,'
9300      # PIC (with -KPIC) is the default.
9301      lt_prog_compiler_static='-non_shared'
9302      ;;
9303
9304    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9305      case $cc_basename in
9306      # old Intel for x86_64, which still supported -KPIC.
9307      ecc*)
9308	lt_prog_compiler_wl='-Wl,'
9309	lt_prog_compiler_pic='-KPIC'
9310	lt_prog_compiler_static='-static'
9311        ;;
9312      # icc used to be incompatible with GCC.
9313      # ICC 10 doesn't accept -KPIC any more.
9314      icc* | ifort*)
9315	lt_prog_compiler_wl='-Wl,'
9316	lt_prog_compiler_pic='-fPIC'
9317	lt_prog_compiler_static='-static'
9318        ;;
9319      # Lahey Fortran 8.1.
9320      lf95*)
9321	lt_prog_compiler_wl='-Wl,'
9322	lt_prog_compiler_pic='--shared'
9323	lt_prog_compiler_static='--static'
9324	;;
9325      nagfor*)
9326	# NAG Fortran compiler
9327	lt_prog_compiler_wl='-Wl,-Wl,,'
9328	lt_prog_compiler_pic='-PIC'
9329	lt_prog_compiler_static='-Bstatic'
9330	;;
9331      tcc*)
9332	# Fabrice Bellard et al's Tiny C Compiler
9333	lt_prog_compiler_wl='-Wl,'
9334	lt_prog_compiler_pic='-fPIC'
9335	lt_prog_compiler_static='-static'
9336	;;
9337      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9338        # Portland Group compilers (*not* the Pentium gcc compiler,
9339	# which looks to be a dead project)
9340	lt_prog_compiler_wl='-Wl,'
9341	lt_prog_compiler_pic='-fpic'
9342	lt_prog_compiler_static='-Bstatic'
9343        ;;
9344      ccc*)
9345        lt_prog_compiler_wl='-Wl,'
9346        # All Alpha code is PIC.
9347        lt_prog_compiler_static='-non_shared'
9348        ;;
9349      xl* | bgxl* | bgf* | mpixl*)
9350	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9351	lt_prog_compiler_wl='-Wl,'
9352	lt_prog_compiler_pic='-qpic'
9353	lt_prog_compiler_static='-qstaticlink'
9354	;;
9355      *)
9356	case `$CC -V 2>&1 | sed 5q` in
9357	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9358	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9359	  lt_prog_compiler_pic='-KPIC'
9360	  lt_prog_compiler_static='-Bstatic'
9361	  lt_prog_compiler_wl=''
9362	  ;;
9363	*Sun\ F* | *Sun*Fortran*)
9364	  lt_prog_compiler_pic='-KPIC'
9365	  lt_prog_compiler_static='-Bstatic'
9366	  lt_prog_compiler_wl='-Qoption ld '
9367	  ;;
9368	*Sun\ C*)
9369	  # Sun C 5.9
9370	  lt_prog_compiler_pic='-KPIC'
9371	  lt_prog_compiler_static='-Bstatic'
9372	  lt_prog_compiler_wl='-Wl,'
9373	  ;;
9374        *Intel*\ [CF]*Compiler*)
9375	  lt_prog_compiler_wl='-Wl,'
9376	  lt_prog_compiler_pic='-fPIC'
9377	  lt_prog_compiler_static='-static'
9378	  ;;
9379	*Portland\ Group*)
9380	  lt_prog_compiler_wl='-Wl,'
9381	  lt_prog_compiler_pic='-fpic'
9382	  lt_prog_compiler_static='-Bstatic'
9383	  ;;
9384	esac
9385	;;
9386      esac
9387      ;;
9388
9389    newsos6)
9390      lt_prog_compiler_pic='-KPIC'
9391      lt_prog_compiler_static='-Bstatic'
9392      ;;
9393
9394    *nto* | *qnx*)
9395      # QNX uses GNU C++, but need to define -shared option too, otherwise
9396      # it will coredump.
9397      lt_prog_compiler_pic='-fPIC -shared'
9398      ;;
9399
9400    osf3* | osf4* | osf5*)
9401      lt_prog_compiler_wl='-Wl,'
9402      # All OSF/1 code is PIC.
9403      lt_prog_compiler_static='-non_shared'
9404      ;;
9405
9406    rdos*)
9407      lt_prog_compiler_static='-non_shared'
9408      ;;
9409
9410    solaris*)
9411      lt_prog_compiler_pic='-KPIC'
9412      lt_prog_compiler_static='-Bstatic'
9413      case $cc_basename in
9414      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9415	lt_prog_compiler_wl='-Qoption ld ';;
9416      *)
9417	lt_prog_compiler_wl='-Wl,';;
9418      esac
9419      ;;
9420
9421    sunos4*)
9422      lt_prog_compiler_wl='-Qoption ld '
9423      lt_prog_compiler_pic='-PIC'
9424      lt_prog_compiler_static='-Bstatic'
9425      ;;
9426
9427    sysv4 | sysv4.2uw2* | sysv4.3*)
9428      lt_prog_compiler_wl='-Wl,'
9429      lt_prog_compiler_pic='-KPIC'
9430      lt_prog_compiler_static='-Bstatic'
9431      ;;
9432
9433    sysv4*MP*)
9434      if test -d /usr/nec; then
9435	lt_prog_compiler_pic='-Kconform_pic'
9436	lt_prog_compiler_static='-Bstatic'
9437      fi
9438      ;;
9439
9440    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9441      lt_prog_compiler_wl='-Wl,'
9442      lt_prog_compiler_pic='-KPIC'
9443      lt_prog_compiler_static='-Bstatic'
9444      ;;
9445
9446    unicos*)
9447      lt_prog_compiler_wl='-Wl,'
9448      lt_prog_compiler_can_build_shared=no
9449      ;;
9450
9451    uts4*)
9452      lt_prog_compiler_pic='-pic'
9453      lt_prog_compiler_static='-Bstatic'
9454      ;;
9455
9456    *)
9457      lt_prog_compiler_can_build_shared=no
9458      ;;
9459    esac
9460  fi
9461
9462case $host_os in
9463  # For platforms that do not support PIC, -DPIC is meaningless:
9464  *djgpp*)
9465    lt_prog_compiler_pic=
9466    ;;
9467  *)
9468    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9469    ;;
9470esac
9471
9472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9473$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9474if ${lt_cv_prog_compiler_pic+:} false; then :
9475  $as_echo_n "(cached) " >&6
9476else
9477  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9478fi
9479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9480$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9481lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9482
9483#
9484# Check to make sure the PIC flag actually works.
9485#
9486if test -n "$lt_prog_compiler_pic"; then
9487  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9488$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9489if ${lt_cv_prog_compiler_pic_works+:} false; then :
9490  $as_echo_n "(cached) " >&6
9491else
9492  lt_cv_prog_compiler_pic_works=no
9493   ac_outfile=conftest.$ac_objext
9494   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9495   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9496   # Insert the option either (1) after the last *FLAGS variable, or
9497   # (2) before a word containing "conftest.", or (3) at the end.
9498   # Note that $ac_compile itself does not contain backslashes and begins
9499   # with a dollar sign (not a hyphen), so the echo should work correctly.
9500   # The option is referenced via a variable to avoid confusing sed.
9501   lt_compile=`echo "$ac_compile" | $SED \
9502   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9503   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9504   -e 's:$: $lt_compiler_flag:'`
9505   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9506   (eval "$lt_compile" 2>conftest.err)
9507   ac_status=$?
9508   cat conftest.err >&5
9509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510   if (exit $ac_status) && test -s "$ac_outfile"; then
9511     # The compiler can only warn and ignore the option if not recognized
9512     # So say no if there are warnings other than the usual output.
9513     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9514     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9515     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9516       lt_cv_prog_compiler_pic_works=yes
9517     fi
9518   fi
9519   $RM conftest*
9520
9521fi
9522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9523$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9524
9525if test yes = "$lt_cv_prog_compiler_pic_works"; then
9526    case $lt_prog_compiler_pic in
9527     "" | " "*) ;;
9528     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9529     esac
9530else
9531    lt_prog_compiler_pic=
9532     lt_prog_compiler_can_build_shared=no
9533fi
9534
9535fi
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547#
9548# Check to make sure the static flag actually works.
9549#
9550wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9552$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9553if ${lt_cv_prog_compiler_static_works+:} false; then :
9554  $as_echo_n "(cached) " >&6
9555else
9556  lt_cv_prog_compiler_static_works=no
9557   save_LDFLAGS=$LDFLAGS
9558   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9559   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9560   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9561     # The linker can only warn and ignore the option if not recognized
9562     # So say no if there are warnings
9563     if test -s conftest.err; then
9564       # Append any errors to the config.log.
9565       cat conftest.err 1>&5
9566       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9567       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9568       if diff conftest.exp conftest.er2 >/dev/null; then
9569         lt_cv_prog_compiler_static_works=yes
9570       fi
9571     else
9572       lt_cv_prog_compiler_static_works=yes
9573     fi
9574   fi
9575   $RM -r conftest*
9576   LDFLAGS=$save_LDFLAGS
9577
9578fi
9579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9580$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9581
9582if test yes = "$lt_cv_prog_compiler_static_works"; then
9583    :
9584else
9585    lt_prog_compiler_static=
9586fi
9587
9588
9589
9590
9591
9592
9593
9594  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9595$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9596if ${lt_cv_prog_compiler_c_o+:} false; then :
9597  $as_echo_n "(cached) " >&6
9598else
9599  lt_cv_prog_compiler_c_o=no
9600   $RM -r conftest 2>/dev/null
9601   mkdir conftest
9602   cd conftest
9603   mkdir out
9604   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9605
9606   lt_compiler_flag="-o out/conftest2.$ac_objext"
9607   # Insert the option either (1) after the last *FLAGS variable, or
9608   # (2) before a word containing "conftest.", or (3) at the end.
9609   # Note that $ac_compile itself does not contain backslashes and begins
9610   # with a dollar sign (not a hyphen), so the echo should work correctly.
9611   lt_compile=`echo "$ac_compile" | $SED \
9612   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9613   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9614   -e 's:$: $lt_compiler_flag:'`
9615   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9616   (eval "$lt_compile" 2>out/conftest.err)
9617   ac_status=$?
9618   cat out/conftest.err >&5
9619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9621   then
9622     # The compiler can only warn and ignore the option if not recognized
9623     # So say no if there are warnings
9624     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9625     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9626     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9627       lt_cv_prog_compiler_c_o=yes
9628     fi
9629   fi
9630   chmod u+w . 2>&5
9631   $RM conftest*
9632   # SGI C++ compiler will create directory out/ii_files/ for
9633   # template instantiation
9634   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9635   $RM out/* && rmdir out
9636   cd ..
9637   $RM -r conftest
9638   $RM conftest*
9639
9640fi
9641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9642$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9643
9644
9645
9646
9647
9648
9649  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9650$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9651if ${lt_cv_prog_compiler_c_o+:} false; then :
9652  $as_echo_n "(cached) " >&6
9653else
9654  lt_cv_prog_compiler_c_o=no
9655   $RM -r conftest 2>/dev/null
9656   mkdir conftest
9657   cd conftest
9658   mkdir out
9659   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9660
9661   lt_compiler_flag="-o out/conftest2.$ac_objext"
9662   # Insert the option either (1) after the last *FLAGS variable, or
9663   # (2) before a word containing "conftest.", or (3) at the end.
9664   # Note that $ac_compile itself does not contain backslashes and begins
9665   # with a dollar sign (not a hyphen), so the echo should work correctly.
9666   lt_compile=`echo "$ac_compile" | $SED \
9667   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9668   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9669   -e 's:$: $lt_compiler_flag:'`
9670   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9671   (eval "$lt_compile" 2>out/conftest.err)
9672   ac_status=$?
9673   cat out/conftest.err >&5
9674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9676   then
9677     # The compiler can only warn and ignore the option if not recognized
9678     # So say no if there are warnings
9679     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9680     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9681     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9682       lt_cv_prog_compiler_c_o=yes
9683     fi
9684   fi
9685   chmod u+w . 2>&5
9686   $RM conftest*
9687   # SGI C++ compiler will create directory out/ii_files/ for
9688   # template instantiation
9689   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9690   $RM out/* && rmdir out
9691   cd ..
9692   $RM -r conftest
9693   $RM conftest*
9694
9695fi
9696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9697$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9698
9699
9700
9701
9702hard_links=nottested
9703if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9704  # do not overwrite the value of need_locks provided by the user
9705  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9706$as_echo_n "checking if we can lock with hard links... " >&6; }
9707  hard_links=yes
9708  $RM conftest*
9709  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9710  touch conftest.a
9711  ln conftest.a conftest.b 2>&5 || hard_links=no
9712  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9714$as_echo "$hard_links" >&6; }
9715  if test no = "$hard_links"; then
9716    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9717$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9718    need_locks=warn
9719  fi
9720else
9721  need_locks=no
9722fi
9723
9724
9725
9726
9727
9728
9729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9730$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9731
9732  runpath_var=
9733  allow_undefined_flag=
9734  always_export_symbols=no
9735  archive_cmds=
9736  archive_expsym_cmds=
9737  compiler_needs_object=no
9738  enable_shared_with_static_runtimes=no
9739  export_dynamic_flag_spec=
9740  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9741  hardcode_automatic=no
9742  hardcode_direct=no
9743  hardcode_direct_absolute=no
9744  hardcode_libdir_flag_spec=
9745  hardcode_libdir_separator=
9746  hardcode_minus_L=no
9747  hardcode_shlibpath_var=unsupported
9748  inherit_rpath=no
9749  link_all_deplibs=unknown
9750  module_cmds=
9751  module_expsym_cmds=
9752  old_archive_from_new_cmds=
9753  old_archive_from_expsyms_cmds=
9754  thread_safe_flag_spec=
9755  whole_archive_flag_spec=
9756  # include_expsyms should be a list of space-separated symbols to be *always*
9757  # included in the symbol list
9758  include_expsyms=
9759  # exclude_expsyms can be an extended regexp of symbols to exclude
9760  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9761  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9762  # as well as any symbol that contains 'd'.
9763  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9764  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9765  # platforms (ab)use it in PIC code, but their linkers get confused if
9766  # the symbol is explicitly referenced.  Since portable code cannot
9767  # rely on this symbol name, it's probably fine to never include it in
9768  # preloaded symbol tables.
9769  # Exclude shared library initialization/finalization symbols.
9770  extract_expsyms_cmds=
9771
9772  case $host_os in
9773  cygwin* | mingw* | pw32* | cegcc*)
9774    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9775    # When not using gcc, we currently assume that we are using
9776    # Microsoft Visual C++ or Intel C++ Compiler.
9777    if test yes != "$GCC"; then
9778      with_gnu_ld=no
9779    fi
9780    ;;
9781  interix*)
9782    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9783    with_gnu_ld=yes
9784    ;;
9785  openbsd* | bitrig*)
9786    with_gnu_ld=no
9787    ;;
9788  esac
9789
9790  ld_shlibs=yes
9791
9792  # On some targets, GNU ld is compatible enough with the native linker
9793  # that we're better off using the native interface for both.
9794  lt_use_gnu_ld_interface=no
9795  if test yes = "$with_gnu_ld"; then
9796    case $host_os in
9797      aix*)
9798	# The AIX port of GNU ld has always aspired to compatibility
9799	# with the native linker.  However, as the warning in the GNU ld
9800	# block says, versions before 2.19.5* couldn't really create working
9801	# shared libraries, regardless of the interface used.
9802	case `$LD -v 2>&1` in
9803	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9804	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9805	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9806	  *)
9807	    lt_use_gnu_ld_interface=yes
9808	    ;;
9809	esac
9810	;;
9811      *)
9812	lt_use_gnu_ld_interface=yes
9813	;;
9814    esac
9815  fi
9816
9817  if test yes = "$lt_use_gnu_ld_interface"; then
9818    # If archive_cmds runs LD, not CC, wlarc should be empty
9819    wlarc='$wl'
9820
9821    # Set some defaults for GNU ld with shared library support. These
9822    # are reset later if shared libraries are not supported. Putting them
9823    # here allows them to be overridden if necessary.
9824    runpath_var=LD_RUN_PATH
9825    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9826    export_dynamic_flag_spec='$wl--export-dynamic'
9827    # ancient GNU ld didn't support --whole-archive et. al.
9828    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9829      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9830    else
9831      whole_archive_flag_spec=
9832    fi
9833    supports_anon_versioning=no
9834    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9835      *GNU\ gold*) supports_anon_versioning=yes ;;
9836      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9837      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9838      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9839      *\ 2.11.*) ;; # other 2.11 versions
9840      *) supports_anon_versioning=yes ;;
9841    esac
9842
9843    # See if GNU ld supports shared libraries.
9844    case $host_os in
9845    aix[3-9]*)
9846      # On AIX/PPC, the GNU linker is very broken
9847      if test ia64 != "$host_cpu"; then
9848	ld_shlibs=no
9849	cat <<_LT_EOF 1>&2
9850
9851*** Warning: the GNU linker, at least up to release 2.19, is reported
9852*** to be unable to reliably create shared libraries on AIX.
9853*** Therefore, libtool is disabling shared libraries support.  If you
9854*** really care for shared libraries, you may want to install binutils
9855*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9856*** You will then need to restart the configuration process.
9857
9858_LT_EOF
9859      fi
9860      ;;
9861
9862    amigaos*)
9863      case $host_cpu in
9864      powerpc)
9865            # see comment about AmigaOS4 .so support
9866            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9867            archive_expsym_cmds=''
9868        ;;
9869      m68k)
9870            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)'
9871            hardcode_libdir_flag_spec='-L$libdir'
9872            hardcode_minus_L=yes
9873        ;;
9874      esac
9875      ;;
9876
9877    beos*)
9878      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9879	allow_undefined_flag=unsupported
9880	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9881	# support --undefined.  This deserves some investigation.  FIXME
9882	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9883      else
9884	ld_shlibs=no
9885      fi
9886      ;;
9887
9888    cygwin* | mingw* | pw32* | cegcc*)
9889      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9890      # as there is no search path for DLLs.
9891      hardcode_libdir_flag_spec='-L$libdir'
9892      export_dynamic_flag_spec='$wl--export-all-symbols'
9893      allow_undefined_flag=unsupported
9894      always_export_symbols=no
9895      enable_shared_with_static_runtimes=yes
9896      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'
9897      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9898
9899      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9900        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9901	# If the export-symbols file already is a .def file, use it as
9902	# is; otherwise, prepend EXPORTS...
9903	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9904          cp $export_symbols $output_objdir/$soname.def;
9905        else
9906          echo EXPORTS > $output_objdir/$soname.def;
9907          cat $export_symbols >> $output_objdir/$soname.def;
9908        fi~
9909        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9910      else
9911	ld_shlibs=no
9912      fi
9913      ;;
9914
9915    haiku*)
9916      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9917      link_all_deplibs=yes
9918      ;;
9919
9920    os2*)
9921      hardcode_libdir_flag_spec='-L$libdir'
9922      hardcode_minus_L=yes
9923      allow_undefined_flag=unsupported
9924      shrext_cmds=.dll
9925      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9926	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9927	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9928	$ECHO EXPORTS >> $output_objdir/$libname.def~
9929	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9930	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9931	emximp -o $lib $output_objdir/$libname.def'
9932      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9933	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9934	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9935	$ECHO EXPORTS >> $output_objdir/$libname.def~
9936	prefix_cmds="$SED"~
9937	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9938	  prefix_cmds="$prefix_cmds -e 1d";
9939	fi~
9940	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9941	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9942	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9943	emximp -o $lib $output_objdir/$libname.def'
9944      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9945      enable_shared_with_static_runtimes=yes
9946      file_list_spec='@'
9947      ;;
9948
9949    interix[3-9]*)
9950      hardcode_direct=no
9951      hardcode_shlibpath_var=no
9952      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9953      export_dynamic_flag_spec='$wl-E'
9954      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9955      # Instead, shared libraries are loaded at an image base (0x10000000 by
9956      # default) and relocated if they conflict, which is a slow very memory
9957      # consuming and fragmenting process.  To avoid this, we pick a random,
9958      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9959      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9960      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9961      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'
9962      ;;
9963
9964    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9965      tmp_diet=no
9966      if test linux-dietlibc = "$host_os"; then
9967	case $cc_basename in
9968	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9969	esac
9970      fi
9971      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9972	 && test no = "$tmp_diet"
9973      then
9974	tmp_addflag=' $pic_flag'
9975	tmp_sharedflag='-shared'
9976	case $cc_basename,$host_cpu in
9977        pgcc*)				# Portland Group C compiler
9978	  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'
9979	  tmp_addflag=' $pic_flag'
9980	  ;;
9981	pgf77* | pgf90* | pgf95* | pgfortran*)
9982					# Portland Group f77 and f90 compilers
9983	  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'
9984	  tmp_addflag=' $pic_flag -Mnomain' ;;
9985	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9986	  tmp_addflag=' -i_dynamic' ;;
9987	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9988	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9989	ifc* | ifort*)			# Intel Fortran compiler
9990	  tmp_addflag=' -nofor_main' ;;
9991	lf95*)				# Lahey Fortran 8.1
9992	  whole_archive_flag_spec=
9993	  tmp_sharedflag='--shared' ;;
9994        nagfor*)                        # NAGFOR 5.3
9995          tmp_sharedflag='-Wl,-shared' ;;
9996	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9997	  tmp_sharedflag='-qmkshrobj'
9998	  tmp_addflag= ;;
9999	nvcc*)	# Cuda Compiler Driver 2.2
10000	  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'
10001	  compiler_needs_object=yes
10002	  ;;
10003	esac
10004	case `$CC -V 2>&1 | sed 5q` in
10005	*Sun\ C*)			# Sun C 5.9
10006	  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'
10007	  compiler_needs_object=yes
10008	  tmp_sharedflag='-G' ;;
10009	*Sun\ F*)			# Sun Fortran 8.3
10010	  tmp_sharedflag='-G' ;;
10011	esac
10012	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10013
10014        if test yes = "$supports_anon_versioning"; then
10015          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10016            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10017            echo "local: *; };" >> $output_objdir/$libname.ver~
10018            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10019        fi
10020
10021	case $cc_basename in
10022	tcc*)
10023	  export_dynamic_flag_spec='-rdynamic'
10024	  ;;
10025	xlf* | bgf* | bgxlf* | mpixlf*)
10026	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10027	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10028	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10029	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10030	  if test yes = "$supports_anon_versioning"; then
10031	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10032              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10033              echo "local: *; };" >> $output_objdir/$libname.ver~
10034              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10035	  fi
10036	  ;;
10037	esac
10038      else
10039        ld_shlibs=no
10040      fi
10041      ;;
10042
10043    netbsd*)
10044      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10045	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10046	wlarc=
10047      else
10048	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10049	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10050      fi
10051      ;;
10052
10053    solaris*)
10054      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10055	ld_shlibs=no
10056	cat <<_LT_EOF 1>&2
10057
10058*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10059*** create shared libraries on Solaris systems.  Therefore, libtool
10060*** is disabling shared libraries support.  We urge you to upgrade GNU
10061*** binutils to release 2.9.1 or newer.  Another option is to modify
10062*** your PATH or compiler configuration so that the native linker is
10063*** used, and then restart.
10064
10065_LT_EOF
10066      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10067	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10068	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10069      else
10070	ld_shlibs=no
10071      fi
10072      ;;
10073
10074    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10075      case `$LD -v 2>&1` in
10076        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10077	ld_shlibs=no
10078	cat <<_LT_EOF 1>&2
10079
10080*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10081*** reliably create shared libraries on SCO systems.  Therefore, libtool
10082*** is disabling shared libraries support.  We urge you to upgrade GNU
10083*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10084*** your PATH or compiler configuration so that the native linker is
10085*** used, and then restart.
10086
10087_LT_EOF
10088	;;
10089	*)
10090	  # For security reasons, it is highly recommended that you always
10091	  # use absolute paths for naming shared libraries, and exclude the
10092	  # DT_RUNPATH tag from executables and libraries.  But doing so
10093	  # requires that you compile everything twice, which is a pain.
10094	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10095	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10096	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10097	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10098	  else
10099	    ld_shlibs=no
10100	  fi
10101	;;
10102      esac
10103      ;;
10104
10105    sunos4*)
10106      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10107      wlarc=
10108      hardcode_direct=yes
10109      hardcode_shlibpath_var=no
10110      ;;
10111
10112    *)
10113      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10114	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10115	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10116      else
10117	ld_shlibs=no
10118      fi
10119      ;;
10120    esac
10121
10122    if test no = "$ld_shlibs"; then
10123      runpath_var=
10124      hardcode_libdir_flag_spec=
10125      export_dynamic_flag_spec=
10126      whole_archive_flag_spec=
10127    fi
10128  else
10129    # PORTME fill in a description of your system's linker (not GNU ld)
10130    case $host_os in
10131    aix3*)
10132      allow_undefined_flag=unsupported
10133      always_export_symbols=yes
10134      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'
10135      # Note: this linker hardcodes the directories in LIBPATH if there
10136      # are no directories specified by -L.
10137      hardcode_minus_L=yes
10138      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10139	# Neither direct hardcoding nor static linking is supported with a
10140	# broken collect2.
10141	hardcode_direct=unsupported
10142      fi
10143      ;;
10144
10145    aix[4-9]*)
10146      if test ia64 = "$host_cpu"; then
10147	# On IA64, the linker does run time linking by default, so we don't
10148	# have to do anything special.
10149	aix_use_runtimelinking=no
10150	exp_sym_flag='-Bexport'
10151	no_entry_flag=
10152      else
10153	# If we're using GNU nm, then we don't want the "-C" option.
10154	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10155	# Without the "-l" option, or with the "-B" option, AIX nm treats
10156	# weak defined symbols like other global defined symbols, whereas
10157	# GNU nm marks them as "W".
10158	# While the 'weak' keyword is ignored in the Export File, we need
10159	# it in the Import File for the 'aix-soname' feature, so we have
10160	# to replace the "-B" option with "-P" for AIX nm.
10161	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10162	  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'
10163	else
10164	  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'
10165	fi
10166	aix_use_runtimelinking=no
10167
10168	# Test if we are trying to use run time linking or normal
10169	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10170	# have runtime linking enabled, and use it for executables.
10171	# For shared libraries, we enable/disable runtime linking
10172	# depending on the kind of the shared library created -
10173	# when "with_aix_soname,aix_use_runtimelinking" is:
10174	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10175	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10176	#            lib.a           static archive
10177	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10178	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10179	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10180	#            lib.a(lib.so.V) shared, rtl:no
10181	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10182	#            lib.a           static archive
10183	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10184	  for ld_flag in $LDFLAGS; do
10185	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10186	    aix_use_runtimelinking=yes
10187	    break
10188	  fi
10189	  done
10190	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10191	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10192	    # so we don't have lib.a shared libs to link our executables.
10193	    # We have to force runtime linking in this case.
10194	    aix_use_runtimelinking=yes
10195	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10196	  fi
10197	  ;;
10198	esac
10199
10200	exp_sym_flag='-bexport'
10201	no_entry_flag='-bnoentry'
10202      fi
10203
10204      # When large executables or shared objects are built, AIX ld can
10205      # have problems creating the table of contents.  If linking a library
10206      # or program results in "error TOC overflow" add -mminimal-toc to
10207      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10208      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10209
10210      archive_cmds=''
10211      hardcode_direct=yes
10212      hardcode_direct_absolute=yes
10213      hardcode_libdir_separator=':'
10214      link_all_deplibs=yes
10215      file_list_spec='$wl-f,'
10216      case $with_aix_soname,$aix_use_runtimelinking in
10217      aix,*) ;; # traditional, no import file
10218      svr4,* | *,yes) # use import file
10219	# The Import File defines what to hardcode.
10220	hardcode_direct=no
10221	hardcode_direct_absolute=no
10222	;;
10223      esac
10224
10225      if test yes = "$GCC"; then
10226	case $host_os in aix4.[012]|aix4.[012].*)
10227	# We only want to do this on AIX 4.2 and lower, the check
10228	# below for broken collect2 doesn't work under 4.3+
10229	  collect2name=`$CC -print-prog-name=collect2`
10230	  if test -f "$collect2name" &&
10231	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10232	  then
10233	  # We have reworked collect2
10234	  :
10235	  else
10236	  # We have old collect2
10237	  hardcode_direct=unsupported
10238	  # It fails to find uninstalled libraries when the uninstalled
10239	  # path is not listed in the libpath.  Setting hardcode_minus_L
10240	  # to unsupported forces relinking
10241	  hardcode_minus_L=yes
10242	  hardcode_libdir_flag_spec='-L$libdir'
10243	  hardcode_libdir_separator=
10244	  fi
10245	  ;;
10246	esac
10247	shared_flag='-shared'
10248	if test yes = "$aix_use_runtimelinking"; then
10249	  shared_flag="$shared_flag "'$wl-G'
10250	fi
10251	# Need to ensure runtime linking is disabled for the traditional
10252	# shared library, or the linker may eventually find shared libraries
10253	# /with/ Import File - we do not want to mix them.
10254	shared_flag_aix='-shared'
10255	shared_flag_svr4='-shared $wl-G'
10256      else
10257	# not using gcc
10258	if test ia64 = "$host_cpu"; then
10259	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10260	# chokes on -Wl,-G. The following line is correct:
10261	  shared_flag='-G'
10262	else
10263	  if test yes = "$aix_use_runtimelinking"; then
10264	    shared_flag='$wl-G'
10265	  else
10266	    shared_flag='$wl-bM:SRE'
10267	  fi
10268	  shared_flag_aix='$wl-bM:SRE'
10269	  shared_flag_svr4='$wl-G'
10270	fi
10271      fi
10272
10273      export_dynamic_flag_spec='$wl-bexpall'
10274      # It seems that -bexpall does not export symbols beginning with
10275      # underscore (_), so it is better to generate a list of symbols to export.
10276      always_export_symbols=yes
10277      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10278	# Warning - without using the other runtime loading flags (-brtl),
10279	# -berok will link without error, but may produce a broken library.
10280	allow_undefined_flag='-berok'
10281        # Determine the default libpath from the value encoded in an
10282        # empty executable.
10283        if test set = "${lt_cv_aix_libpath+set}"; then
10284  aix_libpath=$lt_cv_aix_libpath
10285else
10286  if ${lt_cv_aix_libpath_+:} false; then :
10287  $as_echo_n "(cached) " >&6
10288else
10289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10290/* end confdefs.h.  */
10291
10292int
10293main ()
10294{
10295
10296  ;
10297  return 0;
10298}
10299_ACEOF
10300if ac_fn_c_try_link "$LINENO"; then :
10301
10302  lt_aix_libpath_sed='
10303      /Import File Strings/,/^$/ {
10304	  /^0/ {
10305	      s/^0  *\([^ ]*\) *$/\1/
10306	      p
10307	  }
10308      }'
10309  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10310  # Check for a 64-bit object if we didn't find anything.
10311  if test -z "$lt_cv_aix_libpath_"; then
10312    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10313  fi
10314fi
10315rm -f core conftest.err conftest.$ac_objext \
10316    conftest$ac_exeext conftest.$ac_ext
10317  if test -z "$lt_cv_aix_libpath_"; then
10318    lt_cv_aix_libpath_=/usr/lib:/lib
10319  fi
10320
10321fi
10322
10323  aix_libpath=$lt_cv_aix_libpath_
10324fi
10325
10326        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10327        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
10328      else
10329	if test ia64 = "$host_cpu"; then
10330	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10331	  allow_undefined_flag="-z nodefs"
10332	  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"
10333	else
10334	 # Determine the default libpath from the value encoded in an
10335	 # empty executable.
10336	 if test set = "${lt_cv_aix_libpath+set}"; then
10337  aix_libpath=$lt_cv_aix_libpath
10338else
10339  if ${lt_cv_aix_libpath_+:} false; then :
10340  $as_echo_n "(cached) " >&6
10341else
10342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343/* end confdefs.h.  */
10344
10345int
10346main ()
10347{
10348
10349  ;
10350  return 0;
10351}
10352_ACEOF
10353if ac_fn_c_try_link "$LINENO"; then :
10354
10355  lt_aix_libpath_sed='
10356      /Import File Strings/,/^$/ {
10357	  /^0/ {
10358	      s/^0  *\([^ ]*\) *$/\1/
10359	      p
10360	  }
10361      }'
10362  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10363  # Check for a 64-bit object if we didn't find anything.
10364  if test -z "$lt_cv_aix_libpath_"; then
10365    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10366  fi
10367fi
10368rm -f core conftest.err conftest.$ac_objext \
10369    conftest$ac_exeext conftest.$ac_ext
10370  if test -z "$lt_cv_aix_libpath_"; then
10371    lt_cv_aix_libpath_=/usr/lib:/lib
10372  fi
10373
10374fi
10375
10376  aix_libpath=$lt_cv_aix_libpath_
10377fi
10378
10379	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10380	  # Warning - without using the other run time loading flags,
10381	  # -berok will link without error, but may produce a broken library.
10382	  no_undefined_flag=' $wl-bernotok'
10383	  allow_undefined_flag=' $wl-berok'
10384	  if test yes = "$with_gnu_ld"; then
10385	    # We only use this code for GNU lds that support --whole-archive.
10386	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10387	  else
10388	    # Exported symbols can be pulled into shared objects from archives
10389	    whole_archive_flag_spec='$convenience'
10390	  fi
10391	  archive_cmds_need_lc=yes
10392	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10393	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10394	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10395	  if test svr4 != "$with_aix_soname"; then
10396	    # This is similar to how AIX traditionally builds its shared libraries.
10397	    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'
10398	  fi
10399	  if test aix != "$with_aix_soname"; then
10400	    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'
10401	  else
10402	    # used by -dlpreopen to get the symbols
10403	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10404	  fi
10405	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10406	fi
10407      fi
10408      ;;
10409
10410    amigaos*)
10411      case $host_cpu in
10412      powerpc)
10413            # see comment about AmigaOS4 .so support
10414            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10415            archive_expsym_cmds=''
10416        ;;
10417      m68k)
10418            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)'
10419            hardcode_libdir_flag_spec='-L$libdir'
10420            hardcode_minus_L=yes
10421        ;;
10422      esac
10423      ;;
10424
10425    bsdi[45]*)
10426      export_dynamic_flag_spec=-rdynamic
10427      ;;
10428
10429    cygwin* | mingw* | pw32* | cegcc*)
10430      # When not using gcc, we currently assume that we are using
10431      # Microsoft Visual C++ or Intel C++ Compiler.
10432      # hardcode_libdir_flag_spec is actually meaningless, as there is
10433      # no search path for DLLs.
10434      case $cc_basename in
10435      cl* | icl*)
10436	# Native MSVC or ICC
10437	hardcode_libdir_flag_spec=' '
10438	allow_undefined_flag=unsupported
10439	always_export_symbols=yes
10440	file_list_spec='@'
10441	# Tell ltmain to make .lib files, not .a files.
10442	libext=lib
10443	# Tell ltmain to make .dll files, not .so files.
10444	shrext_cmds=.dll
10445	# FIXME: Setting linknames here is a bad hack.
10446	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10447	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10448            cp "$export_symbols" "$output_objdir/$soname.def";
10449            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10450          else
10451            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10452          fi~
10453          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10454          linknames='
10455	# The linker will not automatically build a static lib if we build a DLL.
10456	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10457	enable_shared_with_static_runtimes=yes
10458	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10459	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10460	# Don't use ranlib
10461	old_postinstall_cmds='chmod 644 $oldlib'
10462	postlink_cmds='lt_outputfile="@OUTPUT@"~
10463          lt_tool_outputfile="@TOOL_OUTPUT@"~
10464          case $lt_outputfile in
10465            *.exe|*.EXE) ;;
10466            *)
10467              lt_outputfile=$lt_outputfile.exe
10468              lt_tool_outputfile=$lt_tool_outputfile.exe
10469              ;;
10470          esac~
10471          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10472            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10473            $RM "$lt_outputfile.manifest";
10474          fi'
10475	;;
10476      *)
10477	# Assume MSVC and ICC wrapper
10478	hardcode_libdir_flag_spec=' '
10479	allow_undefined_flag=unsupported
10480	# Tell ltmain to make .lib files, not .a files.
10481	libext=lib
10482	# Tell ltmain to make .dll files, not .so files.
10483	shrext_cmds=.dll
10484	# FIXME: Setting linknames here is a bad hack.
10485	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10486	# The linker will automatically build a .lib file if we build a DLL.
10487	old_archive_from_new_cmds='true'
10488	# FIXME: Should let the user specify the lib program.
10489	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10490	enable_shared_with_static_runtimes=yes
10491	;;
10492      esac
10493      ;;
10494
10495    darwin* | rhapsody*)
10496
10497
10498  archive_cmds_need_lc=no
10499  hardcode_direct=no
10500  hardcode_automatic=yes
10501  hardcode_shlibpath_var=unsupported
10502  if test yes = "$lt_cv_ld_force_load"; then
10503    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\"`'
10504
10505  else
10506    whole_archive_flag_spec=''
10507  fi
10508  link_all_deplibs=yes
10509  allow_undefined_flag=$_lt_dar_allow_undefined
10510  case $cc_basename in
10511     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10512     *) _lt_dar_can_shared=$GCC ;;
10513  esac
10514  if test yes = "$_lt_dar_can_shared"; then
10515    output_verbose_link_cmd=func_echo_all
10516    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10517    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10518    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"
10519    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"
10520
10521  else
10522  ld_shlibs=no
10523  fi
10524
10525      ;;
10526
10527    dgux*)
10528      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10529      hardcode_libdir_flag_spec='-L$libdir'
10530      hardcode_shlibpath_var=no
10531      ;;
10532
10533    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10534    # support.  Future versions do this automatically, but an explicit c++rt0.o
10535    # does not break anything, and helps significantly (at the cost of a little
10536    # extra space).
10537    freebsd2.2*)
10538      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10539      hardcode_libdir_flag_spec='-R$libdir'
10540      hardcode_direct=yes
10541      hardcode_shlibpath_var=no
10542      ;;
10543
10544    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10545    freebsd2.*)
10546      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10547      hardcode_direct=yes
10548      hardcode_minus_L=yes
10549      hardcode_shlibpath_var=no
10550      ;;
10551
10552    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10553    freebsd* | dragonfly*)
10554      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10555      hardcode_libdir_flag_spec='-R$libdir'
10556      hardcode_direct=yes
10557      hardcode_shlibpath_var=no
10558      ;;
10559
10560    hpux9*)
10561      if test yes = "$GCC"; then
10562	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'
10563      else
10564	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'
10565      fi
10566      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10567      hardcode_libdir_separator=:
10568      hardcode_direct=yes
10569
10570      # hardcode_minus_L: Not really in the search PATH,
10571      # but as the default location of the library.
10572      hardcode_minus_L=yes
10573      export_dynamic_flag_spec='$wl-E'
10574      ;;
10575
10576    hpux10*)
10577      if test yes,no = "$GCC,$with_gnu_ld"; then
10578	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10579      else
10580	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10581      fi
10582      if test no = "$with_gnu_ld"; then
10583	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10584	hardcode_libdir_separator=:
10585	hardcode_direct=yes
10586	hardcode_direct_absolute=yes
10587	export_dynamic_flag_spec='$wl-E'
10588	# hardcode_minus_L: Not really in the search PATH,
10589	# but as the default location of the library.
10590	hardcode_minus_L=yes
10591      fi
10592      ;;
10593
10594    hpux11*)
10595      if test yes,no = "$GCC,$with_gnu_ld"; then
10596	case $host_cpu in
10597	hppa*64*)
10598	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10599	  ;;
10600	ia64*)
10601	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10602	  ;;
10603	*)
10604	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10605	  ;;
10606	esac
10607      else
10608	case $host_cpu in
10609	hppa*64*)
10610	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10611	  ;;
10612	ia64*)
10613	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10614	  ;;
10615	*)
10616
10617	  # Older versions of the 11.00 compiler do not understand -b yet
10618	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10619	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10620$as_echo_n "checking if $CC understands -b... " >&6; }
10621if ${lt_cv_prog_compiler__b+:} false; then :
10622  $as_echo_n "(cached) " >&6
10623else
10624  lt_cv_prog_compiler__b=no
10625   save_LDFLAGS=$LDFLAGS
10626   LDFLAGS="$LDFLAGS -b"
10627   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10628   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10629     # The linker can only warn and ignore the option if not recognized
10630     # So say no if there are warnings
10631     if test -s conftest.err; then
10632       # Append any errors to the config.log.
10633       cat conftest.err 1>&5
10634       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10635       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10636       if diff conftest.exp conftest.er2 >/dev/null; then
10637         lt_cv_prog_compiler__b=yes
10638       fi
10639     else
10640       lt_cv_prog_compiler__b=yes
10641     fi
10642   fi
10643   $RM -r conftest*
10644   LDFLAGS=$save_LDFLAGS
10645
10646fi
10647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10648$as_echo "$lt_cv_prog_compiler__b" >&6; }
10649
10650if test yes = "$lt_cv_prog_compiler__b"; then
10651    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10652else
10653    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10654fi
10655
10656	  ;;
10657	esac
10658      fi
10659      if test no = "$with_gnu_ld"; then
10660	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10661	hardcode_libdir_separator=:
10662
10663	case $host_cpu in
10664	hppa*64*|ia64*)
10665	  hardcode_direct=no
10666	  hardcode_shlibpath_var=no
10667	  ;;
10668	*)
10669	  hardcode_direct=yes
10670	  hardcode_direct_absolute=yes
10671	  export_dynamic_flag_spec='$wl-E'
10672
10673	  # hardcode_minus_L: Not really in the search PATH,
10674	  # but as the default location of the library.
10675	  hardcode_minus_L=yes
10676	  ;;
10677	esac
10678      fi
10679      ;;
10680
10681    irix5* | irix6* | nonstopux*)
10682      if test yes = "$GCC"; then
10683	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'
10684	# Try to use the -exported_symbol ld option, if it does not
10685	# work, assume that -exports_file does not work either and
10686	# implicitly export all symbols.
10687	# This should be the same for all languages, so no per-tag cache variable.
10688	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10689$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10690if ${lt_cv_irix_exported_symbol+:} false; then :
10691  $as_echo_n "(cached) " >&6
10692else
10693  save_LDFLAGS=$LDFLAGS
10694	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10695	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10696/* end confdefs.h.  */
10697int foo (void) { return 0; }
10698_ACEOF
10699if ac_fn_c_try_link "$LINENO"; then :
10700  lt_cv_irix_exported_symbol=yes
10701else
10702  lt_cv_irix_exported_symbol=no
10703fi
10704rm -f core conftest.err conftest.$ac_objext \
10705    conftest$ac_exeext conftest.$ac_ext
10706           LDFLAGS=$save_LDFLAGS
10707fi
10708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10709$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10710	if test yes = "$lt_cv_irix_exported_symbol"; then
10711          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'
10712	fi
10713      else
10714	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'
10715	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'
10716      fi
10717      archive_cmds_need_lc='no'
10718      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10719      hardcode_libdir_separator=:
10720      inherit_rpath=yes
10721      link_all_deplibs=yes
10722      ;;
10723
10724    linux*)
10725      case $cc_basename in
10726      tcc*)
10727	# Fabrice Bellard et al's Tiny C Compiler
10728	ld_shlibs=yes
10729	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10730	;;
10731      esac
10732      ;;
10733
10734    netbsd*)
10735      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10736	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10737      else
10738	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10739      fi
10740      hardcode_libdir_flag_spec='-R$libdir'
10741      hardcode_direct=yes
10742      hardcode_shlibpath_var=no
10743      ;;
10744
10745    newsos6)
10746      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10747      hardcode_direct=yes
10748      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10749      hardcode_libdir_separator=:
10750      hardcode_shlibpath_var=no
10751      ;;
10752
10753    *nto* | *qnx*)
10754      ;;
10755
10756    openbsd* | bitrig*)
10757      if test -f /usr/libexec/ld.so; then
10758	hardcode_direct=yes
10759	hardcode_shlibpath_var=no
10760	hardcode_direct_absolute=yes
10761	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10762	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10763	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10764	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10765	  export_dynamic_flag_spec='$wl-E'
10766	else
10767	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10768	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10769	fi
10770      else
10771	ld_shlibs=no
10772      fi
10773      ;;
10774
10775    os2*)
10776      hardcode_libdir_flag_spec='-L$libdir'
10777      hardcode_minus_L=yes
10778      allow_undefined_flag=unsupported
10779      shrext_cmds=.dll
10780      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10781	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10782	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10783	$ECHO EXPORTS >> $output_objdir/$libname.def~
10784	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10785	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10786	emximp -o $lib $output_objdir/$libname.def'
10787      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10788	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10789	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10790	$ECHO EXPORTS >> $output_objdir/$libname.def~
10791	prefix_cmds="$SED"~
10792	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10793	  prefix_cmds="$prefix_cmds -e 1d";
10794	fi~
10795	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10796	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10797	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10798	emximp -o $lib $output_objdir/$libname.def'
10799      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10800      enable_shared_with_static_runtimes=yes
10801      file_list_spec='@'
10802      ;;
10803
10804    osf3*)
10805      if test yes = "$GCC"; then
10806	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10807	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'
10808      else
10809	allow_undefined_flag=' -expect_unresolved \*'
10810	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'
10811      fi
10812      archive_cmds_need_lc='no'
10813      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10814      hardcode_libdir_separator=:
10815      ;;
10816
10817    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10818      if test yes = "$GCC"; then
10819	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10820	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'
10821	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10822      else
10823	allow_undefined_flag=' -expect_unresolved \*'
10824	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'
10825	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~
10826          $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'
10827
10828	# Both c and cxx compiler support -rpath directly
10829	hardcode_libdir_flag_spec='-rpath $libdir'
10830      fi
10831      archive_cmds_need_lc='no'
10832      hardcode_libdir_separator=:
10833      ;;
10834
10835    solaris*)
10836      no_undefined_flag=' -z defs'
10837      if test yes = "$GCC"; then
10838	wlarc='$wl'
10839	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10840	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10841          $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'
10842      else
10843	case `$CC -V 2>&1` in
10844	*"Compilers 5.0"*)
10845	  wlarc=''
10846	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10847	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10848            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10849	  ;;
10850	*)
10851	  wlarc='$wl'
10852	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10853	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10854            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10855	  ;;
10856	esac
10857      fi
10858      hardcode_libdir_flag_spec='-R$libdir'
10859      hardcode_shlibpath_var=no
10860      case $host_os in
10861      solaris2.[0-5] | solaris2.[0-5].*) ;;
10862      *)
10863	# The compiler driver will combine and reorder linker options,
10864	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10865	# but is careful enough not to reorder.
10866	# Supported since Solaris 2.6 (maybe 2.5.1?)
10867	if test yes = "$GCC"; then
10868	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10869	else
10870	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10871	fi
10872	;;
10873      esac
10874      link_all_deplibs=yes
10875      ;;
10876
10877    sunos4*)
10878      if test sequent = "$host_vendor"; then
10879	# Use $CC to link under sequent, because it throws in some extra .o
10880	# files that make .init and .fini sections work.
10881	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10882      else
10883	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10884      fi
10885      hardcode_libdir_flag_spec='-L$libdir'
10886      hardcode_direct=yes
10887      hardcode_minus_L=yes
10888      hardcode_shlibpath_var=no
10889      ;;
10890
10891    sysv4)
10892      case $host_vendor in
10893	sni)
10894	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10895	  hardcode_direct=yes # is this really true???
10896	;;
10897	siemens)
10898	  ## LD is ld it makes a PLAMLIB
10899	  ## CC just makes a GrossModule.
10900	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10901	  reload_cmds='$CC -r -o $output$reload_objs'
10902	  hardcode_direct=no
10903        ;;
10904	motorola)
10905	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10906	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10907	;;
10908      esac
10909      runpath_var='LD_RUN_PATH'
10910      hardcode_shlibpath_var=no
10911      ;;
10912
10913    sysv4.3*)
10914      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10915      hardcode_shlibpath_var=no
10916      export_dynamic_flag_spec='-Bexport'
10917      ;;
10918
10919    sysv4*MP*)
10920      if test -d /usr/nec; then
10921	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10922	hardcode_shlibpath_var=no
10923	runpath_var=LD_RUN_PATH
10924	hardcode_runpath_var=yes
10925	ld_shlibs=yes
10926      fi
10927      ;;
10928
10929    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10930      no_undefined_flag='$wl-z,text'
10931      archive_cmds_need_lc=no
10932      hardcode_shlibpath_var=no
10933      runpath_var='LD_RUN_PATH'
10934
10935      if test yes = "$GCC"; then
10936	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10937	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10938      else
10939	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10940	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10941      fi
10942      ;;
10943
10944    sysv5* | sco3.2v5* | sco5v6*)
10945      # Note: We CANNOT use -z defs as we might desire, because we do not
10946      # link with -lc, and that would cause any symbols used from libc to
10947      # always be unresolved, which means just about no library would
10948      # ever link correctly.  If we're not using GNU ld we use -z text
10949      # though, which does catch some bad symbols but isn't as heavy-handed
10950      # as -z defs.
10951      no_undefined_flag='$wl-z,text'
10952      allow_undefined_flag='$wl-z,nodefs'
10953      archive_cmds_need_lc=no
10954      hardcode_shlibpath_var=no
10955      hardcode_libdir_flag_spec='$wl-R,$libdir'
10956      hardcode_libdir_separator=':'
10957      link_all_deplibs=yes
10958      export_dynamic_flag_spec='$wl-Bexport'
10959      runpath_var='LD_RUN_PATH'
10960
10961      if test yes = "$GCC"; then
10962	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10963	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10964      else
10965	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10966	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10967      fi
10968      ;;
10969
10970    uts4*)
10971      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10972      hardcode_libdir_flag_spec='-L$libdir'
10973      hardcode_shlibpath_var=no
10974      ;;
10975
10976    *)
10977      ld_shlibs=no
10978      ;;
10979    esac
10980
10981    if test sni = "$host_vendor"; then
10982      case $host in
10983      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10984	export_dynamic_flag_spec='$wl-Blargedynsym'
10985	;;
10986      esac
10987    fi
10988  fi
10989
10990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10991$as_echo "$ld_shlibs" >&6; }
10992test no = "$ld_shlibs" && can_build_shared=no
10993
10994with_gnu_ld=$with_gnu_ld
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010#
11011# Do we need to explicitly link libc?
11012#
11013case "x$archive_cmds_need_lc" in
11014x|xyes)
11015  # Assume -lc should be added
11016  archive_cmds_need_lc=yes
11017
11018  if test yes,yes = "$GCC,$enable_shared"; then
11019    case $archive_cmds in
11020    *'~'*)
11021      # FIXME: we may have to deal with multi-command sequences.
11022      ;;
11023    '$CC '*)
11024      # Test whether the compiler implicitly links with -lc since on some
11025      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11026      # to ld, don't add -lc before -lgcc.
11027      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11028$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11029if ${lt_cv_archive_cmds_need_lc+:} false; then :
11030  $as_echo_n "(cached) " >&6
11031else
11032  $RM conftest*
11033	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11034
11035	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11036  (eval $ac_compile) 2>&5
11037  ac_status=$?
11038  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11039  test $ac_status = 0; } 2>conftest.err; then
11040	  soname=conftest
11041	  lib=conftest
11042	  libobjs=conftest.$ac_objext
11043	  deplibs=
11044	  wl=$lt_prog_compiler_wl
11045	  pic_flag=$lt_prog_compiler_pic
11046	  compiler_flags=-v
11047	  linker_flags=-v
11048	  verstring=
11049	  output_objdir=.
11050	  libname=conftest
11051	  lt_save_allow_undefined_flag=$allow_undefined_flag
11052	  allow_undefined_flag=
11053	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11054  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11055  ac_status=$?
11056  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11057  test $ac_status = 0; }
11058	  then
11059	    lt_cv_archive_cmds_need_lc=no
11060	  else
11061	    lt_cv_archive_cmds_need_lc=yes
11062	  fi
11063	  allow_undefined_flag=$lt_save_allow_undefined_flag
11064	else
11065	  cat conftest.err 1>&5
11066	fi
11067	$RM conftest*
11068
11069fi
11070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11071$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11072      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11073      ;;
11074    esac
11075  fi
11076  ;;
11077esac
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11231$as_echo_n "checking dynamic linker characteristics... " >&6; }
11232
11233if test yes = "$GCC"; then
11234  case $host_os in
11235    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11236    *) lt_awk_arg='/^libraries:/' ;;
11237  esac
11238  case $host_os in
11239    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11240    *) lt_sed_strip_eq='s|=/|/|g' ;;
11241  esac
11242  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11243  case $lt_search_path_spec in
11244  *\;*)
11245    # if the path contains ";" then we assume it to be the separator
11246    # otherwise default to the standard path separator (i.e. ":") - it is
11247    # assumed that no part of a normal pathname contains ";" but that should
11248    # okay in the real world where ";" in dirpaths is itself problematic.
11249    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11250    ;;
11251  *)
11252    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11253    ;;
11254  esac
11255  # Ok, now we have the path, separated by spaces, we can step through it
11256  # and add multilib dir if necessary...
11257  lt_tmp_lt_search_path_spec=
11258  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11259  # ...but if some path component already ends with the multilib dir we assume
11260  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11261  case "$lt_multi_os_dir; $lt_search_path_spec " in
11262  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11263    lt_multi_os_dir=
11264    ;;
11265  esac
11266  for lt_sys_path in $lt_search_path_spec; do
11267    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11268      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11269    elif test -n "$lt_multi_os_dir"; then
11270      test -d "$lt_sys_path" && \
11271	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11272    fi
11273  done
11274  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11275BEGIN {RS = " "; FS = "/|\n";} {
11276  lt_foo = "";
11277  lt_count = 0;
11278  for (lt_i = NF; lt_i > 0; lt_i--) {
11279    if ($lt_i != "" && $lt_i != ".") {
11280      if ($lt_i == "..") {
11281        lt_count++;
11282      } else {
11283        if (lt_count == 0) {
11284          lt_foo = "/" $lt_i lt_foo;
11285        } else {
11286          lt_count--;
11287        }
11288      }
11289    }
11290  }
11291  if (lt_foo != "") { lt_freq[lt_foo]++; }
11292  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11293}'`
11294  # AWK program above erroneously prepends '/' to C:/dos/paths
11295  # for these hosts.
11296  case $host_os in
11297    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11298      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11299  esac
11300  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11301else
11302  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11303fi
11304library_names_spec=
11305libname_spec='lib$name'
11306soname_spec=
11307shrext_cmds=.so
11308postinstall_cmds=
11309postuninstall_cmds=
11310finish_cmds=
11311finish_eval=
11312shlibpath_var=
11313shlibpath_overrides_runpath=unknown
11314version_type=none
11315dynamic_linker="$host_os ld.so"
11316sys_lib_dlsearch_path_spec="/lib /usr/lib"
11317need_lib_prefix=unknown
11318hardcode_into_libs=no
11319
11320# when you set need_version to no, make sure it does not cause -set_version
11321# flags to be left without arguments
11322need_version=unknown
11323
11324
11325
11326case $host_os in
11327aix3*)
11328  version_type=linux # correct to gnu/linux during the next big refactor
11329  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11330  shlibpath_var=LIBPATH
11331
11332  # AIX 3 has no versioning support, so we append a major version to the name.
11333  soname_spec='$libname$release$shared_ext$major'
11334  ;;
11335
11336aix[4-9]*)
11337  version_type=linux # correct to gnu/linux during the next big refactor
11338  need_lib_prefix=no
11339  need_version=no
11340  hardcode_into_libs=yes
11341  if test ia64 = "$host_cpu"; then
11342    # AIX 5 supports IA64
11343    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11344    shlibpath_var=LD_LIBRARY_PATH
11345  else
11346    # With GCC up to 2.95.x, collect2 would create an import file
11347    # for dependence libraries.  The import file would start with
11348    # the line '#! .'.  This would cause the generated library to
11349    # depend on '.', always an invalid library.  This was fixed in
11350    # development snapshots of GCC prior to 3.0.
11351    case $host_os in
11352      aix4 | aix4.[01] | aix4.[01].*)
11353      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11354	   echo ' yes '
11355	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11356	:
11357      else
11358	can_build_shared=no
11359      fi
11360      ;;
11361    esac
11362    # Using Import Files as archive members, it is possible to support
11363    # filename-based versioning of shared library archives on AIX. While
11364    # this would work for both with and without runtime linking, it will
11365    # prevent static linking of such archives. So we do filename-based
11366    # shared library versioning with .so extension only, which is used
11367    # when both runtime linking and shared linking is enabled.
11368    # Unfortunately, runtime linking may impact performance, so we do
11369    # not want this to be the default eventually. Also, we use the
11370    # versioned .so libs for executables only if there is the -brtl
11371    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11372    # To allow for filename-based versioning support, we need to create
11373    # libNAME.so.V as an archive file, containing:
11374    # *) an Import File, referring to the versioned filename of the
11375    #    archive as well as the shared archive member, telling the
11376    #    bitwidth (32 or 64) of that shared object, and providing the
11377    #    list of exported symbols of that shared object, eventually
11378    #    decorated with the 'weak' keyword
11379    # *) the shared object with the F_LOADONLY flag set, to really avoid
11380    #    it being seen by the linker.
11381    # At run time we better use the real file rather than another symlink,
11382    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11383
11384    case $with_aix_soname,$aix_use_runtimelinking in
11385    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11386    # soname into executable. Probably we can add versioning support to
11387    # collect2, so additional links can be useful in future.
11388    aix,yes) # traditional libtool
11389      dynamic_linker='AIX unversionable lib.so'
11390      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11391      # instead of lib<name>.a to let people know that these are not
11392      # typical AIX shared libraries.
11393      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11394      ;;
11395    aix,no) # traditional AIX only
11396      dynamic_linker='AIX lib.a(lib.so.V)'
11397      # We preserve .a as extension for shared libraries through AIX4.2
11398      # and later when we are not doing run time linking.
11399      library_names_spec='$libname$release.a $libname.a'
11400      soname_spec='$libname$release$shared_ext$major'
11401      ;;
11402    svr4,*) # full svr4 only
11403      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11404      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11405      # We do not specify a path in Import Files, so LIBPATH fires.
11406      shlibpath_overrides_runpath=yes
11407      ;;
11408    *,yes) # both, prefer svr4
11409      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11410      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11411      # unpreferred sharedlib libNAME.a needs extra handling
11412      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"'
11413      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"'
11414      # We do not specify a path in Import Files, so LIBPATH fires.
11415      shlibpath_overrides_runpath=yes
11416      ;;
11417    *,no) # both, prefer aix
11418      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11419      library_names_spec='$libname$release.a $libname.a'
11420      soname_spec='$libname$release$shared_ext$major'
11421      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11422      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)'
11423      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"'
11424      ;;
11425    esac
11426    shlibpath_var=LIBPATH
11427  fi
11428  ;;
11429
11430amigaos*)
11431  case $host_cpu in
11432  powerpc)
11433    # Since July 2007 AmigaOS4 officially supports .so libraries.
11434    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11435    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11436    ;;
11437  m68k)
11438    library_names_spec='$libname.ixlibrary $libname.a'
11439    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11440    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'
11441    ;;
11442  esac
11443  ;;
11444
11445beos*)
11446  library_names_spec='$libname$shared_ext'
11447  dynamic_linker="$host_os ld.so"
11448  shlibpath_var=LIBRARY_PATH
11449  ;;
11450
11451bsdi[45]*)
11452  version_type=linux # correct to gnu/linux during the next big refactor
11453  need_version=no
11454  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11455  soname_spec='$libname$release$shared_ext$major'
11456  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11457  shlibpath_var=LD_LIBRARY_PATH
11458  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11459  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11460  # the default ld.so.conf also contains /usr/contrib/lib and
11461  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11462  # libtool to hard-code these into programs
11463  ;;
11464
11465cygwin* | mingw* | pw32* | cegcc*)
11466  version_type=windows
11467  shrext_cmds=.dll
11468  need_version=no
11469  need_lib_prefix=no
11470
11471  case $GCC,$cc_basename in
11472  yes,*)
11473    # gcc
11474    library_names_spec='$libname.dll.a'
11475    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11476    postinstall_cmds='base_file=`basename \$file`~
11477      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11478      dldir=$destdir/`dirname \$dlpath`~
11479      test -d \$dldir || mkdir -p \$dldir~
11480      $install_prog $dir/$dlname \$dldir/$dlname~
11481      chmod a+x \$dldir/$dlname~
11482      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11483        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11484      fi'
11485    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11486      dlpath=$dir/\$dldll~
11487       $RM \$dlpath'
11488    shlibpath_overrides_runpath=yes
11489
11490    case $host_os in
11491    cygwin*)
11492      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11493      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11494
11495      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11496      ;;
11497    mingw* | cegcc*)
11498      # MinGW DLLs use traditional 'lib' prefix
11499      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11500      ;;
11501    pw32*)
11502      # pw32 DLLs use 'pw' prefix rather than 'lib'
11503      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11504      ;;
11505    esac
11506    dynamic_linker='Win32 ld.exe'
11507    ;;
11508
11509  *,cl* | *,icl*)
11510    # Native MSVC or ICC
11511    libname_spec='$name'
11512    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11513    library_names_spec='$libname.dll.lib'
11514
11515    case $build_os in
11516    mingw*)
11517      sys_lib_search_path_spec=
11518      lt_save_ifs=$IFS
11519      IFS=';'
11520      for lt_path in $LIB
11521      do
11522        IFS=$lt_save_ifs
11523        # Let DOS variable expansion print the short 8.3 style file name.
11524        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11525        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11526      done
11527      IFS=$lt_save_ifs
11528      # Convert to MSYS style.
11529      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11530      ;;
11531    cygwin*)
11532      # Convert to unix form, then to dos form, then back to unix form
11533      # but this time dos style (no spaces!) so that the unix form looks
11534      # like /cygdrive/c/PROGRA~1:/cygdr...
11535      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11536      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11537      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11538      ;;
11539    *)
11540      sys_lib_search_path_spec=$LIB
11541      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11542        # It is most probably a Windows format PATH.
11543        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11544      else
11545        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11546      fi
11547      # FIXME: find the short name or the path components, as spaces are
11548      # common. (e.g. "Program Files" -> "PROGRA~1")
11549      ;;
11550    esac
11551
11552    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11553    postinstall_cmds='base_file=`basename \$file`~
11554      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11555      dldir=$destdir/`dirname \$dlpath`~
11556      test -d \$dldir || mkdir -p \$dldir~
11557      $install_prog $dir/$dlname \$dldir/$dlname'
11558    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11559      dlpath=$dir/\$dldll~
11560       $RM \$dlpath'
11561    shlibpath_overrides_runpath=yes
11562    dynamic_linker='Win32 link.exe'
11563    ;;
11564
11565  *)
11566    # Assume MSVC and ICC wrapper
11567    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11568    dynamic_linker='Win32 ld.exe'
11569    ;;
11570  esac
11571  # FIXME: first we should search . and the directory the executable is in
11572  shlibpath_var=PATH
11573  ;;
11574
11575darwin* | rhapsody*)
11576  dynamic_linker="$host_os dyld"
11577  version_type=darwin
11578  need_lib_prefix=no
11579  need_version=no
11580  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11581  soname_spec='$libname$release$major$shared_ext'
11582  shlibpath_overrides_runpath=yes
11583  shlibpath_var=DYLD_LIBRARY_PATH
11584  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11585
11586  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11587  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11588  ;;
11589
11590dgux*)
11591  version_type=linux # correct to gnu/linux during the next big refactor
11592  need_lib_prefix=no
11593  need_version=no
11594  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11595  soname_spec='$libname$release$shared_ext$major'
11596  shlibpath_var=LD_LIBRARY_PATH
11597  ;;
11598
11599freebsd* | dragonfly*)
11600  # DragonFly does not have aout.  When/if they implement a new
11601  # versioning mechanism, adjust this.
11602  if test -x /usr/bin/objformat; then
11603    objformat=`/usr/bin/objformat`
11604  else
11605    case $host_os in
11606    freebsd[23].*) objformat=aout ;;
11607    *) objformat=elf ;;
11608    esac
11609  fi
11610  version_type=freebsd-$objformat
11611  case $version_type in
11612    freebsd-elf*)
11613      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11614      soname_spec='$libname$release$shared_ext$major'
11615      need_version=no
11616      need_lib_prefix=no
11617      ;;
11618    freebsd-*)
11619      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11620      need_version=yes
11621      ;;
11622  esac
11623  shlibpath_var=LD_LIBRARY_PATH
11624  case $host_os in
11625  freebsd2.*)
11626    shlibpath_overrides_runpath=yes
11627    ;;
11628  freebsd3.[01]* | freebsdelf3.[01]*)
11629    shlibpath_overrides_runpath=yes
11630    hardcode_into_libs=yes
11631    ;;
11632  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11633  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11634    shlibpath_overrides_runpath=no
11635    hardcode_into_libs=yes
11636    ;;
11637  *) # from 4.6 on, and DragonFly
11638    shlibpath_overrides_runpath=yes
11639    hardcode_into_libs=yes
11640    ;;
11641  esac
11642  ;;
11643
11644haiku*)
11645  version_type=linux # correct to gnu/linux during the next big refactor
11646  need_lib_prefix=no
11647  need_version=no
11648  dynamic_linker="$host_os runtime_loader"
11649  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11650  soname_spec='$libname$release$shared_ext$major'
11651  shlibpath_var=LIBRARY_PATH
11652  shlibpath_overrides_runpath=no
11653  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11654  hardcode_into_libs=yes
11655  ;;
11656
11657hpux9* | hpux10* | hpux11*)
11658  # Give a soname corresponding to the major version so that dld.sl refuses to
11659  # link against other versions.
11660  version_type=sunos
11661  need_lib_prefix=no
11662  need_version=no
11663  case $host_cpu in
11664  ia64*)
11665    shrext_cmds='.so'
11666    hardcode_into_libs=yes
11667    dynamic_linker="$host_os dld.so"
11668    shlibpath_var=LD_LIBRARY_PATH
11669    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11670    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11671    soname_spec='$libname$release$shared_ext$major'
11672    if test 32 = "$HPUX_IA64_MODE"; then
11673      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11674      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11675    else
11676      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11677      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11678    fi
11679    ;;
11680  hppa*64*)
11681    shrext_cmds='.sl'
11682    hardcode_into_libs=yes
11683    dynamic_linker="$host_os dld.sl"
11684    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11685    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11686    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11687    soname_spec='$libname$release$shared_ext$major'
11688    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11689    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11690    ;;
11691  *)
11692    shrext_cmds='.sl'
11693    dynamic_linker="$host_os dld.sl"
11694    shlibpath_var=SHLIB_PATH
11695    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11696    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11697    soname_spec='$libname$release$shared_ext$major'
11698    ;;
11699  esac
11700  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11701  postinstall_cmds='chmod 555 $lib'
11702  # or fails outright, so override atomically:
11703  install_override_mode=555
11704  ;;
11705
11706interix[3-9]*)
11707  version_type=linux # correct to gnu/linux during the next big refactor
11708  need_lib_prefix=no
11709  need_version=no
11710  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11711  soname_spec='$libname$release$shared_ext$major'
11712  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11713  shlibpath_var=LD_LIBRARY_PATH
11714  shlibpath_overrides_runpath=no
11715  hardcode_into_libs=yes
11716  ;;
11717
11718irix5* | irix6* | nonstopux*)
11719  case $host_os in
11720    nonstopux*) version_type=nonstopux ;;
11721    *)
11722	if test yes = "$lt_cv_prog_gnu_ld"; then
11723		version_type=linux # correct to gnu/linux during the next big refactor
11724	else
11725		version_type=irix
11726	fi ;;
11727  esac
11728  need_lib_prefix=no
11729  need_version=no
11730  soname_spec='$libname$release$shared_ext$major'
11731  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11732  case $host_os in
11733  irix5* | nonstopux*)
11734    libsuff= shlibsuff=
11735    ;;
11736  *)
11737    case $LD in # libtool.m4 will add one of these switches to LD
11738    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11739      libsuff= shlibsuff= libmagic=32-bit;;
11740    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11741      libsuff=32 shlibsuff=N32 libmagic=N32;;
11742    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11743      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11744    *) libsuff= shlibsuff= libmagic=never-match;;
11745    esac
11746    ;;
11747  esac
11748  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11749  shlibpath_overrides_runpath=no
11750  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11751  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11752  hardcode_into_libs=yes
11753  ;;
11754
11755# No shared lib support for Linux oldld, aout, or coff.
11756linux*oldld* | linux*aout* | linux*coff*)
11757  dynamic_linker=no
11758  ;;
11759
11760linux*android*)
11761  version_type=none # Android doesn't support versioned libraries.
11762  need_lib_prefix=no
11763  need_version=no
11764  library_names_spec='$libname$release$shared_ext'
11765  soname_spec='$libname$release$shared_ext'
11766  finish_cmds=
11767  shlibpath_var=LD_LIBRARY_PATH
11768  shlibpath_overrides_runpath=yes
11769
11770  # This implies no fast_install, which is unacceptable.
11771  # Some rework will be needed to allow for fast_install
11772  # before this can be enabled.
11773  hardcode_into_libs=yes
11774
11775  dynamic_linker='Android linker'
11776  # Don't embed -rpath directories since the linker doesn't support them.
11777  hardcode_libdir_flag_spec='-L$libdir'
11778  ;;
11779
11780# This must be glibc/ELF.
11781linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11782  version_type=linux # correct to gnu/linux during the next big refactor
11783  need_lib_prefix=no
11784  need_version=no
11785  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11786  soname_spec='$libname$release$shared_ext$major'
11787  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11788  shlibpath_var=LD_LIBRARY_PATH
11789  shlibpath_overrides_runpath=no
11790
11791  # Some binutils ld are patched to set DT_RUNPATH
11792  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11793  $as_echo_n "(cached) " >&6
11794else
11795  lt_cv_shlibpath_overrides_runpath=no
11796    save_LDFLAGS=$LDFLAGS
11797    save_libdir=$libdir
11798    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11799	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11800    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11801/* end confdefs.h.  */
11802
11803int
11804main ()
11805{
11806
11807  ;
11808  return 0;
11809}
11810_ACEOF
11811if ac_fn_c_try_link "$LINENO"; then :
11812  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11813  lt_cv_shlibpath_overrides_runpath=yes
11814fi
11815fi
11816rm -f core conftest.err conftest.$ac_objext \
11817    conftest$ac_exeext conftest.$ac_ext
11818    LDFLAGS=$save_LDFLAGS
11819    libdir=$save_libdir
11820
11821fi
11822
11823  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11824
11825  # This implies no fast_install, which is unacceptable.
11826  # Some rework will be needed to allow for fast_install
11827  # before this can be enabled.
11828  hardcode_into_libs=yes
11829
11830  # Ideally, we could use ldconfig to report *all* directores which are
11831  # searched for libraries, however this is still not possible.  Aside from not
11832  # being certain /sbin/ldconfig is available, command
11833  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11834  # even though it is searched at run-time.  Try to do the best guess by
11835  # appending ld.so.conf contents (and includes) to the search path.
11836  if test -f /etc/ld.so.conf; then
11837    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' ' '`
11838    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11839  fi
11840
11841  # We used to test for /lib/ld.so.1 and disable shared libraries on
11842  # powerpc, because MkLinux only supported shared libraries with the
11843  # GNU dynamic linker.  Since this was broken with cross compilers,
11844  # most powerpc-linux boxes support dynamic linking these days and
11845  # people can always --disable-shared, the test was removed, and we
11846  # assume the GNU/Linux dynamic linker is in use.
11847  dynamic_linker='GNU/Linux ld.so'
11848  ;;
11849
11850netbsd*)
11851  version_type=sunos
11852  need_lib_prefix=no
11853  need_version=no
11854  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11855    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11856    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11857    dynamic_linker='NetBSD (a.out) ld.so'
11858  else
11859    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11860    soname_spec='$libname$release$shared_ext$major'
11861    dynamic_linker='NetBSD ld.elf_so'
11862  fi
11863  shlibpath_var=LD_LIBRARY_PATH
11864  shlibpath_overrides_runpath=yes
11865  hardcode_into_libs=yes
11866  ;;
11867
11868newsos6)
11869  version_type=linux # correct to gnu/linux during the next big refactor
11870  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11871  shlibpath_var=LD_LIBRARY_PATH
11872  shlibpath_overrides_runpath=yes
11873  ;;
11874
11875*nto* | *qnx*)
11876  version_type=qnx
11877  need_lib_prefix=no
11878  need_version=no
11879  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11880  soname_spec='$libname$release$shared_ext$major'
11881  shlibpath_var=LD_LIBRARY_PATH
11882  shlibpath_overrides_runpath=no
11883  hardcode_into_libs=yes
11884  dynamic_linker='ldqnx.so'
11885  ;;
11886
11887openbsd* | bitrig*)
11888  version_type=sunos
11889  sys_lib_dlsearch_path_spec=/usr/lib
11890  need_lib_prefix=no
11891  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11892    need_version=no
11893  else
11894    need_version=yes
11895  fi
11896  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11897  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11898  shlibpath_var=LD_LIBRARY_PATH
11899  shlibpath_overrides_runpath=yes
11900  ;;
11901
11902os2*)
11903  libname_spec='$name'
11904  version_type=windows
11905  shrext_cmds=.dll
11906  need_version=no
11907  need_lib_prefix=no
11908  # OS/2 can only load a DLL with a base name of 8 characters or less.
11909  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11910    v=$($ECHO $release$versuffix | tr -d .-);
11911    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11912    $ECHO $n$v`$shared_ext'
11913  library_names_spec='${libname}_dll.$libext'
11914  dynamic_linker='OS/2 ld.exe'
11915  shlibpath_var=BEGINLIBPATH
11916  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11917  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11918  postinstall_cmds='base_file=`basename \$file`~
11919    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11920    dldir=$destdir/`dirname \$dlpath`~
11921    test -d \$dldir || mkdir -p \$dldir~
11922    $install_prog $dir/$dlname \$dldir/$dlname~
11923    chmod a+x \$dldir/$dlname~
11924    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11925      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11926    fi'
11927  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11928    dlpath=$dir/\$dldll~
11929    $RM \$dlpath'
11930  ;;
11931
11932osf3* | osf4* | osf5*)
11933  version_type=osf
11934  need_lib_prefix=no
11935  need_version=no
11936  soname_spec='$libname$release$shared_ext$major'
11937  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11938  shlibpath_var=LD_LIBRARY_PATH
11939  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11940  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11941  ;;
11942
11943rdos*)
11944  dynamic_linker=no
11945  ;;
11946
11947solaris*)
11948  version_type=linux # correct to gnu/linux during the next big refactor
11949  need_lib_prefix=no
11950  need_version=no
11951  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11952  soname_spec='$libname$release$shared_ext$major'
11953  shlibpath_var=LD_LIBRARY_PATH
11954  shlibpath_overrides_runpath=yes
11955  hardcode_into_libs=yes
11956  # ldd complains unless libraries are executable
11957  postinstall_cmds='chmod +x $lib'
11958  ;;
11959
11960sunos4*)
11961  version_type=sunos
11962  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11963  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11964  shlibpath_var=LD_LIBRARY_PATH
11965  shlibpath_overrides_runpath=yes
11966  if test yes = "$with_gnu_ld"; then
11967    need_lib_prefix=no
11968  fi
11969  need_version=yes
11970  ;;
11971
11972sysv4 | sysv4.3*)
11973  version_type=linux # correct to gnu/linux during the next big refactor
11974  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11975  soname_spec='$libname$release$shared_ext$major'
11976  shlibpath_var=LD_LIBRARY_PATH
11977  case $host_vendor in
11978    sni)
11979      shlibpath_overrides_runpath=no
11980      need_lib_prefix=no
11981      runpath_var=LD_RUN_PATH
11982      ;;
11983    siemens)
11984      need_lib_prefix=no
11985      ;;
11986    motorola)
11987      need_lib_prefix=no
11988      need_version=no
11989      shlibpath_overrides_runpath=no
11990      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11991      ;;
11992  esac
11993  ;;
11994
11995sysv4*MP*)
11996  if test -d /usr/nec; then
11997    version_type=linux # correct to gnu/linux during the next big refactor
11998    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11999    soname_spec='$libname$shared_ext.$major'
12000    shlibpath_var=LD_LIBRARY_PATH
12001  fi
12002  ;;
12003
12004sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12005  version_type=sco
12006  need_lib_prefix=no
12007  need_version=no
12008  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12009  soname_spec='$libname$release$shared_ext$major'
12010  shlibpath_var=LD_LIBRARY_PATH
12011  shlibpath_overrides_runpath=yes
12012  hardcode_into_libs=yes
12013  if test yes = "$with_gnu_ld"; then
12014    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12015  else
12016    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12017    case $host_os in
12018      sco3.2v5*)
12019        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12020	;;
12021    esac
12022  fi
12023  sys_lib_dlsearch_path_spec='/usr/lib'
12024  ;;
12025
12026tpf*)
12027  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12028  version_type=linux # correct to gnu/linux during the next big refactor
12029  need_lib_prefix=no
12030  need_version=no
12031  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12032  shlibpath_var=LD_LIBRARY_PATH
12033  shlibpath_overrides_runpath=no
12034  hardcode_into_libs=yes
12035  ;;
12036
12037uts4*)
12038  version_type=linux # correct to gnu/linux during the next big refactor
12039  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12040  soname_spec='$libname$release$shared_ext$major'
12041  shlibpath_var=LD_LIBRARY_PATH
12042  ;;
12043
12044*)
12045  dynamic_linker=no
12046  ;;
12047esac
12048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12049$as_echo "$dynamic_linker" >&6; }
12050test no = "$dynamic_linker" && can_build_shared=no
12051
12052variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12053if test yes = "$GCC"; then
12054  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12055fi
12056
12057if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12058  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12059fi
12060
12061if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12062  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12063fi
12064
12065# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12066configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12067
12068# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12069func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12070
12071# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12072configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12171$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12172hardcode_action=
12173if test -n "$hardcode_libdir_flag_spec" ||
12174   test -n "$runpath_var" ||
12175   test yes = "$hardcode_automatic"; then
12176
12177  # We can hardcode non-existent directories.
12178  if test no != "$hardcode_direct" &&
12179     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12180     # have to relink, otherwise we might link with an installed library
12181     # when we should be linking with a yet-to-be-installed one
12182     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12183     test no != "$hardcode_minus_L"; then
12184    # Linking always hardcodes the temporary library directory.
12185    hardcode_action=relink
12186  else
12187    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12188    hardcode_action=immediate
12189  fi
12190else
12191  # We cannot hardcode anything, or else we can only hardcode existing
12192  # directories.
12193  hardcode_action=unsupported
12194fi
12195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12196$as_echo "$hardcode_action" >&6; }
12197
12198if test relink = "$hardcode_action" ||
12199   test yes = "$inherit_rpath"; then
12200  # Fast installation is not supported
12201  enable_fast_install=no
12202elif test yes = "$shlibpath_overrides_runpath" ||
12203     test no = "$enable_shared"; then
12204  # Fast installation is not necessary
12205  enable_fast_install=needless
12206fi
12207
12208
12209
12210
12211
12212
12213  if test yes != "$enable_dlopen"; then
12214  enable_dlopen=unknown
12215  enable_dlopen_self=unknown
12216  enable_dlopen_self_static=unknown
12217else
12218  lt_cv_dlopen=no
12219  lt_cv_dlopen_libs=
12220
12221  case $host_os in
12222  beos*)
12223    lt_cv_dlopen=load_add_on
12224    lt_cv_dlopen_libs=
12225    lt_cv_dlopen_self=yes
12226    ;;
12227
12228  mingw* | pw32* | cegcc*)
12229    lt_cv_dlopen=LoadLibrary
12230    lt_cv_dlopen_libs=
12231    ;;
12232
12233  cygwin*)
12234    lt_cv_dlopen=dlopen
12235    lt_cv_dlopen_libs=
12236    ;;
12237
12238  darwin*)
12239    # if libdl is installed we need to link against it
12240    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12241$as_echo_n "checking for dlopen in -ldl... " >&6; }
12242if ${ac_cv_lib_dl_dlopen+:} false; then :
12243  $as_echo_n "(cached) " >&6
12244else
12245  ac_check_lib_save_LIBS=$LIBS
12246LIBS="-ldl  $LIBS"
12247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12248/* end confdefs.h.  */
12249
12250/* Override any GCC internal prototype to avoid an error.
12251   Use char because int might match the return type of a GCC
12252   builtin and then its argument prototype would still apply.  */
12253#ifdef __cplusplus
12254extern "C"
12255#endif
12256char dlopen ();
12257int
12258main ()
12259{
12260return dlopen ();
12261  ;
12262  return 0;
12263}
12264_ACEOF
12265if ac_fn_c_try_link "$LINENO"; then :
12266  ac_cv_lib_dl_dlopen=yes
12267else
12268  ac_cv_lib_dl_dlopen=no
12269fi
12270rm -f core conftest.err conftest.$ac_objext \
12271    conftest$ac_exeext conftest.$ac_ext
12272LIBS=$ac_check_lib_save_LIBS
12273fi
12274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12275$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12276if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12277  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12278else
12279
12280    lt_cv_dlopen=dyld
12281    lt_cv_dlopen_libs=
12282    lt_cv_dlopen_self=yes
12283
12284fi
12285
12286    ;;
12287
12288  tpf*)
12289    # Don't try to run any link tests for TPF.  We know it's impossible
12290    # because TPF is a cross-compiler, and we know how we open DSOs.
12291    lt_cv_dlopen=dlopen
12292    lt_cv_dlopen_libs=
12293    lt_cv_dlopen_self=no
12294    ;;
12295
12296  *)
12297    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12298if test "x$ac_cv_func_shl_load" = xyes; then :
12299  lt_cv_dlopen=shl_load
12300else
12301  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12302$as_echo_n "checking for shl_load in -ldld... " >&6; }
12303if ${ac_cv_lib_dld_shl_load+:} false; then :
12304  $as_echo_n "(cached) " >&6
12305else
12306  ac_check_lib_save_LIBS=$LIBS
12307LIBS="-ldld  $LIBS"
12308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12309/* end confdefs.h.  */
12310
12311/* Override any GCC internal prototype to avoid an error.
12312   Use char because int might match the return type of a GCC
12313   builtin and then its argument prototype would still apply.  */
12314#ifdef __cplusplus
12315extern "C"
12316#endif
12317char shl_load ();
12318int
12319main ()
12320{
12321return shl_load ();
12322  ;
12323  return 0;
12324}
12325_ACEOF
12326if ac_fn_c_try_link "$LINENO"; then :
12327  ac_cv_lib_dld_shl_load=yes
12328else
12329  ac_cv_lib_dld_shl_load=no
12330fi
12331rm -f core conftest.err conftest.$ac_objext \
12332    conftest$ac_exeext conftest.$ac_ext
12333LIBS=$ac_check_lib_save_LIBS
12334fi
12335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12336$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12337if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12338  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12339else
12340  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12341if test "x$ac_cv_func_dlopen" = xyes; then :
12342  lt_cv_dlopen=dlopen
12343else
12344  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12345$as_echo_n "checking for dlopen in -ldl... " >&6; }
12346if ${ac_cv_lib_dl_dlopen+:} false; then :
12347  $as_echo_n "(cached) " >&6
12348else
12349  ac_check_lib_save_LIBS=$LIBS
12350LIBS="-ldl  $LIBS"
12351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12352/* end confdefs.h.  */
12353
12354/* Override any GCC internal prototype to avoid an error.
12355   Use char because int might match the return type of a GCC
12356   builtin and then its argument prototype would still apply.  */
12357#ifdef __cplusplus
12358extern "C"
12359#endif
12360char dlopen ();
12361int
12362main ()
12363{
12364return dlopen ();
12365  ;
12366  return 0;
12367}
12368_ACEOF
12369if ac_fn_c_try_link "$LINENO"; then :
12370  ac_cv_lib_dl_dlopen=yes
12371else
12372  ac_cv_lib_dl_dlopen=no
12373fi
12374rm -f core conftest.err conftest.$ac_objext \
12375    conftest$ac_exeext conftest.$ac_ext
12376LIBS=$ac_check_lib_save_LIBS
12377fi
12378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12379$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12380if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12381  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12382else
12383  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12384$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12385if ${ac_cv_lib_svld_dlopen+:} false; then :
12386  $as_echo_n "(cached) " >&6
12387else
12388  ac_check_lib_save_LIBS=$LIBS
12389LIBS="-lsvld  $LIBS"
12390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12391/* end confdefs.h.  */
12392
12393/* Override any GCC internal prototype to avoid an error.
12394   Use char because int might match the return type of a GCC
12395   builtin and then its argument prototype would still apply.  */
12396#ifdef __cplusplus
12397extern "C"
12398#endif
12399char dlopen ();
12400int
12401main ()
12402{
12403return dlopen ();
12404  ;
12405  return 0;
12406}
12407_ACEOF
12408if ac_fn_c_try_link "$LINENO"; then :
12409  ac_cv_lib_svld_dlopen=yes
12410else
12411  ac_cv_lib_svld_dlopen=no
12412fi
12413rm -f core conftest.err conftest.$ac_objext \
12414    conftest$ac_exeext conftest.$ac_ext
12415LIBS=$ac_check_lib_save_LIBS
12416fi
12417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12418$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12419if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12420  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12421else
12422  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12423$as_echo_n "checking for dld_link in -ldld... " >&6; }
12424if ${ac_cv_lib_dld_dld_link+:} false; then :
12425  $as_echo_n "(cached) " >&6
12426else
12427  ac_check_lib_save_LIBS=$LIBS
12428LIBS="-ldld  $LIBS"
12429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12430/* end confdefs.h.  */
12431
12432/* Override any GCC internal prototype to avoid an error.
12433   Use char because int might match the return type of a GCC
12434   builtin and then its argument prototype would still apply.  */
12435#ifdef __cplusplus
12436extern "C"
12437#endif
12438char dld_link ();
12439int
12440main ()
12441{
12442return dld_link ();
12443  ;
12444  return 0;
12445}
12446_ACEOF
12447if ac_fn_c_try_link "$LINENO"; then :
12448  ac_cv_lib_dld_dld_link=yes
12449else
12450  ac_cv_lib_dld_dld_link=no
12451fi
12452rm -f core conftest.err conftest.$ac_objext \
12453    conftest$ac_exeext conftest.$ac_ext
12454LIBS=$ac_check_lib_save_LIBS
12455fi
12456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12457$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12458if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12459  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12460fi
12461
12462
12463fi
12464
12465
12466fi
12467
12468
12469fi
12470
12471
12472fi
12473
12474
12475fi
12476
12477    ;;
12478  esac
12479
12480  if test no = "$lt_cv_dlopen"; then
12481    enable_dlopen=no
12482  else
12483    enable_dlopen=yes
12484  fi
12485
12486  case $lt_cv_dlopen in
12487  dlopen)
12488    save_CPPFLAGS=$CPPFLAGS
12489    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12490
12491    save_LDFLAGS=$LDFLAGS
12492    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12493
12494    save_LIBS=$LIBS
12495    LIBS="$lt_cv_dlopen_libs $LIBS"
12496
12497    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12498$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12499if ${lt_cv_dlopen_self+:} false; then :
12500  $as_echo_n "(cached) " >&6
12501else
12502  	  if test yes = "$cross_compiling"; then :
12503  lt_cv_dlopen_self=cross
12504else
12505  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12506  lt_status=$lt_dlunknown
12507  cat > conftest.$ac_ext <<_LT_EOF
12508#line $LINENO "configure"
12509#include "confdefs.h"
12510
12511#if HAVE_DLFCN_H
12512#include <dlfcn.h>
12513#endif
12514
12515#include <stdio.h>
12516
12517#ifdef RTLD_GLOBAL
12518#  define LT_DLGLOBAL		RTLD_GLOBAL
12519#else
12520#  ifdef DL_GLOBAL
12521#    define LT_DLGLOBAL		DL_GLOBAL
12522#  else
12523#    define LT_DLGLOBAL		0
12524#  endif
12525#endif
12526
12527/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12528   find out it does not work in some platform. */
12529#ifndef LT_DLLAZY_OR_NOW
12530#  ifdef RTLD_LAZY
12531#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12532#  else
12533#    ifdef DL_LAZY
12534#      define LT_DLLAZY_OR_NOW		DL_LAZY
12535#    else
12536#      ifdef RTLD_NOW
12537#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12538#      else
12539#        ifdef DL_NOW
12540#          define LT_DLLAZY_OR_NOW	DL_NOW
12541#        else
12542#          define LT_DLLAZY_OR_NOW	0
12543#        endif
12544#      endif
12545#    endif
12546#  endif
12547#endif
12548
12549/* When -fvisibility=hidden is used, assume the code has been annotated
12550   correspondingly for the symbols needed.  */
12551#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12552int fnord () __attribute__((visibility("default")));
12553#endif
12554
12555int fnord () { return 42; }
12556int main ()
12557{
12558  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12559  int status = $lt_dlunknown;
12560
12561  if (self)
12562    {
12563      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12564      else
12565        {
12566	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12567          else puts (dlerror ());
12568	}
12569      /* dlclose (self); */
12570    }
12571  else
12572    puts (dlerror ());
12573
12574  return status;
12575}
12576_LT_EOF
12577  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12578  (eval $ac_link) 2>&5
12579  ac_status=$?
12580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12581  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12582    (./conftest; exit; ) >&5 2>/dev/null
12583    lt_status=$?
12584    case x$lt_status in
12585      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12586      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12587      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12588    esac
12589  else :
12590    # compilation failed
12591    lt_cv_dlopen_self=no
12592  fi
12593fi
12594rm -fr conftest*
12595
12596
12597fi
12598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12599$as_echo "$lt_cv_dlopen_self" >&6; }
12600
12601    if test yes = "$lt_cv_dlopen_self"; then
12602      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12603      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12604$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12605if ${lt_cv_dlopen_self_static+:} false; then :
12606  $as_echo_n "(cached) " >&6
12607else
12608  	  if test yes = "$cross_compiling"; then :
12609  lt_cv_dlopen_self_static=cross
12610else
12611  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12612  lt_status=$lt_dlunknown
12613  cat > conftest.$ac_ext <<_LT_EOF
12614#line $LINENO "configure"
12615#include "confdefs.h"
12616
12617#if HAVE_DLFCN_H
12618#include <dlfcn.h>
12619#endif
12620
12621#include <stdio.h>
12622
12623#ifdef RTLD_GLOBAL
12624#  define LT_DLGLOBAL		RTLD_GLOBAL
12625#else
12626#  ifdef DL_GLOBAL
12627#    define LT_DLGLOBAL		DL_GLOBAL
12628#  else
12629#    define LT_DLGLOBAL		0
12630#  endif
12631#endif
12632
12633/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12634   find out it does not work in some platform. */
12635#ifndef LT_DLLAZY_OR_NOW
12636#  ifdef RTLD_LAZY
12637#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12638#  else
12639#    ifdef DL_LAZY
12640#      define LT_DLLAZY_OR_NOW		DL_LAZY
12641#    else
12642#      ifdef RTLD_NOW
12643#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12644#      else
12645#        ifdef DL_NOW
12646#          define LT_DLLAZY_OR_NOW	DL_NOW
12647#        else
12648#          define LT_DLLAZY_OR_NOW	0
12649#        endif
12650#      endif
12651#    endif
12652#  endif
12653#endif
12654
12655/* When -fvisibility=hidden is used, assume the code has been annotated
12656   correspondingly for the symbols needed.  */
12657#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12658int fnord () __attribute__((visibility("default")));
12659#endif
12660
12661int fnord () { return 42; }
12662int main ()
12663{
12664  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12665  int status = $lt_dlunknown;
12666
12667  if (self)
12668    {
12669      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12670      else
12671        {
12672	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12673          else puts (dlerror ());
12674	}
12675      /* dlclose (self); */
12676    }
12677  else
12678    puts (dlerror ());
12679
12680  return status;
12681}
12682_LT_EOF
12683  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12684  (eval $ac_link) 2>&5
12685  ac_status=$?
12686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12687  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12688    (./conftest; exit; ) >&5 2>/dev/null
12689    lt_status=$?
12690    case x$lt_status in
12691      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12692      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12693      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12694    esac
12695  else :
12696    # compilation failed
12697    lt_cv_dlopen_self_static=no
12698  fi
12699fi
12700rm -fr conftest*
12701
12702
12703fi
12704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12705$as_echo "$lt_cv_dlopen_self_static" >&6; }
12706    fi
12707
12708    CPPFLAGS=$save_CPPFLAGS
12709    LDFLAGS=$save_LDFLAGS
12710    LIBS=$save_LIBS
12711    ;;
12712  esac
12713
12714  case $lt_cv_dlopen_self in
12715  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12716  *) enable_dlopen_self=unknown ;;
12717  esac
12718
12719  case $lt_cv_dlopen_self_static in
12720  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12721  *) enable_dlopen_self_static=unknown ;;
12722  esac
12723fi
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741striplib=
12742old_striplib=
12743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12744$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12745if test -z "$STRIP"; then
12746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12747$as_echo "no" >&6; }
12748else
12749  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12750    old_striplib="$STRIP --strip-debug"
12751    striplib="$STRIP --strip-unneeded"
12752    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12753$as_echo "yes" >&6; }
12754  else
12755    case $host_os in
12756    darwin*)
12757      # FIXME - insert some real tests, host_os isn't really good enough
12758      striplib="$STRIP -x"
12759      old_striplib="$STRIP -S"
12760      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12761$as_echo "yes" >&6; }
12762      ;;
12763    freebsd*)
12764      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12765        old_striplib="$STRIP --strip-debug"
12766        striplib="$STRIP --strip-unneeded"
12767        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12768$as_echo "yes" >&6; }
12769      else
12770        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771$as_echo "no" >&6; }
12772      fi
12773      ;;
12774    *)
12775      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12776$as_echo "no" >&6; }
12777      ;;
12778    esac
12779  fi
12780fi
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793  # Report what library types will actually be built
12794  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12795$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12797$as_echo "$can_build_shared" >&6; }
12798
12799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12800$as_echo_n "checking whether to build shared libraries... " >&6; }
12801  test no = "$can_build_shared" && enable_shared=no
12802
12803  # On AIX, shared libraries and static libraries use the same namespace, and
12804  # are all built from PIC.
12805  case $host_os in
12806  aix3*)
12807    test yes = "$enable_shared" && enable_static=no
12808    if test -n "$RANLIB"; then
12809      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12810      postinstall_cmds='$RANLIB $lib'
12811    fi
12812    ;;
12813
12814  aix[4-9]*)
12815    if test ia64 != "$host_cpu"; then
12816      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12817      yes,aix,yes) ;;			# shared object as lib.so file only
12818      yes,svr4,*) ;;			# shared object as lib.so archive member only
12819      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12820      esac
12821    fi
12822    ;;
12823  esac
12824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12825$as_echo "$enable_shared" >&6; }
12826
12827  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12828$as_echo_n "checking whether to build static libraries... " >&6; }
12829  # Make sure either enable_shared or enable_static is yes.
12830  test yes = "$enable_shared" || enable_static=yes
12831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12832$as_echo "$enable_static" >&6; }
12833
12834
12835
12836
12837fi
12838ac_ext=c
12839ac_cpp='$CPP $CPPFLAGS'
12840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12842ac_compiler_gnu=$ac_cv_c_compiler_gnu
12843
12844CC=$lt_save_CC
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860        ac_config_commands="$ac_config_commands libtool"
12861
12862
12863
12864
12865# Only expand once:
12866
12867
12868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12869$as_echo_n "checking whether ln -s works... " >&6; }
12870LN_S=$as_ln_s
12871if test "$LN_S" = "ln -s"; then
12872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12873$as_echo "yes" >&6; }
12874else
12875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12876$as_echo "no, using $LN_S" >&6; }
12877fi
12878
12879
12880# Check for GCC visibility feature
12881
12882
12883
12884  VISIBILITY_CFLAGS=
12885  VISIBILITY_CXXFLAGS=
12886  HAVE_VISIBILITY=0
12887  if test -n "$GCC"; then
12888                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
12889$as_echo_n "checking whether the -Werror option is usable... " >&6; }
12890    if ${pcre2_cv_cc_vis_werror+:} false; then :
12891  $as_echo_n "(cached) " >&6
12892else
12893
12894      pcre2_save_CFLAGS="$CFLAGS"
12895      CFLAGS="$CFLAGS -Werror"
12896      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12897/* end confdefs.h.  */
12898
12899int
12900main ()
12901{
12902
12903  ;
12904  return 0;
12905}
12906_ACEOF
12907if ac_fn_c_try_compile "$LINENO"; then :
12908  pcre2_cv_cc_vis_werror=yes
12909else
12910  pcre2_cv_cc_vis_werror=no
12911fi
12912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12913      CFLAGS="$pcre2_save_CFLAGS"
12914fi
12915
12916    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcre2_cv_cc_vis_werror" >&5
12917$as_echo "$pcre2_cv_cc_vis_werror" >&6; }
12918        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
12919$as_echo_n "checking for simple visibility declarations... " >&6; }
12920    if ${pcre2_cv_cc_visibility+:} false; then :
12921  $as_echo_n "(cached) " >&6
12922else
12923
12924      pcre2_save_CFLAGS="$CFLAGS"
12925      CFLAGS="$CFLAGS -fvisibility=hidden"
12926                                    if test $pcre2_cv_cc_vis_werror = yes; then
12927        CFLAGS="$CFLAGS -Werror"
12928      fi
12929      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930/* end confdefs.h.  */
12931extern __attribute__((__visibility__("hidden"))) int hiddenvar;
12932             extern __attribute__((__visibility__("default"))) int exportedvar;
12933             extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
12934             extern __attribute__((__visibility__("default"))) int exportedfunc (void);
12935             void dummyfunc (void) {}
12936
12937int
12938main ()
12939{
12940
12941  ;
12942  return 0;
12943}
12944_ACEOF
12945if ac_fn_c_try_compile "$LINENO"; then :
12946  pcre2_cv_cc_visibility=yes
12947else
12948  pcre2_cv_cc_visibility=no
12949fi
12950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12951      CFLAGS="$pcre2_save_CFLAGS"
12952fi
12953
12954    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcre2_cv_cc_visibility" >&5
12955$as_echo "$pcre2_cv_cc_visibility" >&6; }
12956    if test $pcre2_cv_cc_visibility = yes; then
12957      VISIBILITY_CFLAGS="-fvisibility=hidden"
12958      VISIBILITY_CXXFLAGS="-fvisibility=hidden -fvisibility-inlines-hidden"
12959      HAVE_VISIBILITY=1
12960
12961$as_echo "#define PCRE2_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
12962
12963
12964$as_echo "#define PCRE2_EXP_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
12965
12966
12967$as_echo "#define PCRE2POSIX_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
12968
12969
12970$as_echo "#define PCRE2POSIX_EXP_DEFN extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
12971
12972    fi
12973  fi
12974
12975
12976
12977
12978cat >>confdefs.h <<_ACEOF
12979#define HAVE_VISIBILITY $HAVE_VISIBILITY
12980_ACEOF
12981
12982
12983
12984# Check for Clang __attribute__((uninitialized)) feature
12985
12986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((uninitialized))" >&5
12987$as_echo_n "checking for __attribute__((uninitialized))... " >&6; }
12988ac_ext=c
12989ac_cpp='$CPP $CPPFLAGS'
12990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12992ac_compiler_gnu=$ac_cv_c_compiler_gnu
12993
12994tmp_CFLAGS=$CFLAGS
12995CFLAGS="$CFLAGS -Werror"
12996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997/* end confdefs.h.  */
12998
12999int
13000main ()
13001{
13002char buf[128] __attribute__((uninitialized));(void)buf
13003  ;
13004  return 0;
13005}
13006_ACEOF
13007if ac_fn_c_try_compile "$LINENO"; then :
13008  pcre2_cc_cv_attribute_uninitialized=yes
13009else
13010  pcre2_cc_cv_attribute_uninitialized=no
13011fi
13012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcre2_cc_cv_attribute_uninitialized" >&5
13014$as_echo "$pcre2_cc_cv_attribute_uninitialized" >&6; }
13015if test "$pcre2_cc_cv_attribute_uninitialized" = yes; then
13016
13017$as_echo "#define HAVE_ATTRIBUTE_UNINITIALIZED 1" >>confdefs.h
13018
13019fi
13020CFLAGS=$tmp_CFLAGS
13021ac_ext=c
13022ac_cpp='$CPP $CPPFLAGS'
13023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13025ac_compiler_gnu=$ac_cv_c_compiler_gnu
13026
13027
13028# Versioning
13029
13030PCRE2_MAJOR="10"
13031PCRE2_MINOR="36"
13032PCRE2_PRERELEASE=""
13033PCRE2_DATE="2020-12-04"
13034
13035if test "$PCRE2_MINOR" = "08" -o "$PCRE2_MINOR" = "09"
13036then
13037  echo "***"
13038  echo "*** Minor version number $PCRE2_MINOR must not be used. ***"
13039  echo "*** Use only 00 to 07 or 10 onwards, to avoid octal issues. ***"
13040  echo "***"
13041  exit 1
13042fi
13043
13044
13045
13046
13047
13048
13049# Set a more sensible default value for $(htmldir).
13050if test "x$htmldir" = 'x${docdir}'
13051then
13052  htmldir='${docdir}/html'
13053fi
13054
13055# Force an error for PCRE1 size options
13056# Check whether --enable-pcre8 was given.
13057if test "${enable_pcre8+set}" = set; then :
13058  enableval=$enable_pcre8;
13059else
13060  enable_pcre8=no
13061fi
13062
13063# Check whether --enable-pcre16 was given.
13064if test "${enable_pcre16+set}" = set; then :
13065  enableval=$enable_pcre16;
13066else
13067  enable_pcre16=no
13068fi
13069
13070# Check whether --enable-pcre32 was given.
13071if test "${enable_pcre32+set}" = set; then :
13072  enableval=$enable_pcre32;
13073else
13074  enable_pcre32=no
13075fi
13076
13077
13078if test "$enable_pcre8$enable_pcre16$enable_pcre32" != "nonono"
13079then
13080  echo "** ERROR: Use --[en|dis]able-pcre2-[8|16|32], not --[en|dis]able-pcre[8|16|32]"
13081  exit 1
13082fi
13083
13084# Handle --disable-pcre2-8 (enabled by default)
13085# Check whether --enable-pcre2-8 was given.
13086if test "${enable_pcre2_8+set}" = set; then :
13087  enableval=$enable_pcre2_8;
13088else
13089  enable_pcre2_8=unset
13090fi
13091
13092
13093
13094# Handle --enable-pcre2-16 (disabled by default)
13095# Check whether --enable-pcre2-16 was given.
13096if test "${enable_pcre2_16+set}" = set; then :
13097  enableval=$enable_pcre2_16;
13098else
13099  enable_pcre2_16=unset
13100fi
13101
13102
13103
13104# Handle --enable-pcre2-32 (disabled by default)
13105# Check whether --enable-pcre2-32 was given.
13106if test "${enable_pcre2_32+set}" = set; then :
13107  enableval=$enable_pcre2_32;
13108else
13109  enable_pcre2_32=unset
13110fi
13111
13112
13113
13114# Handle --enable-debug (disabled by default)
13115# Check whether --enable-debug was given.
13116if test "${enable_debug+set}" = set; then :
13117  enableval=$enable_debug;
13118else
13119  enable_debug=no
13120fi
13121
13122
13123# Handle --enable-jit (disabled by default)
13124# Check whether --enable-jit was given.
13125if test "${enable_jit+set}" = set; then :
13126  enableval=$enable_jit;
13127else
13128  enable_jit=no
13129fi
13130
13131
13132# This code enables JIT if the hardware supports it.
13133if test "$enable_jit" = "auto"; then
13134  ac_ext=c
13135ac_cpp='$CPP $CPPFLAGS'
13136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13138ac_compiler_gnu=$ac_cv_c_compiler_gnu
13139
13140  SAVE_CPPFLAGS=$CPPFLAGS
13141  CPPFLAGS=-I$srcdir
13142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13143/* end confdefs.h.  */
13144
13145  #define SLJIT_CONFIG_AUTO 1
13146  #include "src/sljit/sljitConfigInternal.h"
13147  #if (defined SLJIT_CONFIG_UNSUPPORTED && SLJIT_CONFIG_UNSUPPORTED)
13148  #error unsupported
13149  #endif
13150_ACEOF
13151if ac_fn_c_try_compile "$LINENO"; then :
13152  enable_jit=yes
13153else
13154  enable_jit=no
13155fi
13156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13157  CPPFLAGS=$SAVE_CPPFLAGS
13158  echo checking for JIT support on this hardware... $enable_jit
13159fi
13160
13161# Handle --enable-jit-sealloc (disabled by default and only experimental)
13162case $host_os in
13163  linux* | netbsd*)
13164    # Check whether --enable-jit-sealloc was given.
13165if test "${enable_jit_sealloc+set}" = set; then :
13166  enableval=$enable_jit_sealloc;
13167else
13168  enable_jit_sealloc=no
13169fi
13170
13171    ;;
13172  *)
13173    enable_jit_sealloc=unsupported
13174    ;;
13175esac
13176
13177# Handle --disable-pcre2grep-jit (enabled by default)
13178# Check whether --enable-pcre2grep-jit was given.
13179if test "${enable_pcre2grep_jit+set}" = set; then :
13180  enableval=$enable_pcre2grep_jit;
13181else
13182  enable_pcre2grep_jit=yes
13183fi
13184
13185
13186# Handle --disable-pcre2grep-callout (enabled by default)
13187# Check whether --enable-pcre2grep-callout was given.
13188if test "${enable_pcre2grep_callout+set}" = set; then :
13189  enableval=$enable_pcre2grep_callout;
13190else
13191  enable_pcre2grep_callout=yes
13192fi
13193
13194
13195# Handle --disable-pcre2grep-callout-fork (enabled by default)
13196# Check whether --enable-pcre2grep-callout-fork was given.
13197if test "${enable_pcre2grep_callout_fork+set}" = set; then :
13198  enableval=$enable_pcre2grep_callout_fork;
13199else
13200  enable_pcre2grep_callout_fork=yes
13201fi
13202
13203
13204# Handle --enable-rebuild-chartables
13205# Check whether --enable-rebuild-chartables was given.
13206if test "${enable_rebuild_chartables+set}" = set; then :
13207  enableval=$enable_rebuild_chartables;
13208else
13209  enable_rebuild_chartables=no
13210fi
13211
13212
13213# Handle --disable-unicode (enabled by default)
13214# Check whether --enable-unicode was given.
13215if test "${enable_unicode+set}" = set; then :
13216  enableval=$enable_unicode;
13217else
13218  enable_unicode=unset
13219fi
13220
13221
13222# Handle newline options
13223ac_pcre2_newline=lf
13224# Check whether --enable-newline-is-cr was given.
13225if test "${enable_newline_is_cr+set}" = set; then :
13226  enableval=$enable_newline_is_cr; ac_pcre2_newline=cr
13227fi
13228
13229# Check whether --enable-newline-is-lf was given.
13230if test "${enable_newline_is_lf+set}" = set; then :
13231  enableval=$enable_newline_is_lf; ac_pcre2_newline=lf
13232fi
13233
13234# Check whether --enable-newline-is-crlf was given.
13235if test "${enable_newline_is_crlf+set}" = set; then :
13236  enableval=$enable_newline_is_crlf; ac_pcre2_newline=crlf
13237fi
13238
13239# Check whether --enable-newline-is-anycrlf was given.
13240if test "${enable_newline_is_anycrlf+set}" = set; then :
13241  enableval=$enable_newline_is_anycrlf; ac_pcre2_newline=anycrlf
13242fi
13243
13244# Check whether --enable-newline-is-any was given.
13245if test "${enable_newline_is_any+set}" = set; then :
13246  enableval=$enable_newline_is_any; ac_pcre2_newline=any
13247fi
13248
13249# Check whether --enable-newline-is-nul was given.
13250if test "${enable_newline_is_nul+set}" = set; then :
13251  enableval=$enable_newline_is_nul; ac_pcre2_newline=nul
13252fi
13253
13254enable_newline="$ac_pcre2_newline"
13255
13256# Handle --enable-bsr-anycrlf
13257# Check whether --enable-bsr-anycrlf was given.
13258if test "${enable_bsr_anycrlf+set}" = set; then :
13259  enableval=$enable_bsr_anycrlf;
13260else
13261  enable_bsr_anycrlf=no
13262fi
13263
13264
13265# Handle --enable-never-backslash-C
13266# Check whether --enable-never-backslash-C was given.
13267if test "${enable_never_backslash_C+set}" = set; then :
13268  enableval=$enable_never_backslash_C;
13269else
13270  enable_never_backslash_C=no
13271fi
13272
13273
13274# Handle --enable-ebcdic
13275# Check whether --enable-ebcdic was given.
13276if test "${enable_ebcdic+set}" = set; then :
13277  enableval=$enable_ebcdic;
13278else
13279  enable_ebcdic=no
13280fi
13281
13282
13283# Handle --enable-ebcdic-nl25
13284# Check whether --enable-ebcdic-nl25 was given.
13285if test "${enable_ebcdic_nl25+set}" = set; then :
13286  enableval=$enable_ebcdic_nl25;
13287else
13288  enable_ebcdic_nl25=no
13289fi
13290
13291
13292# Handle --enable-pcre2grep-libz
13293# Check whether --enable-pcre2grep-libz was given.
13294if test "${enable_pcre2grep_libz+set}" = set; then :
13295  enableval=$enable_pcre2grep_libz;
13296else
13297  enable_pcre2grep_libz=no
13298fi
13299
13300
13301# Handle --enable-pcre2grep-libbz2
13302# Check whether --enable-pcre2grep-libbz2 was given.
13303if test "${enable_pcre2grep_libbz2+set}" = set; then :
13304  enableval=$enable_pcre2grep_libbz2;
13305else
13306  enable_pcre2grep_libbz2=no
13307fi
13308
13309
13310# Handle --with-pcre2grep-bufsize=N
13311
13312# Check whether --with-pcre2grep-bufsize was given.
13313if test "${with_pcre2grep_bufsize+set}" = set; then :
13314  withval=$with_pcre2grep_bufsize;
13315else
13316  with_pcre2grep_bufsize=20480
13317fi
13318
13319
13320# Handle --with-pcre2grep-max-bufsize=N
13321
13322# Check whether --with-pcre2grep-max-bufsize was given.
13323if test "${with_pcre2grep_max_bufsize+set}" = set; then :
13324  withval=$with_pcre2grep_max_bufsize;
13325else
13326  with_pcre2grep_max_bufsize=1048576
13327fi
13328
13329
13330# Handle --enable-pcre2test-libedit
13331# Check whether --enable-pcre2test-libedit was given.
13332if test "${enable_pcre2test_libedit+set}" = set; then :
13333  enableval=$enable_pcre2test_libedit;
13334else
13335  enable_pcre2test_libedit=no
13336fi
13337
13338
13339# Handle --enable-pcre2test-libreadline
13340# Check whether --enable-pcre2test-libreadline was given.
13341if test "${enable_pcre2test_libreadline+set}" = set; then :
13342  enableval=$enable_pcre2test_libreadline;
13343else
13344  enable_pcre2test_libreadline=no
13345fi
13346
13347
13348# Handle --with-link-size=N
13349
13350# Check whether --with-link-size was given.
13351if test "${with_link_size+set}" = set; then :
13352  withval=$with_link_size;
13353else
13354  with_link_size=2
13355fi
13356
13357
13358# Handle --with-parens-nest-limit=N
13359
13360# Check whether --with-parens-nest-limit was given.
13361if test "${with_parens_nest_limit+set}" = set; then :
13362  withval=$with_parens_nest_limit;
13363else
13364  with_parens_nest_limit=250
13365fi
13366
13367
13368# Handle --with-heap-limit
13369
13370# Check whether --with-heap-limit was given.
13371if test "${with_heap_limit+set}" = set; then :
13372  withval=$with_heap_limit;
13373else
13374  with_heap_limit=20000000
13375fi
13376
13377
13378# Handle --with-match-limit=N
13379
13380# Check whether --with-match-limit was given.
13381if test "${with_match_limit+set}" = set; then :
13382  withval=$with_match_limit;
13383else
13384  with_match_limit=10000000
13385fi
13386
13387
13388# Handle --with-match-limit-depth=N
13389# Recognize old synonym --with-match-limit-recursion
13390#
13391# Note: In config.h, the default is to define MATCH_LIMIT_DEPTH symbolically as
13392# MATCH_LIMIT, which in turn is defined to be some numeric value (e.g.
13393# 10000000). MATCH_LIMIT_DEPTH can otherwise be set to some different numeric
13394# value (or even the same numeric value as MATCH_LIMIT, though no longer
13395# defined in terms of the latter).
13396#
13397
13398# Check whether --with-match-limit-depth was given.
13399if test "${with_match_limit_depth+set}" = set; then :
13400  withval=$with_match_limit_depth;
13401else
13402  with_match_limit_depth=MATCH_LIMIT
13403fi
13404
13405
13406
13407# Check whether --with-match-limit-recursion was given.
13408if test "${with_match_limit_recursion+set}" = set; then :
13409  withval=$with_match_limit_recursion;
13410else
13411  with_match_limit_recursion=UNSET
13412fi
13413
13414
13415# Handle --enable-valgrind
13416# Check whether --enable-valgrind was given.
13417if test "${enable_valgrind+set}" = set; then :
13418  enableval=$enable_valgrind;
13419else
13420  enable_valgrind=no
13421fi
13422
13423
13424# Enable code coverage reports using gcov
13425# Check whether --enable-coverage was given.
13426if test "${enable_coverage+set}" = set; then :
13427  enableval=$enable_coverage;
13428else
13429  enable_coverage=no
13430fi
13431
13432
13433# Handle --enable-fuzz-support
13434# Check whether --enable-fuzz_support was given.
13435if test "${enable_fuzz_support+set}" = set; then :
13436  enableval=$enable_fuzz_support;
13437else
13438  enable_fuzz_support=no
13439fi
13440
13441
13442# Handle --disable-stack-for-recursion
13443# This option became obsolete at release 10.30.
13444# Check whether --enable-stack-for-recursion was given.
13445if test "${enable_stack_for_recursion+set}" = set; then :
13446  enableval=$enable_stack_for_recursion;
13447else
13448  enable_stack_for_recursion=yes
13449fi
13450
13451
13452# Original code
13453# AC_ARG_ENABLE(stack-for-recursion,
13454#               AS_HELP_STRING([--disable-stack-for-recursion],
13455#                              [don't use stack recursion when matching]),
13456#               , enable_stack_for_recursion=yes)
13457
13458# Handle --disable-percent_zt (set as "auto" by default)
13459# Check whether --enable-percent-zt was given.
13460if test "${enable_percent_zt+set}" = set; then :
13461  enableval=$enable_percent_zt;
13462else
13463  enable_percent_zt=auto
13464fi
13465
13466
13467# Set the default value for pcre2-8
13468if test "x$enable_pcre2_8" = "xunset"
13469then
13470  enable_pcre2_8=yes
13471fi
13472
13473# Set the default value for pcre2-16
13474if test "x$enable_pcre2_16" = "xunset"
13475then
13476  enable_pcre2_16=no
13477fi
13478
13479# Set the default value for pcre2-32
13480if test "x$enable_pcre2_32" = "xunset"
13481then
13482  enable_pcre2_32=no
13483fi
13484
13485# Make sure at least one library is selected
13486if test "x$enable_pcre2_8$enable_pcre2_16$enable_pcre2_32" = "xnonono"
13487then
13488  as_fn_error $? "At least one of the 8, 16 or 32 bit libraries must be enabled" "$LINENO" 5
13489fi
13490
13491# Unicode is enabled by default.
13492if test "x$enable_unicode" = "xunset"
13493then
13494  enable_unicode=yes
13495fi
13496
13497# Convert the newline identifier into the appropriate integer value. These must
13498# agree with the PCRE2_NEWLINE_xxx values in pcre2.h.
13499
13500case "$enable_newline" in
13501  cr)      ac_pcre2_newline_value=1 ;;
13502  lf)      ac_pcre2_newline_value=2 ;;
13503  crlf)    ac_pcre2_newline_value=3 ;;
13504  any)     ac_pcre2_newline_value=4 ;;
13505  anycrlf) ac_pcre2_newline_value=5 ;;
13506  nul)     ac_pcre2_newline_value=6 ;;
13507  *)
13508  as_fn_error $? "invalid argument \"$enable_newline\" to --enable-newline option" "$LINENO" 5
13509  ;;
13510esac
13511
13512# --enable-ebcdic-nl25 implies --enable-ebcdic
13513if test "x$enable_ebcdic_nl25" = "xyes"; then
13514  enable_ebcdic=yes
13515fi
13516
13517# Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled.
13518# Also check that UTF support is not requested, because PCRE2 cannot handle
13519# EBCDIC and UTF in the same build. To do so it would need to use different
13520# character constants depending on the mode. Also, EBCDIC cannot be used with
13521# 16-bit and 32-bit libraries.
13522#
13523if test "x$enable_ebcdic" = "xyes"; then
13524  enable_rebuild_chartables=yes
13525  if test "x$enable_unicode" = "xyes"; then
13526    as_fn_error $? "support for EBCDIC and Unicode cannot be enabled at the same time" "$LINENO" 5
13527  fi
13528  if test "x$enable_pcre2_16" = "xyes" -o "x$enable_pcre2_32" = "xyes"; then
13529    as_fn_error $? "EBCDIC support is available only for the 8-bit library" "$LINENO" 5
13530  fi
13531fi
13532
13533# Check argument to --with-link-size
13534case "$with_link_size" in
13535  2|3|4) ;;
13536  *)
13537  as_fn_error $? "invalid argument \"$with_link_size\" to --with-link-size option" "$LINENO" 5
13538  ;;
13539esac
13540
13541
13542
13543# Checks for header files.
13544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13545$as_echo_n "checking for ANSI C header files... " >&6; }
13546if ${ac_cv_header_stdc+:} false; then :
13547  $as_echo_n "(cached) " >&6
13548else
13549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13550/* end confdefs.h.  */
13551#include <stdlib.h>
13552#include <stdarg.h>
13553#include <string.h>
13554#include <float.h>
13555
13556int
13557main ()
13558{
13559
13560  ;
13561  return 0;
13562}
13563_ACEOF
13564if ac_fn_c_try_compile "$LINENO"; then :
13565  ac_cv_header_stdc=yes
13566else
13567  ac_cv_header_stdc=no
13568fi
13569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13570
13571if test $ac_cv_header_stdc = yes; then
13572  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13574/* end confdefs.h.  */
13575#include <string.h>
13576
13577_ACEOF
13578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13579  $EGREP "memchr" >/dev/null 2>&1; then :
13580
13581else
13582  ac_cv_header_stdc=no
13583fi
13584rm -f conftest*
13585
13586fi
13587
13588if test $ac_cv_header_stdc = yes; then
13589  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13591/* end confdefs.h.  */
13592#include <stdlib.h>
13593
13594_ACEOF
13595if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13596  $EGREP "free" >/dev/null 2>&1; then :
13597
13598else
13599  ac_cv_header_stdc=no
13600fi
13601rm -f conftest*
13602
13603fi
13604
13605if test $ac_cv_header_stdc = yes; then
13606  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13607  if test "$cross_compiling" = yes; then :
13608  :
13609else
13610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611/* end confdefs.h.  */
13612#include <ctype.h>
13613#include <stdlib.h>
13614#if ((' ' & 0x0FF) == 0x020)
13615# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13616# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13617#else
13618# define ISLOWER(c) \
13619		   (('a' <= (c) && (c) <= 'i') \
13620		     || ('j' <= (c) && (c) <= 'r') \
13621		     || ('s' <= (c) && (c) <= 'z'))
13622# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13623#endif
13624
13625#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13626int
13627main ()
13628{
13629  int i;
13630  for (i = 0; i < 256; i++)
13631    if (XOR (islower (i), ISLOWER (i))
13632	|| toupper (i) != TOUPPER (i))
13633      return 2;
13634  return 0;
13635}
13636_ACEOF
13637if ac_fn_c_try_run "$LINENO"; then :
13638
13639else
13640  ac_cv_header_stdc=no
13641fi
13642rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13643  conftest.$ac_objext conftest.beam conftest.$ac_ext
13644fi
13645
13646fi
13647fi
13648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13649$as_echo "$ac_cv_header_stdc" >&6; }
13650if test $ac_cv_header_stdc = yes; then
13651
13652$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13653
13654fi
13655
13656for ac_header in limits.h sys/types.h sys/stat.h dirent.h
13657do :
13658  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13659ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13660if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13661  cat >>confdefs.h <<_ACEOF
13662#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13663_ACEOF
13664
13665fi
13666
13667done
13668
13669for ac_header in windows.h
13670do :
13671  ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
13672if test "x$ac_cv_header_windows_h" = xyes; then :
13673  cat >>confdefs.h <<_ACEOF
13674#define HAVE_WINDOWS_H 1
13675_ACEOF
13676 HAVE_WINDOWS_H=1
13677fi
13678
13679done
13680
13681for ac_header in sys/wait.h
13682do :
13683  ac_fn_c_check_header_mongrel "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
13684if test "x$ac_cv_header_sys_wait_h" = xyes; then :
13685  cat >>confdefs.h <<_ACEOF
13686#define HAVE_SYS_WAIT_H 1
13687_ACEOF
13688 HAVE_SYS_WAIT_H=1
13689fi
13690
13691done
13692
13693
13694# Conditional compilation
13695 if test "x$enable_pcre2_8" = "xyes"; then
13696  WITH_PCRE2_8_TRUE=
13697  WITH_PCRE2_8_FALSE='#'
13698else
13699  WITH_PCRE2_8_TRUE='#'
13700  WITH_PCRE2_8_FALSE=
13701fi
13702
13703 if test "x$enable_pcre2_16" = "xyes"; then
13704  WITH_PCRE2_16_TRUE=
13705  WITH_PCRE2_16_FALSE='#'
13706else
13707  WITH_PCRE2_16_TRUE='#'
13708  WITH_PCRE2_16_FALSE=
13709fi
13710
13711 if test "x$enable_pcre2_32" = "xyes"; then
13712  WITH_PCRE2_32_TRUE=
13713  WITH_PCRE2_32_FALSE='#'
13714else
13715  WITH_PCRE2_32_TRUE='#'
13716  WITH_PCRE2_32_FALSE=
13717fi
13718
13719 if test "x$enable_debug" = "xyes"; then
13720  WITH_DEBUG_TRUE=
13721  WITH_DEBUG_FALSE='#'
13722else
13723  WITH_DEBUG_TRUE='#'
13724  WITH_DEBUG_FALSE=
13725fi
13726
13727 if test "x$enable_rebuild_chartables" = "xyes"; then
13728  WITH_REBUILD_CHARTABLES_TRUE=
13729  WITH_REBUILD_CHARTABLES_FALSE='#'
13730else
13731  WITH_REBUILD_CHARTABLES_TRUE='#'
13732  WITH_REBUILD_CHARTABLES_FALSE=
13733fi
13734
13735 if test "x$enable_jit" = "xyes"; then
13736  WITH_JIT_TRUE=
13737  WITH_JIT_FALSE='#'
13738else
13739  WITH_JIT_TRUE='#'
13740  WITH_JIT_FALSE=
13741fi
13742
13743 if test "x$enable_unicode" = "xyes"; then
13744  WITH_UNICODE_TRUE=
13745  WITH_UNICODE_FALSE='#'
13746else
13747  WITH_UNICODE_TRUE='#'
13748  WITH_UNICODE_FALSE=
13749fi
13750
13751 if test "x$enable_valgrind" = "xyes"; then
13752  WITH_VALGRIND_TRUE=
13753  WITH_VALGRIND_FALSE='#'
13754else
13755  WITH_VALGRIND_TRUE='#'
13756  WITH_VALGRIND_FALSE=
13757fi
13758
13759 if test "x$enable_fuzz_support" = "xyes"; then
13760  WITH_FUZZ_SUPPORT_TRUE=
13761  WITH_FUZZ_SUPPORT_FALSE='#'
13762else
13763  WITH_FUZZ_SUPPORT_TRUE='#'
13764  WITH_FUZZ_SUPPORT_FALSE=
13765fi
13766
13767
13768if test "$enable_fuzz_support" = "yes" -a "$enable_pcre2_8" = "no"; then
13769  echo "** ERROR: Fuzzer support requires the 8-bit library"
13770  exit 1
13771fi
13772
13773# Checks for typedefs, structures, and compiler characteristics.
13774
13775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13776$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13777if ${ac_cv_c_const+:} false; then :
13778  $as_echo_n "(cached) " >&6
13779else
13780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13781/* end confdefs.h.  */
13782
13783int
13784main ()
13785{
13786
13787#ifndef __cplusplus
13788  /* Ultrix mips cc rejects this sort of thing.  */
13789  typedef int charset[2];
13790  const charset cs = { 0, 0 };
13791  /* SunOS 4.1.1 cc rejects this.  */
13792  char const *const *pcpcc;
13793  char **ppc;
13794  /* NEC SVR4.0.2 mips cc rejects this.  */
13795  struct point {int x, y;};
13796  static struct point const zero = {0,0};
13797  /* AIX XL C 1.02.0.0 rejects this.
13798     It does not let you subtract one const X* pointer from another in
13799     an arm of an if-expression whose if-part is not a constant
13800     expression */
13801  const char *g = "string";
13802  pcpcc = &g + (g ? g-g : 0);
13803  /* HPUX 7.0 cc rejects these. */
13804  ++pcpcc;
13805  ppc = (char**) pcpcc;
13806  pcpcc = (char const *const *) ppc;
13807  { /* SCO 3.2v4 cc rejects this sort of thing.  */
13808    char tx;
13809    char *t = &tx;
13810    char const *s = 0 ? (char *) 0 : (char const *) 0;
13811
13812    *t++ = 0;
13813    if (s) return 0;
13814  }
13815  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13816    int x[] = {25, 17};
13817    const int *foo = &x[0];
13818    ++foo;
13819  }
13820  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13821    typedef const int *iptr;
13822    iptr p = 0;
13823    ++p;
13824  }
13825  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13826       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13827    struct s { int j; const int *ap[3]; } bx;
13828    struct s *b = &bx; b->j = 5;
13829  }
13830  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13831    const int foo = 10;
13832    if (!foo) return 0;
13833  }
13834  return !cs[0] && !zero.x;
13835#endif
13836
13837  ;
13838  return 0;
13839}
13840_ACEOF
13841if ac_fn_c_try_compile "$LINENO"; then :
13842  ac_cv_c_const=yes
13843else
13844  ac_cv_c_const=no
13845fi
13846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13847fi
13848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13849$as_echo "$ac_cv_c_const" >&6; }
13850if test $ac_cv_c_const = no; then
13851
13852$as_echo "#define const /**/" >>confdefs.h
13853
13854fi
13855
13856ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13857if test "x$ac_cv_type_size_t" = xyes; then :
13858
13859else
13860
13861cat >>confdefs.h <<_ACEOF
13862#define size_t unsigned int
13863_ACEOF
13864
13865fi
13866
13867
13868# Checks for library functions.
13869
13870for ac_func in bcopy memfd_create memmove mkostemp secure_getenv strerror
13871do :
13872  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13873ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13874if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13875  cat >>confdefs.h <<_ACEOF
13876#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13877_ACEOF
13878
13879fi
13880done
13881
13882
13883# Check for the availability of libz (aka zlib)
13884
13885for ac_header in zlib.h
13886do :
13887  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13888if test "x$ac_cv_header_zlib_h" = xyes; then :
13889  cat >>confdefs.h <<_ACEOF
13890#define HAVE_ZLIB_H 1
13891_ACEOF
13892 HAVE_ZLIB_H=1
13893fi
13894
13895done
13896
13897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
13898$as_echo_n "checking for gzopen in -lz... " >&6; }
13899if ${ac_cv_lib_z_gzopen+:} false; then :
13900  $as_echo_n "(cached) " >&6
13901else
13902  ac_check_lib_save_LIBS=$LIBS
13903LIBS="-lz  $LIBS"
13904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13905/* end confdefs.h.  */
13906
13907/* Override any GCC internal prototype to avoid an error.
13908   Use char because int might match the return type of a GCC
13909   builtin and then its argument prototype would still apply.  */
13910#ifdef __cplusplus
13911extern "C"
13912#endif
13913char gzopen ();
13914int
13915main ()
13916{
13917return gzopen ();
13918  ;
13919  return 0;
13920}
13921_ACEOF
13922if ac_fn_c_try_link "$LINENO"; then :
13923  ac_cv_lib_z_gzopen=yes
13924else
13925  ac_cv_lib_z_gzopen=no
13926fi
13927rm -f core conftest.err conftest.$ac_objext \
13928    conftest$ac_exeext conftest.$ac_ext
13929LIBS=$ac_check_lib_save_LIBS
13930fi
13931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
13932$as_echo "$ac_cv_lib_z_gzopen" >&6; }
13933if test "x$ac_cv_lib_z_gzopen" = xyes; then :
13934  HAVE_LIBZ=1
13935fi
13936
13937
13938# Check for the availability of libbz2. Originally we just used AC_CHECK_LIB,
13939# as for libz. However, this had the following problem, diagnosed and fixed by
13940# a user:
13941#
13942#   - libbz2 uses the Pascal calling convention (WINAPI) for the functions
13943#     under Win32.
13944#   - The standard autoconf AC_CHECK_LIB fails to include "bzlib.h",
13945#     therefore missing the function definition.
13946#   - The compiler thus generates a "C" signature for the test function.
13947#   - The linker fails to find the "C" function.
13948#   - PCRE2 fails to configure if asked to do so against libbz2.
13949#
13950# Solution:
13951#
13952#   - Replace the AC_CHECK_LIB test with a custom test.
13953
13954for ac_header in bzlib.h
13955do :
13956  ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
13957if test "x$ac_cv_header_bzlib_h" = xyes; then :
13958  cat >>confdefs.h <<_ACEOF
13959#define HAVE_BZLIB_H 1
13960_ACEOF
13961 HAVE_BZLIB_H=1
13962fi
13963
13964done
13965
13966# Original test
13967# AC_CHECK_LIB([bz2], [BZ2_bzopen], [HAVE_LIBBZ2=1])
13968#
13969# Custom test follows
13970
13971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbz2" >&5
13972$as_echo_n "checking for libbz2... " >&6; }
13973OLD_LIBS="$LIBS"
13974LIBS="$LIBS -lbz2"
13975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13976/* end confdefs.h.  */
13977
13978#ifdef HAVE_BZLIB_H
13979#include <bzlib.h>
13980#endif
13981int
13982main ()
13983{
13984return (int)BZ2_bzopen("conftest", "rb");
13985  ;
13986  return 0;
13987}
13988_ACEOF
13989if ac_fn_c_try_link "$LINENO"; then :
13990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13991$as_echo "yes" >&6; };HAVE_LIBBZ2=1; break;
13992else
13993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13994$as_echo "no" >&6; }
13995fi
13996rm -f core conftest.err conftest.$ac_objext \
13997    conftest$ac_exeext conftest.$ac_ext
13998LIBS="$OLD_LIBS"
13999
14000# Check for the availabiity of libreadline
14001
14002if test "$enable_pcre2test_libreadline" = "yes"; then
14003 for ac_header in readline/readline.h
14004do :
14005  ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
14006if test "x$ac_cv_header_readline_readline_h" = xyes; then :
14007  cat >>confdefs.h <<_ACEOF
14008#define HAVE_READLINE_READLINE_H 1
14009_ACEOF
14010 HAVE_READLINE_H=1
14011fi
14012
14013done
14014
14015 for ac_header in readline/history.h
14016do :
14017  ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
14018if test "x$ac_cv_header_readline_history_h" = xyes; then :
14019  cat >>confdefs.h <<_ACEOF
14020#define HAVE_READLINE_HISTORY_H 1
14021_ACEOF
14022 HAVE_HISTORY_H=1
14023fi
14024
14025done
14026
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
14028$as_echo_n "checking for readline in -lreadline... " >&6; }
14029if ${ac_cv_lib_readline_readline+:} false; then :
14030  $as_echo_n "(cached) " >&6
14031else
14032  ac_check_lib_save_LIBS=$LIBS
14033LIBS="-lreadline  $LIBS"
14034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14035/* end confdefs.h.  */
14036
14037/* Override any GCC internal prototype to avoid an error.
14038   Use char because int might match the return type of a GCC
14039   builtin and then its argument prototype would still apply.  */
14040#ifdef __cplusplus
14041extern "C"
14042#endif
14043char readline ();
14044int
14045main ()
14046{
14047return readline ();
14048  ;
14049  return 0;
14050}
14051_ACEOF
14052if ac_fn_c_try_link "$LINENO"; then :
14053  ac_cv_lib_readline_readline=yes
14054else
14055  ac_cv_lib_readline_readline=no
14056fi
14057rm -f core conftest.err conftest.$ac_objext \
14058    conftest$ac_exeext conftest.$ac_ext
14059LIBS=$ac_check_lib_save_LIBS
14060fi
14061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
14062$as_echo "$ac_cv_lib_readline_readline" >&6; }
14063if test "x$ac_cv_lib_readline_readline" = xyes; then :
14064  LIBREADLINE="-lreadline"
14065else
14066  unset ac_cv_lib_readline_readline;
14067    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
14068$as_echo_n "checking for readline in -lreadline... " >&6; }
14069if ${ac_cv_lib_readline_readline+:} false; then :
14070  $as_echo_n "(cached) " >&6
14071else
14072  ac_check_lib_save_LIBS=$LIBS
14073LIBS="-lreadline -ltinfo $LIBS"
14074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14075/* end confdefs.h.  */
14076
14077/* Override any GCC internal prototype to avoid an error.
14078   Use char because int might match the return type of a GCC
14079   builtin and then its argument prototype would still apply.  */
14080#ifdef __cplusplus
14081extern "C"
14082#endif
14083char readline ();
14084int
14085main ()
14086{
14087return readline ();
14088  ;
14089  return 0;
14090}
14091_ACEOF
14092if ac_fn_c_try_link "$LINENO"; then :
14093  ac_cv_lib_readline_readline=yes
14094else
14095  ac_cv_lib_readline_readline=no
14096fi
14097rm -f core conftest.err conftest.$ac_objext \
14098    conftest$ac_exeext conftest.$ac_ext
14099LIBS=$ac_check_lib_save_LIBS
14100fi
14101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
14102$as_echo "$ac_cv_lib_readline_readline" >&6; }
14103if test "x$ac_cv_lib_readline_readline" = xyes; then :
14104  LIBREADLINE="-ltinfo"
14105else
14106  unset ac_cv_lib_readline_readline;
14107      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
14108$as_echo_n "checking for readline in -lreadline... " >&6; }
14109if ${ac_cv_lib_readline_readline+:} false; then :
14110  $as_echo_n "(cached) " >&6
14111else
14112  ac_check_lib_save_LIBS=$LIBS
14113LIBS="-lreadline -lcurses $LIBS"
14114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14115/* end confdefs.h.  */
14116
14117/* Override any GCC internal prototype to avoid an error.
14118   Use char because int might match the return type of a GCC
14119   builtin and then its argument prototype would still apply.  */
14120#ifdef __cplusplus
14121extern "C"
14122#endif
14123char readline ();
14124int
14125main ()
14126{
14127return readline ();
14128  ;
14129  return 0;
14130}
14131_ACEOF
14132if ac_fn_c_try_link "$LINENO"; then :
14133  ac_cv_lib_readline_readline=yes
14134else
14135  ac_cv_lib_readline_readline=no
14136fi
14137rm -f core conftest.err conftest.$ac_objext \
14138    conftest$ac_exeext conftest.$ac_ext
14139LIBS=$ac_check_lib_save_LIBS
14140fi
14141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
14142$as_echo "$ac_cv_lib_readline_readline" >&6; }
14143if test "x$ac_cv_lib_readline_readline" = xyes; then :
14144  LIBREADLINE="-lcurses"
14145else
14146  unset ac_cv_lib_readline_readline;
14147        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
14148$as_echo_n "checking for readline in -lreadline... " >&6; }
14149if ${ac_cv_lib_readline_readline+:} false; then :
14150  $as_echo_n "(cached) " >&6
14151else
14152  ac_check_lib_save_LIBS=$LIBS
14153LIBS="-lreadline -lncurses $LIBS"
14154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14155/* end confdefs.h.  */
14156
14157/* Override any GCC internal prototype to avoid an error.
14158   Use char because int might match the return type of a GCC
14159   builtin and then its argument prototype would still apply.  */
14160#ifdef __cplusplus
14161extern "C"
14162#endif
14163char readline ();
14164int
14165main ()
14166{
14167return readline ();
14168  ;
14169  return 0;
14170}
14171_ACEOF
14172if ac_fn_c_try_link "$LINENO"; then :
14173  ac_cv_lib_readline_readline=yes
14174else
14175  ac_cv_lib_readline_readline=no
14176fi
14177rm -f core conftest.err conftest.$ac_objext \
14178    conftest$ac_exeext conftest.$ac_ext
14179LIBS=$ac_check_lib_save_LIBS
14180fi
14181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
14182$as_echo "$ac_cv_lib_readline_readline" >&6; }
14183if test "x$ac_cv_lib_readline_readline" = xyes; then :
14184  LIBREADLINE="-lncurses"
14185else
14186  unset ac_cv_lib_readline_readline;
14187	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
14188$as_echo_n "checking for readline in -lreadline... " >&6; }
14189if ${ac_cv_lib_readline_readline+:} false; then :
14190  $as_echo_n "(cached) " >&6
14191else
14192  ac_check_lib_save_LIBS=$LIBS
14193LIBS="-lreadline -lncursesw $LIBS"
14194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14195/* end confdefs.h.  */
14196
14197/* Override any GCC internal prototype to avoid an error.
14198   Use char because int might match the return type of a GCC
14199   builtin and then its argument prototype would still apply.  */
14200#ifdef __cplusplus
14201extern "C"
14202#endif
14203char readline ();
14204int
14205main ()
14206{
14207return readline ();
14208  ;
14209  return 0;
14210}
14211_ACEOF
14212if ac_fn_c_try_link "$LINENO"; then :
14213  ac_cv_lib_readline_readline=yes
14214else
14215  ac_cv_lib_readline_readline=no
14216fi
14217rm -f core conftest.err conftest.$ac_objext \
14218    conftest$ac_exeext conftest.$ac_ext
14219LIBS=$ac_check_lib_save_LIBS
14220fi
14221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
14222$as_echo "$ac_cv_lib_readline_readline" >&6; }
14223if test "x$ac_cv_lib_readline_readline" = xyes; then :
14224  LIBREADLINE="-lncursesw"
14225else
14226  unset ac_cv_lib_readline_readline;
14227	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
14228$as_echo_n "checking for readline in -lreadline... " >&6; }
14229if ${ac_cv_lib_readline_readline+:} false; then :
14230  $as_echo_n "(cached) " >&6
14231else
14232  ac_check_lib_save_LIBS=$LIBS
14233LIBS="-lreadline -ltermcap $LIBS"
14234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14235/* end confdefs.h.  */
14236
14237/* Override any GCC internal prototype to avoid an error.
14238   Use char because int might match the return type of a GCC
14239   builtin and then its argument prototype would still apply.  */
14240#ifdef __cplusplus
14241extern "C"
14242#endif
14243char readline ();
14244int
14245main ()
14246{
14247return readline ();
14248  ;
14249  return 0;
14250}
14251_ACEOF
14252if ac_fn_c_try_link "$LINENO"; then :
14253  ac_cv_lib_readline_readline=yes
14254else
14255  ac_cv_lib_readline_readline=no
14256fi
14257rm -f core conftest.err conftest.$ac_objext \
14258    conftest$ac_exeext conftest.$ac_ext
14259LIBS=$ac_check_lib_save_LIBS
14260fi
14261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
14262$as_echo "$ac_cv_lib_readline_readline" >&6; }
14263if test "x$ac_cv_lib_readline_readline" = xyes; then :
14264  LIBREADLINE="-ltermcap"
14265else
14266  LIBREADLINE=""
14267fi
14268
14269fi
14270
14271fi
14272
14273fi
14274
14275fi
14276
14277fi
14278
14279
14280 if test -n "$LIBREADLINE"; then
14281   if test "$LIBREADLINE" != "-lreadline"; then
14282     echo "-lreadline needs $LIBREADLINE"
14283     LIBREADLINE="-lreadline $LIBREADLINE"
14284   fi
14285 fi
14286fi
14287
14288
14289# Check for the availability of libedit. Different distributions put its
14290# headers in different places. Try to cover the most common ones.
14291
14292if test "$enable_pcre2test_libedit" = "yes"; then
14293  for ac_header in editline/readline.h
14294do :
14295  ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
14296if test "x$ac_cv_header_editline_readline_h" = xyes; then :
14297  cat >>confdefs.h <<_ACEOF
14298#define HAVE_EDITLINE_READLINE_H 1
14299_ACEOF
14300 HAVE_EDITLINE_READLINE_H=1
14301else
14302  for ac_header in edit/readline/readline.h
14303do :
14304  ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
14305if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then :
14306  cat >>confdefs.h <<_ACEOF
14307#define HAVE_EDIT_READLINE_READLINE_H 1
14308_ACEOF
14309 HAVE_READLINE_READLINE_H=1
14310else
14311  for ac_header in readline/readline.h
14312do :
14313  ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
14314if test "x$ac_cv_header_readline_readline_h" = xyes; then :
14315  cat >>confdefs.h <<_ACEOF
14316#define HAVE_READLINE_READLINE_H 1
14317_ACEOF
14318 HAVE_READLINE_READLINE_H=1
14319fi
14320
14321done
14322
14323fi
14324
14325done
14326
14327fi
14328
14329done
14330
14331  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
14332$as_echo_n "checking for readline in -ledit... " >&6; }
14333if ${ac_cv_lib_edit_readline+:} false; then :
14334  $as_echo_n "(cached) " >&6
14335else
14336  ac_check_lib_save_LIBS=$LIBS
14337LIBS="-ledit  $LIBS"
14338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14339/* end confdefs.h.  */
14340
14341/* Override any GCC internal prototype to avoid an error.
14342   Use char because int might match the return type of a GCC
14343   builtin and then its argument prototype would still apply.  */
14344#ifdef __cplusplus
14345extern "C"
14346#endif
14347char readline ();
14348int
14349main ()
14350{
14351return readline ();
14352  ;
14353  return 0;
14354}
14355_ACEOF
14356if ac_fn_c_try_link "$LINENO"; then :
14357  ac_cv_lib_edit_readline=yes
14358else
14359  ac_cv_lib_edit_readline=no
14360fi
14361rm -f core conftest.err conftest.$ac_objext \
14362    conftest$ac_exeext conftest.$ac_ext
14363LIBS=$ac_check_lib_save_LIBS
14364fi
14365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
14366$as_echo "$ac_cv_lib_edit_readline" >&6; }
14367if test "x$ac_cv_lib_edit_readline" = xyes; then :
14368  LIBEDIT="-ledit"
14369fi
14370
14371fi
14372
14373PCRE2_STATIC_CFLAG=""
14374if test "x$enable_shared" = "xno" ; then
14375
14376$as_echo "#define PCRE2_STATIC 1" >>confdefs.h
14377
14378  PCRE2_STATIC_CFLAG="-DPCRE2_STATIC"
14379fi
14380
14381
14382# Here is where PCRE2-specific defines are handled
14383
14384if test "$enable_pcre2_8" = "yes"; then
14385
14386$as_echo "#define SUPPORT_PCRE2_8 /**/" >>confdefs.h
14387
14388fi
14389
14390if test "$enable_pcre2_16" = "yes"; then
14391
14392$as_echo "#define SUPPORT_PCRE2_16 /**/" >>confdefs.h
14393
14394fi
14395
14396if test "$enable_pcre2_32" = "yes"; then
14397
14398$as_echo "#define SUPPORT_PCRE2_32 /**/" >>confdefs.h
14399
14400fi
14401
14402if test "$enable_debug" = "yes"; then
14403
14404$as_echo "#define PCRE2_DEBUG /**/" >>confdefs.h
14405
14406fi
14407
14408if test "$enable_percent_zt" = "no"; then
14409
14410$as_echo "#define DISABLE_PERCENT_ZT /**/" >>confdefs.h
14411
14412else
14413  enable_percent_zt=auto
14414fi
14415
14416# Unless running under Windows, JIT support requires pthreads.
14417
14418if test "$enable_jit" = "yes"; then
14419  if test "$HAVE_WINDOWS_H" != "1"; then
14420
14421
14422ac_ext=c
14423ac_cpp='$CPP $CPPFLAGS'
14424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14426ac_compiler_gnu=$ac_cv_c_compiler_gnu
14427
14428ax_pthread_ok=no
14429
14430# We used to check for pthread.h first, but this fails if pthread.h
14431# requires special compiler flags (e.g. on True64 or Sequent).
14432# It gets checked for in the link test anyway.
14433
14434# First of all, check if the user has set any of the PTHREAD_LIBS,
14435# etcetera environment variables, and if threads linking works using
14436# them:
14437if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14438        save_CFLAGS="$CFLAGS"
14439        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14440        save_LIBS="$LIBS"
14441        LIBS="$PTHREAD_LIBS $LIBS"
14442        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14443$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14444        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445/* end confdefs.h.  */
14446
14447/* Override any GCC internal prototype to avoid an error.
14448   Use char because int might match the return type of a GCC
14449   builtin and then its argument prototype would still apply.  */
14450#ifdef __cplusplus
14451extern "C"
14452#endif
14453char pthread_join ();
14454int
14455main ()
14456{
14457return pthread_join ();
14458  ;
14459  return 0;
14460}
14461_ACEOF
14462if ac_fn_c_try_link "$LINENO"; then :
14463  ax_pthread_ok=yes
14464fi
14465rm -f core conftest.err conftest.$ac_objext \
14466    conftest$ac_exeext conftest.$ac_ext
14467        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14468$as_echo "$ax_pthread_ok" >&6; }
14469        if test x"$ax_pthread_ok" = xno; then
14470                PTHREAD_LIBS=""
14471                PTHREAD_CFLAGS=""
14472        fi
14473        LIBS="$save_LIBS"
14474        CFLAGS="$save_CFLAGS"
14475fi
14476
14477# We must check for the threads library under a number of different
14478# names; the ordering is very important because some systems
14479# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14480# libraries is broken (non-POSIX).
14481
14482# Create a list of thread flags to try.  Items starting with a "-" are
14483# C compiler flags, and other items are library names, except for "none"
14484# which indicates that we try without any flags at all, and "pthread-config"
14485# which is a program returning the flags for the Pth emulation library.
14486
14487ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14488
14489# The ordering *is* (sometimes) important.  Some notes on the
14490# individual items follow:
14491
14492# pthreads: AIX (must check this before -lpthread)
14493# none: in case threads are in libc; should be tried before -Kthread and
14494#       other compiler flags to prevent continual compiler warnings
14495# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14496# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14497# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14498# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14499# -pthreads: Solaris/gcc
14500# -mthreads: Mingw32/gcc, Lynx/gcc
14501# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14502#      doesn't hurt to check since this sometimes defines pthreads too;
14503#      also defines -D_REENTRANT)
14504#      ... -mt is also the pthreads flag for HP/aCC
14505# pthread: Linux, etcetera
14506# --thread-safe: KAI C++
14507# pthread-config: use pthread-config program (for GNU Pth library)
14508
14509case ${host_os} in
14510        solaris*)
14511
14512        # On Solaris (at least, for some versions), libc contains stubbed
14513        # (non-functional) versions of the pthreads routines, so link-based
14514        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
14515        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
14516        # a function called by this macro, so we could check for that, but
14517        # who knows whether they'll stub that too in a future libc.)  So,
14518        # we'll just look for -pthreads and -lpthread first:
14519
14520        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
14521        ;;
14522
14523        darwin*)
14524        ax_pthread_flags="-pthread $ax_pthread_flags"
14525        ;;
14526esac
14527
14528if test x"$ax_pthread_ok" = xno; then
14529for flag in $ax_pthread_flags; do
14530
14531        case $flag in
14532                none)
14533                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14534$as_echo_n "checking whether pthreads work without any flags... " >&6; }
14535                ;;
14536
14537                -*)
14538                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14539$as_echo_n "checking whether pthreads work with $flag... " >&6; }
14540                PTHREAD_CFLAGS="$flag"
14541                ;;
14542
14543                pthread-config)
14544                # Extract the first word of "pthread-config", so it can be a program name with args.
14545set dummy pthread-config; ac_word=$2
14546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14547$as_echo_n "checking for $ac_word... " >&6; }
14548if ${ac_cv_prog_ax_pthread_config+:} false; then :
14549  $as_echo_n "(cached) " >&6
14550else
14551  if test -n "$ax_pthread_config"; then
14552  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
14553else
14554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14555for as_dir in $PATH
14556do
14557  IFS=$as_save_IFS
14558  test -z "$as_dir" && as_dir=.
14559    for ac_exec_ext in '' $ac_executable_extensions; do
14560  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14561    ac_cv_prog_ax_pthread_config="yes"
14562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14563    break 2
14564  fi
14565done
14566  done
14567IFS=$as_save_IFS
14568
14569  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
14570fi
14571fi
14572ax_pthread_config=$ac_cv_prog_ax_pthread_config
14573if test -n "$ax_pthread_config"; then
14574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
14575$as_echo "$ax_pthread_config" >&6; }
14576else
14577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14578$as_echo "no" >&6; }
14579fi
14580
14581
14582                if test x"$ax_pthread_config" = xno; then continue; fi
14583                PTHREAD_CFLAGS="`pthread-config --cflags`"
14584                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14585                ;;
14586
14587                *)
14588                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14589$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14590                PTHREAD_LIBS="-l$flag"
14591                ;;
14592        esac
14593
14594        save_LIBS="$LIBS"
14595        save_CFLAGS="$CFLAGS"
14596        LIBS="$PTHREAD_LIBS $LIBS"
14597        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14598
14599        # Check for various functions.  We must include pthread.h,
14600        # since some functions may be macros.  (On the Sequent, we
14601        # need a special flag -Kthread to make this header compile.)
14602        # We check for pthread_join because it is in -lpthread on IRIX
14603        # while pthread_create is in libc.  We check for pthread_attr_init
14604        # due to DEC craziness with -lpthreads.  We check for
14605        # pthread_cleanup_push because it is one of the few pthread
14606        # functions on Solaris that doesn't have a non-functional libc stub.
14607        # We try pthread_create on general principles.
14608        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14609/* end confdefs.h.  */
14610#include <pthread.h>
14611                        static void routine(void *a) { a = 0; }
14612                        static void *start_routine(void *a) { return a; }
14613int
14614main ()
14615{
14616pthread_t th; pthread_attr_t attr;
14617                        pthread_create(&th, 0, start_routine, 0);
14618                        pthread_join(th, 0);
14619                        pthread_attr_init(&attr);
14620                        pthread_cleanup_push(routine, 0);
14621                        pthread_cleanup_pop(0) /* ; */
14622  ;
14623  return 0;
14624}
14625_ACEOF
14626if ac_fn_c_try_link "$LINENO"; then :
14627  ax_pthread_ok=yes
14628fi
14629rm -f core conftest.err conftest.$ac_objext \
14630    conftest$ac_exeext conftest.$ac_ext
14631
14632        LIBS="$save_LIBS"
14633        CFLAGS="$save_CFLAGS"
14634
14635        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14636$as_echo "$ax_pthread_ok" >&6; }
14637        if test "x$ax_pthread_ok" = xyes; then
14638                break;
14639        fi
14640
14641        PTHREAD_LIBS=""
14642        PTHREAD_CFLAGS=""
14643done
14644fi
14645
14646# Various other checks:
14647if test "x$ax_pthread_ok" = xyes; then
14648        save_LIBS="$LIBS"
14649        LIBS="$PTHREAD_LIBS $LIBS"
14650        save_CFLAGS="$CFLAGS"
14651        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14652
14653        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14654        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14655$as_echo_n "checking for joinable pthread attribute... " >&6; }
14656        attr_name=unknown
14657        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14658            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14659/* end confdefs.h.  */
14660#include <pthread.h>
14661int
14662main ()
14663{
14664int attr = $attr; return attr /* ; */
14665  ;
14666  return 0;
14667}
14668_ACEOF
14669if ac_fn_c_try_link "$LINENO"; then :
14670  attr_name=$attr; break
14671fi
14672rm -f core conftest.err conftest.$ac_objext \
14673    conftest$ac_exeext conftest.$ac_ext
14674        done
14675        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14676$as_echo "$attr_name" >&6; }
14677        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
14678
14679cat >>confdefs.h <<_ACEOF
14680#define PTHREAD_CREATE_JOINABLE $attr_name
14681_ACEOF
14682
14683        fi
14684
14685        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14686$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
14687        flag=no
14688        case ${host_os} in
14689            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
14690            osf* | hpux*) flag="-D_REENTRANT";;
14691            solaris*)
14692            if test "$GCC" = "yes"; then
14693                flag="-D_REENTRANT"
14694            else
14695                flag="-mt -D_REENTRANT"
14696            fi
14697            ;;
14698        esac
14699        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
14700$as_echo "${flag}" >&6; }
14701        if test "x$flag" != xno; then
14702            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
14703        fi
14704
14705        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
14706$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
14707if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
14708  $as_echo_n "(cached) " >&6
14709else
14710
14711                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14712/* end confdefs.h.  */
14713
14714                    #include <pthread.h>
14715int
14716main ()
14717{
14718int i = PTHREAD_PRIO_INHERIT;
14719  ;
14720  return 0;
14721}
14722_ACEOF
14723if ac_fn_c_try_link "$LINENO"; then :
14724  ax_cv_PTHREAD_PRIO_INHERIT=yes
14725else
14726  ax_cv_PTHREAD_PRIO_INHERIT=no
14727fi
14728rm -f core conftest.err conftest.$ac_objext \
14729    conftest$ac_exeext conftest.$ac_ext
14730
14731fi
14732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
14733$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
14734        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
14735
14736$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
14737
14738fi
14739
14740        LIBS="$save_LIBS"
14741        CFLAGS="$save_CFLAGS"
14742
14743        # More AIX lossage: must compile with xlc_r or cc_r
14744        if test x"$GCC" != xyes; then
14745          for ac_prog in xlc_r cc_r
14746do
14747  # Extract the first word of "$ac_prog", so it can be a program name with args.
14748set dummy $ac_prog; ac_word=$2
14749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14750$as_echo_n "checking for $ac_word... " >&6; }
14751if ${ac_cv_prog_PTHREAD_CC+:} false; then :
14752  $as_echo_n "(cached) " >&6
14753else
14754  if test -n "$PTHREAD_CC"; then
14755  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14756else
14757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14758for as_dir in $PATH
14759do
14760  IFS=$as_save_IFS
14761  test -z "$as_dir" && as_dir=.
14762    for ac_exec_ext in '' $ac_executable_extensions; do
14763  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14764    ac_cv_prog_PTHREAD_CC="$ac_prog"
14765    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14766    break 2
14767  fi
14768done
14769  done
14770IFS=$as_save_IFS
14771
14772fi
14773fi
14774PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14775if test -n "$PTHREAD_CC"; then
14776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14777$as_echo "$PTHREAD_CC" >&6; }
14778else
14779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14780$as_echo "no" >&6; }
14781fi
14782
14783
14784  test -n "$PTHREAD_CC" && break
14785done
14786test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
14787
14788        else
14789          PTHREAD_CC=$CC
14790        fi
14791else
14792        PTHREAD_CC="$CC"
14793fi
14794
14795
14796
14797
14798
14799# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14800if test x"$ax_pthread_ok" = xyes; then
14801
14802$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
14803
14804        :
14805else
14806        ax_pthread_ok=no
14807        as_fn_error $? "JIT support requires pthreads" "$LINENO" 5
14808fi
14809ac_ext=c
14810ac_cpp='$CPP $CPPFLAGS'
14811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14813ac_compiler_gnu=$ac_cv_c_compiler_gnu
14814
14815
14816    CC="$PTHREAD_CC"
14817    CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
14818    LIBS="$PTHREAD_LIBS $LIBS"
14819  fi
14820
14821$as_echo "#define SUPPORT_JIT /**/" >>confdefs.h
14822
14823else
14824  enable_pcre2grep_jit="no"
14825fi
14826
14827if test "$enable_jit_sealloc" = "yes"; then
14828
14829$as_echo "#define SLJIT_PROT_EXECUTABLE_ALLOCATOR 1" >>confdefs.h
14830
14831fi
14832
14833if test "$enable_pcre2grep_jit" = "yes"; then
14834
14835$as_echo "#define SUPPORT_PCRE2GREP_JIT /**/" >>confdefs.h
14836
14837fi
14838
14839if test "$enable_pcre2grep_callout" = "yes"; then
14840  if test "$enable_pcre2grep_callout_fork" = "yes"; then
14841    if test "$HAVE_WINDOWS_H" != "1"; then
14842      if test "$HAVE_SYS_WAIT_H" != "1"; then
14843        as_fn_error $? "Callout script support needs sys/wait.h." "$LINENO" 5
14844      fi
14845    fi
14846
14847$as_echo "#define SUPPORT_PCRE2GREP_CALLOUT_FORK /**/" >>confdefs.h
14848
14849  fi
14850
14851$as_echo "#define SUPPORT_PCRE2GREP_CALLOUT /**/" >>confdefs.h
14852
14853else
14854  enable_pcre2grep_callout_fork="no"
14855fi
14856
14857if test "$enable_unicode" = "yes"; then
14858
14859$as_echo "#define SUPPORT_UNICODE /**/" >>confdefs.h
14860
14861fi
14862
14863if test "$enable_pcre2grep_libz" = "yes"; then
14864
14865$as_echo "#define SUPPORT_LIBZ /**/" >>confdefs.h
14866
14867fi
14868
14869if test "$enable_pcre2grep_libbz2" = "yes"; then
14870
14871$as_echo "#define SUPPORT_LIBBZ2 /**/" >>confdefs.h
14872
14873fi
14874
14875if test $with_pcre2grep_bufsize -lt 8192 ; then
14876  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $with_pcre2grep_bufsize is too small for --with-pcre2grep-bufsize; using 8192" >&5
14877$as_echo "$as_me: WARNING: $with_pcre2grep_bufsize is too small for --with-pcre2grep-bufsize; using 8192" >&2;}
14878  with_pcre2grep_bufsize="8192"
14879else
14880  if test $? -gt 1 ; then
14881  as_fn_error $? "Bad value for --with-pcre2grep-bufsize" "$LINENO" 5
14882  fi
14883fi
14884
14885if test $with_pcre2grep_max_bufsize -lt $with_pcre2grep_bufsize ; then
14886  with_pcre2grep_max_bufsize="$with_pcre2grep_bufsize"
14887else
14888  if test $? -gt 1 ; then
14889  as_fn_error $? "Bad value for --with-pcre2grep-max-bufsize" "$LINENO" 5
14890  fi
14891fi
14892
14893
14894cat >>confdefs.h <<_ACEOF
14895#define PCRE2GREP_BUFSIZE $with_pcre2grep_bufsize
14896_ACEOF
14897
14898
14899
14900cat >>confdefs.h <<_ACEOF
14901#define PCRE2GREP_MAX_BUFSIZE $with_pcre2grep_max_bufsize
14902_ACEOF
14903
14904
14905if test "$enable_pcre2test_libedit" = "yes"; then
14906
14907$as_echo "#define SUPPORT_LIBEDIT /**/" >>confdefs.h
14908
14909  LIBREADLINE="$LIBEDIT"
14910elif test "$enable_pcre2test_libreadline" = "yes"; then
14911
14912$as_echo "#define SUPPORT_LIBREADLINE /**/" >>confdefs.h
14913
14914fi
14915
14916
14917cat >>confdefs.h <<_ACEOF
14918#define NEWLINE_DEFAULT $ac_pcre2_newline_value
14919_ACEOF
14920
14921
14922if test "$enable_bsr_anycrlf" = "yes"; then
14923
14924$as_echo "#define BSR_ANYCRLF /**/" >>confdefs.h
14925
14926fi
14927
14928if test "$enable_never_backslash_C" = "yes"; then
14929
14930$as_echo "#define NEVER_BACKSLASH_C /**/" >>confdefs.h
14931
14932fi
14933
14934
14935cat >>confdefs.h <<_ACEOF
14936#define LINK_SIZE $with_link_size
14937_ACEOF
14938
14939
14940
14941cat >>confdefs.h <<_ACEOF
14942#define PARENS_NEST_LIMIT $with_parens_nest_limit
14943_ACEOF
14944
14945
14946
14947cat >>confdefs.h <<_ACEOF
14948#define MATCH_LIMIT $with_match_limit
14949_ACEOF
14950
14951
14952# --with-match-limit-recursion is an obsolete synonym for --with-match-limit-depth
14953
14954if test "$with_match_limit_recursion" != "UNSET"; then
14955cat <<EOF
14956
14957WARNING: --with-match-limit-recursion is an obsolete option. Please use
14958  --with-match-limit-depth in future. If both are set, --with-match-limit-depth
14959  will be used. See also --with-heap-limit.
14960
14961EOF
14962if test "$with_match_limit_depth" = "MATCH_LIMIT"; then
14963  with_match_limit_depth=$with_match_limit_recursion
14964fi
14965fi
14966
14967
14968cat >>confdefs.h <<_ACEOF
14969#define MATCH_LIMIT_DEPTH $with_match_limit_depth
14970_ACEOF
14971
14972
14973
14974cat >>confdefs.h <<_ACEOF
14975#define HEAP_LIMIT $with_heap_limit
14976_ACEOF
14977
14978
14979
14980$as_echo "#define MAX_NAME_SIZE 32" >>confdefs.h
14981
14982
14983
14984$as_echo "#define MAX_NAME_COUNT 10000" >>confdefs.h
14985
14986
14987
14988
14989if test "$enable_ebcdic" = "yes"; then
14990
14991cat >>confdefs.h <<_ACEOF
14992#define EBCDIC /**/
14993_ACEOF
14994
14995fi
14996
14997if test "$enable_ebcdic_nl25" = "yes"; then
14998
14999cat >>confdefs.h <<_ACEOF
15000#define EBCDIC_NL25 /**/
15001_ACEOF
15002
15003fi
15004
15005if test "$enable_valgrind" = "yes"; then
15006
15007cat >>confdefs.h <<_ACEOF
15008#define SUPPORT_VALGRIND /**/
15009_ACEOF
15010
15011fi
15012
15013# Platform specific issues
15014NO_UNDEFINED=
15015EXPORT_ALL_SYMBOLS=
15016case $host_os in
15017  cygwin* | mingw* )
15018    if test X"$enable_shared" = Xyes; then
15019      NO_UNDEFINED="-no-undefined"
15020      EXPORT_ALL_SYMBOLS="-Wl,--export-all-symbols"
15021    fi
15022    ;;
15023esac
15024
15025# The extra LDFLAGS for each particular library. The libpcre2*_version values
15026# are m4 variables, assigned above.
15027
15028EXTRA_LIBPCRE2_8_LDFLAGS="$EXTRA_LIBPCRE2_8_LDFLAGS \
15029  $NO_UNDEFINED -version-info 10:1:10"
15030
15031EXTRA_LIBPCRE2_16_LDFLAGS="$EXTRA_LIBPCRE2_16_LDFLAGS \
15032  $NO_UNDEFINED -version-info 10:1:10"
15033
15034EXTRA_LIBPCRE2_32_LDFLAGS="$EXTRA_LIBPCRE2_32_LDFLAGS \
15035  $NO_UNDEFINED -version-info 10:1:10"
15036
15037EXTRA_LIBPCRE2_POSIX_LDFLAGS="$EXTRA_LIBPCRE2_POSIX_LDFLAGS \
15038  $NO_UNDEFINED -version-info 2:3:0"
15039
15040
15041
15042
15043
15044
15045# When we run 'make distcheck', use these arguments. Turning off compiler
15046# optimization makes it run faster.
15047DISTCHECK_CONFIGURE_FLAGS="CFLAGS='' CXXFLAGS='' --enable-pcre2-16 --enable-pcre2-32 --enable-jit"
15048
15049
15050# Check that, if --enable-pcre2grep-libz or --enable-pcre2grep-libbz2 is
15051# specified, the relevant library is available.
15052
15053if test "$enable_pcre2grep_libz" = "yes"; then
15054  if test "$HAVE_ZLIB_H" != "1"; then
15055    echo "** Cannot --enable-pcre2grep-libz because zlib.h was not found"
15056    exit 1
15057  fi
15058  if test "$HAVE_LIBZ" != "1"; then
15059    echo "** Cannot --enable-pcre2grep-libz because libz was not found"
15060    exit 1
15061  fi
15062  LIBZ="-lz"
15063fi
15064
15065
15066if test "$enable_pcre2grep_libbz2" = "yes"; then
15067  if test "$HAVE_BZLIB_H" != "1"; then
15068    echo "** Cannot --enable-pcre2grep-libbz2 because bzlib.h was not found"
15069    exit 1
15070  fi
15071  if test "$HAVE_LIBBZ2" != "1"; then
15072    echo "** Cannot --enable-pcre2grep-libbz2 because libbz2 was not found"
15073    exit 1
15074  fi
15075  LIBBZ2="-lbz2"
15076fi
15077
15078
15079# Similarly for --enable-pcre2test-readline
15080
15081if test "$enable_pcre2test_libedit" = "yes"; then
15082  if test "$enable_pcre2test_libreadline" = "yes"; then
15083    echo "** Cannot use both --enable-pcre2test-libedit and --enable-pcre2test-readline"
15084    exit 1
15085  fi
15086  if test "$HAVE_EDITLINE_READLINE_H" != "1" -a \
15087          "$HAVE_READLINE_READLINE_H" != "1"; then
15088    echo "** Cannot --enable-pcre2test-libedit because neither editline/readline.h"
15089    echo "** nor readline/readline.h was found."
15090    exit 1
15091  fi
15092  if test -z "$LIBEDIT"; then
15093    echo "** Cannot --enable-pcre2test-libedit because libedit library was not found."
15094    exit 1
15095  fi
15096fi
15097
15098if test "$enable_pcre2test_libreadline" = "yes"; then
15099  if test "$HAVE_READLINE_H" != "1"; then
15100    echo "** Cannot --enable-pcre2test-readline because readline/readline.h was not found."
15101    exit 1
15102  fi
15103  if test "$HAVE_HISTORY_H" != "1"; then
15104    echo "** Cannot --enable-pcre2test-readline because readline/history.h was not found."
15105    exit 1
15106  fi
15107  if test -z "$LIBREADLINE"; then
15108    echo "** Cannot --enable-pcre2test-readline because readline library was not found."
15109    exit 1
15110  fi
15111fi
15112
15113# Handle valgrind support
15114
15115if test "$enable_valgrind" = "yes"; then
15116
15117
15118
15119
15120
15121
15122
15123if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15124	if test -n "$ac_tool_prefix"; then
15125  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15126set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15128$as_echo_n "checking for $ac_word... " >&6; }
15129if ${ac_cv_path_PKG_CONFIG+:} false; then :
15130  $as_echo_n "(cached) " >&6
15131else
15132  case $PKG_CONFIG in
15133  [\\/]* | ?:[\\/]*)
15134  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15135  ;;
15136  *)
15137  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15138for as_dir in $PATH
15139do
15140  IFS=$as_save_IFS
15141  test -z "$as_dir" && as_dir=.
15142    for ac_exec_ext in '' $ac_executable_extensions; do
15143  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15144    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15145    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15146    break 2
15147  fi
15148done
15149  done
15150IFS=$as_save_IFS
15151
15152  ;;
15153esac
15154fi
15155PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15156if test -n "$PKG_CONFIG"; then
15157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15158$as_echo "$PKG_CONFIG" >&6; }
15159else
15160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15161$as_echo "no" >&6; }
15162fi
15163
15164
15165fi
15166if test -z "$ac_cv_path_PKG_CONFIG"; then
15167  ac_pt_PKG_CONFIG=$PKG_CONFIG
15168  # Extract the first word of "pkg-config", so it can be a program name with args.
15169set dummy pkg-config; ac_word=$2
15170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15171$as_echo_n "checking for $ac_word... " >&6; }
15172if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15173  $as_echo_n "(cached) " >&6
15174else
15175  case $ac_pt_PKG_CONFIG in
15176  [\\/]* | ?:[\\/]*)
15177  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15178  ;;
15179  *)
15180  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15181for as_dir in $PATH
15182do
15183  IFS=$as_save_IFS
15184  test -z "$as_dir" && as_dir=.
15185    for ac_exec_ext in '' $ac_executable_extensions; do
15186  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15187    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15189    break 2
15190  fi
15191done
15192  done
15193IFS=$as_save_IFS
15194
15195  ;;
15196esac
15197fi
15198ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15199if test -n "$ac_pt_PKG_CONFIG"; then
15200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15201$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15202else
15203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15204$as_echo "no" >&6; }
15205fi
15206
15207  if test "x$ac_pt_PKG_CONFIG" = x; then
15208    PKG_CONFIG=""
15209  else
15210    case $cross_compiling:$ac_tool_warned in
15211yes:)
15212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15214ac_tool_warned=yes ;;
15215esac
15216    PKG_CONFIG=$ac_pt_PKG_CONFIG
15217  fi
15218else
15219  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15220fi
15221
15222fi
15223if test -n "$PKG_CONFIG"; then
15224	_pkg_min_version=0.9.0
15225	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15226$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15227	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15228		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15229$as_echo "yes" >&6; }
15230	else
15231		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15232$as_echo "no" >&6; }
15233		PKG_CONFIG=""
15234	fi
15235fi
15236
15237pkg_failed=no
15238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
15239$as_echo_n "checking for VALGRIND... " >&6; }
15240
15241if test -n "$VALGRIND_CFLAGS"; then
15242    pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
15243 elif test -n "$PKG_CONFIG"; then
15244    if test -n "$PKG_CONFIG" && \
15245    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
15246  ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
15247  ac_status=$?
15248  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15249  test $ac_status = 0; }; then
15250  pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
15251		      test "x$?" != "x0" && pkg_failed=yes
15252else
15253  pkg_failed=yes
15254fi
15255 else
15256    pkg_failed=untried
15257fi
15258if test -n "$VALGRIND_LIBS"; then
15259    pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
15260 elif test -n "$PKG_CONFIG"; then
15261    if test -n "$PKG_CONFIG" && \
15262    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
15263  ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
15264  ac_status=$?
15265  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15266  test $ac_status = 0; }; then
15267  pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
15268		      test "x$?" != "x0" && pkg_failed=yes
15269else
15270  pkg_failed=yes
15271fi
15272 else
15273    pkg_failed=untried
15274fi
15275
15276
15277
15278if test $pkg_failed = yes; then
15279   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15280$as_echo "no" >&6; }
15281
15282if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15283        _pkg_short_errors_supported=yes
15284else
15285        _pkg_short_errors_supported=no
15286fi
15287        if test $_pkg_short_errors_supported = yes; then
15288	        VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1`
15289        else
15290	        VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1`
15291        fi
15292	# Put the nasty error message in config.log where it belongs
15293	echo "$VALGRIND_PKG_ERRORS" >&5
15294
15295	as_fn_error $? "Package requirements (valgrind) were not met:
15296
15297$VALGRIND_PKG_ERRORS
15298
15299Consider adjusting the PKG_CONFIG_PATH environment variable if you
15300installed software in a non-standard prefix.
15301
15302Alternatively, you may set the environment variables VALGRIND_CFLAGS
15303and VALGRIND_LIBS to avoid the need to call pkg-config.
15304See the pkg-config man page for more details." "$LINENO" 5
15305elif test $pkg_failed = untried; then
15306     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15307$as_echo "no" >&6; }
15308	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15310as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15311is in your PATH or set the PKG_CONFIG environment variable to the full
15312path to pkg-config.
15313
15314Alternatively, you may set the environment variables VALGRIND_CFLAGS
15315and VALGRIND_LIBS to avoid the need to call pkg-config.
15316See the pkg-config man page for more details.
15317
15318To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15319See \`config.log' for more details" "$LINENO" 5; }
15320else
15321	VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
15322	VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
15323        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15324$as_echo "yes" >&6; }
15325
15326fi
15327fi
15328
15329# Handle code coverage reporting support
15330if test "$enable_coverage" = "yes"; then
15331  if test "x$GCC" != "xyes"; then
15332    as_fn_error $? "Code coverage reports can only be generated when using GCC" "$LINENO" 5
15333  fi
15334
15335  # ccache is incompatible with gcov
15336  # Extract the first word of "shtool", so it can be a program name with args.
15337set dummy shtool; ac_word=$2
15338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15339$as_echo_n "checking for $ac_word... " >&6; }
15340if ${ac_cv_path_SHTOOL+:} false; then :
15341  $as_echo_n "(cached) " >&6
15342else
15343  case $SHTOOL in
15344  [\\/]* | ?:[\\/]*)
15345  ac_cv_path_SHTOOL="$SHTOOL" # Let the user override the test with a path.
15346  ;;
15347  *)
15348  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15349for as_dir in $PATH
15350do
15351  IFS=$as_save_IFS
15352  test -z "$as_dir" && as_dir=.
15353    for ac_exec_ext in '' $ac_executable_extensions; do
15354  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15355    ac_cv_path_SHTOOL="$as_dir/$ac_word$ac_exec_ext"
15356    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15357    break 2
15358  fi
15359done
15360  done
15361IFS=$as_save_IFS
15362
15363  test -z "$ac_cv_path_SHTOOL" && ac_cv_path_SHTOOL="false"
15364  ;;
15365esac
15366fi
15367SHTOOL=$ac_cv_path_SHTOOL
15368if test -n "$SHTOOL"; then
15369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
15370$as_echo "$SHTOOL" >&6; }
15371else
15372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15373$as_echo "no" >&6; }
15374fi
15375
15376
15377  case `$SHTOOL path $CC` in
15378    *ccache*) cc_ccache=yes;;
15379    *) cc_ccache=no;;
15380  esac
15381
15382  if test "$cc_ccache" = "yes"; then
15383    if test -z "$CCACHE_DISABLE" -o "$CCACHE_DISABLE" != "1"; then
15384      as_fn_error $? "must export CCACHE_DISABLE=1 to disable ccache for code coverage" "$LINENO" 5
15385    fi
15386  fi
15387
15388
15389  # Extract the first word of "lcov", so it can be a program name with args.
15390set dummy lcov; ac_word=$2
15391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15392$as_echo_n "checking for $ac_word... " >&6; }
15393if ${ac_cv_path_LCOV+:} false; then :
15394  $as_echo_n "(cached) " >&6
15395else
15396  case $LCOV in
15397  [\\/]* | ?:[\\/]*)
15398  ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
15399  ;;
15400  *)
15401  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15402for as_dir in $PATH
15403do
15404  IFS=$as_save_IFS
15405  test -z "$as_dir" && as_dir=.
15406    for ac_exec_ext in '' $ac_executable_extensions; do
15407  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15408    ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
15409    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15410    break 2
15411  fi
15412done
15413  done
15414IFS=$as_save_IFS
15415
15416  test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="false"
15417  ;;
15418esac
15419fi
15420LCOV=$ac_cv_path_LCOV
15421if test -n "$LCOV"; then
15422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
15423$as_echo "$LCOV" >&6; }
15424else
15425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15426$as_echo "no" >&6; }
15427fi
15428
15429
15430  if test "x$LCOV" = "xfalse"; then
15431    as_fn_error $? "lcov not found" "$LINENO" 5
15432  fi
15433
15434
15435  # Extract the first word of "genhtml", so it can be a program name with args.
15436set dummy genhtml; ac_word=$2
15437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15438$as_echo_n "checking for $ac_word... " >&6; }
15439if ${ac_cv_path_GENHTML+:} false; then :
15440  $as_echo_n "(cached) " >&6
15441else
15442  case $GENHTML in
15443  [\\/]* | ?:[\\/]*)
15444  ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
15445  ;;
15446  *)
15447  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15448for as_dir in $PATH
15449do
15450  IFS=$as_save_IFS
15451  test -z "$as_dir" && as_dir=.
15452    for ac_exec_ext in '' $ac_executable_extensions; do
15453  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15454    ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
15455    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15456    break 2
15457  fi
15458done
15459  done
15460IFS=$as_save_IFS
15461
15462  test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="false"
15463  ;;
15464esac
15465fi
15466GENHTML=$ac_cv_path_GENHTML
15467if test -n "$GENHTML"; then
15468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
15469$as_echo "$GENHTML" >&6; }
15470else
15471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15472$as_echo "no" >&6; }
15473fi
15474
15475
15476  if test "x$GENHTML" = "xfalse"; then
15477    as_fn_error $? "genhtml not found" "$LINENO" 5
15478  fi
15479
15480  # Set flags needed for gcov
15481  GCOV_CFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
15482  GCOV_CXXFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
15483  GCOV_LIBS="-lgcov"
15484
15485
15486
15487fi # enable_coverage
15488
15489 if test "x$enable_coverage" = "xyes"; then
15490  WITH_GCOV_TRUE=
15491  WITH_GCOV_FALSE='#'
15492else
15493  WITH_GCOV_TRUE='#'
15494  WITH_GCOV_FALSE=
15495fi
15496
15497
15498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Intel CET is enabled" >&5
15499$as_echo_n "checking whether Intel CET is enabled... " >&6; }
15500ac_ext=c
15501ac_cpp='$CPP $CPPFLAGS'
15502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15504ac_compiler_gnu=$ac_cv_c_compiler_gnu
15505
15506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15507/* end confdefs.h.  */
15508
15509int
15510main ()
15511{
15512#ifndef __CET__
15513# error CET is not enabled
15514#endif
15515  ;
15516  return 0;
15517}
15518_ACEOF
15519if ac_fn_c_try_compile "$LINENO"; then :
15520  pcre2_cc_cv_intel_cet_enabled=yes
15521else
15522  pcre2_cc_cv_intel_cet_enabled=no
15523fi
15524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcre2_cc_cv_intel_cet_enabled" >&5
15526$as_echo "$pcre2_cc_cv_intel_cet_enabled" >&6; }
15527if test "$pcre2_cc_cv_intel_cet_enabled" = yes; then
15528  CET_CFLAGS="-mshstk"
15529
15530fi
15531ac_ext=c
15532ac_cpp='$CPP $CPPFLAGS'
15533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15535ac_compiler_gnu=$ac_cv_c_compiler_gnu
15536
15537
15538# LIB_POSTFIX is used by CMakeLists.txt for Windows debug builds.
15539# Pass empty LIB_POSTFIX to *.pc files and pcre2-config here.
15540
15541
15542# Produce these files, in addition to config.h.
15543
15544ac_config_files="$ac_config_files Makefile libpcre2-8.pc libpcre2-16.pc libpcre2-32.pc libpcre2-posix.pc pcre2-config src/pcre2.h"
15545
15546
15547# Make the generated script files executable.
15548ac_config_commands="$ac_config_commands script-chmod"
15549
15550
15551# Make sure that pcre2_chartables.c is removed in case the method for
15552# creating it was changed by reconfiguration.
15553ac_config_commands="$ac_config_commands delete-old-chartables"
15554
15555
15556cat >confcache <<\_ACEOF
15557# This file is a shell script that caches the results of configure
15558# tests run on this system so they can be shared between configure
15559# scripts and configure runs, see configure's option --config-cache.
15560# It is not useful on other systems.  If it contains results you don't
15561# want to keep, you may remove or edit it.
15562#
15563# config.status only pays attention to the cache file if you give it
15564# the --recheck option to rerun configure.
15565#
15566# `ac_cv_env_foo' variables (set or unset) will be overridden when
15567# loading this file, other *unset* `ac_cv_foo' will be assigned the
15568# following values.
15569
15570_ACEOF
15571
15572# The following way of writing the cache mishandles newlines in values,
15573# but we know of no workaround that is simple, portable, and efficient.
15574# So, we kill variables containing newlines.
15575# Ultrix sh set writes to stderr and can't be redirected directly,
15576# and sets the high bit in the cache file unless we assign to the vars.
15577(
15578  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15579    eval ac_val=\$$ac_var
15580    case $ac_val in #(
15581    *${as_nl}*)
15582      case $ac_var in #(
15583      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15584$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15585      esac
15586      case $ac_var in #(
15587      _ | IFS | as_nl) ;; #(
15588      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15589      *) { eval $ac_var=; unset $ac_var;} ;;
15590      esac ;;
15591    esac
15592  done
15593
15594  (set) 2>&1 |
15595    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15596    *${as_nl}ac_space=\ *)
15597      # `set' does not quote correctly, so add quotes: double-quote
15598      # substitution turns \\\\ into \\, and sed turns \\ into \.
15599      sed -n \
15600	"s/'/'\\\\''/g;
15601	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15602      ;; #(
15603    *)
15604      # `set' quotes correctly as required by POSIX, so do not add quotes.
15605      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15606      ;;
15607    esac |
15608    sort
15609) |
15610  sed '
15611     /^ac_cv_env_/b end
15612     t clear
15613     :clear
15614     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15615     t end
15616     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15617     :end' >>confcache
15618if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15619  if test -w "$cache_file"; then
15620    if test "x$cache_file" != "x/dev/null"; then
15621      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15622$as_echo "$as_me: updating cache $cache_file" >&6;}
15623      if test ! -f "$cache_file" || test -h "$cache_file"; then
15624	cat confcache >"$cache_file"
15625      else
15626        case $cache_file in #(
15627        */* | ?:*)
15628	  mv -f confcache "$cache_file"$$ &&
15629	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15630        *)
15631	  mv -f confcache "$cache_file" ;;
15632	esac
15633      fi
15634    fi
15635  else
15636    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15637$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15638  fi
15639fi
15640rm -f confcache
15641
15642test "x$prefix" = xNONE && prefix=$ac_default_prefix
15643# Let make expand exec_prefix.
15644test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15645
15646DEFS=-DHAVE_CONFIG_H
15647
15648ac_libobjs=
15649ac_ltlibobjs=
15650U=
15651for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15652  # 1. Remove the extension, and $U if already installed.
15653  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15654  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15655  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15656  #    will be set to the directory where LIBOBJS objects are built.
15657  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15658  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15659done
15660LIBOBJS=$ac_libobjs
15661
15662LTLIBOBJS=$ac_ltlibobjs
15663
15664
15665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15666$as_echo_n "checking that generated files are newer than configure... " >&6; }
15667   if test -n "$am_sleep_pid"; then
15668     # Hide warnings about reused PIDs.
15669     wait $am_sleep_pid 2>/dev/null
15670   fi
15671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15672$as_echo "done" >&6; }
15673 if test -n "$EXEEXT"; then
15674  am__EXEEXT_TRUE=
15675  am__EXEEXT_FALSE='#'
15676else
15677  am__EXEEXT_TRUE='#'
15678  am__EXEEXT_FALSE=
15679fi
15680
15681if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15682  as_fn_error $? "conditional \"AMDEP\" was never defined.
15683Usually this means the macro was only invoked conditionally." "$LINENO" 5
15684fi
15685if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15686  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15687Usually this means the macro was only invoked conditionally." "$LINENO" 5
15688fi
15689if test -z "${WITH_PCRE2_8_TRUE}" && test -z "${WITH_PCRE2_8_FALSE}"; then
15690  as_fn_error $? "conditional \"WITH_PCRE2_8\" was never defined.
15691Usually this means the macro was only invoked conditionally." "$LINENO" 5
15692fi
15693if test -z "${WITH_PCRE2_16_TRUE}" && test -z "${WITH_PCRE2_16_FALSE}"; then
15694  as_fn_error $? "conditional \"WITH_PCRE2_16\" was never defined.
15695Usually this means the macro was only invoked conditionally." "$LINENO" 5
15696fi
15697if test -z "${WITH_PCRE2_32_TRUE}" && test -z "${WITH_PCRE2_32_FALSE}"; then
15698  as_fn_error $? "conditional \"WITH_PCRE2_32\" was never defined.
15699Usually this means the macro was only invoked conditionally." "$LINENO" 5
15700fi
15701if test -z "${WITH_DEBUG_TRUE}" && test -z "${WITH_DEBUG_FALSE}"; then
15702  as_fn_error $? "conditional \"WITH_DEBUG\" was never defined.
15703Usually this means the macro was only invoked conditionally." "$LINENO" 5
15704fi
15705if test -z "${WITH_REBUILD_CHARTABLES_TRUE}" && test -z "${WITH_REBUILD_CHARTABLES_FALSE}"; then
15706  as_fn_error $? "conditional \"WITH_REBUILD_CHARTABLES\" was never defined.
15707Usually this means the macro was only invoked conditionally." "$LINENO" 5
15708fi
15709if test -z "${WITH_JIT_TRUE}" && test -z "${WITH_JIT_FALSE}"; then
15710  as_fn_error $? "conditional \"WITH_JIT\" was never defined.
15711Usually this means the macro was only invoked conditionally." "$LINENO" 5
15712fi
15713if test -z "${WITH_UNICODE_TRUE}" && test -z "${WITH_UNICODE_FALSE}"; then
15714  as_fn_error $? "conditional \"WITH_UNICODE\" was never defined.
15715Usually this means the macro was only invoked conditionally." "$LINENO" 5
15716fi
15717if test -z "${WITH_VALGRIND_TRUE}" && test -z "${WITH_VALGRIND_FALSE}"; then
15718  as_fn_error $? "conditional \"WITH_VALGRIND\" was never defined.
15719Usually this means the macro was only invoked conditionally." "$LINENO" 5
15720fi
15721if test -z "${WITH_FUZZ_SUPPORT_TRUE}" && test -z "${WITH_FUZZ_SUPPORT_FALSE}"; then
15722  as_fn_error $? "conditional \"WITH_FUZZ_SUPPORT\" was never defined.
15723Usually this means the macro was only invoked conditionally." "$LINENO" 5
15724fi
15725if test -z "${WITH_GCOV_TRUE}" && test -z "${WITH_GCOV_FALSE}"; then
15726  as_fn_error $? "conditional \"WITH_GCOV\" was never defined.
15727Usually this means the macro was only invoked conditionally." "$LINENO" 5
15728fi
15729
15730: "${CONFIG_STATUS=./config.status}"
15731ac_write_fail=0
15732ac_clean_files_save=$ac_clean_files
15733ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15734{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15735$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15736as_write_fail=0
15737cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15738#! $SHELL
15739# Generated by $as_me.
15740# Run this file to recreate the current configuration.
15741# Compiler output produced by configure, useful for debugging
15742# configure, is in config.log if it exists.
15743
15744debug=false
15745ac_cs_recheck=false
15746ac_cs_silent=false
15747
15748SHELL=\${CONFIG_SHELL-$SHELL}
15749export SHELL
15750_ASEOF
15751cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15752## -------------------- ##
15753## M4sh Initialization. ##
15754## -------------------- ##
15755
15756# Be more Bourne compatible
15757DUALCASE=1; export DUALCASE # for MKS sh
15758if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15759  emulate sh
15760  NULLCMD=:
15761  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15762  # is contrary to our usage.  Disable this feature.
15763  alias -g '${1+"$@"}'='"$@"'
15764  setopt NO_GLOB_SUBST
15765else
15766  case `(set -o) 2>/dev/null` in #(
15767  *posix*) :
15768    set -o posix ;; #(
15769  *) :
15770     ;;
15771esac
15772fi
15773
15774
15775as_nl='
15776'
15777export as_nl
15778# Printing a long string crashes Solaris 7 /usr/bin/printf.
15779as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15780as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15781as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15782# Prefer a ksh shell builtin over an external printf program on Solaris,
15783# but without wasting forks for bash or zsh.
15784if test -z "$BASH_VERSION$ZSH_VERSION" \
15785    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15786  as_echo='print -r --'
15787  as_echo_n='print -rn --'
15788elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15789  as_echo='printf %s\n'
15790  as_echo_n='printf %s'
15791else
15792  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15793    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15794    as_echo_n='/usr/ucb/echo -n'
15795  else
15796    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15797    as_echo_n_body='eval
15798      arg=$1;
15799      case $arg in #(
15800      *"$as_nl"*)
15801	expr "X$arg" : "X\\(.*\\)$as_nl";
15802	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15803      esac;
15804      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15805    '
15806    export as_echo_n_body
15807    as_echo_n='sh -c $as_echo_n_body as_echo'
15808  fi
15809  export as_echo_body
15810  as_echo='sh -c $as_echo_body as_echo'
15811fi
15812
15813# The user is always right.
15814if test "${PATH_SEPARATOR+set}" != set; then
15815  PATH_SEPARATOR=:
15816  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15817    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15818      PATH_SEPARATOR=';'
15819  }
15820fi
15821
15822
15823# IFS
15824# We need space, tab and new line, in precisely that order.  Quoting is
15825# there to prevent editors from complaining about space-tab.
15826# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15827# splitting by setting IFS to empty value.)
15828IFS=" ""	$as_nl"
15829
15830# Find who we are.  Look in the path if we contain no directory separator.
15831as_myself=
15832case $0 in #((
15833  *[\\/]* ) as_myself=$0 ;;
15834  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15835for as_dir in $PATH
15836do
15837  IFS=$as_save_IFS
15838  test -z "$as_dir" && as_dir=.
15839    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15840  done
15841IFS=$as_save_IFS
15842
15843     ;;
15844esac
15845# We did not find ourselves, most probably we were run as `sh COMMAND'
15846# in which case we are not to be found in the path.
15847if test "x$as_myself" = x; then
15848  as_myself=$0
15849fi
15850if test ! -f "$as_myself"; then
15851  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15852  exit 1
15853fi
15854
15855# Unset variables that we do not need and which cause bugs (e.g. in
15856# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15857# suppresses any "Segmentation fault" message there.  '((' could
15858# trigger a bug in pdksh 5.2.14.
15859for as_var in BASH_ENV ENV MAIL MAILPATH
15860do eval test x\${$as_var+set} = xset \
15861  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15862done
15863PS1='$ '
15864PS2='> '
15865PS4='+ '
15866
15867# NLS nuisances.
15868LC_ALL=C
15869export LC_ALL
15870LANGUAGE=C
15871export LANGUAGE
15872
15873# CDPATH.
15874(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15875
15876
15877# as_fn_error STATUS ERROR [LINENO LOG_FD]
15878# ----------------------------------------
15879# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15880# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15881# script with STATUS, using 1 if that was 0.
15882as_fn_error ()
15883{
15884  as_status=$1; test $as_status -eq 0 && as_status=1
15885  if test "$4"; then
15886    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15887    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15888  fi
15889  $as_echo "$as_me: error: $2" >&2
15890  as_fn_exit $as_status
15891} # as_fn_error
15892
15893
15894# as_fn_set_status STATUS
15895# -----------------------
15896# Set $? to STATUS, without forking.
15897as_fn_set_status ()
15898{
15899  return $1
15900} # as_fn_set_status
15901
15902# as_fn_exit STATUS
15903# -----------------
15904# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15905as_fn_exit ()
15906{
15907  set +e
15908  as_fn_set_status $1
15909  exit $1
15910} # as_fn_exit
15911
15912# as_fn_unset VAR
15913# ---------------
15914# Portably unset VAR.
15915as_fn_unset ()
15916{
15917  { eval $1=; unset $1;}
15918}
15919as_unset=as_fn_unset
15920# as_fn_append VAR VALUE
15921# ----------------------
15922# Append the text in VALUE to the end of the definition contained in VAR. Take
15923# advantage of any shell optimizations that allow amortized linear growth over
15924# repeated appends, instead of the typical quadratic growth present in naive
15925# implementations.
15926if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15927  eval 'as_fn_append ()
15928  {
15929    eval $1+=\$2
15930  }'
15931else
15932  as_fn_append ()
15933  {
15934    eval $1=\$$1\$2
15935  }
15936fi # as_fn_append
15937
15938# as_fn_arith ARG...
15939# ------------------
15940# Perform arithmetic evaluation on the ARGs, and store the result in the
15941# global $as_val. Take advantage of shells that can avoid forks. The arguments
15942# must be portable across $(()) and expr.
15943if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15944  eval 'as_fn_arith ()
15945  {
15946    as_val=$(( $* ))
15947  }'
15948else
15949  as_fn_arith ()
15950  {
15951    as_val=`expr "$@" || test $? -eq 1`
15952  }
15953fi # as_fn_arith
15954
15955
15956if expr a : '\(a\)' >/dev/null 2>&1 &&
15957   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15958  as_expr=expr
15959else
15960  as_expr=false
15961fi
15962
15963if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15964  as_basename=basename
15965else
15966  as_basename=false
15967fi
15968
15969if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15970  as_dirname=dirname
15971else
15972  as_dirname=false
15973fi
15974
15975as_me=`$as_basename -- "$0" ||
15976$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15977	 X"$0" : 'X\(//\)$' \| \
15978	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15979$as_echo X/"$0" |
15980    sed '/^.*\/\([^/][^/]*\)\/*$/{
15981	    s//\1/
15982	    q
15983	  }
15984	  /^X\/\(\/\/\)$/{
15985	    s//\1/
15986	    q
15987	  }
15988	  /^X\/\(\/\).*/{
15989	    s//\1/
15990	    q
15991	  }
15992	  s/.*/./; q'`
15993
15994# Avoid depending upon Character Ranges.
15995as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15996as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15997as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15998as_cr_digits='0123456789'
15999as_cr_alnum=$as_cr_Letters$as_cr_digits
16000
16001ECHO_C= ECHO_N= ECHO_T=
16002case `echo -n x` in #(((((
16003-n*)
16004  case `echo 'xy\c'` in
16005  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16006  xy)  ECHO_C='\c';;
16007  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16008       ECHO_T='	';;
16009  esac;;
16010*)
16011  ECHO_N='-n';;
16012esac
16013
16014rm -f conf$$ conf$$.exe conf$$.file
16015if test -d conf$$.dir; then
16016  rm -f conf$$.dir/conf$$.file
16017else
16018  rm -f conf$$.dir
16019  mkdir conf$$.dir 2>/dev/null
16020fi
16021if (echo >conf$$.file) 2>/dev/null; then
16022  if ln -s conf$$.file conf$$ 2>/dev/null; then
16023    as_ln_s='ln -s'
16024    # ... but there are two gotchas:
16025    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16026    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16027    # In both cases, we have to default to `cp -pR'.
16028    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16029      as_ln_s='cp -pR'
16030  elif ln conf$$.file conf$$ 2>/dev/null; then
16031    as_ln_s=ln
16032  else
16033    as_ln_s='cp -pR'
16034  fi
16035else
16036  as_ln_s='cp -pR'
16037fi
16038rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16039rmdir conf$$.dir 2>/dev/null
16040
16041
16042# as_fn_mkdir_p
16043# -------------
16044# Create "$as_dir" as a directory, including parents if necessary.
16045as_fn_mkdir_p ()
16046{
16047
16048  case $as_dir in #(
16049  -*) as_dir=./$as_dir;;
16050  esac
16051  test -d "$as_dir" || eval $as_mkdir_p || {
16052    as_dirs=
16053    while :; do
16054      case $as_dir in #(
16055      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16056      *) as_qdir=$as_dir;;
16057      esac
16058      as_dirs="'$as_qdir' $as_dirs"
16059      as_dir=`$as_dirname -- "$as_dir" ||
16060$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16061	 X"$as_dir" : 'X\(//\)[^/]' \| \
16062	 X"$as_dir" : 'X\(//\)$' \| \
16063	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16064$as_echo X"$as_dir" |
16065    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16066	    s//\1/
16067	    q
16068	  }
16069	  /^X\(\/\/\)[^/].*/{
16070	    s//\1/
16071	    q
16072	  }
16073	  /^X\(\/\/\)$/{
16074	    s//\1/
16075	    q
16076	  }
16077	  /^X\(\/\).*/{
16078	    s//\1/
16079	    q
16080	  }
16081	  s/.*/./; q'`
16082      test -d "$as_dir" && break
16083    done
16084    test -z "$as_dirs" || eval "mkdir $as_dirs"
16085  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16086
16087
16088} # as_fn_mkdir_p
16089if mkdir -p . 2>/dev/null; then
16090  as_mkdir_p='mkdir -p "$as_dir"'
16091else
16092  test -d ./-p && rmdir ./-p
16093  as_mkdir_p=false
16094fi
16095
16096
16097# as_fn_executable_p FILE
16098# -----------------------
16099# Test if FILE is an executable regular file.
16100as_fn_executable_p ()
16101{
16102  test -f "$1" && test -x "$1"
16103} # as_fn_executable_p
16104as_test_x='test -x'
16105as_executable_p=as_fn_executable_p
16106
16107# Sed expression to map a string onto a valid CPP name.
16108as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16109
16110# Sed expression to map a string onto a valid variable name.
16111as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16112
16113
16114exec 6>&1
16115## ----------------------------------- ##
16116## Main body of $CONFIG_STATUS script. ##
16117## ----------------------------------- ##
16118_ASEOF
16119test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16120
16121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16122# Save the log message, to keep $0 and so on meaningful, and to
16123# report actual input values of CONFIG_FILES etc. instead of their
16124# values after options handling.
16125ac_log="
16126This file was extended by PCRE2 $as_me 10.36, which was
16127generated by GNU Autoconf 2.69.  Invocation command line was
16128
16129  CONFIG_FILES    = $CONFIG_FILES
16130  CONFIG_HEADERS  = $CONFIG_HEADERS
16131  CONFIG_LINKS    = $CONFIG_LINKS
16132  CONFIG_COMMANDS = $CONFIG_COMMANDS
16133  $ $0 $@
16134
16135on `(hostname || uname -n) 2>/dev/null | sed 1q`
16136"
16137
16138_ACEOF
16139
16140case $ac_config_files in *"
16141"*) set x $ac_config_files; shift; ac_config_files=$*;;
16142esac
16143
16144case $ac_config_headers in *"
16145"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16146esac
16147
16148
16149cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16150# Files that config.status was made for.
16151config_files="$ac_config_files"
16152config_headers="$ac_config_headers"
16153config_commands="$ac_config_commands"
16154
16155_ACEOF
16156
16157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16158ac_cs_usage="\
16159\`$as_me' instantiates files and other configuration actions
16160from templates according to the current configuration.  Unless the files
16161and actions are specified as TAGs, all are instantiated by default.
16162
16163Usage: $0 [OPTION]... [TAG]...
16164
16165  -h, --help       print this help, then exit
16166  -V, --version    print version number and configuration settings, then exit
16167      --config     print configuration, then exit
16168  -q, --quiet, --silent
16169                   do not print progress messages
16170  -d, --debug      don't remove temporary files
16171      --recheck    update $as_me by reconfiguring in the same conditions
16172      --file=FILE[:TEMPLATE]
16173                   instantiate the configuration file FILE
16174      --header=FILE[:TEMPLATE]
16175                   instantiate the configuration header FILE
16176
16177Configuration files:
16178$config_files
16179
16180Configuration headers:
16181$config_headers
16182
16183Configuration commands:
16184$config_commands
16185
16186Report bugs to the package provider."
16187
16188_ACEOF
16189cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16190ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16191ac_cs_version="\\
16192PCRE2 config.status 10.36
16193configured by $0, generated by GNU Autoconf 2.69,
16194  with options \\"\$ac_cs_config\\"
16195
16196Copyright (C) 2012 Free Software Foundation, Inc.
16197This config.status script is free software; the Free Software Foundation
16198gives unlimited permission to copy, distribute and modify it."
16199
16200ac_pwd='$ac_pwd'
16201srcdir='$srcdir'
16202INSTALL='$INSTALL'
16203MKDIR_P='$MKDIR_P'
16204AWK='$AWK'
16205test -n "\$AWK" || AWK=awk
16206_ACEOF
16207
16208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16209# The default lists apply if the user does not specify any file.
16210ac_need_defaults=:
16211while test $# != 0
16212do
16213  case $1 in
16214  --*=?*)
16215    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16216    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16217    ac_shift=:
16218    ;;
16219  --*=)
16220    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16221    ac_optarg=
16222    ac_shift=:
16223    ;;
16224  *)
16225    ac_option=$1
16226    ac_optarg=$2
16227    ac_shift=shift
16228    ;;
16229  esac
16230
16231  case $ac_option in
16232  # Handling of the options.
16233  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16234    ac_cs_recheck=: ;;
16235  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16236    $as_echo "$ac_cs_version"; exit ;;
16237  --config | --confi | --conf | --con | --co | --c )
16238    $as_echo "$ac_cs_config"; exit ;;
16239  --debug | --debu | --deb | --de | --d | -d )
16240    debug=: ;;
16241  --file | --fil | --fi | --f )
16242    $ac_shift
16243    case $ac_optarg in
16244    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16245    '') as_fn_error $? "missing file argument" ;;
16246    esac
16247    as_fn_append CONFIG_FILES " '$ac_optarg'"
16248    ac_need_defaults=false;;
16249  --header | --heade | --head | --hea )
16250    $ac_shift
16251    case $ac_optarg in
16252    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16253    esac
16254    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16255    ac_need_defaults=false;;
16256  --he | --h)
16257    # Conflict between --help and --header
16258    as_fn_error $? "ambiguous option: \`$1'
16259Try \`$0 --help' for more information.";;
16260  --help | --hel | -h )
16261    $as_echo "$ac_cs_usage"; exit ;;
16262  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16263  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16264    ac_cs_silent=: ;;
16265
16266  # This is an error.
16267  -*) as_fn_error $? "unrecognized option: \`$1'
16268Try \`$0 --help' for more information." ;;
16269
16270  *) as_fn_append ac_config_targets " $1"
16271     ac_need_defaults=false ;;
16272
16273  esac
16274  shift
16275done
16276
16277ac_configure_extra_args=
16278
16279if $ac_cs_silent; then
16280  exec 6>/dev/null
16281  ac_configure_extra_args="$ac_configure_extra_args --silent"
16282fi
16283
16284_ACEOF
16285cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16286if \$ac_cs_recheck; then
16287  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16288  shift
16289  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16290  CONFIG_SHELL='$SHELL'
16291  export CONFIG_SHELL
16292  exec "\$@"
16293fi
16294
16295_ACEOF
16296cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16297exec 5>>config.log
16298{
16299  echo
16300  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16301## Running $as_me. ##
16302_ASBOX
16303  $as_echo "$ac_log"
16304} >&5
16305
16306_ACEOF
16307cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16308#
16309# INIT-COMMANDS
16310#
16311AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16312
16313
16314# The HP-UX ksh and POSIX shell print the target directory to stdout
16315# if CDPATH is set.
16316(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16317
16318sed_quote_subst='$sed_quote_subst'
16319double_quote_subst='$double_quote_subst'
16320delay_variable_subst='$delay_variable_subst'
16321AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16322DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16323OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16324macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16325macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16326enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16327enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16328pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16329enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16330shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16331SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16332ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16333PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16334host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16335host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16336host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16337build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16338build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16339build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16340SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16341Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16342GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16343EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16344FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16345LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16346NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16347LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16348max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16349ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16350exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16351lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16352lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16353lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16354lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16355lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16356reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16357reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16358deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16359file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16360file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16361want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16362sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16363AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16364lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16365AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16366archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16367STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16368RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16369old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16370old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16371old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16372lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16373CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16374CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16375compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16376GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16377lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16378lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16379lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16380lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16381lt_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"`'
16382lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16383nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16384lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16385lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16386objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16387MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16388lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16389lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16390lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16391lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16392lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16393need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16394MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16395DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16396NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16397LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16398OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16399OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16400libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16401shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16402extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16403archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16404enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16405export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16406whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16407compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16408old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16409old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16410archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16411archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16412module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16413module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16414with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16415allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16416no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16417hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16418hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16419hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16420hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16421hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16422hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16423hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16424inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16425link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16426always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16427export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16428exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16429include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16430prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16431postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16432file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16433variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16434need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16435need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16436version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16437runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16438shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16439shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16440libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16441library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16442soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16443install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16444postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16445postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16446finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16447finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16448hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16449sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16450configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16451configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16452hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16453enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16454enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16455enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16456old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16457striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16458
16459LTCC='$LTCC'
16460LTCFLAGS='$LTCFLAGS'
16461compiler='$compiler_DEFAULT'
16462
16463# A function that is used when there is no print builtin or printf.
16464func_fallback_echo ()
16465{
16466  eval 'cat <<_LTECHO_EOF
16467\$1
16468_LTECHO_EOF'
16469}
16470
16471# Quote evaled strings.
16472for var in AS \
16473DLLTOOL \
16474OBJDUMP \
16475SHELL \
16476ECHO \
16477PATH_SEPARATOR \
16478SED \
16479GREP \
16480EGREP \
16481FGREP \
16482LD \
16483NM \
16484LN_S \
16485lt_SP2NL \
16486lt_NL2SP \
16487reload_flag \
16488deplibs_check_method \
16489file_magic_cmd \
16490file_magic_glob \
16491want_nocaseglob \
16492sharedlib_from_linklib_cmd \
16493AR \
16494archiver_list_spec \
16495STRIP \
16496RANLIB \
16497CC \
16498CFLAGS \
16499compiler \
16500lt_cv_sys_global_symbol_pipe \
16501lt_cv_sys_global_symbol_to_cdecl \
16502lt_cv_sys_global_symbol_to_import \
16503lt_cv_sys_global_symbol_to_c_name_address \
16504lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16505lt_cv_nm_interface \
16506nm_file_list_spec \
16507lt_cv_truncate_bin \
16508lt_prog_compiler_no_builtin_flag \
16509lt_prog_compiler_pic \
16510lt_prog_compiler_wl \
16511lt_prog_compiler_static \
16512lt_cv_prog_compiler_c_o \
16513need_locks \
16514MANIFEST_TOOL \
16515DSYMUTIL \
16516NMEDIT \
16517LIPO \
16518OTOOL \
16519OTOOL64 \
16520shrext_cmds \
16521export_dynamic_flag_spec \
16522whole_archive_flag_spec \
16523compiler_needs_object \
16524with_gnu_ld \
16525allow_undefined_flag \
16526no_undefined_flag \
16527hardcode_libdir_flag_spec \
16528hardcode_libdir_separator \
16529exclude_expsyms \
16530include_expsyms \
16531file_list_spec \
16532variables_saved_for_relink \
16533libname_spec \
16534library_names_spec \
16535soname_spec \
16536install_override_mode \
16537finish_eval \
16538old_striplib \
16539striplib; do
16540    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16541    *[\\\\\\\`\\"\\\$]*)
16542      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16543      ;;
16544    *)
16545      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16546      ;;
16547    esac
16548done
16549
16550# Double-quote double-evaled strings.
16551for var in reload_cmds \
16552old_postinstall_cmds \
16553old_postuninstall_cmds \
16554old_archive_cmds \
16555extract_expsyms_cmds \
16556old_archive_from_new_cmds \
16557old_archive_from_expsyms_cmds \
16558archive_cmds \
16559archive_expsym_cmds \
16560module_cmds \
16561module_expsym_cmds \
16562export_symbols_cmds \
16563prelink_cmds \
16564postlink_cmds \
16565postinstall_cmds \
16566postuninstall_cmds \
16567finish_cmds \
16568sys_lib_search_path_spec \
16569configure_time_dlsearch_path \
16570configure_time_lt_sys_library_path; do
16571    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16572    *[\\\\\\\`\\"\\\$]*)
16573      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16574      ;;
16575    *)
16576      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16577      ;;
16578    esac
16579done
16580
16581ac_aux_dir='$ac_aux_dir'
16582
16583# See if we are running on zsh, and set the options that allow our
16584# commands through without removal of \ escapes INIT.
16585if test -n "\${ZSH_VERSION+set}"; then
16586   setopt NO_GLOB_SUBST
16587fi
16588
16589
16590    PACKAGE='$PACKAGE'
16591    VERSION='$VERSION'
16592    RM='$RM'
16593    ofile='$ofile'
16594
16595
16596
16597
16598_ACEOF
16599
16600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16601
16602# Handling of arguments.
16603for ac_config_target in $ac_config_targets
16604do
16605  case $ac_config_target in
16606    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
16607    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16608    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16609    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16610    "libpcre2-8.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-8.pc" ;;
16611    "libpcre2-16.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-16.pc" ;;
16612    "libpcre2-32.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-32.pc" ;;
16613    "libpcre2-posix.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-posix.pc" ;;
16614    "pcre2-config") CONFIG_FILES="$CONFIG_FILES pcre2-config" ;;
16615    "src/pcre2.h") CONFIG_FILES="$CONFIG_FILES src/pcre2.h" ;;
16616    "script-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS script-chmod" ;;
16617    "delete-old-chartables") CONFIG_COMMANDS="$CONFIG_COMMANDS delete-old-chartables" ;;
16618
16619  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16620  esac
16621done
16622
16623
16624# If the user did not use the arguments to specify the items to instantiate,
16625# then the envvar interface is used.  Set only those that are not.
16626# We use the long form for the default assignment because of an extremely
16627# bizarre bug on SunOS 4.1.3.
16628if $ac_need_defaults; then
16629  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16630  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16631  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16632fi
16633
16634# Have a temporary directory for convenience.  Make it in the build tree
16635# simply because there is no reason against having it here, and in addition,
16636# creating and moving files from /tmp can sometimes cause problems.
16637# Hook for its removal unless debugging.
16638# Note that there is a small window in which the directory will not be cleaned:
16639# after its creation but before its name has been assigned to `$tmp'.
16640$debug ||
16641{
16642  tmp= ac_tmp=
16643  trap 'exit_status=$?
16644  : "${ac_tmp:=$tmp}"
16645  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16646' 0
16647  trap 'as_fn_exit 1' 1 2 13 15
16648}
16649# Create a (secure) tmp directory for tmp files.
16650
16651{
16652  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16653  test -d "$tmp"
16654}  ||
16655{
16656  tmp=./conf$$-$RANDOM
16657  (umask 077 && mkdir "$tmp")
16658} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16659ac_tmp=$tmp
16660
16661# Set up the scripts for CONFIG_FILES section.
16662# No need to generate them if there are no CONFIG_FILES.
16663# This happens for instance with `./config.status config.h'.
16664if test -n "$CONFIG_FILES"; then
16665
16666
16667ac_cr=`echo X | tr X '\015'`
16668# On cygwin, bash can eat \r inside `` if the user requested igncr.
16669# But we know of no other shell where ac_cr would be empty at this
16670# point, so we can use a bashism as a fallback.
16671if test "x$ac_cr" = x; then
16672  eval ac_cr=\$\'\\r\'
16673fi
16674ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16675if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16676  ac_cs_awk_cr='\\r'
16677else
16678  ac_cs_awk_cr=$ac_cr
16679fi
16680
16681echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16682_ACEOF
16683
16684
16685{
16686  echo "cat >conf$$subs.awk <<_ACEOF" &&
16687  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16688  echo "_ACEOF"
16689} >conf$$subs.sh ||
16690  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16691ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16692ac_delim='%!_!# '
16693for ac_last_try in false false false false false :; do
16694  . ./conf$$subs.sh ||
16695    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16696
16697  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16698  if test $ac_delim_n = $ac_delim_num; then
16699    break
16700  elif $ac_last_try; then
16701    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16702  else
16703    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16704  fi
16705done
16706rm -f conf$$subs.sh
16707
16708cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16709cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16710_ACEOF
16711sed -n '
16712h
16713s/^/S["/; s/!.*/"]=/
16714p
16715g
16716s/^[^!]*!//
16717:repl
16718t repl
16719s/'"$ac_delim"'$//
16720t delim
16721:nl
16722h
16723s/\(.\{148\}\)..*/\1/
16724t more1
16725s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16726p
16727n
16728b repl
16729:more1
16730s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16731p
16732g
16733s/.\{148\}//
16734t nl
16735:delim
16736h
16737s/\(.\{148\}\)..*/\1/
16738t more2
16739s/["\\]/\\&/g; s/^/"/; s/$/"/
16740p
16741b
16742:more2
16743s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16744p
16745g
16746s/.\{148\}//
16747t delim
16748' <conf$$subs.awk | sed '
16749/^[^""]/{
16750  N
16751  s/\n//
16752}
16753' >>$CONFIG_STATUS || ac_write_fail=1
16754rm -f conf$$subs.awk
16755cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16756_ACAWK
16757cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16758  for (key in S) S_is_set[key] = 1
16759  FS = ""
16760
16761}
16762{
16763  line = $ 0
16764  nfields = split(line, field, "@")
16765  substed = 0
16766  len = length(field[1])
16767  for (i = 2; i < nfields; i++) {
16768    key = field[i]
16769    keylen = length(key)
16770    if (S_is_set[key]) {
16771      value = S[key]
16772      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16773      len += length(value) + length(field[++i])
16774      substed = 1
16775    } else
16776      len += 1 + keylen
16777  }
16778
16779  print line
16780}
16781
16782_ACAWK
16783_ACEOF
16784cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16785if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16786  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16787else
16788  cat
16789fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16790  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16791_ACEOF
16792
16793# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16794# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16795# trailing colons and then remove the whole line if VPATH becomes empty
16796# (actually we leave an empty line to preserve line numbers).
16797if test "x$srcdir" = x.; then
16798  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16799h
16800s///
16801s/^/:/
16802s/[	 ]*$/:/
16803s/:\$(srcdir):/:/g
16804s/:\${srcdir}:/:/g
16805s/:@srcdir@:/:/g
16806s/^:*//
16807s/:*$//
16808x
16809s/\(=[	 ]*\).*/\1/
16810G
16811s/\n//
16812s/^[^=]*=[	 ]*$//
16813}'
16814fi
16815
16816cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16817fi # test -n "$CONFIG_FILES"
16818
16819# Set up the scripts for CONFIG_HEADERS section.
16820# No need to generate them if there are no CONFIG_HEADERS.
16821# This happens for instance with `./config.status Makefile'.
16822if test -n "$CONFIG_HEADERS"; then
16823cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16824BEGIN {
16825_ACEOF
16826
16827# Transform confdefs.h into an awk script `defines.awk', embedded as
16828# here-document in config.status, that substitutes the proper values into
16829# config.h.in to produce config.h.
16830
16831# Create a delimiter string that does not exist in confdefs.h, to ease
16832# handling of long lines.
16833ac_delim='%!_!# '
16834for ac_last_try in false false :; do
16835  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16836  if test -z "$ac_tt"; then
16837    break
16838  elif $ac_last_try; then
16839    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16840  else
16841    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16842  fi
16843done
16844
16845# For the awk script, D is an array of macro values keyed by name,
16846# likewise P contains macro parameters if any.  Preserve backslash
16847# newline sequences.
16848
16849ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16850sed -n '
16851s/.\{148\}/&'"$ac_delim"'/g
16852t rset
16853:rset
16854s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16855t def
16856d
16857:def
16858s/\\$//
16859t bsnl
16860s/["\\]/\\&/g
16861s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16862D["\1"]=" \3"/p
16863s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16864d
16865:bsnl
16866s/["\\]/\\&/g
16867s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16868D["\1"]=" \3\\\\\\n"\\/p
16869t cont
16870s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16871t cont
16872d
16873:cont
16874n
16875s/.\{148\}/&'"$ac_delim"'/g
16876t clear
16877:clear
16878s/\\$//
16879t bsnlc
16880s/["\\]/\\&/g; s/^/"/; s/$/"/p
16881d
16882:bsnlc
16883s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16884b cont
16885' <confdefs.h | sed '
16886s/'"$ac_delim"'/"\\\
16887"/g' >>$CONFIG_STATUS || ac_write_fail=1
16888
16889cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16890  for (key in D) D_is_set[key] = 1
16891  FS = ""
16892}
16893/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16894  line = \$ 0
16895  split(line, arg, " ")
16896  if (arg[1] == "#") {
16897    defundef = arg[2]
16898    mac1 = arg[3]
16899  } else {
16900    defundef = substr(arg[1], 2)
16901    mac1 = arg[2]
16902  }
16903  split(mac1, mac2, "(") #)
16904  macro = mac2[1]
16905  prefix = substr(line, 1, index(line, defundef) - 1)
16906  if (D_is_set[macro]) {
16907    # Preserve the white space surrounding the "#".
16908    print prefix "define", macro P[macro] D[macro]
16909    next
16910  } else {
16911    # Replace #undef with comments.  This is necessary, for example,
16912    # in the case of _POSIX_SOURCE, which is predefined and required
16913    # on some systems where configure will not decide to define it.
16914    if (defundef == "undef") {
16915      print "/*", prefix defundef, macro, "*/"
16916      next
16917    }
16918  }
16919}
16920{ print }
16921_ACAWK
16922_ACEOF
16923cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16924  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16925fi # test -n "$CONFIG_HEADERS"
16926
16927
16928eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16929shift
16930for ac_tag
16931do
16932  case $ac_tag in
16933  :[FHLC]) ac_mode=$ac_tag; continue;;
16934  esac
16935  case $ac_mode$ac_tag in
16936  :[FHL]*:*);;
16937  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16938  :[FH]-) ac_tag=-:-;;
16939  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16940  esac
16941  ac_save_IFS=$IFS
16942  IFS=:
16943  set x $ac_tag
16944  IFS=$ac_save_IFS
16945  shift
16946  ac_file=$1
16947  shift
16948
16949  case $ac_mode in
16950  :L) ac_source=$1;;
16951  :[FH])
16952    ac_file_inputs=
16953    for ac_f
16954    do
16955      case $ac_f in
16956      -) ac_f="$ac_tmp/stdin";;
16957      *) # Look for the file first in the build tree, then in the source tree
16958	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16959	 # because $ac_f cannot contain `:'.
16960	 test -f "$ac_f" ||
16961	   case $ac_f in
16962	   [\\/$]*) false;;
16963	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16964	   esac ||
16965	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16966      esac
16967      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16968      as_fn_append ac_file_inputs " '$ac_f'"
16969    done
16970
16971    # Let's still pretend it is `configure' which instantiates (i.e., don't
16972    # use $as_me), people would be surprised to read:
16973    #    /* config.h.  Generated by config.status.  */
16974    configure_input='Generated from '`
16975	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16976	`' by configure.'
16977    if test x"$ac_file" != x-; then
16978      configure_input="$ac_file.  $configure_input"
16979      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16980$as_echo "$as_me: creating $ac_file" >&6;}
16981    fi
16982    # Neutralize special characters interpreted by sed in replacement strings.
16983    case $configure_input in #(
16984    *\&* | *\|* | *\\* )
16985       ac_sed_conf_input=`$as_echo "$configure_input" |
16986       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16987    *) ac_sed_conf_input=$configure_input;;
16988    esac
16989
16990    case $ac_tag in
16991    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16992      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16993    esac
16994    ;;
16995  esac
16996
16997  ac_dir=`$as_dirname -- "$ac_file" ||
16998$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16999	 X"$ac_file" : 'X\(//\)[^/]' \| \
17000	 X"$ac_file" : 'X\(//\)$' \| \
17001	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17002$as_echo X"$ac_file" |
17003    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17004	    s//\1/
17005	    q
17006	  }
17007	  /^X\(\/\/\)[^/].*/{
17008	    s//\1/
17009	    q
17010	  }
17011	  /^X\(\/\/\)$/{
17012	    s//\1/
17013	    q
17014	  }
17015	  /^X\(\/\).*/{
17016	    s//\1/
17017	    q
17018	  }
17019	  s/.*/./; q'`
17020  as_dir="$ac_dir"; as_fn_mkdir_p
17021  ac_builddir=.
17022
17023case "$ac_dir" in
17024.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17025*)
17026  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17027  # A ".." for each directory in $ac_dir_suffix.
17028  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17029  case $ac_top_builddir_sub in
17030  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17031  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17032  esac ;;
17033esac
17034ac_abs_top_builddir=$ac_pwd
17035ac_abs_builddir=$ac_pwd$ac_dir_suffix
17036# for backward compatibility:
17037ac_top_builddir=$ac_top_build_prefix
17038
17039case $srcdir in
17040  .)  # We are building in place.
17041    ac_srcdir=.
17042    ac_top_srcdir=$ac_top_builddir_sub
17043    ac_abs_top_srcdir=$ac_pwd ;;
17044  [\\/]* | ?:[\\/]* )  # Absolute name.
17045    ac_srcdir=$srcdir$ac_dir_suffix;
17046    ac_top_srcdir=$srcdir
17047    ac_abs_top_srcdir=$srcdir ;;
17048  *) # Relative name.
17049    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17050    ac_top_srcdir=$ac_top_build_prefix$srcdir
17051    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17052esac
17053ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17054
17055
17056  case $ac_mode in
17057  :F)
17058  #
17059  # CONFIG_FILE
17060  #
17061
17062  case $INSTALL in
17063  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17064  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17065  esac
17066  ac_MKDIR_P=$MKDIR_P
17067  case $MKDIR_P in
17068  [\\/$]* | ?:[\\/]* ) ;;
17069  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17070  esac
17071_ACEOF
17072
17073cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17074# If the template does not know about datarootdir, expand it.
17075# FIXME: This hack should be removed a few years after 2.60.
17076ac_datarootdir_hack=; ac_datarootdir_seen=
17077ac_sed_dataroot='
17078/datarootdir/ {
17079  p
17080  q
17081}
17082/@datadir@/p
17083/@docdir@/p
17084/@infodir@/p
17085/@localedir@/p
17086/@mandir@/p'
17087case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17088*datarootdir*) ac_datarootdir_seen=yes;;
17089*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17090  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17091$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17092_ACEOF
17093cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17094  ac_datarootdir_hack='
17095  s&@datadir@&$datadir&g
17096  s&@docdir@&$docdir&g
17097  s&@infodir@&$infodir&g
17098  s&@localedir@&$localedir&g
17099  s&@mandir@&$mandir&g
17100  s&\\\${datarootdir}&$datarootdir&g' ;;
17101esac
17102_ACEOF
17103
17104# Neutralize VPATH when `$srcdir' = `.'.
17105# Shell code in configure.ac might set extrasub.
17106# FIXME: do we really want to maintain this feature?
17107cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17108ac_sed_extra="$ac_vpsub
17109$extrasub
17110_ACEOF
17111cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17112:t
17113/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17114s|@configure_input@|$ac_sed_conf_input|;t t
17115s&@top_builddir@&$ac_top_builddir_sub&;t t
17116s&@top_build_prefix@&$ac_top_build_prefix&;t t
17117s&@srcdir@&$ac_srcdir&;t t
17118s&@abs_srcdir@&$ac_abs_srcdir&;t t
17119s&@top_srcdir@&$ac_top_srcdir&;t t
17120s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17121s&@builddir@&$ac_builddir&;t t
17122s&@abs_builddir@&$ac_abs_builddir&;t t
17123s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17124s&@INSTALL@&$ac_INSTALL&;t t
17125s&@MKDIR_P@&$ac_MKDIR_P&;t t
17126$ac_datarootdir_hack
17127"
17128eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17129  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17130
17131test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17132  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17133  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
17134      "$ac_tmp/out"`; test -z "$ac_out"; } &&
17135  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17136which seems to be undefined.  Please make sure it is defined" >&5
17137$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17138which seems to be undefined.  Please make sure it is defined" >&2;}
17139
17140  rm -f "$ac_tmp/stdin"
17141  case $ac_file in
17142  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17143  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17144  esac \
17145  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17146 ;;
17147  :H)
17148  #
17149  # CONFIG_HEADER
17150  #
17151  if test x"$ac_file" != x-; then
17152    {
17153      $as_echo "/* $configure_input  */" \
17154      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17155    } >"$ac_tmp/config.h" \
17156      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17157    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17158      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17159$as_echo "$as_me: $ac_file is unchanged" >&6;}
17160    else
17161      rm -f "$ac_file"
17162      mv "$ac_tmp/config.h" "$ac_file" \
17163	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17164    fi
17165  else
17166    $as_echo "/* $configure_input  */" \
17167      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17168      || as_fn_error $? "could not create -" "$LINENO" 5
17169  fi
17170# Compute "$ac_file"'s index in $config_headers.
17171_am_arg="$ac_file"
17172_am_stamp_count=1
17173for _am_header in $config_headers :; do
17174  case $_am_header in
17175    $_am_arg | $_am_arg:* )
17176      break ;;
17177    * )
17178      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17179  esac
17180done
17181echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17182$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17183	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17184	 X"$_am_arg" : 'X\(//\)$' \| \
17185	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17186$as_echo X"$_am_arg" |
17187    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17188	    s//\1/
17189	    q
17190	  }
17191	  /^X\(\/\/\)[^/].*/{
17192	    s//\1/
17193	    q
17194	  }
17195	  /^X\(\/\/\)$/{
17196	    s//\1/
17197	    q
17198	  }
17199	  /^X\(\/\).*/{
17200	    s//\1/
17201	    q
17202	  }
17203	  s/.*/./; q'`/stamp-h$_am_stamp_count
17204 ;;
17205
17206  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17207$as_echo "$as_me: executing $ac_file commands" >&6;}
17208 ;;
17209  esac
17210
17211
17212  case $ac_file$ac_mode in
17213    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17214  # Older Autoconf quotes --file arguments for eval, but not when files
17215  # are listed without --file.  Let's play safe and only enable the eval
17216  # if we detect the quoting.
17217  # TODO: see whether this extra hack can be removed once we start
17218  # requiring Autoconf 2.70 or later.
17219  case $CONFIG_FILES in #(
17220  *\'*) :
17221    eval set x "$CONFIG_FILES" ;; #(
17222  *) :
17223    set x $CONFIG_FILES ;; #(
17224  *) :
17225     ;;
17226esac
17227  shift
17228  # Used to flag and report bootstrapping failures.
17229  am_rc=0
17230  for am_mf
17231  do
17232    # Strip MF so we end up with the name of the file.
17233    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
17234    # Check whether this is an Automake generated Makefile which includes
17235    # dependency-tracking related rules and includes.
17236    # Grep'ing the whole file directly is not great: AIX grep has a line
17237    # limit of 2048, but all sed's we know have understand at least 4000.
17238    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17239      || continue
17240    am_dirpart=`$as_dirname -- "$am_mf" ||
17241$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17242	 X"$am_mf" : 'X\(//\)[^/]' \| \
17243	 X"$am_mf" : 'X\(//\)$' \| \
17244	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17245$as_echo X"$am_mf" |
17246    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17247	    s//\1/
17248	    q
17249	  }
17250	  /^X\(\/\/\)[^/].*/{
17251	    s//\1/
17252	    q
17253	  }
17254	  /^X\(\/\/\)$/{
17255	    s//\1/
17256	    q
17257	  }
17258	  /^X\(\/\).*/{
17259	    s//\1/
17260	    q
17261	  }
17262	  s/.*/./; q'`
17263    am_filepart=`$as_basename -- "$am_mf" ||
17264$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17265	 X"$am_mf" : 'X\(//\)$' \| \
17266	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17267$as_echo X/"$am_mf" |
17268    sed '/^.*\/\([^/][^/]*\)\/*$/{
17269	    s//\1/
17270	    q
17271	  }
17272	  /^X\/\(\/\/\)$/{
17273	    s//\1/
17274	    q
17275	  }
17276	  /^X\/\(\/\).*/{
17277	    s//\1/
17278	    q
17279	  }
17280	  s/.*/./; q'`
17281    { echo "$as_me:$LINENO: cd "$am_dirpart" \
17282      && sed -e '/# am--include-marker/d' "$am_filepart" \
17283        | $MAKE -f - am--depfiles" >&5
17284   (cd "$am_dirpart" \
17285      && sed -e '/# am--include-marker/d' "$am_filepart" \
17286        | $MAKE -f - am--depfiles) >&5 2>&5
17287   ac_status=$?
17288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289   (exit $ac_status); } || am_rc=$?
17290  done
17291  if test $am_rc -ne 0; then
17292    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17293$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17294as_fn_error $? "Something went wrong bootstrapping makefile fragments
17295    for automatic dependency tracking.  If GNU make was not used, consider
17296    re-running the configure script with MAKE=\"gmake\" (or whatever is
17297    necessary).  You can also try re-running configure with the
17298    '--disable-dependency-tracking' option to at least be able to build
17299    the package (albeit without support for automatic dependency tracking).
17300See \`config.log' for more details" "$LINENO" 5; }
17301  fi
17302  { am_dirpart=; unset am_dirpart;}
17303  { am_filepart=; unset am_filepart;}
17304  { am_mf=; unset am_mf;}
17305  { am_rc=; unset am_rc;}
17306  rm -f conftest-deps.mk
17307}
17308 ;;
17309    "libtool":C)
17310
17311    # See if we are running on zsh, and set the options that allow our
17312    # commands through without removal of \ escapes.
17313    if test -n "${ZSH_VERSION+set}"; then
17314      setopt NO_GLOB_SUBST
17315    fi
17316
17317    cfgfile=${ofile}T
17318    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17319    $RM "$cfgfile"
17320
17321    cat <<_LT_EOF >> "$cfgfile"
17322#! $SHELL
17323# Generated automatically by $as_me ($PACKAGE) $VERSION
17324# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17325
17326# Provide generalized library-building support services.
17327# Written by Gordon Matzigkeit, 1996
17328
17329# Copyright (C) 2014 Free Software Foundation, Inc.
17330# This is free software; see the source for copying conditions.  There is NO
17331# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17332
17333# GNU Libtool is free software; you can redistribute it and/or modify
17334# it under the terms of the GNU General Public License as published by
17335# the Free Software Foundation; either version 2 of of the License, or
17336# (at your option) any later version.
17337#
17338# As a special exception to the GNU General Public License, if you
17339# distribute this file as part of a program or library that is built
17340# using GNU Libtool, you may include this file under the  same
17341# distribution terms that you use for the rest of that program.
17342#
17343# GNU Libtool is distributed in the hope that it will be useful, but
17344# WITHOUT ANY WARRANTY; without even the implied warranty of
17345# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17346# GNU General Public License for more details.
17347#
17348# You should have received a copy of the GNU General Public License
17349# along with this program.  If not, see <http://www.gnu.org/licenses/>.
17350
17351
17352# The names of the tagged configurations supported by this script.
17353available_tags=''
17354
17355# Configured defaults for sys_lib_dlsearch_path munging.
17356: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17357
17358# ### BEGIN LIBTOOL CONFIG
17359
17360# Assembler program.
17361AS=$lt_AS
17362
17363# DLL creation program.
17364DLLTOOL=$lt_DLLTOOL
17365
17366# Object dumper program.
17367OBJDUMP=$lt_OBJDUMP
17368
17369# Which release of libtool.m4 was used?
17370macro_version=$macro_version
17371macro_revision=$macro_revision
17372
17373# Whether or not to build shared libraries.
17374build_libtool_libs=$enable_shared
17375
17376# Whether or not to build static libraries.
17377build_old_libs=$enable_static
17378
17379# What type of objects to build.
17380pic_mode=$pic_mode
17381
17382# Whether or not to optimize for fast installation.
17383fast_install=$enable_fast_install
17384
17385# Shared archive member basename,for filename based shared library versioning on AIX.
17386shared_archive_member_spec=$shared_archive_member_spec
17387
17388# Shell to use when invoking shell scripts.
17389SHELL=$lt_SHELL
17390
17391# An echo program that protects backslashes.
17392ECHO=$lt_ECHO
17393
17394# The PATH separator for the build system.
17395PATH_SEPARATOR=$lt_PATH_SEPARATOR
17396
17397# The host system.
17398host_alias=$host_alias
17399host=$host
17400host_os=$host_os
17401
17402# The build system.
17403build_alias=$build_alias
17404build=$build
17405build_os=$build_os
17406
17407# A sed program that does not truncate output.
17408SED=$lt_SED
17409
17410# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17411Xsed="\$SED -e 1s/^X//"
17412
17413# A grep program that handles long lines.
17414GREP=$lt_GREP
17415
17416# An ERE matcher.
17417EGREP=$lt_EGREP
17418
17419# A literal string matcher.
17420FGREP=$lt_FGREP
17421
17422# A BSD- or MS-compatible name lister.
17423NM=$lt_NM
17424
17425# Whether we need soft or hard links.
17426LN_S=$lt_LN_S
17427
17428# What is the maximum length of a command?
17429max_cmd_len=$max_cmd_len
17430
17431# Object file suffix (normally "o").
17432objext=$ac_objext
17433
17434# Executable file suffix (normally "").
17435exeext=$exeext
17436
17437# whether the shell understands "unset".
17438lt_unset=$lt_unset
17439
17440# turn spaces into newlines.
17441SP2NL=$lt_lt_SP2NL
17442
17443# turn newlines into spaces.
17444NL2SP=$lt_lt_NL2SP
17445
17446# convert \$build file names to \$host format.
17447to_host_file_cmd=$lt_cv_to_host_file_cmd
17448
17449# convert \$build files to toolchain format.
17450to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17451
17452# Method to check whether dependent libraries are shared objects.
17453deplibs_check_method=$lt_deplibs_check_method
17454
17455# Command to use when deplibs_check_method = "file_magic".
17456file_magic_cmd=$lt_file_magic_cmd
17457
17458# How to find potential files when deplibs_check_method = "file_magic".
17459file_magic_glob=$lt_file_magic_glob
17460
17461# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17462want_nocaseglob=$lt_want_nocaseglob
17463
17464# Command to associate shared and link libraries.
17465sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17466
17467# The archiver.
17468AR=$lt_AR
17469
17470# Flags to create an archive (by configure).
17471lt_ar_flags=$lt_ar_flags
17472
17473# Flags to create an archive.
17474AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
17475
17476# How to feed a file listing to the archiver.
17477archiver_list_spec=$lt_archiver_list_spec
17478
17479# A symbol stripping program.
17480STRIP=$lt_STRIP
17481
17482# Commands used to install an old-style archive.
17483RANLIB=$lt_RANLIB
17484old_postinstall_cmds=$lt_old_postinstall_cmds
17485old_postuninstall_cmds=$lt_old_postuninstall_cmds
17486
17487# Whether to use a lock for old archive extraction.
17488lock_old_archive_extraction=$lock_old_archive_extraction
17489
17490# A C compiler.
17491LTCC=$lt_CC
17492
17493# LTCC compiler flags.
17494LTCFLAGS=$lt_CFLAGS
17495
17496# Take the output of nm and produce a listing of raw symbols and C names.
17497global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17498
17499# Transform the output of nm in a proper C declaration.
17500global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17501
17502# Transform the output of nm into a list of symbols to manually relocate.
17503global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17504
17505# Transform the output of nm in a C name address pair.
17506global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17507
17508# Transform the output of nm in a C name address pair when lib prefix is needed.
17509global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17510
17511# The name lister interface.
17512nm_interface=$lt_lt_cv_nm_interface
17513
17514# Specify filename containing input files for \$NM.
17515nm_file_list_spec=$lt_nm_file_list_spec
17516
17517# The root where to search for dependent libraries,and where our libraries should be installed.
17518lt_sysroot=$lt_sysroot
17519
17520# Command to truncate a binary pipe.
17521lt_truncate_bin=$lt_lt_cv_truncate_bin
17522
17523# The name of the directory that contains temporary libtool files.
17524objdir=$objdir
17525
17526# Used to examine libraries when file_magic_cmd begins with "file".
17527MAGIC_CMD=$MAGIC_CMD
17528
17529# Must we lock files when doing compilation?
17530need_locks=$lt_need_locks
17531
17532# Manifest tool.
17533MANIFEST_TOOL=$lt_MANIFEST_TOOL
17534
17535# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17536DSYMUTIL=$lt_DSYMUTIL
17537
17538# Tool to change global to local symbols on Mac OS X.
17539NMEDIT=$lt_NMEDIT
17540
17541# Tool to manipulate fat objects and archives on Mac OS X.
17542LIPO=$lt_LIPO
17543
17544# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17545OTOOL=$lt_OTOOL
17546
17547# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17548OTOOL64=$lt_OTOOL64
17549
17550# Old archive suffix (normally "a").
17551libext=$libext
17552
17553# Shared library suffix (normally ".so").
17554shrext_cmds=$lt_shrext_cmds
17555
17556# The commands to extract the exported symbol list from a shared archive.
17557extract_expsyms_cmds=$lt_extract_expsyms_cmds
17558
17559# Variables whose values should be saved in libtool wrapper scripts and
17560# restored at link time.
17561variables_saved_for_relink=$lt_variables_saved_for_relink
17562
17563# Do we need the "lib" prefix for modules?
17564need_lib_prefix=$need_lib_prefix
17565
17566# Do we need a version for libraries?
17567need_version=$need_version
17568
17569# Library versioning type.
17570version_type=$version_type
17571
17572# Shared library runtime path variable.
17573runpath_var=$runpath_var
17574
17575# Shared library path variable.
17576shlibpath_var=$shlibpath_var
17577
17578# Is shlibpath searched before the hard-coded library search path?
17579shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17580
17581# Format of library name prefix.
17582libname_spec=$lt_libname_spec
17583
17584# List of archive names.  First name is the real one, the rest are links.
17585# The last name is the one that the linker finds with -lNAME
17586library_names_spec=$lt_library_names_spec
17587
17588# The coded name of the library, if different from the real name.
17589soname_spec=$lt_soname_spec
17590
17591# Permission mode override for installation of shared libraries.
17592install_override_mode=$lt_install_override_mode
17593
17594# Command to use after installation of a shared archive.
17595postinstall_cmds=$lt_postinstall_cmds
17596
17597# Command to use after uninstallation of a shared archive.
17598postuninstall_cmds=$lt_postuninstall_cmds
17599
17600# Commands used to finish a libtool library installation in a directory.
17601finish_cmds=$lt_finish_cmds
17602
17603# As "finish_cmds", except a single script fragment to be evaled but
17604# not shown.
17605finish_eval=$lt_finish_eval
17606
17607# Whether we should hardcode library paths into libraries.
17608hardcode_into_libs=$hardcode_into_libs
17609
17610# Compile-time system search path for libraries.
17611sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17612
17613# Detected run-time system search path for libraries.
17614sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17615
17616# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17617configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17618
17619# Whether dlopen is supported.
17620dlopen_support=$enable_dlopen
17621
17622# Whether dlopen of programs is supported.
17623dlopen_self=$enable_dlopen_self
17624
17625# Whether dlopen of statically linked programs is supported.
17626dlopen_self_static=$enable_dlopen_self_static
17627
17628# Commands to strip libraries.
17629old_striplib=$lt_old_striplib
17630striplib=$lt_striplib
17631
17632
17633# The linker used to build libraries.
17634LD=$lt_LD
17635
17636# How to create reloadable object files.
17637reload_flag=$lt_reload_flag
17638reload_cmds=$lt_reload_cmds
17639
17640# Commands used to build an old-style archive.
17641old_archive_cmds=$lt_old_archive_cmds
17642
17643# A language specific compiler.
17644CC=$lt_compiler
17645
17646# Is the compiler the GNU compiler?
17647with_gcc=$GCC
17648
17649# Compiler flag to turn off builtin functions.
17650no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17651
17652# Additional compiler flags for building library objects.
17653pic_flag=$lt_lt_prog_compiler_pic
17654
17655# How to pass a linker flag through the compiler.
17656wl=$lt_lt_prog_compiler_wl
17657
17658# Compiler flag to prevent dynamic linking.
17659link_static_flag=$lt_lt_prog_compiler_static
17660
17661# Does compiler simultaneously support -c and -o options?
17662compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17663
17664# Whether or not to add -lc for building shared libraries.
17665build_libtool_need_lc=$archive_cmds_need_lc
17666
17667# Whether or not to disallow shared libs when runtime libs are static.
17668allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17669
17670# Compiler flag to allow reflexive dlopens.
17671export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17672
17673# Compiler flag to generate shared objects directly from archives.
17674whole_archive_flag_spec=$lt_whole_archive_flag_spec
17675
17676# Whether the compiler copes with passing no objects directly.
17677compiler_needs_object=$lt_compiler_needs_object
17678
17679# Create an old-style archive from a shared archive.
17680old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17681
17682# Create a temporary old-style archive to link instead of a shared archive.
17683old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17684
17685# Commands used to build a shared archive.
17686archive_cmds=$lt_archive_cmds
17687archive_expsym_cmds=$lt_archive_expsym_cmds
17688
17689# Commands used to build a loadable module if different from building
17690# a shared archive.
17691module_cmds=$lt_module_cmds
17692module_expsym_cmds=$lt_module_expsym_cmds
17693
17694# Whether we are building with GNU ld or not.
17695with_gnu_ld=$lt_with_gnu_ld
17696
17697# Flag that allows shared libraries with undefined symbols to be built.
17698allow_undefined_flag=$lt_allow_undefined_flag
17699
17700# Flag that enforces no undefined symbols.
17701no_undefined_flag=$lt_no_undefined_flag
17702
17703# Flag to hardcode \$libdir into a binary during linking.
17704# This must work even if \$libdir does not exist
17705hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17706
17707# Whether we need a single "-rpath" flag with a separated argument.
17708hardcode_libdir_separator=$lt_hardcode_libdir_separator
17709
17710# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17711# DIR into the resulting binary.
17712hardcode_direct=$hardcode_direct
17713
17714# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17715# DIR into the resulting binary and the resulting library dependency is
17716# "absolute",i.e impossible to change by setting \$shlibpath_var if the
17717# library is relocated.
17718hardcode_direct_absolute=$hardcode_direct_absolute
17719
17720# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17721# into the resulting binary.
17722hardcode_minus_L=$hardcode_minus_L
17723
17724# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17725# into the resulting binary.
17726hardcode_shlibpath_var=$hardcode_shlibpath_var
17727
17728# Set to "yes" if building a shared library automatically hardcodes DIR
17729# into the library and all subsequent libraries and executables linked
17730# against it.
17731hardcode_automatic=$hardcode_automatic
17732
17733# Set to yes if linker adds runtime paths of dependent libraries
17734# to runtime path list.
17735inherit_rpath=$inherit_rpath
17736
17737# Whether libtool must link a program against all its dependency libraries.
17738link_all_deplibs=$link_all_deplibs
17739
17740# Set to "yes" if exported symbols are required.
17741always_export_symbols=$always_export_symbols
17742
17743# The commands to list exported symbols.
17744export_symbols_cmds=$lt_export_symbols_cmds
17745
17746# Symbols that should not be listed in the preloaded symbols.
17747exclude_expsyms=$lt_exclude_expsyms
17748
17749# Symbols that must always be exported.
17750include_expsyms=$lt_include_expsyms
17751
17752# Commands necessary for linking programs (against libraries) with templates.
17753prelink_cmds=$lt_prelink_cmds
17754
17755# Commands necessary for finishing linking programs.
17756postlink_cmds=$lt_postlink_cmds
17757
17758# Specify filename containing input files.
17759file_list_spec=$lt_file_list_spec
17760
17761# How to hardcode a shared library path into an executable.
17762hardcode_action=$hardcode_action
17763
17764# ### END LIBTOOL CONFIG
17765
17766_LT_EOF
17767
17768    cat <<'_LT_EOF' >> "$cfgfile"
17769
17770# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17771
17772# func_munge_path_list VARIABLE PATH
17773# -----------------------------------
17774# VARIABLE is name of variable containing _space_ separated list of
17775# directories to be munged by the contents of PATH, which is string
17776# having a format:
17777# "DIR[:DIR]:"
17778#       string "DIR[ DIR]" will be prepended to VARIABLE
17779# ":DIR[:DIR]"
17780#       string "DIR[ DIR]" will be appended to VARIABLE
17781# "DIRP[:DIRP]::[DIRA:]DIRA"
17782#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17783#       "DIRA[ DIRA]" will be appended to VARIABLE
17784# "DIR[:DIR]"
17785#       VARIABLE will be replaced by "DIR[ DIR]"
17786func_munge_path_list ()
17787{
17788    case x$2 in
17789    x)
17790        ;;
17791    *:)
17792        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17793        ;;
17794    x:*)
17795        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17796        ;;
17797    *::*)
17798        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17799        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17800        ;;
17801    *)
17802        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17803        ;;
17804    esac
17805}
17806
17807
17808# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
17809func_cc_basename ()
17810{
17811    for cc_temp in $*""; do
17812      case $cc_temp in
17813        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17814        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17815        \-*) ;;
17816        *) break;;
17817      esac
17818    done
17819    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17820}
17821
17822
17823# ### END FUNCTIONS SHARED WITH CONFIGURE
17824
17825_LT_EOF
17826
17827  case $host_os in
17828  aix3*)
17829    cat <<\_LT_EOF >> "$cfgfile"
17830# AIX sometimes has problems with the GCC collect2 program.  For some
17831# reason, if we set the COLLECT_NAMES environment variable, the problems
17832# vanish in a puff of smoke.
17833if test set != "${COLLECT_NAMES+set}"; then
17834  COLLECT_NAMES=
17835  export COLLECT_NAMES
17836fi
17837_LT_EOF
17838    ;;
17839  esac
17840
17841
17842ltmain=$ac_aux_dir/ltmain.sh
17843
17844
17845  # We use sed instead of cat because bash on DJGPP gets confused if
17846  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17847  # text mode, it properly converts lines to CR/LF.  This bash problem
17848  # is reportedly fixed, but why not run on old versions too?
17849  sed '$q' "$ltmain" >> "$cfgfile" \
17850     || (rm -f "$cfgfile"; exit 1)
17851
17852   mv -f "$cfgfile" "$ofile" ||
17853    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17854  chmod +x "$ofile"
17855
17856 ;;
17857    "script-chmod":C) chmod a+x pcre2-config ;;
17858    "delete-old-chartables":C) rm -f pcre2_chartables.c ;;
17859
17860  esac
17861done # for ac_tag
17862
17863
17864as_fn_exit 0
17865_ACEOF
17866ac_clean_files=$ac_clean_files_save
17867
17868test $ac_write_fail = 0 ||
17869  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17870
17871
17872# configure is writing to config.log, and then calls config.status.
17873# config.status does its own redirection, appending to config.log.
17874# Unfortunately, on DOS this fails, as config.log is still kept open
17875# by configure, so config.status won't be able to write to it; its
17876# output is simply discarded.  So we exec the FD to /dev/null,
17877# effectively closing config.log, so it can be properly (re)opened and
17878# appended to by config.status.  When coming back to configure, we
17879# need to make the FD available again.
17880if test "$no_create" != yes; then
17881  ac_cs_success=:
17882  ac_config_status_args=
17883  test "$silent" = yes &&
17884    ac_config_status_args="$ac_config_status_args --quiet"
17885  exec 5>/dev/null
17886  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17887  exec 5>>config.log
17888  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17889  # would make configure fail if this is the last instruction.
17890  $ac_cs_success || as_fn_exit 1
17891fi
17892if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17893  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17894$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17895fi
17896
17897
17898# --disable-stack-for-recursion is obsolete and has no effect.
17899
17900if test "$enable_stack_for_recursion" = "no"; then
17901cat <<EOF
17902
17903WARNING: --disable-stack-for-recursion is obsolete and has no effect.
17904EOF
17905fi
17906
17907# Print out a nice little message after configure is run displaying the
17908# chosen options.
17909
17910ebcdic_nl_code=n/a
17911if test "$enable_ebcdic_nl25" = "yes"; then
17912  ebcdic_nl_code=0x25
17913elif test "$enable_ebcdic" = "yes"; then
17914  ebcdic_nl_code=0x15
17915fi
17916
17917cat <<EOF
17918
17919$PACKAGE-$VERSION configuration summary:
17920
17921    Install prefix ..................... : ${prefix}
17922    C preprocessor ..................... : ${CPP}
17923    C compiler ......................... : ${CC}
17924    Linker ............................. : ${LD}
17925    C preprocessor flags ............... : ${CPPFLAGS}
17926    C compiler flags ................... : ${CFLAGS} ${VISIBILITY_CFLAGS}
17927    Linker flags ....................... : ${LDFLAGS}
17928    Extra libraries .................... : ${LIBS}
17929
17930    Build 8-bit pcre2 library .......... : ${enable_pcre2_8}
17931    Build 16-bit pcre2 library ......... : ${enable_pcre2_16}
17932    Build 32-bit pcre2 library ......... : ${enable_pcre2_32}
17933    Include debugging code ............. : ${enable_debug}
17934    Enable JIT compiling support ....... : ${enable_jit}
17935    Use SELinux allocator in JIT ....... : ${enable_jit_sealloc}
17936    Enable Unicode support ............. : ${enable_unicode}
17937    Newline char/sequence .............. : ${enable_newline}
17938    \R matches only ANYCRLF ............ : ${enable_bsr_anycrlf}
17939    \C is disabled ..................... : ${enable_never_backslash_C}
17940    EBCDIC coding ...................... : ${enable_ebcdic}
17941    EBCDIC code for NL ................. : ${ebcdic_nl_code}
17942    Rebuild char tables ................ : ${enable_rebuild_chartables}
17943    Internal link size ................. : ${with_link_size}
17944    Nested parentheses limit ........... : ${with_parens_nest_limit}
17945    Heap limit ......................... : ${with_heap_limit} kibibytes
17946    Match limit ........................ : ${with_match_limit}
17947    Match depth limit .................. : ${with_match_limit_depth}
17948    Build shared libs .................. : ${enable_shared}
17949    Build static libs .................. : ${enable_static}
17950    Use JIT in pcre2grep ............... : ${enable_pcre2grep_jit}
17951    Enable callouts in pcre2grep ....... : ${enable_pcre2grep_callout}
17952    Enable fork in pcre2grep callouts .. : ${enable_pcre2grep_callout_fork}
17953    Initial buffer size for pcre2grep .. : ${with_pcre2grep_bufsize}
17954    Maximum buffer size for pcre2grep .. : ${with_pcre2grep_max_bufsize}
17955    Link pcre2grep with libz ........... : ${enable_pcre2grep_libz}
17956    Link pcre2grep with libbz2 ......... : ${enable_pcre2grep_libbz2}
17957    Link pcre2test with libedit ........ : ${enable_pcre2test_libedit}
17958    Link pcre2test with libreadline .... : ${enable_pcre2test_libreadline}
17959    Valgrind support ................... : ${enable_valgrind}
17960    Code coverage ...................... : ${enable_coverage}
17961    Fuzzer support ..................... : ${enable_fuzz_support}
17962    Use %zu and %td .................... : ${enable_percent_zt}
17963
17964EOF
17965
17966