1#! /bin/sh
2# From configure.ac 801.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.69 for gearmand 1.0.6.
5#
6# Report bugs to <https://bugs.launchpad.net/gearmand>.
7#
8#
9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21  emulate sh
22  NULLCMD=:
23  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24  # is contrary to our usage.  Disable this feature.
25  alias -g '${1+"$@"}'='"$@"'
26  setopt NO_GLOB_SUBST
27else
28  case `(set -o) 2>/dev/null` in #(
29  *posix*) :
30    set -o posix ;; #(
31  *) :
32     ;;
33esac
34fi
35
36
37as_nl='
38'
39export as_nl
40# Printing a long string crashes Solaris 7 /usr/bin/printf.
41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44# Prefer a ksh shell builtin over an external printf program on Solaris,
45# but without wasting forks for bash or zsh.
46if test -z "$BASH_VERSION$ZSH_VERSION" \
47    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='print -r --'
49  as_echo_n='print -rn --'
50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51  as_echo='printf %s\n'
52  as_echo_n='printf %s'
53else
54  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56    as_echo_n='/usr/ucb/echo -n'
57  else
58    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59    as_echo_n_body='eval
60      arg=$1;
61      case $arg in #(
62      *"$as_nl"*)
63	expr "X$arg" : "X\\(.*\\)$as_nl";
64	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65      esac;
66      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67    '
68    export as_echo_n_body
69    as_echo_n='sh -c $as_echo_n_body as_echo'
70  fi
71  export as_echo_body
72  as_echo='sh -c $as_echo_body as_echo'
73fi
74
75# The user is always right.
76if test "${PATH_SEPARATOR+set}" != set; then
77  PATH_SEPARATOR=:
78  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80      PATH_SEPARATOR=';'
81  }
82fi
83
84
85# IFS
86# We need space, tab and new line, in precisely that order.  Quoting is
87# there to prevent editors from complaining about space-tab.
88# (If _AS_PATH_WALK were called with IFS unset, it would disable word
89# splitting by setting IFS to empty value.)
90IFS=" ""	$as_nl"
91
92# Find who we are.  Look in the path if we contain no directory separator.
93as_myself=
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138# Use a proper internal environment variable to ensure we don't fall
139  # into an infinite loop, continuously re-executing ourselves.
140  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141    _as_can_reexec=no; export _as_can_reexec;
142    # We cannot yet assume a decent shell, so we have to provide a
143# neutralization value for shells without unset; and this also
144# works around shells that cannot unset nonexistent variables.
145# Preserve -v and -x to the replacement shell.
146BASH_ENV=/dev/null
147ENV=/dev/null
148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149case $- in # ((((
150  *v*x* | *x*v* ) as_opts=-vx ;;
151  *v* ) as_opts=-v ;;
152  *x* ) as_opts=-x ;;
153  * ) as_opts= ;;
154esac
155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156# Admittedly, this is quite paranoid, since all the known shells bail
157# out after a failed `exec'.
158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159as_fn_exit 255
160  fi
161  # We don't want this to propagate to other subprocesses.
162          { _as_can_reexec=; unset _as_can_reexec;}
163if test "x$CONFIG_SHELL" = x; then
164  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165  emulate sh
166  NULLCMD=:
167  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168  # is contrary to our usage.  Disable this feature.
169  alias -g '\${1+\"\$@\"}'='\"\$@\"'
170  setopt NO_GLOB_SUBST
171else
172  case \`(set -o) 2>/dev/null\` in #(
173  *posix*) :
174    set -o posix ;; #(
175  *) :
176     ;;
177esac
178fi
179"
180  as_required="as_fn_return () { (exit \$1); }
181as_fn_success () { as_fn_return 0; }
182as_fn_failure () { as_fn_return 1; }
183as_fn_ret_success () { return 0; }
184as_fn_ret_failure () { return 1; }
185
186exitcode=0
187as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193else
194  exitcode=1; echo positional parameters were not saved.
195fi
196test x\$exitcode = x0 || exit 1
197test -x / || exit 1"
198  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202test \$(( 1 + 1 )) = 2 || exit 1
203
204  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208    PATH=/empty FPATH=/empty; export PATH FPATH
209    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
211  if (eval "$as_required") 2>/dev/null; then :
212  as_have_required=yes
213else
214  as_have_required=no
215fi
216  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218else
219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220as_found=false
221for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222do
223  IFS=$as_save_IFS
224  test -z "$as_dir" && as_dir=.
225  as_found=:
226  case $as_dir in #(
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     # Try only shells that exist, to save several forks.
230	     as_shell=$as_dir/$as_base
231	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233  CONFIG_SHELL=$as_shell as_have_required=yes
234		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235  break 2
236fi
237fi
238	   done;;
239       esac
240  as_found=false
241done
242$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244  CONFIG_SHELL=$SHELL as_have_required=yes
245fi; }
246IFS=$as_save_IFS
247
248
249      if test "x$CONFIG_SHELL" != x; then :
250  export CONFIG_SHELL
251             # We cannot yet assume a decent shell, so we have to provide a
252# neutralization value for shells without unset; and this also
253# works around shells that cannot unset nonexistent variables.
254# Preserve -v and -x to the replacement shell.
255BASH_ENV=/dev/null
256ENV=/dev/null
257(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258case $- in # ((((
259  *v*x* | *x*v* ) as_opts=-vx ;;
260  *v* ) as_opts=-v ;;
261  *x* ) as_opts=-x ;;
262  * ) as_opts= ;;
263esac
264exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265# Admittedly, this is quite paranoid, since all the known shells bail
266# out after a failed `exec'.
267$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268exit 255
269fi
270
271    if test x$as_have_required = xno; then :
272  $as_echo "$0: This script requires a shell more modern than all"
273  $as_echo "$0: the shells that I found on your system."
274  if test x${ZSH_VERSION+set} = xset ; then
275    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    $as_echo "$0: Please tell bug-autoconf@gnu.org and
279$0: https://bugs.launchpad.net/gearmand about your system,
280$0: including any error possibly output before this
281$0: message. Then install a modern shell, or manually run
282$0: the script under such a shell if you do have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='gearmand'
593PACKAGE_TARNAME='gearmand'
594PACKAGE_VERSION='1.0.6'
595PACKAGE_STRING='gearmand 1.0.6'
596PACKAGE_BUGREPORT='https://bugs.launchpad.net/gearmand'
597PACKAGE_URL='http://gearman.info/'
598
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_unique_file="libgearman/gearman.cc"
636ac_header_list=
637ac_subst_vars='am__EXEEXT_FALSE
638am__EXEEXT_TRUE
639LTLIBOBJS
640SHARED_ENABLED_FALSE
641SHARED_ENABLED_TRUE
642TARGET_MINGW_FALSE
643TARGET_MINGW_TRUE
644HAVE_VISIBILITY
645CFLAG_VISIBILITY
646CXX_VERSION
647CXX_VERSION_VENDOR
648CC_VERSION
649CC_VERSION_VENDOR
650LIBGEARMAN_VERSION_HEX
651LIBGEARMAN_VERSION_STRING
652PTHREAD_CFLAGS
653PTHREAD_LIBS
654PTHREAD_CC
655ax_pthread_config
656TARGET_HOSTILE_FALSE
657TARGET_HOSTILE_TRUE
658INC_AMINCLUDE
659AMINCLUDE
660HAVE_LIBUUID_FALSE
661HAVE_LIBUUID_TRUE
662LIBUUID_LIB
663HAVE_LIBEVENT_FALSE
664HAVE_LIBEVENT_TRUE
665LIBEVENT_LIB
666HAVE_LIBMEMCACHED_FALSE
667HAVE_LIBMEMCACHED_TRUE
668LIBMEMCACHED_UTIL_LIB
669LIBMEMCACHED_LIB
670LIBMEMCACHED_CFLAGS
671CYASSL_LIB
672CYASSL_LDFLAGS
673CYASSL_CPPFLAGS
674LIBM
675RT_LIB
676DL_LIB
677DL_LDFLAGS
678DL_CPPFLAGS
679ALLOCA
680LIBOBJS
681BUILD_WIN32_WRAPPERS_FALSE
682BUILD_WIN32_WRAPPERS_TRUE
683LCOV_GENHTML
684LCOV
685SPHINXBUILD
686MEMCACHED_BINARY
687WINE
688VALGRIND
689PERL
690DPKG_GENSYMBOLS
691HIREDIS_LIB
692HIREDIS_LDFLAGS
693HIREDIS_CPPFLAGS
694HAVE_TOKYOCABINET_FALSE
695HAVE_TOKYOCABINET_TRUE
696TOKYOCABINET_LIB
697TOKYOCABINET_LDFLAGS
698TOKYOCABINET_CPPFLAGS
699HAVE_LIBPQ_FALSE
700HAVE_LIBPQ_TRUE
701POSTGRESQL_LDFLAGS
702POSTGRESQL_CFLAGS
703POSTGRESQL_VERSION
704PG_CONFIG
705DTRACE_NEEDS_OBJECTS_FALSE
706DTRACE_NEEDS_OBJECTS_TRUE
707HAVE_DTRACE_FALSE
708HAVE_DTRACE_TRUE
709DTRACEFLAGS
710DTRACE
711HAVE_LIBSQLITE3_FALSE
712HAVE_LIBSQLITE3_TRUE
713SQLITE3_VERSION
714SQLITE3_LDFLAGS
715SQLITE3_CFLAGS
716LIBDRIZZLE_LIB
717LIBDRIZZLE_LDFLAGS
718LIBDRIZZLE_CPPFLAGS
719DRIZZLED_BINARY
720HAVE_LIBCURL_FALSE
721HAVE_LIBCURL_TRUE
722LIBCURL_LIB
723LIBCURL_LDFLAGS
724LIBCURL_CPPFLAGS
725CURL_LIBS
726CURL_CFLAGS
727CURL_CONFIG
728_WITH_LIBGEARMAN_SUPPORT
729HAVE_LIBGEARMAN_FALSE
730HAVE_LIBGEARMAN_TRUE
731BUILDING_GEARMAN_FALSE
732BUILDING_GEARMAN_TRUE
733HAVE_LIBMYSQL_FALSE
734HAVE_LIBMYSQL_TRUE
735MYSQL_LDFLAGS
736MYSQL_CFLAGS
737MYSQL_INCLUDE
738MYSQL_VERSION
739MYSQL_CONFIG
740MYSQLD
741LIBTEST_VERSION
742INCLUDE_HSIEH_SRC_FALSE
743INCLUDE_HSIEH_SRC_TRUE
744HASHKIT_LIBRARY_VERSION
745BOOST_PROGRAM_OPTIONS_LIBS
746BOOST_LDPATH
747BOOST_PROGRAM_OPTIONS_LDPATH
748BOOST_PROGRAM_OPTIONS_LDFLAGS
749BOOST_CPPFLAGS
750DISTCHECK_CONFIGURE_FLAGS
751BOOST_ROOT
752IS_VCS_CHECKOUT_FALSE
753IS_VCS_CHECKOUT_TRUE
754DEBUG_FALSE
755DEBUG_TRUE
756MCHECK
757MCHECK_LIB
758MCHECK_LDFLAGS
759MCHECK_CPPFLAGS
760AM_BACKSLASH
761AM_DEFAULT_VERBOSITY
762AM_DEFAULT_V
763AM_V
764TARGET_FREEBSD_FALSE
765TARGET_FREEBSD_TRUE
766TARGET_LINUX_FALSE
767TARGET_LINUX_TRUE
768TARGET_OSX_FALSE
769TARGET_OSX_TRUE
770BUILD_WIN32_FALSE
771BUILD_WIN32_TRUE
772CXXCPP
773am__fastdepCXX_FALSE
774am__fastdepCXX_TRUE
775CXXDEPMODE
776ac_ct_CXX
777CXXFLAGS
778CXX
779OTOOL64
780OTOOL
781LIPO
782NMEDIT
783DSYMUTIL
784MANIFEST_TOOL
785RANLIB
786ac_ct_AR
787AR
788DLLTOOL
789OBJDUMP
790LN_S
791NM
792ac_ct_DUMPBIN
793DUMPBIN
794LD
795FGREP
796SED
797LIBTOOL
798GEARMAN_LIBRARY_VERSION
799AUTOHEADER_FILE
800am__fastdepCC_FALSE
801am__fastdepCC_TRUE
802CCDEPMODE
803am__nodep
804AMDEPBACKSLASH
805AMDEP_FALSE
806AMDEP_TRUE
807am__quote
808am__include
809DEPDIR
810am__untar
811am__tar
812AMTAR
813am__leading_dot
814SET_MAKE
815AWK
816mkdir_p
817MKDIR_P
818INSTALL_STRIP_PROGRAM
819STRIP
820install_sh
821MAKEINFO
822AUTOHEADER
823AUTOMAKE
824AUTOCONF
825ACLOCAL
826VERSION
827PACKAGE
828CYGPATH_W
829am__isrc
830INSTALL_DATA
831INSTALL_SCRIPT
832INSTALL_PROGRAM
833EGREP
834GREP
835CPP
836OBJEXT
837EXEEXT
838ac_ct_CC
839CPPFLAGS
840LDFLAGS
841CFLAGS
842CC
843target_os
844target_vendor
845target_cpu
846target
847host_os
848host_vendor
849host_cpu
850host
851build_os
852build_vendor
853build_cpu
854build
855target_alias
856host_alias
857build_alias
858LIBS
859ECHO_T
860ECHO_N
861ECHO_C
862DEFS
863mandir
864localedir
865libdir
866psdir
867pdfdir
868dvidir
869htmldir
870infodir
871docdir
872oldincludedir
873includedir
874localstatedir
875sharedstatedir
876sysconfdir
877datadir
878datarootdir
879libexecdir
880sbindir
881bindir
882program_transform_name
883prefix
884exec_prefix
885PACKAGE_URL
886PACKAGE_BUGREPORT
887PACKAGE_STRING
888PACKAGE_VERSION
889PACKAGE_TARNAME
890PACKAGE_NAME
891PATH_SEPARATOR
892SHELL'
893ac_subst_files=''
894ac_user_opts='
895enable_option_checking
896enable_dependency_tracking
897enable_static
898enable_shared
899with_pic
900enable_fast_install
901with_gnu_ld
902with_sysroot
903enable_libtool_lock
904enable_silent_rules
905enable_debug
906enable_assert
907with_boost
908enable_static_boost
909with_mysql
910with_curl_prefix
911with_curl_exec_prefix
912with_drizzled
913enable_libdrizzle
914with_sqlite3
915enable_dtrace
916enable_libpq
917with_postgresql
918enable_libtokyocabinet
919enable_hiredis
920with_memcached
921with_sphinx_build
922with_lcov
923with_genhtml
924enable_libmemcached
925enable_jobserver
926'
927      ac_precious_vars='build_alias
928host_alias
929target_alias
930CC
931CFLAGS
932LDFLAGS
933LIBS
934CPPFLAGS
935CPP
936CXX
937CXXFLAGS
938CCC
939CXXCPP
940MCHECK_CPPFLAGS
941MCHECK_LDFLAGS
942BOOST_ROOT
943MYSQL_CONFIG
944CURL_CONFIG
945CURL_CFLAGS
946CURL_LIBS
947LIBCURL_CPPFLAGS
948LIBCURL_LDFLAGS
949DRIZZLED_BINARY
950LIBDRIZZLE_CPPFLAGS
951LIBDRIZZLE_LDFLAGS
952TOKYOCABINET_CPPFLAGS
953TOKYOCABINET_LDFLAGS
954HIREDIS_CPPFLAGS
955HIREDIS_LDFLAGS
956MEMCACHED_BINARY
957SPHINXBUILD
958LCOV
959LCOV_GENHTML
960DL_CPPFLAGS
961DL_LDFLAGS
962CYASSL_CPPFLAGS
963CYASSL_LDFLAGS'
964
965
966# Initialize some variables set by options.
967ac_init_help=
968ac_init_version=false
969ac_unrecognized_opts=
970ac_unrecognized_sep=
971# The variables have the same names as the options, with
972# dashes changed to underlines.
973cache_file=/dev/null
974exec_prefix=NONE
975no_create=
976no_recursion=
977prefix=NONE
978program_prefix=NONE
979program_suffix=NONE
980program_transform_name=s,x,x,
981silent=
982site=
983srcdir=
984verbose=
985x_includes=NONE
986x_libraries=NONE
987
988# Installation directory options.
989# These are left unexpanded so users can "make install exec_prefix=/foo"
990# and all the variables that are supposed to be based on exec_prefix
991# by default will actually change.
992# Use braces instead of parens because sh, perl, etc. also accept them.
993# (The list follows the same order as the GNU Coding Standards.)
994bindir='${exec_prefix}/bin'
995sbindir='${exec_prefix}/sbin'
996libexecdir='${exec_prefix}/libexec'
997datarootdir='${prefix}/share'
998datadir='${datarootdir}'
999sysconfdir='${prefix}/etc'
1000sharedstatedir='${prefix}/com'
1001localstatedir='${prefix}/var'
1002includedir='${prefix}/include'
1003oldincludedir='/usr/include'
1004docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1005infodir='${datarootdir}/info'
1006htmldir='${docdir}'
1007dvidir='${docdir}'
1008pdfdir='${docdir}'
1009psdir='${docdir}'
1010libdir='${exec_prefix}/lib'
1011localedir='${datarootdir}/locale'
1012mandir='${datarootdir}/man'
1013
1014ac_prev=
1015ac_dashdash=
1016for ac_option
1017do
1018  # If the previous option needs an argument, assign it.
1019  if test -n "$ac_prev"; then
1020    eval $ac_prev=\$ac_option
1021    ac_prev=
1022    continue
1023  fi
1024
1025  case $ac_option in
1026  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1027  *=)   ac_optarg= ;;
1028  *)    ac_optarg=yes ;;
1029  esac
1030
1031  # Accept the important Cygnus configure options, so we can diagnose typos.
1032
1033  case $ac_dashdash$ac_option in
1034  --)
1035    ac_dashdash=yes ;;
1036
1037  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1038    ac_prev=bindir ;;
1039  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1040    bindir=$ac_optarg ;;
1041
1042  -build | --build | --buil | --bui | --bu)
1043    ac_prev=build_alias ;;
1044  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1045    build_alias=$ac_optarg ;;
1046
1047  -cache-file | --cache-file | --cache-fil | --cache-fi \
1048  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1049    ac_prev=cache_file ;;
1050  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1051  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1052    cache_file=$ac_optarg ;;
1053
1054  --config-cache | -C)
1055    cache_file=config.cache ;;
1056
1057  -datadir | --datadir | --datadi | --datad)
1058    ac_prev=datadir ;;
1059  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1060    datadir=$ac_optarg ;;
1061
1062  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1063  | --dataroo | --dataro | --datar)
1064    ac_prev=datarootdir ;;
1065  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1066  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1067    datarootdir=$ac_optarg ;;
1068
1069  -disable-* | --disable-*)
1070    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1071    # Reject names that are not valid shell variable names.
1072    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073      as_fn_error $? "invalid feature name: $ac_useropt"
1074    ac_useropt_orig=$ac_useropt
1075    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076    case $ac_user_opts in
1077      *"
1078"enable_$ac_useropt"
1079"*) ;;
1080      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1081	 ac_unrecognized_sep=', ';;
1082    esac
1083    eval enable_$ac_useropt=no ;;
1084
1085  -docdir | --docdir | --docdi | --doc | --do)
1086    ac_prev=docdir ;;
1087  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1088    docdir=$ac_optarg ;;
1089
1090  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1091    ac_prev=dvidir ;;
1092  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1093    dvidir=$ac_optarg ;;
1094
1095  -enable-* | --enable-*)
1096    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097    # Reject names that are not valid shell variable names.
1098    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099      as_fn_error $? "invalid feature name: $ac_useropt"
1100    ac_useropt_orig=$ac_useropt
1101    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102    case $ac_user_opts in
1103      *"
1104"enable_$ac_useropt"
1105"*) ;;
1106      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1107	 ac_unrecognized_sep=', ';;
1108    esac
1109    eval enable_$ac_useropt=\$ac_optarg ;;
1110
1111  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1112  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1113  | --exec | --exe | --ex)
1114    ac_prev=exec_prefix ;;
1115  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1116  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1117  | --exec=* | --exe=* | --ex=*)
1118    exec_prefix=$ac_optarg ;;
1119
1120  -gas | --gas | --ga | --g)
1121    # Obsolete; use --with-gas.
1122    with_gas=yes ;;
1123
1124  -help | --help | --hel | --he | -h)
1125    ac_init_help=long ;;
1126  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1127    ac_init_help=recursive ;;
1128  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1129    ac_init_help=short ;;
1130
1131  -host | --host | --hos | --ho)
1132    ac_prev=host_alias ;;
1133  -host=* | --host=* | --hos=* | --ho=*)
1134    host_alias=$ac_optarg ;;
1135
1136  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1137    ac_prev=htmldir ;;
1138  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1139  | --ht=*)
1140    htmldir=$ac_optarg ;;
1141
1142  -includedir | --includedir | --includedi | --included | --include \
1143  | --includ | --inclu | --incl | --inc)
1144    ac_prev=includedir ;;
1145  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1146  | --includ=* | --inclu=* | --incl=* | --inc=*)
1147    includedir=$ac_optarg ;;
1148
1149  -infodir | --infodir | --infodi | --infod | --info | --inf)
1150    ac_prev=infodir ;;
1151  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1152    infodir=$ac_optarg ;;
1153
1154  -libdir | --libdir | --libdi | --libd)
1155    ac_prev=libdir ;;
1156  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1157    libdir=$ac_optarg ;;
1158
1159  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1160  | --libexe | --libex | --libe)
1161    ac_prev=libexecdir ;;
1162  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1163  | --libexe=* | --libex=* | --libe=*)
1164    libexecdir=$ac_optarg ;;
1165
1166  -localedir | --localedir | --localedi | --localed | --locale)
1167    ac_prev=localedir ;;
1168  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1169    localedir=$ac_optarg ;;
1170
1171  -localstatedir | --localstatedir | --localstatedi | --localstated \
1172  | --localstate | --localstat | --localsta | --localst | --locals)
1173    ac_prev=localstatedir ;;
1174  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1175  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1176    localstatedir=$ac_optarg ;;
1177
1178  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1179    ac_prev=mandir ;;
1180  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1181    mandir=$ac_optarg ;;
1182
1183  -nfp | --nfp | --nf)
1184    # Obsolete; use --without-fp.
1185    with_fp=no ;;
1186
1187  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1188  | --no-cr | --no-c | -n)
1189    no_create=yes ;;
1190
1191  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1192  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1193    no_recursion=yes ;;
1194
1195  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1196  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1197  | --oldin | --oldi | --old | --ol | --o)
1198    ac_prev=oldincludedir ;;
1199  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1200  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1201  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1202    oldincludedir=$ac_optarg ;;
1203
1204  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1205    ac_prev=prefix ;;
1206  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1207    prefix=$ac_optarg ;;
1208
1209  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1210  | --program-pre | --program-pr | --program-p)
1211    ac_prev=program_prefix ;;
1212  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1213  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1214    program_prefix=$ac_optarg ;;
1215
1216  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1217  | --program-suf | --program-su | --program-s)
1218    ac_prev=program_suffix ;;
1219  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1220  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1221    program_suffix=$ac_optarg ;;
1222
1223  -program-transform-name | --program-transform-name \
1224  | --program-transform-nam | --program-transform-na \
1225  | --program-transform-n | --program-transform- \
1226  | --program-transform | --program-transfor \
1227  | --program-transfo | --program-transf \
1228  | --program-trans | --program-tran \
1229  | --progr-tra | --program-tr | --program-t)
1230    ac_prev=program_transform_name ;;
1231  -program-transform-name=* | --program-transform-name=* \
1232  | --program-transform-nam=* | --program-transform-na=* \
1233  | --program-transform-n=* | --program-transform-=* \
1234  | --program-transform=* | --program-transfor=* \
1235  | --program-transfo=* | --program-transf=* \
1236  | --program-trans=* | --program-tran=* \
1237  | --progr-tra=* | --program-tr=* | --program-t=*)
1238    program_transform_name=$ac_optarg ;;
1239
1240  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1241    ac_prev=pdfdir ;;
1242  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1243    pdfdir=$ac_optarg ;;
1244
1245  -psdir | --psdir | --psdi | --psd | --ps)
1246    ac_prev=psdir ;;
1247  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1248    psdir=$ac_optarg ;;
1249
1250  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251  | -silent | --silent | --silen | --sile | --sil)
1252    silent=yes ;;
1253
1254  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1255    ac_prev=sbindir ;;
1256  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1257  | --sbi=* | --sb=*)
1258    sbindir=$ac_optarg ;;
1259
1260  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1261  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1262  | --sharedst | --shareds | --shared | --share | --shar \
1263  | --sha | --sh)
1264    ac_prev=sharedstatedir ;;
1265  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1266  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1267  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1268  | --sha=* | --sh=*)
1269    sharedstatedir=$ac_optarg ;;
1270
1271  -site | --site | --sit)
1272    ac_prev=site ;;
1273  -site=* | --site=* | --sit=*)
1274    site=$ac_optarg ;;
1275
1276  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1277    ac_prev=srcdir ;;
1278  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1279    srcdir=$ac_optarg ;;
1280
1281  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1282  | --syscon | --sysco | --sysc | --sys | --sy)
1283    ac_prev=sysconfdir ;;
1284  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1285  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1286    sysconfdir=$ac_optarg ;;
1287
1288  -target | --target | --targe | --targ | --tar | --ta | --t)
1289    ac_prev=target_alias ;;
1290  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1291    target_alias=$ac_optarg ;;
1292
1293  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1294    verbose=yes ;;
1295
1296  -version | --version | --versio | --versi | --vers | -V)
1297    ac_init_version=: ;;
1298
1299  -with-* | --with-*)
1300    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1301    # Reject names that are not valid shell variable names.
1302    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303      as_fn_error $? "invalid package name: $ac_useropt"
1304    ac_useropt_orig=$ac_useropt
1305    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306    case $ac_user_opts in
1307      *"
1308"with_$ac_useropt"
1309"*) ;;
1310      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1311	 ac_unrecognized_sep=', ';;
1312    esac
1313    eval with_$ac_useropt=\$ac_optarg ;;
1314
1315  -without-* | --without-*)
1316    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1317    # Reject names that are not valid shell variable names.
1318    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1319      as_fn_error $? "invalid package name: $ac_useropt"
1320    ac_useropt_orig=$ac_useropt
1321    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322    case $ac_user_opts in
1323      *"
1324"with_$ac_useropt"
1325"*) ;;
1326      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1327	 ac_unrecognized_sep=', ';;
1328    esac
1329    eval with_$ac_useropt=no ;;
1330
1331  --x)
1332    # Obsolete; use --with-x.
1333    with_x=yes ;;
1334
1335  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1336  | --x-incl | --x-inc | --x-in | --x-i)
1337    ac_prev=x_includes ;;
1338  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1339  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1340    x_includes=$ac_optarg ;;
1341
1342  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1343  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1344    ac_prev=x_libraries ;;
1345  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1346  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1347    x_libraries=$ac_optarg ;;
1348
1349  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1350Try \`$0 --help' for more information"
1351    ;;
1352
1353  *=*)
1354    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1355    # Reject names that are not valid shell variable names.
1356    case $ac_envvar in #(
1357      '' | [0-9]* | *[!_$as_cr_alnum]* )
1358      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1359    esac
1360    eval $ac_envvar=\$ac_optarg
1361    export $ac_envvar ;;
1362
1363  *)
1364    # FIXME: should be removed in autoconf 3.0.
1365    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1366    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1367      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1368    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1369    ;;
1370
1371  esac
1372done
1373
1374if test -n "$ac_prev"; then
1375  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1376  as_fn_error $? "missing argument to $ac_option"
1377fi
1378
1379if test -n "$ac_unrecognized_opts"; then
1380  case $enable_option_checking in
1381    no) ;;
1382    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1383    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1384  esac
1385fi
1386
1387# Check all directory arguments for consistency.
1388for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1389		datadir sysconfdir sharedstatedir localstatedir includedir \
1390		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1391		libdir localedir mandir
1392do
1393  eval ac_val=\$$ac_var
1394  # Remove trailing slashes.
1395  case $ac_val in
1396    */ )
1397      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1398      eval $ac_var=\$ac_val;;
1399  esac
1400  # Be sure to have absolute directory names.
1401  case $ac_val in
1402    [\\/$]* | ?:[\\/]* )  continue;;
1403    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1404  esac
1405  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1406done
1407
1408# There might be people who depend on the old broken behavior: `$host'
1409# used to hold the argument of --host etc.
1410# FIXME: To remove some day.
1411build=$build_alias
1412host=$host_alias
1413target=$target_alias
1414
1415# FIXME: To remove some day.
1416if test "x$host_alias" != x; then
1417  if test "x$build_alias" = x; then
1418    cross_compiling=maybe
1419  elif test "x$build_alias" != "x$host_alias"; then
1420    cross_compiling=yes
1421  fi
1422fi
1423
1424ac_tool_prefix=
1425test -n "$host_alias" && ac_tool_prefix=$host_alias-
1426
1427test "$silent" = yes && exec 6>/dev/null
1428
1429
1430ac_pwd=`pwd` && test -n "$ac_pwd" &&
1431ac_ls_di=`ls -di .` &&
1432ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1433  as_fn_error $? "working directory cannot be determined"
1434test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1435  as_fn_error $? "pwd does not report name of working directory"
1436
1437
1438# Find the source files, if location was not specified.
1439if test -z "$srcdir"; then
1440  ac_srcdir_defaulted=yes
1441  # Try the directory containing this script, then the parent directory.
1442  ac_confdir=`$as_dirname -- "$as_myself" ||
1443$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1444	 X"$as_myself" : 'X\(//\)[^/]' \| \
1445	 X"$as_myself" : 'X\(//\)$' \| \
1446	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1447$as_echo X"$as_myself" |
1448    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1449	    s//\1/
1450	    q
1451	  }
1452	  /^X\(\/\/\)[^/].*/{
1453	    s//\1/
1454	    q
1455	  }
1456	  /^X\(\/\/\)$/{
1457	    s//\1/
1458	    q
1459	  }
1460	  /^X\(\/\).*/{
1461	    s//\1/
1462	    q
1463	  }
1464	  s/.*/./; q'`
1465  srcdir=$ac_confdir
1466  if test ! -r "$srcdir/$ac_unique_file"; then
1467    srcdir=..
1468  fi
1469else
1470  ac_srcdir_defaulted=no
1471fi
1472if test ! -r "$srcdir/$ac_unique_file"; then
1473  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1474  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1475fi
1476ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1477ac_abs_confdir=`(
1478	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1479	pwd)`
1480# When building in place, set srcdir=.
1481if test "$ac_abs_confdir" = "$ac_pwd"; then
1482  srcdir=.
1483fi
1484# Remove unnecessary trailing slashes from srcdir.
1485# Double slashes in file names in object file debugging info
1486# mess up M-x gdb in Emacs.
1487case $srcdir in
1488*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1489esac
1490for ac_var in $ac_precious_vars; do
1491  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1492  eval ac_env_${ac_var}_value=\$${ac_var}
1493  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1494  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1495done
1496
1497#
1498# Report the --help message.
1499#
1500if test "$ac_init_help" = "long"; then
1501  # Omit some internal or obsolete options to make the list less imposing.
1502  # This message is too long to be a string in the A/UX 3.1 sh.
1503  cat <<_ACEOF
1504\`configure' configures gearmand 1.0.6 to adapt to many kinds of systems.
1505
1506Usage: $0 [OPTION]... [VAR=VALUE]...
1507
1508To assign environment variables (e.g., CC, CFLAGS...), specify them as
1509VAR=VALUE.  See below for descriptions of some of the useful variables.
1510
1511Defaults for the options are specified in brackets.
1512
1513Configuration:
1514  -h, --help              display this help and exit
1515      --help=short        display options specific to this package
1516      --help=recursive    display the short help of all the included packages
1517  -V, --version           display version information and exit
1518  -q, --quiet, --silent   do not print \`checking ...' messages
1519      --cache-file=FILE   cache test results in FILE [disabled]
1520  -C, --config-cache      alias for \`--cache-file=config.cache'
1521  -n, --no-create         do not create output files
1522      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1523
1524Installation directories:
1525  --prefix=PREFIX         install architecture-independent files in PREFIX
1526                          [$ac_default_prefix]
1527  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1528                          [PREFIX]
1529
1530By default, \`make install' will install all the files in
1531\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1532an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1533for instance \`--prefix=\$HOME'.
1534
1535For better control, use the options below.
1536
1537Fine tuning of the installation directories:
1538  --bindir=DIR            user executables [EPREFIX/bin]
1539  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1540  --libexecdir=DIR        program executables [EPREFIX/libexec]
1541  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1542  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1543  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1544  --libdir=DIR            object code libraries [EPREFIX/lib]
1545  --includedir=DIR        C header files [PREFIX/include]
1546  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1547  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1548  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1549  --infodir=DIR           info documentation [DATAROOTDIR/info]
1550  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1551  --mandir=DIR            man documentation [DATAROOTDIR/man]
1552  --docdir=DIR            documentation root [DATAROOTDIR/doc/gearmand]
1553  --htmldir=DIR           html documentation [DOCDIR]
1554  --dvidir=DIR            dvi documentation [DOCDIR]
1555  --pdfdir=DIR            pdf documentation [DOCDIR]
1556  --psdir=DIR             ps documentation [DOCDIR]
1557_ACEOF
1558
1559  cat <<\_ACEOF
1560
1561Program names:
1562  --program-prefix=PREFIX            prepend PREFIX to installed program names
1563  --program-suffix=SUFFIX            append SUFFIX to installed program names
1564  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1565
1566System types:
1567  --build=BUILD     configure for building on BUILD [guessed]
1568  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1569  --target=TARGET   configure for building compilers for TARGET [HOST]
1570_ACEOF
1571fi
1572
1573if test -n "$ac_init_help"; then
1574  case $ac_init_help in
1575     short | recursive ) echo "Configuration of gearmand 1.0.6:";;
1576   esac
1577  cat <<\_ACEOF
1578
1579Optional Features:
1580  --disable-option-checking  ignore unrecognized --enable/--with options
1581  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1582  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1583  --enable-dependency-tracking
1584                          do not reject slow dependency extractors
1585  --disable-dependency-tracking
1586                          speeds up one-time build
1587  --enable-static[=PKGS]  build static libraries [default=no]
1588  --enable-shared[=PKGS]  build shared libraries [default=yes]
1589  --enable-fast-install[=PKGS]
1590                          optimize for fast installation [default=yes]
1591  --disable-libtool-lock  avoid locking (might break parallel builds)
1592  --enable-silent-rules   less verbose build output (undo: "make V=1")
1593  --disable-silent-rules  verbose build output (undo: "make V=0")
1594  --enable-debug          Add debug code/turns off optimizations (yes|no)
1595                          [default=no]
1596  --enable-assert         Enable assert, this will be overridden by
1597                          --enable-debug (yes|no) [default=no]
1598  --enable-static-boost   Prefer the static boost libraries over the shared
1599                          ones [no]
1600  --disable-libdrizzle    Build with libdrizzle support [default=on]
1601  --enable-dtrace         Build with support for the DTRACE. [default=no]
1602  --disable-libpq         Build with libpq, ie Postgres, support [default=on]
1603  --disable-libtokyocabinet
1604                          Build with libtokyocabinet support [default=on]
1605  --disable-hiredis       Build with hiredis support [default=on]
1606  --disable-libmemcached  Build with libmemcached support [default=on]
1607  --enable-jobserver[=no/yes/#] default=yes
1608                        Enable up to # make jobs
1609                        yes: enable one more than CPU count
1610
1611
1612Optional Packages:
1613  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1614  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1615  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1616                          both]
1617  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1618  --with-sysroot=DIR Search for dependent libraries within DIR
1619                        (or the compiler's sysroot if not specified).
1620  --with-boost=DIR        prefix of Boost 1.39 [guess]
1621  --with-mysql=[ARG]      use MySQL client library [default=yes], optionally
1622                          specify path to mysql_config
1623  --with-curl-prefix=PREFIX
1624                          Prefix where curl is installed (optional)
1625  --with-curl-exec-prefix=EPREFIX
1626                          Exec prefix where curl is installed (optional)
1627  --with-drizzled=[PATH]
1628                          absolute path to drizzled executable
1629  --with-sqlite3=[ARG]    use SQLite 3 library [default=yes], optionally
1630                          specify the prefix for sqlite3 library
1631  --with-postgresql=[ARG] use PostgreSQL library [default=yes], optionally
1632                          specify path to pg_config
1633  --with-memcached=[PATH]
1634                          absolute path to memcached executable
1635  --with-sphinx-build=[PATH]
1636                          absolute path to sphinx-build executable
1637  --with-lcov=[PATH]    absolute path to lcov executable
1638  --with-genhtml=[PATH] absolute path to genhtml executable
1639
1640Some influential environment variables:
1641  CC          C compiler command
1642  CFLAGS      C compiler flags
1643  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1644              nonstandard directory <lib dir>
1645  LIBS        libraries to pass to the linker, e.g. -l<library>
1646  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1647              you have headers in a nonstandard directory <include dir>
1648  CPP         C preprocessor
1649  CXX         C++ compiler command
1650  CXXFLAGS    C++ compiler flags
1651  CXXCPP      C++ preprocessor
1652  MCHECK_CPPFLAGS
1653              C preprocessor flags for MCHECK headers
1654  MCHECK_LDFLAGS
1655              linker flags for MCHECK libraries
1656  BOOST_ROOT  Location of Boost installation
1657  MYSQL_CONFIG
1658              Full path to mysql_config program
1659  CURL_CONFIG config script used for curl
1660  CURL_CFLAGS CFLAGS used for curl
1661  CURL_LIBS   LIBS used for curl
1662  LIBCURL_CPPFLAGS
1663              C preprocessor flags for LIBCURL headers
1664  LIBCURL_LDFLAGS
1665              linker flags for LIBCURL libraries
1666  DRIZZLED_BINARY
1667              Absolute path to drizzled executable
1668  LIBDRIZZLE_CPPFLAGS
1669              C preprocessor flags for LIBDRIZZLE headers
1670  LIBDRIZZLE_LDFLAGS
1671              linker flags for LIBDRIZZLE libraries
1672  TOKYOCABINET_CPPFLAGS
1673              C preprocessor flags for TOKYOCABINET headers
1674  TOKYOCABINET_LDFLAGS
1675              linker flags for TOKYOCABINET libraries
1676  HIREDIS_CPPFLAGS
1677              C preprocessor flags for HIREDIS headers
1678  HIREDIS_LDFLAGS
1679              linker flags for HIREDIS libraries
1680  MEMCACHED_BINARY
1681              Absolute path to memcached executable
1682  SPHINXBUILD Absolute path to sphinx-build executable
1683  LCOV        Absolute path to lcov executable
1684  LCOV_GENHTML
1685              Absolute path to genhtml executable
1686  DL_CPPFLAGS C preprocessor flags for DL headers
1687  DL_LDFLAGS  linker flags for DL libraries
1688  CYASSL_CPPFLAGS
1689              C preprocessor flags for CYASSL headers
1690  CYASSL_LDFLAGS
1691              linker flags for CYASSL libraries
1692
1693Use these variables to override the choices made by `configure' or to help
1694it to find libraries and programs with nonstandard names/locations.
1695
1696Report bugs to <https://bugs.launchpad.net/gearmand>.
1697gearmand home page: <http://gearman.info/>.
1698_ACEOF
1699ac_status=$?
1700fi
1701
1702if test "$ac_init_help" = "recursive"; then
1703  # If there are subdirs, report their specific --help.
1704  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1705    test -d "$ac_dir" ||
1706      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1707      continue
1708    ac_builddir=.
1709
1710case "$ac_dir" in
1711.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712*)
1713  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1714  # A ".." for each directory in $ac_dir_suffix.
1715  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1716  case $ac_top_builddir_sub in
1717  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1719  esac ;;
1720esac
1721ac_abs_top_builddir=$ac_pwd
1722ac_abs_builddir=$ac_pwd$ac_dir_suffix
1723# for backward compatibility:
1724ac_top_builddir=$ac_top_build_prefix
1725
1726case $srcdir in
1727  .)  # We are building in place.
1728    ac_srcdir=.
1729    ac_top_srcdir=$ac_top_builddir_sub
1730    ac_abs_top_srcdir=$ac_pwd ;;
1731  [\\/]* | ?:[\\/]* )  # Absolute name.
1732    ac_srcdir=$srcdir$ac_dir_suffix;
1733    ac_top_srcdir=$srcdir
1734    ac_abs_top_srcdir=$srcdir ;;
1735  *) # Relative name.
1736    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1737    ac_top_srcdir=$ac_top_build_prefix$srcdir
1738    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1739esac
1740ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1741
1742    cd "$ac_dir" || { ac_status=$?; continue; }
1743    # Check for guested configure.
1744    if test -f "$ac_srcdir/configure.gnu"; then
1745      echo &&
1746      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1747    elif test -f "$ac_srcdir/configure"; then
1748      echo &&
1749      $SHELL "$ac_srcdir/configure" --help=recursive
1750    else
1751      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1752    fi || ac_status=$?
1753    cd "$ac_pwd" || { ac_status=$?; break; }
1754  done
1755fi
1756
1757test -n "$ac_init_help" && exit $ac_status
1758if $ac_init_version; then
1759  cat <<\_ACEOF
1760gearmand configure 1.0.6
1761generated by GNU Autoconf 2.69
1762
1763Copyright (C) 2012 Free Software Foundation, Inc.
1764This configure script is free software; the Free Software Foundation
1765gives unlimited permission to copy, distribute and modify it.
1766_ACEOF
1767  exit
1768fi
1769
1770## ------------------------ ##
1771## Autoconf initialization. ##
1772## ------------------------ ##
1773
1774# ac_fn_c_try_compile LINENO
1775# --------------------------
1776# Try to compile conftest.$ac_ext, and return whether this succeeded.
1777ac_fn_c_try_compile ()
1778{
1779  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780  rm -f conftest.$ac_objext
1781  if { { ac_try="$ac_compile"
1782case "(($ac_try" in
1783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784  *) ac_try_echo=$ac_try;;
1785esac
1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787$as_echo "$ac_try_echo"; } >&5
1788  (eval "$ac_compile") 2>conftest.err
1789  ac_status=$?
1790  if test -s conftest.err; then
1791    grep -v '^ *+' conftest.err >conftest.er1
1792    cat conftest.er1 >&5
1793    mv -f conftest.er1 conftest.err
1794  fi
1795  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796  test $ac_status = 0; } && {
1797	 test -z "$ac_c_werror_flag" ||
1798	 test ! -s conftest.err
1799       } && test -s conftest.$ac_objext; then :
1800  ac_retval=0
1801else
1802  $as_echo "$as_me: failed program was:" >&5
1803sed 's/^/| /' conftest.$ac_ext >&5
1804
1805	ac_retval=1
1806fi
1807  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808  as_fn_set_status $ac_retval
1809
1810} # ac_fn_c_try_compile
1811
1812# ac_fn_c_try_cpp LINENO
1813# ----------------------
1814# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1815ac_fn_c_try_cpp ()
1816{
1817  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818  if { { ac_try="$ac_cpp conftest.$ac_ext"
1819case "(($ac_try" in
1820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821  *) ac_try_echo=$ac_try;;
1822esac
1823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824$as_echo "$ac_try_echo"; } >&5
1825  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1826  ac_status=$?
1827  if test -s conftest.err; then
1828    grep -v '^ *+' conftest.err >conftest.er1
1829    cat conftest.er1 >&5
1830    mv -f conftest.er1 conftest.err
1831  fi
1832  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833  test $ac_status = 0; } > conftest.i && {
1834	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1835	 test ! -s conftest.err
1836       }; then :
1837  ac_retval=0
1838else
1839  $as_echo "$as_me: failed program was:" >&5
1840sed 's/^/| /' conftest.$ac_ext >&5
1841
1842    ac_retval=1
1843fi
1844  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845  as_fn_set_status $ac_retval
1846
1847} # ac_fn_c_try_cpp
1848
1849# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1850# -------------------------------------------------------
1851# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1852# the include files in INCLUDES and setting the cache variable VAR
1853# accordingly.
1854ac_fn_c_check_header_mongrel ()
1855{
1856  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857  if eval \${$3+:} false; then :
1858  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859$as_echo_n "checking for $2... " >&6; }
1860if eval \${$3+:} false; then :
1861  $as_echo_n "(cached) " >&6
1862fi
1863eval ac_res=\$$3
1864	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865$as_echo "$ac_res" >&6; }
1866else
1867  # Is the header compilable?
1868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1869$as_echo_n "checking $2 usability... " >&6; }
1870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871/* end confdefs.h.  */
1872$4
1873#include <$2>
1874_ACEOF
1875if ac_fn_c_try_compile "$LINENO"; then :
1876  ac_header_compiler=yes
1877else
1878  ac_header_compiler=no
1879fi
1880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1882$as_echo "$ac_header_compiler" >&6; }
1883
1884# Is the header present?
1885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1886$as_echo_n "checking $2 presence... " >&6; }
1887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888/* end confdefs.h.  */
1889#include <$2>
1890_ACEOF
1891if ac_fn_c_try_cpp "$LINENO"; then :
1892  ac_header_preproc=yes
1893else
1894  ac_header_preproc=no
1895fi
1896rm -f conftest.err conftest.i conftest.$ac_ext
1897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1898$as_echo "$ac_header_preproc" >&6; }
1899
1900# So?  What about this header?
1901case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1902  yes:no: )
1903    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1904$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1905    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1906$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1907    ;;
1908  no:yes:* )
1909    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1910$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1911    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1912$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1913    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1914$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1915    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1916$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1917    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1918$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1919( $as_echo "## -------------------------------------------------- ##
1920## Report this to https://bugs.launchpad.net/gearmand ##
1921## -------------------------------------------------- ##"
1922     ) | sed "s/^/$as_me: WARNING:     /" >&2
1923    ;;
1924esac
1925  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926$as_echo_n "checking for $2... " >&6; }
1927if eval \${$3+:} false; then :
1928  $as_echo_n "(cached) " >&6
1929else
1930  eval "$3=\$ac_header_compiler"
1931fi
1932eval ac_res=\$$3
1933	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934$as_echo "$ac_res" >&6; }
1935fi
1936  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937
1938} # ac_fn_c_check_header_mongrel
1939
1940# ac_fn_c_try_run LINENO
1941# ----------------------
1942# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1943# that executables *can* be run.
1944ac_fn_c_try_run ()
1945{
1946  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947  if { { ac_try="$ac_link"
1948case "(($ac_try" in
1949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950  *) ac_try_echo=$ac_try;;
1951esac
1952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953$as_echo "$ac_try_echo"; } >&5
1954  (eval "$ac_link") 2>&5
1955  ac_status=$?
1956  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1958  { { case "(($ac_try" in
1959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1960  *) ac_try_echo=$ac_try;;
1961esac
1962eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1963$as_echo "$ac_try_echo"; } >&5
1964  (eval "$ac_try") 2>&5
1965  ac_status=$?
1966  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967  test $ac_status = 0; }; }; then :
1968  ac_retval=0
1969else
1970  $as_echo "$as_me: program exited with status $ac_status" >&5
1971       $as_echo "$as_me: failed program was:" >&5
1972sed 's/^/| /' conftest.$ac_ext >&5
1973
1974       ac_retval=$ac_status
1975fi
1976  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1977  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978  as_fn_set_status $ac_retval
1979
1980} # ac_fn_c_try_run
1981
1982# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1983# -------------------------------------------------------
1984# Tests whether HEADER exists and can be compiled using the include files in
1985# INCLUDES, setting the cache variable VAR accordingly.
1986ac_fn_c_check_header_compile ()
1987{
1988  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990$as_echo_n "checking for $2... " >&6; }
1991if eval \${$3+:} false; then :
1992  $as_echo_n "(cached) " >&6
1993else
1994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995/* end confdefs.h.  */
1996$4
1997#include <$2>
1998_ACEOF
1999if ac_fn_c_try_compile "$LINENO"; then :
2000  eval "$3=yes"
2001else
2002  eval "$3=no"
2003fi
2004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005fi
2006eval ac_res=\$$3
2007	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008$as_echo "$ac_res" >&6; }
2009  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010
2011} # ac_fn_c_check_header_compile
2012
2013# ac_fn_c_try_link LINENO
2014# -----------------------
2015# Try to link conftest.$ac_ext, and return whether this succeeded.
2016ac_fn_c_try_link ()
2017{
2018  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019  rm -f conftest.$ac_objext conftest$ac_exeext
2020  if { { ac_try="$ac_link"
2021case "(($ac_try" in
2022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2023  *) ac_try_echo=$ac_try;;
2024esac
2025eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2026$as_echo "$ac_try_echo"; } >&5
2027  (eval "$ac_link") 2>conftest.err
2028  ac_status=$?
2029  if test -s conftest.err; then
2030    grep -v '^ *+' conftest.err >conftest.er1
2031    cat conftest.er1 >&5
2032    mv -f conftest.er1 conftest.err
2033  fi
2034  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2035  test $ac_status = 0; } && {
2036	 test -z "$ac_c_werror_flag" ||
2037	 test ! -s conftest.err
2038       } && test -s conftest$ac_exeext && {
2039	 test "$cross_compiling" = yes ||
2040	 test -x conftest$ac_exeext
2041       }; then :
2042  ac_retval=0
2043else
2044  $as_echo "$as_me: failed program was:" >&5
2045sed 's/^/| /' conftest.$ac_ext >&5
2046
2047	ac_retval=1
2048fi
2049  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2050  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2051  # interfere with the next link command; also delete a directory that is
2052  # left behind by Apple's compiler.  We do this before executing the actions.
2053  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2054  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055  as_fn_set_status $ac_retval
2056
2057} # ac_fn_c_try_link
2058
2059# ac_fn_c_check_func LINENO FUNC VAR
2060# ----------------------------------
2061# Tests whether FUNC exists, setting the cache variable VAR accordingly
2062ac_fn_c_check_func ()
2063{
2064  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066$as_echo_n "checking for $2... " >&6; }
2067if eval \${$3+:} false; then :
2068  $as_echo_n "(cached) " >&6
2069else
2070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071/* end confdefs.h.  */
2072/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2073   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2074#define $2 innocuous_$2
2075
2076/* System header to define __stub macros and hopefully few prototypes,
2077    which can conflict with char $2 (); below.
2078    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2079    <limits.h> exists even on freestanding compilers.  */
2080
2081#ifdef __STDC__
2082# include <limits.h>
2083#else
2084# include <assert.h>
2085#endif
2086
2087#undef $2
2088
2089/* Override any GCC internal prototype to avoid an error.
2090   Use char because int might match the return type of a GCC
2091   builtin and then its argument prototype would still apply.  */
2092#ifdef __cplusplus
2093extern "C"
2094#endif
2095char $2 ();
2096/* The GNU C library defines this for functions which it implements
2097    to always fail with ENOSYS.  Some functions are actually named
2098    something starting with __ and the normal name is an alias.  */
2099#if defined __stub_$2 || defined __stub___$2
2100choke me
2101#endif
2102
2103int
2104main ()
2105{
2106return $2 ();
2107  ;
2108  return 0;
2109}
2110_ACEOF
2111if ac_fn_c_try_link "$LINENO"; then :
2112  eval "$3=yes"
2113else
2114  eval "$3=no"
2115fi
2116rm -f core conftest.err conftest.$ac_objext \
2117    conftest$ac_exeext conftest.$ac_ext
2118fi
2119eval ac_res=\$$3
2120	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2121$as_echo "$ac_res" >&6; }
2122  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2123
2124} # ac_fn_c_check_func
2125
2126# ac_fn_cxx_try_compile LINENO
2127# ----------------------------
2128# Try to compile conftest.$ac_ext, and return whether this succeeded.
2129ac_fn_cxx_try_compile ()
2130{
2131  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132  rm -f conftest.$ac_objext
2133  if { { ac_try="$ac_compile"
2134case "(($ac_try" in
2135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2136  *) ac_try_echo=$ac_try;;
2137esac
2138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2139$as_echo "$ac_try_echo"; } >&5
2140  (eval "$ac_compile") 2>conftest.err
2141  ac_status=$?
2142  if test -s conftest.err; then
2143    grep -v '^ *+' conftest.err >conftest.er1
2144    cat conftest.er1 >&5
2145    mv -f conftest.er1 conftest.err
2146  fi
2147  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2148  test $ac_status = 0; } && {
2149	 test -z "$ac_cxx_werror_flag" ||
2150	 test ! -s conftest.err
2151       } && test -s conftest.$ac_objext; then :
2152  ac_retval=0
2153else
2154  $as_echo "$as_me: failed program was:" >&5
2155sed 's/^/| /' conftest.$ac_ext >&5
2156
2157	ac_retval=1
2158fi
2159  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2160  as_fn_set_status $ac_retval
2161
2162} # ac_fn_cxx_try_compile
2163
2164# ac_fn_cxx_try_cpp LINENO
2165# ------------------------
2166# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2167ac_fn_cxx_try_cpp ()
2168{
2169  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2170  if { { ac_try="$ac_cpp conftest.$ac_ext"
2171case "(($ac_try" in
2172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2173  *) ac_try_echo=$ac_try;;
2174esac
2175eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2176$as_echo "$ac_try_echo"; } >&5
2177  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2178  ac_status=$?
2179  if test -s conftest.err; then
2180    grep -v '^ *+' conftest.err >conftest.er1
2181    cat conftest.er1 >&5
2182    mv -f conftest.er1 conftest.err
2183  fi
2184  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2185  test $ac_status = 0; } > conftest.i && {
2186	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2187	 test ! -s conftest.err
2188       }; then :
2189  ac_retval=0
2190else
2191  $as_echo "$as_me: failed program was:" >&5
2192sed 's/^/| /' conftest.$ac_ext >&5
2193
2194    ac_retval=1
2195fi
2196  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2197  as_fn_set_status $ac_retval
2198
2199} # ac_fn_cxx_try_cpp
2200
2201# ac_fn_cxx_try_link LINENO
2202# -------------------------
2203# Try to link conftest.$ac_ext, and return whether this succeeded.
2204ac_fn_cxx_try_link ()
2205{
2206  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207  rm -f conftest.$ac_objext conftest$ac_exeext
2208  if { { ac_try="$ac_link"
2209case "(($ac_try" in
2210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2211  *) ac_try_echo=$ac_try;;
2212esac
2213eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2214$as_echo "$ac_try_echo"; } >&5
2215  (eval "$ac_link") 2>conftest.err
2216  ac_status=$?
2217  if test -s conftest.err; then
2218    grep -v '^ *+' conftest.err >conftest.er1
2219    cat conftest.er1 >&5
2220    mv -f conftest.er1 conftest.err
2221  fi
2222  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2223  test $ac_status = 0; } && {
2224	 test -z "$ac_cxx_werror_flag" ||
2225	 test ! -s conftest.err
2226       } && test -s conftest$ac_exeext && {
2227	 test "$cross_compiling" = yes ||
2228	 test -x conftest$ac_exeext
2229       }; then :
2230  ac_retval=0
2231else
2232  $as_echo "$as_me: failed program was:" >&5
2233sed 's/^/| /' conftest.$ac_ext >&5
2234
2235	ac_retval=1
2236fi
2237  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2238  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2239  # interfere with the next link command; also delete a directory that is
2240  # left behind by Apple's compiler.  We do this before executing the actions.
2241  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2242  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2243  as_fn_set_status $ac_retval
2244
2245} # ac_fn_cxx_try_link
2246
2247# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2248# ---------------------------------------------------------
2249# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2250# the include files in INCLUDES and setting the cache variable VAR
2251# accordingly.
2252ac_fn_cxx_check_header_mongrel ()
2253{
2254  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2255  if eval \${$3+:} false; then :
2256  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2257$as_echo_n "checking for $2... " >&6; }
2258if eval \${$3+:} false; then :
2259  $as_echo_n "(cached) " >&6
2260fi
2261eval ac_res=\$$3
2262	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2263$as_echo "$ac_res" >&6; }
2264else
2265  # Is the header compilable?
2266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2267$as_echo_n "checking $2 usability... " >&6; }
2268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269/* end confdefs.h.  */
2270$4
2271#include <$2>
2272_ACEOF
2273if ac_fn_cxx_try_compile "$LINENO"; then :
2274  ac_header_compiler=yes
2275else
2276  ac_header_compiler=no
2277fi
2278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2280$as_echo "$ac_header_compiler" >&6; }
2281
2282# Is the header present?
2283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2284$as_echo_n "checking $2 presence... " >&6; }
2285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286/* end confdefs.h.  */
2287#include <$2>
2288_ACEOF
2289if ac_fn_cxx_try_cpp "$LINENO"; then :
2290  ac_header_preproc=yes
2291else
2292  ac_header_preproc=no
2293fi
2294rm -f conftest.err conftest.i conftest.$ac_ext
2295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2296$as_echo "$ac_header_preproc" >&6; }
2297
2298# So?  What about this header?
2299case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2300  yes:no: )
2301    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2302$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2303    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2304$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2305    ;;
2306  no:yes:* )
2307    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2308$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2309    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2310$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2311    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2312$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2313    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2314$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2315    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2316$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2317( $as_echo "## -------------------------------------------------- ##
2318## Report this to https://bugs.launchpad.net/gearmand ##
2319## -------------------------------------------------- ##"
2320     ) | sed "s/^/$as_me: WARNING:     /" >&2
2321    ;;
2322esac
2323  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2324$as_echo_n "checking for $2... " >&6; }
2325if eval \${$3+:} false; then :
2326  $as_echo_n "(cached) " >&6
2327else
2328  eval "$3=\$ac_header_compiler"
2329fi
2330eval ac_res=\$$3
2331	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2332$as_echo "$ac_res" >&6; }
2333fi
2334  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2335
2336} # ac_fn_cxx_check_header_mongrel
2337
2338# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2339# ---------------------------------------------
2340# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2341# accordingly.
2342ac_fn_c_check_decl ()
2343{
2344  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2345  as_decl_name=`echo $2|sed 's/ *(.*//'`
2346  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2347  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2348$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2349if eval \${$3+:} false; then :
2350  $as_echo_n "(cached) " >&6
2351else
2352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2353/* end confdefs.h.  */
2354$4
2355int
2356main ()
2357{
2358#ifndef $as_decl_name
2359#ifdef __cplusplus
2360  (void) $as_decl_use;
2361#else
2362  (void) $as_decl_name;
2363#endif
2364#endif
2365
2366  ;
2367  return 0;
2368}
2369_ACEOF
2370if ac_fn_c_try_compile "$LINENO"; then :
2371  eval "$3=yes"
2372else
2373  eval "$3=no"
2374fi
2375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2376fi
2377eval ac_res=\$$3
2378	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2379$as_echo "$ac_res" >&6; }
2380  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2381
2382} # ac_fn_c_check_decl
2383
2384# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2385# -------------------------------------------
2386# Tests whether TYPE exists after having included INCLUDES, setting cache
2387# variable VAR accordingly.
2388ac_fn_c_check_type ()
2389{
2390  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2391  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2392$as_echo_n "checking for $2... " >&6; }
2393if eval \${$3+:} false; then :
2394  $as_echo_n "(cached) " >&6
2395else
2396  eval "$3=no"
2397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2398/* end confdefs.h.  */
2399$4
2400int
2401main ()
2402{
2403if (sizeof ($2))
2404	 return 0;
2405  ;
2406  return 0;
2407}
2408_ACEOF
2409if ac_fn_c_try_compile "$LINENO"; then :
2410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411/* end confdefs.h.  */
2412$4
2413int
2414main ()
2415{
2416if (sizeof (($2)))
2417	    return 0;
2418  ;
2419  return 0;
2420}
2421_ACEOF
2422if ac_fn_c_try_compile "$LINENO"; then :
2423
2424else
2425  eval "$3=yes"
2426fi
2427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2428fi
2429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2430fi
2431eval ac_res=\$$3
2432	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2433$as_echo "$ac_res" >&6; }
2434  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2435
2436} # ac_fn_c_check_type
2437
2438# ac_fn_c_find_intX_t LINENO BITS VAR
2439# -----------------------------------
2440# Finds a signed integer type with width BITS, setting cache variable VAR
2441# accordingly.
2442ac_fn_c_find_intX_t ()
2443{
2444  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2445  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2446$as_echo_n "checking for int$2_t... " >&6; }
2447if eval \${$3+:} false; then :
2448  $as_echo_n "(cached) " >&6
2449else
2450  eval "$3=no"
2451     # Order is important - never check a type that is potentially smaller
2452     # than half of the expected target width.
2453     for ac_type in int$2_t 'int' 'long int' \
2454	 'long long int' 'short int' 'signed char'; do
2455       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2456/* end confdefs.h.  */
2457$ac_includes_default
2458	     enum { N = $2 / 2 - 1 };
2459int
2460main ()
2461{
2462static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2463test_array [0] = 0;
2464return test_array [0];
2465
2466  ;
2467  return 0;
2468}
2469_ACEOF
2470if ac_fn_c_try_compile "$LINENO"; then :
2471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2472/* end confdefs.h.  */
2473$ac_includes_default
2474	        enum { N = $2 / 2 - 1 };
2475int
2476main ()
2477{
2478static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2479		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2480test_array [0] = 0;
2481return test_array [0];
2482
2483  ;
2484  return 0;
2485}
2486_ACEOF
2487if ac_fn_c_try_compile "$LINENO"; then :
2488
2489else
2490  case $ac_type in #(
2491  int$2_t) :
2492    eval "$3=yes" ;; #(
2493  *) :
2494    eval "$3=\$ac_type" ;;
2495esac
2496fi
2497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2498fi
2499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2500       if eval test \"x\$"$3"\" = x"no"; then :
2501
2502else
2503  break
2504fi
2505     done
2506fi
2507eval ac_res=\$$3
2508	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2509$as_echo "$ac_res" >&6; }
2510  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2511
2512} # ac_fn_c_find_intX_t
2513
2514# ac_fn_c_find_uintX_t LINENO BITS VAR
2515# ------------------------------------
2516# Finds an unsigned integer type with width BITS, setting cache variable VAR
2517# accordingly.
2518ac_fn_c_find_uintX_t ()
2519{
2520  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2521  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2522$as_echo_n "checking for uint$2_t... " >&6; }
2523if eval \${$3+:} false; then :
2524  $as_echo_n "(cached) " >&6
2525else
2526  eval "$3=no"
2527     # Order is important - never check a type that is potentially smaller
2528     # than half of the expected target width.
2529     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2530	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2531       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532/* end confdefs.h.  */
2533$ac_includes_default
2534int
2535main ()
2536{
2537static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2538test_array [0] = 0;
2539return test_array [0];
2540
2541  ;
2542  return 0;
2543}
2544_ACEOF
2545if ac_fn_c_try_compile "$LINENO"; then :
2546  case $ac_type in #(
2547  uint$2_t) :
2548    eval "$3=yes" ;; #(
2549  *) :
2550    eval "$3=\$ac_type" ;;
2551esac
2552fi
2553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2554       if eval test \"x\$"$3"\" = x"no"; then :
2555
2556else
2557  break
2558fi
2559     done
2560fi
2561eval ac_res=\$$3
2562	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2563$as_echo "$ac_res" >&6; }
2564  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2565
2566} # ac_fn_c_find_uintX_t
2567
2568# ac_fn_cxx_try_run LINENO
2569# ------------------------
2570# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2571# that executables *can* be run.
2572ac_fn_cxx_try_run ()
2573{
2574  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2575  if { { ac_try="$ac_link"
2576case "(($ac_try" in
2577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578  *) ac_try_echo=$ac_try;;
2579esac
2580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2581$as_echo "$ac_try_echo"; } >&5
2582  (eval "$ac_link") 2>&5
2583  ac_status=$?
2584  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2585  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2586  { { case "(($ac_try" in
2587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588  *) ac_try_echo=$ac_try;;
2589esac
2590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2591$as_echo "$ac_try_echo"; } >&5
2592  (eval "$ac_try") 2>&5
2593  ac_status=$?
2594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2595  test $ac_status = 0; }; }; then :
2596  ac_retval=0
2597else
2598  $as_echo "$as_me: program exited with status $ac_status" >&5
2599       $as_echo "$as_me: failed program was:" >&5
2600sed 's/^/| /' conftest.$ac_ext >&5
2601
2602       ac_retval=$ac_status
2603fi
2604  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2605  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2606  as_fn_set_status $ac_retval
2607
2608} # ac_fn_cxx_try_run
2609cat >config.log <<_ACEOF
2610This file contains any messages produced by compilers while
2611running configure, to aid debugging if configure makes a mistake.
2612
2613It was created by gearmand $as_me 1.0.6, which was
2614generated by GNU Autoconf 2.69.  Invocation command line was
2615
2616  $ $0 $@
2617
2618_ACEOF
2619exec 5>>config.log
2620{
2621cat <<_ASUNAME
2622## --------- ##
2623## Platform. ##
2624## --------- ##
2625
2626hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2627uname -m = `(uname -m) 2>/dev/null || echo unknown`
2628uname -r = `(uname -r) 2>/dev/null || echo unknown`
2629uname -s = `(uname -s) 2>/dev/null || echo unknown`
2630uname -v = `(uname -v) 2>/dev/null || echo unknown`
2631
2632/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2633/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2634
2635/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2636/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2637/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2638/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2639/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2640/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2641/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2642
2643_ASUNAME
2644
2645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646for as_dir in $PATH
2647do
2648  IFS=$as_save_IFS
2649  test -z "$as_dir" && as_dir=.
2650    $as_echo "PATH: $as_dir"
2651  done
2652IFS=$as_save_IFS
2653
2654} >&5
2655
2656cat >&5 <<_ACEOF
2657
2658
2659## ----------- ##
2660## Core tests. ##
2661## ----------- ##
2662
2663_ACEOF
2664
2665
2666# Keep a trace of the command line.
2667# Strip out --no-create and --no-recursion so they do not pile up.
2668# Strip out --silent because we don't want to record it for future runs.
2669# Also quote any args containing shell meta-characters.
2670# Make two passes to allow for proper duplicate-argument suppression.
2671ac_configure_args=
2672ac_configure_args0=
2673ac_configure_args1=
2674ac_must_keep_next=false
2675for ac_pass in 1 2
2676do
2677  for ac_arg
2678  do
2679    case $ac_arg in
2680    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2681    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2682    | -silent | --silent | --silen | --sile | --sil)
2683      continue ;;
2684    *\'*)
2685      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2686    esac
2687    case $ac_pass in
2688    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2689    2)
2690      as_fn_append ac_configure_args1 " '$ac_arg'"
2691      if test $ac_must_keep_next = true; then
2692	ac_must_keep_next=false # Got value, back to normal.
2693      else
2694	case $ac_arg in
2695	  *=* | --config-cache | -C | -disable-* | --disable-* \
2696	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2697	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2698	  | -with-* | --with-* | -without-* | --without-* | --x)
2699	    case "$ac_configure_args0 " in
2700	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2701	    esac
2702	    ;;
2703	  -* ) ac_must_keep_next=true ;;
2704	esac
2705      fi
2706      as_fn_append ac_configure_args " '$ac_arg'"
2707      ;;
2708    esac
2709  done
2710done
2711{ ac_configure_args0=; unset ac_configure_args0;}
2712{ ac_configure_args1=; unset ac_configure_args1;}
2713
2714# When interrupted or exit'd, cleanup temporary files, and complete
2715# config.log.  We remove comments because anyway the quotes in there
2716# would cause problems or look ugly.
2717# WARNING: Use '\'' to represent an apostrophe within the trap.
2718# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2719trap 'exit_status=$?
2720  # Save into config.log some information that might help in debugging.
2721  {
2722    echo
2723
2724    $as_echo "## ---------------- ##
2725## Cache variables. ##
2726## ---------------- ##"
2727    echo
2728    # The following way of writing the cache mishandles newlines in values,
2729(
2730  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2731    eval ac_val=\$$ac_var
2732    case $ac_val in #(
2733    *${as_nl}*)
2734      case $ac_var in #(
2735      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2736$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2737      esac
2738      case $ac_var in #(
2739      _ | IFS | as_nl) ;; #(
2740      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2741      *) { eval $ac_var=; unset $ac_var;} ;;
2742      esac ;;
2743    esac
2744  done
2745  (set) 2>&1 |
2746    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2747    *${as_nl}ac_space=\ *)
2748      sed -n \
2749	"s/'\''/'\''\\\\'\'''\''/g;
2750	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2751      ;; #(
2752    *)
2753      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2754      ;;
2755    esac |
2756    sort
2757)
2758    echo
2759
2760    $as_echo "## ----------------- ##
2761## Output variables. ##
2762## ----------------- ##"
2763    echo
2764    for ac_var in $ac_subst_vars
2765    do
2766      eval ac_val=\$$ac_var
2767      case $ac_val in
2768      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2769      esac
2770      $as_echo "$ac_var='\''$ac_val'\''"
2771    done | sort
2772    echo
2773
2774    if test -n "$ac_subst_files"; then
2775      $as_echo "## ------------------- ##
2776## File substitutions. ##
2777## ------------------- ##"
2778      echo
2779      for ac_var in $ac_subst_files
2780      do
2781	eval ac_val=\$$ac_var
2782	case $ac_val in
2783	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2784	esac
2785	$as_echo "$ac_var='\''$ac_val'\''"
2786      done | sort
2787      echo
2788    fi
2789
2790    if test -s confdefs.h; then
2791      $as_echo "## ----------- ##
2792## confdefs.h. ##
2793## ----------- ##"
2794      echo
2795      cat confdefs.h
2796      echo
2797    fi
2798    test "$ac_signal" != 0 &&
2799      $as_echo "$as_me: caught signal $ac_signal"
2800    $as_echo "$as_me: exit $exit_status"
2801  } >&5
2802  rm -f core *.core core.conftest.* &&
2803    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2804    exit $exit_status
2805' 0
2806for ac_signal in 1 2 13 15; do
2807  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2808done
2809ac_signal=0
2810
2811# confdefs.h avoids OS command line length limits that DEFS can exceed.
2812rm -f -r conftest* confdefs.h
2813
2814$as_echo "/* confdefs.h */" > confdefs.h
2815
2816# Predefined preprocessor variables.
2817
2818cat >>confdefs.h <<_ACEOF
2819#define PACKAGE_NAME "$PACKAGE_NAME"
2820_ACEOF
2821
2822cat >>confdefs.h <<_ACEOF
2823#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2824_ACEOF
2825
2826cat >>confdefs.h <<_ACEOF
2827#define PACKAGE_VERSION "$PACKAGE_VERSION"
2828_ACEOF
2829
2830cat >>confdefs.h <<_ACEOF
2831#define PACKAGE_STRING "$PACKAGE_STRING"
2832_ACEOF
2833
2834cat >>confdefs.h <<_ACEOF
2835#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2836_ACEOF
2837
2838cat >>confdefs.h <<_ACEOF
2839#define PACKAGE_URL "$PACKAGE_URL"
2840_ACEOF
2841
2842
2843# Let the site file select an alternate cache file if it wants to.
2844# Prefer an explicitly selected file to automatically selected ones.
2845ac_site_file1=NONE
2846ac_site_file2=NONE
2847if test -n "$CONFIG_SITE"; then
2848  # We do not want a PATH search for config.site.
2849  case $CONFIG_SITE in #((
2850    -*)  ac_site_file1=./$CONFIG_SITE;;
2851    */*) ac_site_file1=$CONFIG_SITE;;
2852    *)   ac_site_file1=./$CONFIG_SITE;;
2853  esac
2854elif test "x$prefix" != xNONE; then
2855  ac_site_file1=$prefix/share/config.site
2856  ac_site_file2=$prefix/etc/config.site
2857else
2858  ac_site_file1=$ac_default_prefix/share/config.site
2859  ac_site_file2=$ac_default_prefix/etc/config.site
2860fi
2861for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2862do
2863  test "x$ac_site_file" = xNONE && continue
2864  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2865    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2866$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2867    sed 's/^/| /' "$ac_site_file" >&5
2868    . "$ac_site_file" \
2869      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2871as_fn_error $? "failed to load site script $ac_site_file
2872See \`config.log' for more details" "$LINENO" 5; }
2873  fi
2874done
2875
2876if test -r "$cache_file"; then
2877  # Some versions of bash will fail to source /dev/null (special files
2878  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2879  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2880    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2881$as_echo "$as_me: loading cache $cache_file" >&6;}
2882    case $cache_file in
2883      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2884      *)                      . "./$cache_file";;
2885    esac
2886  fi
2887else
2888  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2889$as_echo "$as_me: creating cache $cache_file" >&6;}
2890  >$cache_file
2891fi
2892
2893as_fn_append ac_header_list " arpa/inet.h"
2894as_fn_append ac_header_list " errno.h"
2895as_fn_append ac_header_list " execinfo.h"
2896as_fn_append ac_header_list " fcntl.h"
2897as_fn_append ac_header_list " features.h"
2898as_fn_append ac_header_list " fnmatch.h"
2899as_fn_append ac_header_list " getopt.h"
2900as_fn_append ac_header_list " inttypes.h"
2901as_fn_append ac_header_list " limits.h"
2902as_fn_append ac_header_list " mach/mach.h"
2903as_fn_append ac_header_list " netdb.h"
2904as_fn_append ac_header_list " netinet/in.h"
2905as_fn_append ac_header_list " netinet/tcp.h"
2906as_fn_append ac_header_list " poll.h"
2907as_fn_append ac_header_list " pwd.h"
2908as_fn_append ac_header_list " signal.h"
2909as_fn_append ac_header_list " spawn.h"
2910as_fn_append ac_header_list " stdarg.h"
2911as_fn_append ac_header_list " stddef.h"
2912as_fn_append ac_header_list " stdint.h"
2913as_fn_append ac_header_list " stdio.h"
2914as_fn_append ac_header_list " stdlib.h"
2915as_fn_append ac_header_list " string.h"
2916as_fn_append ac_header_list " strings.h"
2917as_fn_append ac_header_list " sys/resource.h"
2918as_fn_append ac_header_list " sys/socket.h"
2919as_fn_append ac_header_list " sys/stat.h"
2920as_fn_append ac_header_list " sys/time.h"
2921as_fn_append ac_header_list " sys/types.h"
2922as_fn_append ac_header_list " sys/utsname.h"
2923as_fn_append ac_header_list " sys/wait.h"
2924as_fn_append ac_header_list " syslog.h"
2925as_fn_append ac_header_list " unistd.h"
2926as_fn_append ac_header_list " winsock2.h"
2927as_fn_append ac_header_list " libmemcached-1.0/types/return.h"
2928# Check that the precious variables saved in the cache have kept the same
2929# value.
2930ac_cache_corrupted=false
2931for ac_var in $ac_precious_vars; do
2932  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2933  eval ac_new_set=\$ac_env_${ac_var}_set
2934  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2935  eval ac_new_val=\$ac_env_${ac_var}_value
2936  case $ac_old_set,$ac_new_set in
2937    set,)
2938      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2939$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2940      ac_cache_corrupted=: ;;
2941    ,set)
2942      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2943$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2944      ac_cache_corrupted=: ;;
2945    ,);;
2946    *)
2947      if test "x$ac_old_val" != "x$ac_new_val"; then
2948	# differences in whitespace do not lead to failure.
2949	ac_old_val_w=`echo x $ac_old_val`
2950	ac_new_val_w=`echo x $ac_new_val`
2951	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2952	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2953$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2954	  ac_cache_corrupted=:
2955	else
2956	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2957$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2958	  eval $ac_var=\$ac_old_val
2959	fi
2960	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2961$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2962	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2963$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2964      fi;;
2965  esac
2966  # Pass precious variables to config.status.
2967  if test "$ac_new_set" = set; then
2968    case $ac_new_val in
2969    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2970    *) ac_arg=$ac_var=$ac_new_val ;;
2971    esac
2972    case " $ac_configure_args " in
2973      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2974      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2975    esac
2976  fi
2977done
2978if $ac_cache_corrupted; then
2979  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2980$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2981  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2982$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2983  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2984fi
2985## -------------------- ##
2986## Main body of script. ##
2987## -------------------- ##
2988
2989ac_ext=c
2990ac_cpp='$CPP $CPPFLAGS'
2991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993ac_compiler_gnu=$ac_cv_c_compiler_gnu
2994
2995
2996ac_aux_dir=
2997for ac_dir in build-aux "$srcdir"/build-aux; do
2998  if test -f "$ac_dir/install-sh"; then
2999    ac_aux_dir=$ac_dir
3000    ac_install_sh="$ac_aux_dir/install-sh -c"
3001    break
3002  elif test -f "$ac_dir/install.sh"; then
3003    ac_aux_dir=$ac_dir
3004    ac_install_sh="$ac_aux_dir/install.sh -c"
3005    break
3006  elif test -f "$ac_dir/shtool"; then
3007    ac_aux_dir=$ac_dir
3008    ac_install_sh="$ac_aux_dir/shtool install -c"
3009    break
3010  fi
3011done
3012if test -z "$ac_aux_dir"; then
3013  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3014fi
3015
3016# These three variables are undocumented and unsupported,
3017# and are intended to be withdrawn in a future Autoconf release.
3018# They can cause serious problems if a builder's source tree is in a directory
3019# whose full name contains unusual characters.
3020ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3021ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3022ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3023
3024
3025
3026
3027# Make sure we can run config.sub.
3028$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3029  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3030
3031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3032$as_echo_n "checking build system type... " >&6; }
3033if ${ac_cv_build+:} false; then :
3034  $as_echo_n "(cached) " >&6
3035else
3036  ac_build_alias=$build_alias
3037test "x$ac_build_alias" = x &&
3038  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3039test "x$ac_build_alias" = x &&
3040  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3041ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3042  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3043
3044fi
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3046$as_echo "$ac_cv_build" >&6; }
3047case $ac_cv_build in
3048*-*-*) ;;
3049*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3050esac
3051build=$ac_cv_build
3052ac_save_IFS=$IFS; IFS='-'
3053set x $ac_cv_build
3054shift
3055build_cpu=$1
3056build_vendor=$2
3057shift; shift
3058# Remember, the first character of IFS is used to create $*,
3059# except with old shells:
3060build_os=$*
3061IFS=$ac_save_IFS
3062case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3063
3064
3065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3066$as_echo_n "checking host system type... " >&6; }
3067if ${ac_cv_host+:} false; then :
3068  $as_echo_n "(cached) " >&6
3069else
3070  if test "x$host_alias" = x; then
3071  ac_cv_host=$ac_cv_build
3072else
3073  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3074    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3075fi
3076
3077fi
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3079$as_echo "$ac_cv_host" >&6; }
3080case $ac_cv_host in
3081*-*-*) ;;
3082*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3083esac
3084host=$ac_cv_host
3085ac_save_IFS=$IFS; IFS='-'
3086set x $ac_cv_host
3087shift
3088host_cpu=$1
3089host_vendor=$2
3090shift; shift
3091# Remember, the first character of IFS is used to create $*,
3092# except with old shells:
3093host_os=$*
3094IFS=$ac_save_IFS
3095case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3096
3097
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3099$as_echo_n "checking target system type... " >&6; }
3100if ${ac_cv_target+:} false; then :
3101  $as_echo_n "(cached) " >&6
3102else
3103  if test "x$target_alias" = x; then
3104  ac_cv_target=$ac_cv_host
3105else
3106  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3107    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3108fi
3109
3110fi
3111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3112$as_echo "$ac_cv_target" >&6; }
3113case $ac_cv_target in
3114*-*-*) ;;
3115*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3116esac
3117target=$ac_cv_target
3118ac_save_IFS=$IFS; IFS='-'
3119set x $ac_cv_target
3120shift
3121target_cpu=$1
3122target_vendor=$2
3123shift; shift
3124# Remember, the first character of IFS is used to create $*,
3125# except with old shells:
3126target_os=$*
3127IFS=$ac_save_IFS
3128case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3129
3130
3131# The aliases save the names the user supplied, while $host etc.
3132# will get canonicalized.
3133test -n "$target_alias" &&
3134  test "$program_prefix$program_suffix$program_transform_name" = \
3135    NONENONEs,x,x, &&
3136  program_prefix=${target_alias}-
3137test "$program_prefix" != NONE &&
3138  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3139# Use a double $ so make ignores it.
3140test "$program_suffix" != NONE &&
3141  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3142# Double any \ or $.
3143# By default was `s,x,x', remove it if useless.
3144ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3145program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3146
3147ac_ext=c
3148ac_cpp='$CPP $CPPFLAGS'
3149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3151ac_compiler_gnu=$ac_cv_c_compiler_gnu
3152if test -n "$ac_tool_prefix"; then
3153  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3154set dummy ${ac_tool_prefix}gcc; ac_word=$2
3155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3156$as_echo_n "checking for $ac_word... " >&6; }
3157if ${ac_cv_prog_CC+:} false; then :
3158  $as_echo_n "(cached) " >&6
3159else
3160  if test -n "$CC"; then
3161  ac_cv_prog_CC="$CC" # Let the user override the test.
3162else
3163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164for as_dir in $PATH
3165do
3166  IFS=$as_save_IFS
3167  test -z "$as_dir" && as_dir=.
3168    for ac_exec_ext in '' $ac_executable_extensions; do
3169  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3170    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3171    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3172    break 2
3173  fi
3174done
3175  done
3176IFS=$as_save_IFS
3177
3178fi
3179fi
3180CC=$ac_cv_prog_CC
3181if test -n "$CC"; then
3182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3183$as_echo "$CC" >&6; }
3184else
3185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186$as_echo "no" >&6; }
3187fi
3188
3189
3190fi
3191if test -z "$ac_cv_prog_CC"; then
3192  ac_ct_CC=$CC
3193  # Extract the first word of "gcc", so it can be a program name with args.
3194set dummy gcc; ac_word=$2
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196$as_echo_n "checking for $ac_word... " >&6; }
3197if ${ac_cv_prog_ac_ct_CC+:} false; then :
3198  $as_echo_n "(cached) " >&6
3199else
3200  if test -n "$ac_ct_CC"; then
3201  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3202else
3203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204for as_dir in $PATH
3205do
3206  IFS=$as_save_IFS
3207  test -z "$as_dir" && as_dir=.
3208    for ac_exec_ext in '' $ac_executable_extensions; do
3209  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3210    ac_cv_prog_ac_ct_CC="gcc"
3211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3212    break 2
3213  fi
3214done
3215  done
3216IFS=$as_save_IFS
3217
3218fi
3219fi
3220ac_ct_CC=$ac_cv_prog_ac_ct_CC
3221if test -n "$ac_ct_CC"; then
3222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3223$as_echo "$ac_ct_CC" >&6; }
3224else
3225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226$as_echo "no" >&6; }
3227fi
3228
3229  if test "x$ac_ct_CC" = x; then
3230    CC=""
3231  else
3232    case $cross_compiling:$ac_tool_warned in
3233yes:)
3234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3236ac_tool_warned=yes ;;
3237esac
3238    CC=$ac_ct_CC
3239  fi
3240else
3241  CC="$ac_cv_prog_CC"
3242fi
3243
3244if test -z "$CC"; then
3245          if test -n "$ac_tool_prefix"; then
3246    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3247set dummy ${ac_tool_prefix}cc; ac_word=$2
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3249$as_echo_n "checking for $ac_word... " >&6; }
3250if ${ac_cv_prog_CC+:} false; then :
3251  $as_echo_n "(cached) " >&6
3252else
3253  if test -n "$CC"; then
3254  ac_cv_prog_CC="$CC" # Let the user override the test.
3255else
3256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257for as_dir in $PATH
3258do
3259  IFS=$as_save_IFS
3260  test -z "$as_dir" && as_dir=.
3261    for ac_exec_ext in '' $ac_executable_extensions; do
3262  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3263    ac_cv_prog_CC="${ac_tool_prefix}cc"
3264    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3265    break 2
3266  fi
3267done
3268  done
3269IFS=$as_save_IFS
3270
3271fi
3272fi
3273CC=$ac_cv_prog_CC
3274if test -n "$CC"; then
3275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3276$as_echo "$CC" >&6; }
3277else
3278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279$as_echo "no" >&6; }
3280fi
3281
3282
3283  fi
3284fi
3285if test -z "$CC"; then
3286  # Extract the first word of "cc", so it can be a program name with args.
3287set dummy cc; ac_word=$2
3288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3289$as_echo_n "checking for $ac_word... " >&6; }
3290if ${ac_cv_prog_CC+:} false; then :
3291  $as_echo_n "(cached) " >&6
3292else
3293  if test -n "$CC"; then
3294  ac_cv_prog_CC="$CC" # Let the user override the test.
3295else
3296  ac_prog_rejected=no
3297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298for as_dir in $PATH
3299do
3300  IFS=$as_save_IFS
3301  test -z "$as_dir" && as_dir=.
3302    for ac_exec_ext in '' $ac_executable_extensions; do
3303  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3304    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3305       ac_prog_rejected=yes
3306       continue
3307     fi
3308    ac_cv_prog_CC="cc"
3309    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3310    break 2
3311  fi
3312done
3313  done
3314IFS=$as_save_IFS
3315
3316if test $ac_prog_rejected = yes; then
3317  # We found a bogon in the path, so make sure we never use it.
3318  set dummy $ac_cv_prog_CC
3319  shift
3320  if test $# != 0; then
3321    # We chose a different compiler from the bogus one.
3322    # However, it has the same basename, so the bogon will be chosen
3323    # first if we set CC to just the basename; use the full file name.
3324    shift
3325    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3326  fi
3327fi
3328fi
3329fi
3330CC=$ac_cv_prog_CC
3331if test -n "$CC"; then
3332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3333$as_echo "$CC" >&6; }
3334else
3335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336$as_echo "no" >&6; }
3337fi
3338
3339
3340fi
3341if test -z "$CC"; then
3342  if test -n "$ac_tool_prefix"; then
3343  for ac_prog in cl.exe
3344  do
3345    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3346set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348$as_echo_n "checking for $ac_word... " >&6; }
3349if ${ac_cv_prog_CC+:} false; then :
3350  $as_echo_n "(cached) " >&6
3351else
3352  if test -n "$CC"; then
3353  ac_cv_prog_CC="$CC" # Let the user override the test.
3354else
3355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356for as_dir in $PATH
3357do
3358  IFS=$as_save_IFS
3359  test -z "$as_dir" && as_dir=.
3360    for ac_exec_ext in '' $ac_executable_extensions; do
3361  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3362    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3363    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364    break 2
3365  fi
3366done
3367  done
3368IFS=$as_save_IFS
3369
3370fi
3371fi
3372CC=$ac_cv_prog_CC
3373if test -n "$CC"; then
3374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3375$as_echo "$CC" >&6; }
3376else
3377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378$as_echo "no" >&6; }
3379fi
3380
3381
3382    test -n "$CC" && break
3383  done
3384fi
3385if test -z "$CC"; then
3386  ac_ct_CC=$CC
3387  for ac_prog in cl.exe
3388do
3389  # Extract the first word of "$ac_prog", so it can be a program name with args.
3390set dummy $ac_prog; ac_word=$2
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3392$as_echo_n "checking for $ac_word... " >&6; }
3393if ${ac_cv_prog_ac_ct_CC+:} false; then :
3394  $as_echo_n "(cached) " >&6
3395else
3396  if test -n "$ac_ct_CC"; then
3397  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3398else
3399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400for as_dir in $PATH
3401do
3402  IFS=$as_save_IFS
3403  test -z "$as_dir" && as_dir=.
3404    for ac_exec_ext in '' $ac_executable_extensions; do
3405  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3406    ac_cv_prog_ac_ct_CC="$ac_prog"
3407    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3408    break 2
3409  fi
3410done
3411  done
3412IFS=$as_save_IFS
3413
3414fi
3415fi
3416ac_ct_CC=$ac_cv_prog_ac_ct_CC
3417if test -n "$ac_ct_CC"; then
3418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3419$as_echo "$ac_ct_CC" >&6; }
3420else
3421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422$as_echo "no" >&6; }
3423fi
3424
3425
3426  test -n "$ac_ct_CC" && break
3427done
3428
3429  if test "x$ac_ct_CC" = x; then
3430    CC=""
3431  else
3432    case $cross_compiling:$ac_tool_warned in
3433yes:)
3434{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3435$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3436ac_tool_warned=yes ;;
3437esac
3438    CC=$ac_ct_CC
3439  fi
3440fi
3441
3442fi
3443
3444
3445test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3447as_fn_error $? "no acceptable C compiler found in \$PATH
3448See \`config.log' for more details" "$LINENO" 5; }
3449
3450# Provide some information about the compiler.
3451$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3452set X $ac_compile
3453ac_compiler=$2
3454for ac_option in --version -v -V -qversion; do
3455  { { ac_try="$ac_compiler $ac_option >&5"
3456case "(($ac_try" in
3457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458  *) ac_try_echo=$ac_try;;
3459esac
3460eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461$as_echo "$ac_try_echo"; } >&5
3462  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3463  ac_status=$?
3464  if test -s conftest.err; then
3465    sed '10a\
3466... rest of stderr output deleted ...
3467         10q' conftest.err >conftest.er1
3468    cat conftest.er1 >&5
3469  fi
3470  rm -f conftest.er1 conftest.err
3471  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3472  test $ac_status = 0; }
3473done
3474
3475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476/* end confdefs.h.  */
3477
3478int
3479main ()
3480{
3481
3482  ;
3483  return 0;
3484}
3485_ACEOF
3486ac_clean_files_save=$ac_clean_files
3487ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3488# Try to create an executable without -o first, disregard a.out.
3489# It will help us diagnose broken compilers, and finding out an intuition
3490# of exeext.
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3492$as_echo_n "checking whether the C compiler works... " >&6; }
3493ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3494
3495# The possible output files:
3496ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3497
3498ac_rmfiles=
3499for ac_file in $ac_files
3500do
3501  case $ac_file in
3502    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3503    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3504  esac
3505done
3506rm -f $ac_rmfiles
3507
3508if { { ac_try="$ac_link_default"
3509case "(($ac_try" in
3510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511  *) ac_try_echo=$ac_try;;
3512esac
3513eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3514$as_echo "$ac_try_echo"; } >&5
3515  (eval "$ac_link_default") 2>&5
3516  ac_status=$?
3517  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3518  test $ac_status = 0; }; then :
3519  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3520# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3521# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3522# so that the user can short-circuit this test for compilers unknown to
3523# Autoconf.
3524for ac_file in $ac_files ''
3525do
3526  test -f "$ac_file" || continue
3527  case $ac_file in
3528    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3529	;;
3530    [ab].out )
3531	# We found the default executable, but exeext='' is most
3532	# certainly right.
3533	break;;
3534    *.* )
3535	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3536	then :; else
3537	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3538	fi
3539	# We set ac_cv_exeext here because the later test for it is not
3540	# safe: cross compilers may not add the suffix if given an `-o'
3541	# argument, so we may need to know it at that point already.
3542	# Even if this section looks crufty: it has the advantage of
3543	# actually working.
3544	break;;
3545    * )
3546	break;;
3547  esac
3548done
3549test "$ac_cv_exeext" = no && ac_cv_exeext=
3550
3551else
3552  ac_file=''
3553fi
3554if test -z "$ac_file"; then :
3555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3556$as_echo "no" >&6; }
3557$as_echo "$as_me: failed program was:" >&5
3558sed 's/^/| /' conftest.$ac_ext >&5
3559
3560{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3562as_fn_error 77 "C compiler cannot create executables
3563See \`config.log' for more details" "$LINENO" 5; }
3564else
3565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3566$as_echo "yes" >&6; }
3567fi
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3569$as_echo_n "checking for C compiler default output file name... " >&6; }
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3571$as_echo "$ac_file" >&6; }
3572ac_exeext=$ac_cv_exeext
3573
3574rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3575ac_clean_files=$ac_clean_files_save
3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3577$as_echo_n "checking for suffix of executables... " >&6; }
3578if { { ac_try="$ac_link"
3579case "(($ac_try" in
3580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581  *) ac_try_echo=$ac_try;;
3582esac
3583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3584$as_echo "$ac_try_echo"; } >&5
3585  (eval "$ac_link") 2>&5
3586  ac_status=$?
3587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3588  test $ac_status = 0; }; then :
3589  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3590# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3591# work properly (i.e., refer to `conftest.exe'), while it won't with
3592# `rm'.
3593for ac_file in conftest.exe conftest conftest.*; do
3594  test -f "$ac_file" || continue
3595  case $ac_file in
3596    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3597    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3598	  break;;
3599    * ) break;;
3600  esac
3601done
3602else
3603  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3604$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3605as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3606See \`config.log' for more details" "$LINENO" 5; }
3607fi
3608rm -f conftest conftest$ac_cv_exeext
3609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3610$as_echo "$ac_cv_exeext" >&6; }
3611
3612rm -f conftest.$ac_ext
3613EXEEXT=$ac_cv_exeext
3614ac_exeext=$EXEEXT
3615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616/* end confdefs.h.  */
3617#include <stdio.h>
3618int
3619main ()
3620{
3621FILE *f = fopen ("conftest.out", "w");
3622 return ferror (f) || fclose (f) != 0;
3623
3624  ;
3625  return 0;
3626}
3627_ACEOF
3628ac_clean_files="$ac_clean_files conftest.out"
3629# Check that the compiler produces executables we can run.  If not, either
3630# the compiler is broken, or we cross compile.
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3632$as_echo_n "checking whether we are cross compiling... " >&6; }
3633if test "$cross_compiling" != yes; then
3634  { { ac_try="$ac_link"
3635case "(($ac_try" in
3636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637  *) ac_try_echo=$ac_try;;
3638esac
3639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3640$as_echo "$ac_try_echo"; } >&5
3641  (eval "$ac_link") 2>&5
3642  ac_status=$?
3643  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3644  test $ac_status = 0; }
3645  if { ac_try='./conftest$ac_cv_exeext'
3646  { { case "(($ac_try" in
3647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648  *) ac_try_echo=$ac_try;;
3649esac
3650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3651$as_echo "$ac_try_echo"; } >&5
3652  (eval "$ac_try") 2>&5
3653  ac_status=$?
3654  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3655  test $ac_status = 0; }; }; then
3656    cross_compiling=no
3657  else
3658    if test "$cross_compiling" = maybe; then
3659	cross_compiling=yes
3660    else
3661	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3662$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3663as_fn_error $? "cannot run C compiled programs.
3664If you meant to cross compile, use \`--host'.
3665See \`config.log' for more details" "$LINENO" 5; }
3666    fi
3667  fi
3668fi
3669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3670$as_echo "$cross_compiling" >&6; }
3671
3672rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3673ac_clean_files=$ac_clean_files_save
3674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3675$as_echo_n "checking for suffix of object files... " >&6; }
3676if ${ac_cv_objext+:} false; then :
3677  $as_echo_n "(cached) " >&6
3678else
3679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680/* end confdefs.h.  */
3681
3682int
3683main ()
3684{
3685
3686  ;
3687  return 0;
3688}
3689_ACEOF
3690rm -f conftest.o conftest.obj
3691if { { ac_try="$ac_compile"
3692case "(($ac_try" in
3693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694  *) ac_try_echo=$ac_try;;
3695esac
3696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3697$as_echo "$ac_try_echo"; } >&5
3698  (eval "$ac_compile") 2>&5
3699  ac_status=$?
3700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3701  test $ac_status = 0; }; then :
3702  for ac_file in conftest.o conftest.obj conftest.*; do
3703  test -f "$ac_file" || continue;
3704  case $ac_file in
3705    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3706    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3707       break;;
3708  esac
3709done
3710else
3711  $as_echo "$as_me: failed program was:" >&5
3712sed 's/^/| /' conftest.$ac_ext >&5
3713
3714{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3716as_fn_error $? "cannot compute suffix of object files: cannot compile
3717See \`config.log' for more details" "$LINENO" 5; }
3718fi
3719rm -f conftest.$ac_cv_objext conftest.$ac_ext
3720fi
3721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3722$as_echo "$ac_cv_objext" >&6; }
3723OBJEXT=$ac_cv_objext
3724ac_objext=$OBJEXT
3725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3726$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3727if ${ac_cv_c_compiler_gnu+:} false; then :
3728  $as_echo_n "(cached) " >&6
3729else
3730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731/* end confdefs.h.  */
3732
3733int
3734main ()
3735{
3736#ifndef __GNUC__
3737       choke me
3738#endif
3739
3740  ;
3741  return 0;
3742}
3743_ACEOF
3744if ac_fn_c_try_compile "$LINENO"; then :
3745  ac_compiler_gnu=yes
3746else
3747  ac_compiler_gnu=no
3748fi
3749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750ac_cv_c_compiler_gnu=$ac_compiler_gnu
3751
3752fi
3753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3754$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3755if test $ac_compiler_gnu = yes; then
3756  GCC=yes
3757else
3758  GCC=
3759fi
3760ac_test_CFLAGS=${CFLAGS+set}
3761ac_save_CFLAGS=$CFLAGS
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3763$as_echo_n "checking whether $CC accepts -g... " >&6; }
3764if ${ac_cv_prog_cc_g+:} false; then :
3765  $as_echo_n "(cached) " >&6
3766else
3767  ac_save_c_werror_flag=$ac_c_werror_flag
3768   ac_c_werror_flag=yes
3769   ac_cv_prog_cc_g=no
3770   CFLAGS="-g"
3771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772/* end confdefs.h.  */
3773
3774int
3775main ()
3776{
3777
3778  ;
3779  return 0;
3780}
3781_ACEOF
3782if ac_fn_c_try_compile "$LINENO"; then :
3783  ac_cv_prog_cc_g=yes
3784else
3785  CFLAGS=""
3786      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787/* end confdefs.h.  */
3788
3789int
3790main ()
3791{
3792
3793  ;
3794  return 0;
3795}
3796_ACEOF
3797if ac_fn_c_try_compile "$LINENO"; then :
3798
3799else
3800  ac_c_werror_flag=$ac_save_c_werror_flag
3801	 CFLAGS="-g"
3802	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803/* end confdefs.h.  */
3804
3805int
3806main ()
3807{
3808
3809  ;
3810  return 0;
3811}
3812_ACEOF
3813if ac_fn_c_try_compile "$LINENO"; then :
3814  ac_cv_prog_cc_g=yes
3815fi
3816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817fi
3818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819fi
3820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3821   ac_c_werror_flag=$ac_save_c_werror_flag
3822fi
3823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3824$as_echo "$ac_cv_prog_cc_g" >&6; }
3825if test "$ac_test_CFLAGS" = set; then
3826  CFLAGS=$ac_save_CFLAGS
3827elif test $ac_cv_prog_cc_g = yes; then
3828  if test "$GCC" = yes; then
3829    CFLAGS="-g -O2"
3830  else
3831    CFLAGS="-g"
3832  fi
3833else
3834  if test "$GCC" = yes; then
3835    CFLAGS="-O2"
3836  else
3837    CFLAGS=
3838  fi
3839fi
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3841$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3842if ${ac_cv_prog_cc_c89+:} false; then :
3843  $as_echo_n "(cached) " >&6
3844else
3845  ac_cv_prog_cc_c89=no
3846ac_save_CC=$CC
3847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848/* end confdefs.h.  */
3849#include <stdarg.h>
3850#include <stdio.h>
3851struct stat;
3852/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3853struct buf { int x; };
3854FILE * (*rcsopen) (struct buf *, struct stat *, int);
3855static char *e (p, i)
3856     char **p;
3857     int i;
3858{
3859  return p[i];
3860}
3861static char *f (char * (*g) (char **, int), char **p, ...)
3862{
3863  char *s;
3864  va_list v;
3865  va_start (v,p);
3866  s = g (p, va_arg (v,int));
3867  va_end (v);
3868  return s;
3869}
3870
3871/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3872   function prototypes and stuff, but not '\xHH' hex character constants.
3873   These don't provoke an error unfortunately, instead are silently treated
3874   as 'x'.  The following induces an error, until -std is added to get
3875   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3876   array size at least.  It's necessary to write '\x00'==0 to get something
3877   that's true only with -std.  */
3878int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3879
3880/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3881   inside strings and character constants.  */
3882#define FOO(x) 'x'
3883int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3884
3885int test (int i, double x);
3886struct s1 {int (*f) (int a);};
3887struct s2 {int (*f) (double a);};
3888int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3889int argc;
3890char **argv;
3891int
3892main ()
3893{
3894return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3895  ;
3896  return 0;
3897}
3898_ACEOF
3899for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3900	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3901do
3902  CC="$ac_save_CC $ac_arg"
3903  if ac_fn_c_try_compile "$LINENO"; then :
3904  ac_cv_prog_cc_c89=$ac_arg
3905fi
3906rm -f core conftest.err conftest.$ac_objext
3907  test "x$ac_cv_prog_cc_c89" != "xno" && break
3908done
3909rm -f conftest.$ac_ext
3910CC=$ac_save_CC
3911
3912fi
3913# AC_CACHE_VAL
3914case "x$ac_cv_prog_cc_c89" in
3915  x)
3916    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3917$as_echo "none needed" >&6; } ;;
3918  xno)
3919    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3920$as_echo "unsupported" >&6; } ;;
3921  *)
3922    CC="$CC $ac_cv_prog_cc_c89"
3923    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3924$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3925esac
3926if test "x$ac_cv_prog_cc_c89" != xno; then :
3927
3928fi
3929
3930ac_ext=c
3931ac_cpp='$CPP $CPPFLAGS'
3932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3934ac_compiler_gnu=$ac_cv_c_compiler_gnu
3935
3936
3937ac_ext=c
3938ac_cpp='$CPP $CPPFLAGS'
3939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3943$as_echo_n "checking how to run the C preprocessor... " >&6; }
3944# On Suns, sometimes $CPP names a directory.
3945if test -n "$CPP" && test -d "$CPP"; then
3946  CPP=
3947fi
3948if test -z "$CPP"; then
3949  if ${ac_cv_prog_CPP+:} false; then :
3950  $as_echo_n "(cached) " >&6
3951else
3952      # Double quotes because CPP needs to be expanded
3953    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3954    do
3955      ac_preproc_ok=false
3956for ac_c_preproc_warn_flag in '' yes
3957do
3958  # Use a header file that comes with gcc, so configuring glibc
3959  # with a fresh cross-compiler works.
3960  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3961  # <limits.h> exists even on freestanding compilers.
3962  # On the NeXT, cc -E runs the code through the compiler's parser,
3963  # not just through cpp. "Syntax error" is here to catch this case.
3964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965/* end confdefs.h.  */
3966#ifdef __STDC__
3967# include <limits.h>
3968#else
3969# include <assert.h>
3970#endif
3971		     Syntax error
3972_ACEOF
3973if ac_fn_c_try_cpp "$LINENO"; then :
3974
3975else
3976  # Broken: fails on valid input.
3977continue
3978fi
3979rm -f conftest.err conftest.i conftest.$ac_ext
3980
3981  # OK, works on sane cases.  Now check whether nonexistent headers
3982  # can be detected and how.
3983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984/* end confdefs.h.  */
3985#include <ac_nonexistent.h>
3986_ACEOF
3987if ac_fn_c_try_cpp "$LINENO"; then :
3988  # Broken: success on invalid input.
3989continue
3990else
3991  # Passes both tests.
3992ac_preproc_ok=:
3993break
3994fi
3995rm -f conftest.err conftest.i conftest.$ac_ext
3996
3997done
3998# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3999rm -f conftest.i conftest.err conftest.$ac_ext
4000if $ac_preproc_ok; then :
4001  break
4002fi
4003
4004    done
4005    ac_cv_prog_CPP=$CPP
4006
4007fi
4008  CPP=$ac_cv_prog_CPP
4009else
4010  ac_cv_prog_CPP=$CPP
4011fi
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4013$as_echo "$CPP" >&6; }
4014ac_preproc_ok=false
4015for ac_c_preproc_warn_flag in '' yes
4016do
4017  # Use a header file that comes with gcc, so configuring glibc
4018  # with a fresh cross-compiler works.
4019  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4020  # <limits.h> exists even on freestanding compilers.
4021  # On the NeXT, cc -E runs the code through the compiler's parser,
4022  # not just through cpp. "Syntax error" is here to catch this case.
4023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024/* end confdefs.h.  */
4025#ifdef __STDC__
4026# include <limits.h>
4027#else
4028# include <assert.h>
4029#endif
4030		     Syntax error
4031_ACEOF
4032if ac_fn_c_try_cpp "$LINENO"; then :
4033
4034else
4035  # Broken: fails on valid input.
4036continue
4037fi
4038rm -f conftest.err conftest.i conftest.$ac_ext
4039
4040  # OK, works on sane cases.  Now check whether nonexistent headers
4041  # can be detected and how.
4042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043/* end confdefs.h.  */
4044#include <ac_nonexistent.h>
4045_ACEOF
4046if ac_fn_c_try_cpp "$LINENO"; then :
4047  # Broken: success on invalid input.
4048continue
4049else
4050  # Passes both tests.
4051ac_preproc_ok=:
4052break
4053fi
4054rm -f conftest.err conftest.i conftest.$ac_ext
4055
4056done
4057# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4058rm -f conftest.i conftest.err conftest.$ac_ext
4059if $ac_preproc_ok; then :
4060
4061else
4062  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4064as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4065See \`config.log' for more details" "$LINENO" 5; }
4066fi
4067
4068ac_ext=c
4069ac_cpp='$CPP $CPPFLAGS'
4070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072ac_compiler_gnu=$ac_cv_c_compiler_gnu
4073
4074
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4076$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4077if ${ac_cv_path_GREP+:} false; then :
4078  $as_echo_n "(cached) " >&6
4079else
4080  if test -z "$GREP"; then
4081  ac_path_GREP_found=false
4082  # Loop through the user's path and test for each of PROGNAME-LIST
4083  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4085do
4086  IFS=$as_save_IFS
4087  test -z "$as_dir" && as_dir=.
4088    for ac_prog in grep ggrep; do
4089    for ac_exec_ext in '' $ac_executable_extensions; do
4090      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4091      as_fn_executable_p "$ac_path_GREP" || continue
4092# Check for GNU ac_path_GREP and select it if it is found.
4093  # Check for GNU $ac_path_GREP
4094case `"$ac_path_GREP" --version 2>&1` in
4095*GNU*)
4096  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4097*)
4098  ac_count=0
4099  $as_echo_n 0123456789 >"conftest.in"
4100  while :
4101  do
4102    cat "conftest.in" "conftest.in" >"conftest.tmp"
4103    mv "conftest.tmp" "conftest.in"
4104    cp "conftest.in" "conftest.nl"
4105    $as_echo 'GREP' >> "conftest.nl"
4106    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4107    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4108    as_fn_arith $ac_count + 1 && ac_count=$as_val
4109    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4110      # Best one so far, save it but keep looking for a better one
4111      ac_cv_path_GREP="$ac_path_GREP"
4112      ac_path_GREP_max=$ac_count
4113    fi
4114    # 10*(2^10) chars as input seems more than enough
4115    test $ac_count -gt 10 && break
4116  done
4117  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4118esac
4119
4120      $ac_path_GREP_found && break 3
4121    done
4122  done
4123  done
4124IFS=$as_save_IFS
4125  if test -z "$ac_cv_path_GREP"; then
4126    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4127  fi
4128else
4129  ac_cv_path_GREP=$GREP
4130fi
4131
4132fi
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4134$as_echo "$ac_cv_path_GREP" >&6; }
4135 GREP="$ac_cv_path_GREP"
4136
4137
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4139$as_echo_n "checking for egrep... " >&6; }
4140if ${ac_cv_path_EGREP+:} false; then :
4141  $as_echo_n "(cached) " >&6
4142else
4143  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4144   then ac_cv_path_EGREP="$GREP -E"
4145   else
4146     if test -z "$EGREP"; then
4147  ac_path_EGREP_found=false
4148  # Loop through the user's path and test for each of PROGNAME-LIST
4149  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4151do
4152  IFS=$as_save_IFS
4153  test -z "$as_dir" && as_dir=.
4154    for ac_prog in egrep; do
4155    for ac_exec_ext in '' $ac_executable_extensions; do
4156      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4157      as_fn_executable_p "$ac_path_EGREP" || continue
4158# Check for GNU ac_path_EGREP and select it if it is found.
4159  # Check for GNU $ac_path_EGREP
4160case `"$ac_path_EGREP" --version 2>&1` in
4161*GNU*)
4162  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4163*)
4164  ac_count=0
4165  $as_echo_n 0123456789 >"conftest.in"
4166  while :
4167  do
4168    cat "conftest.in" "conftest.in" >"conftest.tmp"
4169    mv "conftest.tmp" "conftest.in"
4170    cp "conftest.in" "conftest.nl"
4171    $as_echo 'EGREP' >> "conftest.nl"
4172    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4173    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4174    as_fn_arith $ac_count + 1 && ac_count=$as_val
4175    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4176      # Best one so far, save it but keep looking for a better one
4177      ac_cv_path_EGREP="$ac_path_EGREP"
4178      ac_path_EGREP_max=$ac_count
4179    fi
4180    # 10*(2^10) chars as input seems more than enough
4181    test $ac_count -gt 10 && break
4182  done
4183  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4184esac
4185
4186      $ac_path_EGREP_found && break 3
4187    done
4188  done
4189  done
4190IFS=$as_save_IFS
4191  if test -z "$ac_cv_path_EGREP"; then
4192    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4193  fi
4194else
4195  ac_cv_path_EGREP=$EGREP
4196fi
4197
4198   fi
4199fi
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4201$as_echo "$ac_cv_path_EGREP" >&6; }
4202 EGREP="$ac_cv_path_EGREP"
4203
4204
4205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4206$as_echo_n "checking for ANSI C header files... " >&6; }
4207if ${ac_cv_header_stdc+:} false; then :
4208  $as_echo_n "(cached) " >&6
4209else
4210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211/* end confdefs.h.  */
4212#include <stdlib.h>
4213#include <stdarg.h>
4214#include <string.h>
4215#include <float.h>
4216
4217int
4218main ()
4219{
4220
4221  ;
4222  return 0;
4223}
4224_ACEOF
4225if ac_fn_c_try_compile "$LINENO"; then :
4226  ac_cv_header_stdc=yes
4227else
4228  ac_cv_header_stdc=no
4229fi
4230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4231
4232if test $ac_cv_header_stdc = yes; then
4233  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235/* end confdefs.h.  */
4236#include <string.h>
4237
4238_ACEOF
4239if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4240  $EGREP "memchr" >/dev/null 2>&1; then :
4241
4242else
4243  ac_cv_header_stdc=no
4244fi
4245rm -f conftest*
4246
4247fi
4248
4249if test $ac_cv_header_stdc = yes; then
4250  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252/* end confdefs.h.  */
4253#include <stdlib.h>
4254
4255_ACEOF
4256if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4257  $EGREP "free" >/dev/null 2>&1; then :
4258
4259else
4260  ac_cv_header_stdc=no
4261fi
4262rm -f conftest*
4263
4264fi
4265
4266if test $ac_cv_header_stdc = yes; then
4267  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4268  if test "$cross_compiling" = yes; then :
4269  :
4270else
4271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272/* end confdefs.h.  */
4273#include <ctype.h>
4274#include <stdlib.h>
4275#if ((' ' & 0x0FF) == 0x020)
4276# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4277# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4278#else
4279# define ISLOWER(c) \
4280		   (('a' <= (c) && (c) <= 'i') \
4281		     || ('j' <= (c) && (c) <= 'r') \
4282		     || ('s' <= (c) && (c) <= 'z'))
4283# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4284#endif
4285
4286#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4287int
4288main ()
4289{
4290  int i;
4291  for (i = 0; i < 256; i++)
4292    if (XOR (islower (i), ISLOWER (i))
4293	|| toupper (i) != TOUPPER (i))
4294      return 2;
4295  return 0;
4296}
4297_ACEOF
4298if ac_fn_c_try_run "$LINENO"; then :
4299
4300else
4301  ac_cv_header_stdc=no
4302fi
4303rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4304  conftest.$ac_objext conftest.beam conftest.$ac_ext
4305fi
4306
4307fi
4308fi
4309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4310$as_echo "$ac_cv_header_stdc" >&6; }
4311if test $ac_cv_header_stdc = yes; then
4312
4313$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4314
4315fi
4316
4317# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4318for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4319		  inttypes.h stdint.h unistd.h
4320do :
4321  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4322ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4323"
4324if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4325  cat >>confdefs.h <<_ACEOF
4326#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4327_ACEOF
4328
4329fi
4330
4331done
4332
4333
4334
4335
4336
4337  ac_fn_c_check_header_mongrel "$LINENO" "minix/gear_config.h" "ac_cv_header_minix_gear_config_h" "$ac_includes_default"
4338if test "x$ac_cv_header_minix_gear_config_h" = xyes; then :
4339  MINIX=yes
4340else
4341  MINIX=
4342fi
4343
4344
4345  if test "$MINIX" = yes; then
4346
4347$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4348
4349
4350$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4351
4352
4353$as_echo "#define _MINIX 1" >>confdefs.h
4354
4355  fi
4356
4357        case "$host_os" in
4358    hpux*)
4359
4360$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4361
4362      ;;
4363  esac
4364
4365
4366  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4367$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4368if ${ac_cv_safe_to_define___extensions__+:} false; then :
4369  $as_echo_n "(cached) " >&6
4370else
4371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372/* end confdefs.h.  */
4373
4374#	  define __EXTENSIONS__ 1
4375	  $ac_includes_default
4376int
4377main ()
4378{
4379
4380  ;
4381  return 0;
4382}
4383_ACEOF
4384if ac_fn_c_try_compile "$LINENO"; then :
4385  ac_cv_safe_to_define___extensions__=yes
4386else
4387  ac_cv_safe_to_define___extensions__=no
4388fi
4389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390fi
4391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4392$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4393  test $ac_cv_safe_to_define___extensions__ = yes &&
4394    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4395
4396  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4397
4398  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4399
4400  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4401
4402  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4403
4404
4405
4406am__api_version='1.12'
4407
4408# Find a good install program.  We prefer a C program (faster),
4409# so one script is as good as another.  But avoid the broken or
4410# incompatible versions:
4411# SysV /etc/install, /usr/sbin/install
4412# SunOS /usr/etc/install
4413# IRIX /sbin/install
4414# AIX /bin/install
4415# AmigaOS /C/install, which installs bootblocks on floppy discs
4416# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4417# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4418# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4419# OS/2's system install, which has a completely different semantic
4420# ./install, which can be erroneously created by make from ./install.sh.
4421# Reject install programs that cannot install multiple files.
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4423$as_echo_n "checking for a BSD-compatible install... " >&6; }
4424if test -z "$INSTALL"; then
4425if ${ac_cv_path_install+:} false; then :
4426  $as_echo_n "(cached) " >&6
4427else
4428  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429for as_dir in $PATH
4430do
4431  IFS=$as_save_IFS
4432  test -z "$as_dir" && as_dir=.
4433    # Account for people who put trailing slashes in PATH elements.
4434case $as_dir/ in #((
4435  ./ | .// | /[cC]/* | \
4436  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4437  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4438  /usr/ucb/* ) ;;
4439  *)
4440    # OSF1 and SCO ODT 3.0 have their own names for install.
4441    # Don't use installbsd from OSF since it installs stuff as root
4442    # by default.
4443    for ac_prog in ginstall scoinst install; do
4444      for ac_exec_ext in '' $ac_executable_extensions; do
4445	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4446	  if test $ac_prog = install &&
4447	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4448	    # AIX install.  It has an incompatible calling convention.
4449	    :
4450	  elif test $ac_prog = install &&
4451	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4452	    # program-specific install script used by HP pwplus--don't use.
4453	    :
4454	  else
4455	    rm -rf conftest.one conftest.two conftest.dir
4456	    echo one > conftest.one
4457	    echo two > conftest.two
4458	    mkdir conftest.dir
4459	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4460	      test -s conftest.one && test -s conftest.two &&
4461	      test -s conftest.dir/conftest.one &&
4462	      test -s conftest.dir/conftest.two
4463	    then
4464	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4465	      break 3
4466	    fi
4467	  fi
4468	fi
4469      done
4470    done
4471    ;;
4472esac
4473
4474  done
4475IFS=$as_save_IFS
4476
4477rm -rf conftest.one conftest.two conftest.dir
4478
4479fi
4480  if test "${ac_cv_path_install+set}" = set; then
4481    INSTALL=$ac_cv_path_install
4482  else
4483    # As a last resort, use the slow shell script.  Don't cache a
4484    # value for INSTALL within a source directory, because that will
4485    # break other packages using the cache if that directory is
4486    # removed, or if the value is a relative name.
4487    INSTALL=$ac_install_sh
4488  fi
4489fi
4490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4491$as_echo "$INSTALL" >&6; }
4492
4493# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4494# It thinks the first close brace ends the variable substitution.
4495test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4496
4497test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4498
4499test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4500
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4502$as_echo_n "checking whether build environment is sane... " >&6; }
4503# Reject unsafe characters in $srcdir or the absolute working directory
4504# name.  Accept space and tab only in the latter.
4505am_lf='
4506'
4507case `pwd` in
4508  *[\\\"\#\$\&\'\`$am_lf]*)
4509    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4510esac
4511case $srcdir in
4512  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4513    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4514esac
4515
4516# Do 'set' in a subshell so we don't clobber the current shell's
4517# arguments.  Must try -L first in case configure is actually a
4518# symlink; some systems play weird games with the mod time of symlinks
4519# (eg FreeBSD returns the mod time of the symlink's containing
4520# directory).
4521if (
4522   am_has_slept=no
4523   for am_try in 1 2; do
4524     echo "timestamp, slept: $am_has_slept" > conftest.file
4525     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4526     if test "$*" = "X"; then
4527	# -L didn't work.
4528	set X `ls -t "$srcdir/configure" conftest.file`
4529     fi
4530     if test "$*" != "X $srcdir/configure conftest.file" \
4531	&& test "$*" != "X conftest.file $srcdir/configure"; then
4532
4533	# If neither matched, then we have a broken ls.  This can happen
4534	# if, for instance, CONFIG_SHELL is bash and it inherits a
4535	# broken ls alias from the environment.  This has actually
4536	# happened.  Such a system could not be considered "sane".
4537	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4538  alias in your environment" "$LINENO" 5
4539     fi
4540     if test "$2" = conftest.file || test $am_try -eq 2; then
4541       break
4542     fi
4543     # Just in case.
4544     sleep 1
4545     am_has_slept=yes
4546   done
4547   test "$2" = conftest.file
4548   )
4549then
4550   # Ok.
4551   :
4552else
4553   as_fn_error $? "newly created file is older than distributed files!
4554Check your system clock" "$LINENO" 5
4555fi
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4557$as_echo "yes" >&6; }
4558# If we didn't sleep, we still need to ensure time stamps of config.status and
4559# generated files are strictly newer.
4560am_sleep_pid=
4561if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4562  ( sleep 1 ) &
4563  am_sleep_pid=$!
4564fi
4565
4566rm -f conftest.file
4567
4568# expand $ac_aux_dir to an absolute path
4569am_aux_dir=`cd $ac_aux_dir && pwd`
4570
4571if test x"${MISSING+set}" != xset; then
4572  case $am_aux_dir in
4573  *\ * | *\	*)
4574    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4575  *)
4576    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4577  esac
4578fi
4579# Use eval to expand $SHELL
4580if eval "$MISSING --run true"; then
4581  am_missing_run="$MISSING --run "
4582else
4583  am_missing_run=
4584  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4585$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4586fi
4587
4588if test x"${install_sh}" != xset; then
4589  case $am_aux_dir in
4590  *\ * | *\	*)
4591    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4592  *)
4593    install_sh="\${SHELL} $am_aux_dir/install-sh"
4594  esac
4595fi
4596
4597# Installed binaries are usually stripped using 'strip' when the user
4598# run "make install-strip".  However 'strip' might not be the right
4599# tool to use in cross-compilation environments, therefore Automake
4600# will honor the 'STRIP' environment variable to overrule this program.
4601if test "$cross_compiling" != no; then
4602  if test -n "$ac_tool_prefix"; then
4603  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4604set dummy ${ac_tool_prefix}strip; ac_word=$2
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606$as_echo_n "checking for $ac_word... " >&6; }
4607if ${ac_cv_prog_STRIP+:} false; then :
4608  $as_echo_n "(cached) " >&6
4609else
4610  if test -n "$STRIP"; then
4611  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4612else
4613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614for as_dir in $PATH
4615do
4616  IFS=$as_save_IFS
4617  test -z "$as_dir" && as_dir=.
4618    for ac_exec_ext in '' $ac_executable_extensions; do
4619  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4620    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4621    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622    break 2
4623  fi
4624done
4625  done
4626IFS=$as_save_IFS
4627
4628fi
4629fi
4630STRIP=$ac_cv_prog_STRIP
4631if test -n "$STRIP"; then
4632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4633$as_echo "$STRIP" >&6; }
4634else
4635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636$as_echo "no" >&6; }
4637fi
4638
4639
4640fi
4641if test -z "$ac_cv_prog_STRIP"; then
4642  ac_ct_STRIP=$STRIP
4643  # Extract the first word of "strip", so it can be a program name with args.
4644set dummy strip; ac_word=$2
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646$as_echo_n "checking for $ac_word... " >&6; }
4647if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4648  $as_echo_n "(cached) " >&6
4649else
4650  if test -n "$ac_ct_STRIP"; then
4651  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4652else
4653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654for as_dir in $PATH
4655do
4656  IFS=$as_save_IFS
4657  test -z "$as_dir" && as_dir=.
4658    for ac_exec_ext in '' $ac_executable_extensions; do
4659  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4660    ac_cv_prog_ac_ct_STRIP="strip"
4661    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662    break 2
4663  fi
4664done
4665  done
4666IFS=$as_save_IFS
4667
4668fi
4669fi
4670ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4671if test -n "$ac_ct_STRIP"; then
4672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4673$as_echo "$ac_ct_STRIP" >&6; }
4674else
4675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676$as_echo "no" >&6; }
4677fi
4678
4679  if test "x$ac_ct_STRIP" = x; then
4680    STRIP=":"
4681  else
4682    case $cross_compiling:$ac_tool_warned in
4683yes:)
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4686ac_tool_warned=yes ;;
4687esac
4688    STRIP=$ac_ct_STRIP
4689  fi
4690else
4691  STRIP="$ac_cv_prog_STRIP"
4692fi
4693
4694fi
4695INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4696
4697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4698$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4699if test -z "$MKDIR_P"; then
4700  if ${ac_cv_path_mkdir+:} false; then :
4701  $as_echo_n "(cached) " >&6
4702else
4703  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4705do
4706  IFS=$as_save_IFS
4707  test -z "$as_dir" && as_dir=.
4708    for ac_prog in mkdir gmkdir; do
4709	 for ac_exec_ext in '' $ac_executable_extensions; do
4710	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4711	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4712	     'mkdir (GNU coreutils) '* | \
4713	     'mkdir (coreutils) '* | \
4714	     'mkdir (fileutils) '4.1*)
4715	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4716	       break 3;;
4717	   esac
4718	 done
4719       done
4720  done
4721IFS=$as_save_IFS
4722
4723fi
4724
4725  test -d ./--version && rmdir ./--version
4726  if test "${ac_cv_path_mkdir+set}" = set; then
4727    MKDIR_P="$ac_cv_path_mkdir -p"
4728  else
4729    # As a last resort, use the slow shell script.  Don't cache a
4730    # value for MKDIR_P within a source directory, because that will
4731    # break other packages using the cache if that directory is
4732    # removed, or if the value is a relative name.
4733    MKDIR_P="$ac_install_sh -d"
4734  fi
4735fi
4736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4737$as_echo "$MKDIR_P" >&6; }
4738
4739for ac_prog in gawk mawk nawk awk
4740do
4741  # Extract the first word of "$ac_prog", so it can be a program name with args.
4742set dummy $ac_prog; ac_word=$2
4743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4744$as_echo_n "checking for $ac_word... " >&6; }
4745if ${ac_cv_prog_AWK+:} false; then :
4746  $as_echo_n "(cached) " >&6
4747else
4748  if test -n "$AWK"; then
4749  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4750else
4751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752for as_dir in $PATH
4753do
4754  IFS=$as_save_IFS
4755  test -z "$as_dir" && as_dir=.
4756    for ac_exec_ext in '' $ac_executable_extensions; do
4757  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4758    ac_cv_prog_AWK="$ac_prog"
4759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4760    break 2
4761  fi
4762done
4763  done
4764IFS=$as_save_IFS
4765
4766fi
4767fi
4768AWK=$ac_cv_prog_AWK
4769if test -n "$AWK"; then
4770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4771$as_echo "$AWK" >&6; }
4772else
4773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774$as_echo "no" >&6; }
4775fi
4776
4777
4778  test -n "$AWK" && break
4779done
4780
4781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4782$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4783set x ${MAKE-make}
4784ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4785if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4786  $as_echo_n "(cached) " >&6
4787else
4788  cat >conftest.make <<\_ACEOF
4789SHELL = /bin/sh
4790all:
4791	@echo '@@@%%%=$(MAKE)=@@@%%%'
4792_ACEOF
4793# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4794case `${MAKE-make} -f conftest.make 2>/dev/null` in
4795  *@@@%%%=?*=@@@%%%*)
4796    eval ac_cv_prog_make_${ac_make}_set=yes;;
4797  *)
4798    eval ac_cv_prog_make_${ac_make}_set=no;;
4799esac
4800rm -f conftest.make
4801fi
4802if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4804$as_echo "yes" >&6; }
4805  SET_MAKE=
4806else
4807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808$as_echo "no" >&6; }
4809  SET_MAKE="MAKE=${MAKE-make}"
4810fi
4811
4812rm -rf .tst 2>/dev/null
4813mkdir .tst 2>/dev/null
4814if test -d .tst; then
4815  am__leading_dot=.
4816else
4817  am__leading_dot=_
4818fi
4819rmdir .tst 2>/dev/null
4820
4821DEPDIR="${am__leading_dot}deps"
4822
4823ac_config_commands="$ac_config_commands depfiles"
4824
4825
4826am_make=${MAKE-make}
4827cat > confinc << 'END'
4828am__doit:
4829	@echo this is the am__doit target
4830.PHONY: am__doit
4831END
4832# If we don't find an include directive, just comment out the code.
4833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4834$as_echo_n "checking for style of include used by $am_make... " >&6; }
4835am__include="#"
4836am__quote=
4837_am_result=none
4838# First try GNU make style include.
4839echo "include confinc" > confmf
4840# Ignore all kinds of additional output from 'make'.
4841case `$am_make -s -f confmf 2> /dev/null` in #(
4842*the\ am__doit\ target*)
4843  am__include=include
4844  am__quote=
4845  _am_result=GNU
4846  ;;
4847esac
4848# Now try BSD make style include.
4849if test "$am__include" = "#"; then
4850   echo '.include "confinc"' > confmf
4851   case `$am_make -s -f confmf 2> /dev/null` in #(
4852   *the\ am__doit\ target*)
4853     am__include=.include
4854     am__quote="\""
4855     _am_result=BSD
4856     ;;
4857   esac
4858fi
4859
4860
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4862$as_echo "$_am_result" >&6; }
4863rm -f confinc confmf
4864
4865# Check whether --enable-dependency-tracking was given.
4866if test "${enable_dependency_tracking+set}" = set; then :
4867  enableval=$enable_dependency_tracking;
4868fi
4869
4870if test "x$enable_dependency_tracking" != xno; then
4871  am_depcomp="$ac_aux_dir/depcomp"
4872  AMDEPBACKSLASH='\'
4873  am__nodep='_no'
4874fi
4875 if test "x$enable_dependency_tracking" != xno; then
4876  AMDEP_TRUE=
4877  AMDEP_FALSE='#'
4878else
4879  AMDEP_TRUE='#'
4880  AMDEP_FALSE=
4881fi
4882
4883
4884if test "`cd $srcdir && pwd`" != "`pwd`"; then
4885  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4886  # is not polluted with repeated "-I."
4887  am__isrc=' -I$(srcdir)'
4888  # test to see if srcdir already configured
4889  if test -f $srcdir/config.status; then
4890    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4891  fi
4892fi
4893
4894# test whether we have cygpath
4895if test -z "$CYGPATH_W"; then
4896  if (cygpath --version) >/dev/null 2>/dev/null; then
4897    CYGPATH_W='cygpath -w'
4898  else
4899    CYGPATH_W=echo
4900  fi
4901fi
4902
4903
4904# Define the identity of the package.
4905 PACKAGE='gearmand'
4906 VERSION='1.0.6'
4907
4908
4909cat >>confdefs.h <<_ACEOF
4910#define PACKAGE "$PACKAGE"
4911_ACEOF
4912
4913
4914cat >>confdefs.h <<_ACEOF
4915#define VERSION "$VERSION"
4916_ACEOF
4917
4918# Some tools Automake needs.
4919
4920ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4921
4922
4923AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4924
4925
4926AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4927
4928
4929AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4930
4931
4932MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4933
4934# For better backward compatibility.  To be removed once Automake 1.9.x
4935# dies out for good.  For more background, see:
4936# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4937# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4938mkdir_p='$(MKDIR_P)'
4939
4940# We need awk for the "check" target.  The system "awk" is bad on
4941# some platforms.
4942# Always define AMTAR for backward compatibility.  Yes, it's still used
4943# in the wild :-(  We should find a proper way to deprecate it ...
4944AMTAR='$${TAR-tar}'
4945
4946
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4948$as_echo_n "checking how to create a ustar tar archive... " >&6; }
4949# Loop over all known methods to create a tar archive until one works.
4950_am_tools='gnutar plaintar pax cpio none'
4951_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4952# Do not fold the above two line into one, because Tru64 sh and
4953# Solaris sh will not grok spaces in the rhs of '-'.
4954for _am_tool in $_am_tools
4955do
4956  case $_am_tool in
4957  gnutar)
4958    for _am_tar in tar gnutar gtar;
4959    do
4960      { echo "$as_me:$LINENO: $_am_tar --version" >&5
4961   ($_am_tar --version) >&5 2>&5
4962   ac_status=$?
4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964   (exit $ac_status); } && break
4965    done
4966    am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4967    am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4968    am__untar="$_am_tar -xf -"
4969    ;;
4970  plaintar)
4971    # Must skip GNU tar: if it does not support --format= it doesn't create
4972    # ustar tarball either.
4973    (tar --version) >/dev/null 2>&1 && continue
4974    am__tar='tar chf - "$$tardir"'
4975    am__tar_='tar chf - "$tardir"'
4976    am__untar='tar xf -'
4977    ;;
4978  pax)
4979    am__tar='pax -L -x ustar -w "$$tardir"'
4980    am__tar_='pax -L -x ustar -w "$tardir"'
4981    am__untar='pax -r'
4982    ;;
4983  cpio)
4984    am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4985    am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4986    am__untar='cpio -i -H ustar -d'
4987    ;;
4988  none)
4989    am__tar=false
4990    am__tar_=false
4991    am__untar=false
4992    ;;
4993  esac
4994
4995  # If the value was cached, stop now.  We just wanted to have am__tar
4996  # and am__untar set.
4997  test -n "${am_cv_prog_tar_ustar}" && break
4998
4999  # tar/untar a dummy directory, and stop if the command works
5000  rm -rf conftest.dir
5001  mkdir conftest.dir
5002  echo GrepMe > conftest.dir/file
5003  { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
5004   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
5005   ac_status=$?
5006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007   (exit $ac_status); }
5008  rm -rf conftest.dir
5009  if test -s conftest.tar; then
5010    { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
5011   ($am__untar <conftest.tar) >&5 2>&5
5012   ac_status=$?
5013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014   (exit $ac_status); }
5015    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
5016  fi
5017done
5018rm -rf conftest.dir
5019
5020if ${am_cv_prog_tar_ustar+:} false; then :
5021  $as_echo_n "(cached) " >&6
5022else
5023  am_cv_prog_tar_ustar=$_am_tool
5024fi
5025
5026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
5027$as_echo "$am_cv_prog_tar_ustar" >&6; }
5028
5029
5030
5031
5032depcc="$CC"   am_compiler_list=
5033
5034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5035$as_echo_n "checking dependency style of $depcc... " >&6; }
5036if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5037  $as_echo_n "(cached) " >&6
5038else
5039  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5040  # We make a subdir and do the tests there.  Otherwise we can end up
5041  # making bogus files that we don't know about and never remove.  For
5042  # instance it was reported that on HP-UX the gcc test will end up
5043  # making a dummy file named 'D' -- because '-MD' means "put the output
5044  # in D".
5045  rm -rf conftest.dir
5046  mkdir conftest.dir
5047  # Copy depcomp to subdir because otherwise we won't find it if we're
5048  # using a relative directory.
5049  cp "$am_depcomp" conftest.dir
5050  cd conftest.dir
5051  # We will build objects and dependencies in a subdirectory because
5052  # it helps to detect inapplicable dependency modes.  For instance
5053  # both Tru64's cc and ICC support -MD to output dependencies as a
5054  # side effect of compilation, but ICC will put the dependencies in
5055  # the current directory while Tru64 will put them in the object
5056  # directory.
5057  mkdir sub
5058
5059  am_cv_CC_dependencies_compiler_type=none
5060  if test "$am_compiler_list" = ""; then
5061     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5062  fi
5063  am__universal=false
5064  case " $depcc " in #(
5065     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5066     esac
5067
5068  for depmode in $am_compiler_list; do
5069    # Setup a source with many dependencies, because some compilers
5070    # like to wrap large dependency lists on column 80 (with \), and
5071    # we should not choose a depcomp mode which is confused by this.
5072    #
5073    # We need to recreate these files for each test, as the compiler may
5074    # overwrite some of them when testing with obscure command lines.
5075    # This happens at least with the AIX C compiler.
5076    : > sub/conftest.c
5077    for i in 1 2 3 4 5 6; do
5078      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5079      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5080      # Solaris 10 /bin/sh.
5081      echo '/* dummy */' > sub/conftst$i.h
5082    done
5083    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5084
5085    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5086    # mode.  It turns out that the SunPro C++ compiler does not properly
5087    # handle '-M -o', and we need to detect this.  Also, some Intel
5088    # versions had trouble with output in subdirs.
5089    am__obj=sub/conftest.${OBJEXT-o}
5090    am__minus_obj="-o $am__obj"
5091    case $depmode in
5092    gcc)
5093      # This depmode causes a compiler race in universal mode.
5094      test "$am__universal" = false || continue
5095      ;;
5096    nosideeffect)
5097      # After this tag, mechanisms are not by side-effect, so they'll
5098      # only be used when explicitly requested.
5099      if test "x$enable_dependency_tracking" = xyes; then
5100	continue
5101      else
5102	break
5103      fi
5104      ;;
5105    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5106      # This compiler won't grok '-c -o', but also, the minuso test has
5107      # not run yet.  These depmodes are late enough in the game, and
5108      # so weak that their functioning should not be impacted.
5109      am__obj=conftest.${OBJEXT-o}
5110      am__minus_obj=
5111      ;;
5112    none) break ;;
5113    esac
5114    if depmode=$depmode \
5115       source=sub/conftest.c object=$am__obj \
5116       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5117       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5118         >/dev/null 2>conftest.err &&
5119       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5120       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5121       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5122       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5123      # icc doesn't choke on unknown options, it will just issue warnings
5124      # or remarks (even with -Werror).  So we grep stderr for any message
5125      # that says an option was ignored or not supported.
5126      # When given -MP, icc 7.0 and 7.1 complain thusly:
5127      #   icc: Command line warning: ignoring option '-M'; no argument required
5128      # The diagnosis changed in icc 8.0:
5129      #   icc: Command line remark: option '-MP' not supported
5130      if (grep 'ignoring option' conftest.err ||
5131          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5132        am_cv_CC_dependencies_compiler_type=$depmode
5133        break
5134      fi
5135    fi
5136  done
5137
5138  cd ..
5139  rm -rf conftest.dir
5140else
5141  am_cv_CC_dependencies_compiler_type=none
5142fi
5143
5144fi
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5146$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5147CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5148
5149 if
5150  test "x$enable_dependency_tracking" != xno \
5151  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5152  am__fastdepCC_TRUE=
5153  am__fastdepCC_FALSE='#'
5154else
5155  am__fastdepCC_TRUE='#'
5156  am__fastdepCC_FALSE=
5157fi
5158
5159
5160
5161
5162ac_config_headers="$ac_config_headers gear_config.h:gear_config.in"
5163AUTOHEADER_FILE=gear_config.h
5164
5165
5166
5167GEARMAN_LIBRARY_VERSION=7:1:0
5168#                       | | |
5169#                +------+ | +---+
5170#                |        |     |
5171#             current:revision:age
5172#                |        |     |
5173#                |        |     +- increment if interfaces have been added
5174#                |        |        set to zero if interfaces have been removed
5175#                |        |        or changed
5176#                |        +- increment if source code has changed
5177#                |           set to zero if current is incremented
5178#                +- increment if interfaces have been added, removed or changed
5179
5180
5181
5182case `pwd` in
5183  *\ * | *\	*)
5184    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5185$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5186esac
5187
5188
5189
5190macro_version='2.4.2'
5191macro_revision='1.3337'
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205ltmain="$ac_aux_dir/ltmain.sh"
5206
5207# Backslashify metacharacters that are still active within
5208# double-quoted strings.
5209sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5210
5211# Same as above, but do not quote variable references.
5212double_quote_subst='s/\(["`\\]\)/\\\1/g'
5213
5214# Sed substitution to delay expansion of an escaped shell variable in a
5215# double_quote_subst'ed string.
5216delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5217
5218# Sed substitution to delay expansion of an escaped single quote.
5219delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5220
5221# Sed substitution to avoid accidental globbing in evaled expressions
5222no_glob_subst='s/\*/\\\*/g'
5223
5224ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5225ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5226ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5227
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5229$as_echo_n "checking how to print strings... " >&6; }
5230# Test print first, because it will be a builtin if present.
5231if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5232   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5233  ECHO='print -r --'
5234elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5235  ECHO='printf %s\n'
5236else
5237  # Use this function as a fallback that always works.
5238  func_fallback_echo ()
5239  {
5240    eval 'cat <<_LTECHO_EOF
5241$1
5242_LTECHO_EOF'
5243  }
5244  ECHO='func_fallback_echo'
5245fi
5246
5247# func_echo_all arg...
5248# Invoke $ECHO with all args, space-separated.
5249func_echo_all ()
5250{
5251    $ECHO ""
5252}
5253
5254case "$ECHO" in
5255  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5256$as_echo "printf" >&6; } ;;
5257  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5258$as_echo "print -r" >&6; } ;;
5259  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5260$as_echo "cat" >&6; } ;;
5261esac
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5277$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5278if ${ac_cv_path_SED+:} false; then :
5279  $as_echo_n "(cached) " >&6
5280else
5281            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5282     for ac_i in 1 2 3 4 5 6 7; do
5283       ac_script="$ac_script$as_nl$ac_script"
5284     done
5285     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5286     { ac_script=; unset ac_script;}
5287     if test -z "$SED"; then
5288  ac_path_SED_found=false
5289  # Loop through the user's path and test for each of PROGNAME-LIST
5290  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291for as_dir in $PATH
5292do
5293  IFS=$as_save_IFS
5294  test -z "$as_dir" && as_dir=.
5295    for ac_prog in sed gsed; do
5296    for ac_exec_ext in '' $ac_executable_extensions; do
5297      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5298      as_fn_executable_p "$ac_path_SED" || continue
5299# Check for GNU ac_path_SED and select it if it is found.
5300  # Check for GNU $ac_path_SED
5301case `"$ac_path_SED" --version 2>&1` in
5302*GNU*)
5303  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5304*)
5305  ac_count=0
5306  $as_echo_n 0123456789 >"conftest.in"
5307  while :
5308  do
5309    cat "conftest.in" "conftest.in" >"conftest.tmp"
5310    mv "conftest.tmp" "conftest.in"
5311    cp "conftest.in" "conftest.nl"
5312    $as_echo '' >> "conftest.nl"
5313    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5314    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5315    as_fn_arith $ac_count + 1 && ac_count=$as_val
5316    if test $ac_count -gt ${ac_path_SED_max-0}; then
5317      # Best one so far, save it but keep looking for a better one
5318      ac_cv_path_SED="$ac_path_SED"
5319      ac_path_SED_max=$ac_count
5320    fi
5321    # 10*(2^10) chars as input seems more than enough
5322    test $ac_count -gt 10 && break
5323  done
5324  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5325esac
5326
5327      $ac_path_SED_found && break 3
5328    done
5329  done
5330  done
5331IFS=$as_save_IFS
5332  if test -z "$ac_cv_path_SED"; then
5333    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5334  fi
5335else
5336  ac_cv_path_SED=$SED
5337fi
5338
5339fi
5340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5341$as_echo "$ac_cv_path_SED" >&6; }
5342 SED="$ac_cv_path_SED"
5343  rm -f conftest.sed
5344
5345test -z "$SED" && SED=sed
5346Xsed="$SED -e 1s/^X//"
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5359$as_echo_n "checking for fgrep... " >&6; }
5360if ${ac_cv_path_FGREP+:} false; then :
5361  $as_echo_n "(cached) " >&6
5362else
5363  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5364   then ac_cv_path_FGREP="$GREP -F"
5365   else
5366     if test -z "$FGREP"; then
5367  ac_path_FGREP_found=false
5368  # Loop through the user's path and test for each of PROGNAME-LIST
5369  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5371do
5372  IFS=$as_save_IFS
5373  test -z "$as_dir" && as_dir=.
5374    for ac_prog in fgrep; do
5375    for ac_exec_ext in '' $ac_executable_extensions; do
5376      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5377      as_fn_executable_p "$ac_path_FGREP" || continue
5378# Check for GNU ac_path_FGREP and select it if it is found.
5379  # Check for GNU $ac_path_FGREP
5380case `"$ac_path_FGREP" --version 2>&1` in
5381*GNU*)
5382  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5383*)
5384  ac_count=0
5385  $as_echo_n 0123456789 >"conftest.in"
5386  while :
5387  do
5388    cat "conftest.in" "conftest.in" >"conftest.tmp"
5389    mv "conftest.tmp" "conftest.in"
5390    cp "conftest.in" "conftest.nl"
5391    $as_echo 'FGREP' >> "conftest.nl"
5392    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5393    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5394    as_fn_arith $ac_count + 1 && ac_count=$as_val
5395    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5396      # Best one so far, save it but keep looking for a better one
5397      ac_cv_path_FGREP="$ac_path_FGREP"
5398      ac_path_FGREP_max=$ac_count
5399    fi
5400    # 10*(2^10) chars as input seems more than enough
5401    test $ac_count -gt 10 && break
5402  done
5403  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5404esac
5405
5406      $ac_path_FGREP_found && break 3
5407    done
5408  done
5409  done
5410IFS=$as_save_IFS
5411  if test -z "$ac_cv_path_FGREP"; then
5412    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5413  fi
5414else
5415  ac_cv_path_FGREP=$FGREP
5416fi
5417
5418   fi
5419fi
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5421$as_echo "$ac_cv_path_FGREP" >&6; }
5422 FGREP="$ac_cv_path_FGREP"
5423
5424
5425test -z "$GREP" && GREP=grep
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445# Check whether --with-gnu-ld was given.
5446if test "${with_gnu_ld+set}" = set; then :
5447  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5448else
5449  with_gnu_ld=no
5450fi
5451
5452ac_prog=ld
5453if test "$GCC" = yes; then
5454  # Check if gcc -print-prog-name=ld gives a path.
5455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5456$as_echo_n "checking for ld used by $CC... " >&6; }
5457  case $host in
5458  *-*-mingw*)
5459    # gcc leaves a trailing carriage return which upsets mingw
5460    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5461  *)
5462    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5463  esac
5464  case $ac_prog in
5465    # Accept absolute paths.
5466    [\\/]* | ?:[\\/]*)
5467      re_direlt='/[^/][^/]*/\.\./'
5468      # Canonicalize the pathname of ld
5469      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5470      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5471	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5472      done
5473      test -z "$LD" && LD="$ac_prog"
5474      ;;
5475  "")
5476    # If it fails, then pretend we aren't using GCC.
5477    ac_prog=ld
5478    ;;
5479  *)
5480    # If it is relative, then search for the first ld in PATH.
5481    with_gnu_ld=unknown
5482    ;;
5483  esac
5484elif test "$with_gnu_ld" = yes; then
5485  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5486$as_echo_n "checking for GNU ld... " >&6; }
5487else
5488  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5489$as_echo_n "checking for non-GNU ld... " >&6; }
5490fi
5491if ${lt_cv_path_LD+:} false; then :
5492  $as_echo_n "(cached) " >&6
5493else
5494  if test -z "$LD"; then
5495  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5496  for ac_dir in $PATH; do
5497    IFS="$lt_save_ifs"
5498    test -z "$ac_dir" && ac_dir=.
5499    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5500      lt_cv_path_LD="$ac_dir/$ac_prog"
5501      # Check to see if the program is GNU ld.  I'd rather use --version,
5502      # but apparently some variants of GNU ld only accept -v.
5503      # Break only if it was the GNU/non-GNU ld that we prefer.
5504      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5505      *GNU* | *'with BFD'*)
5506	test "$with_gnu_ld" != no && break
5507	;;
5508      *)
5509	test "$with_gnu_ld" != yes && break
5510	;;
5511      esac
5512    fi
5513  done
5514  IFS="$lt_save_ifs"
5515else
5516  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5517fi
5518fi
5519
5520LD="$lt_cv_path_LD"
5521if test -n "$LD"; then
5522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5523$as_echo "$LD" >&6; }
5524else
5525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526$as_echo "no" >&6; }
5527fi
5528test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5530$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5531if ${lt_cv_prog_gnu_ld+:} false; then :
5532  $as_echo_n "(cached) " >&6
5533else
5534  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5535case `$LD -v 2>&1 </dev/null` in
5536*GNU* | *'with BFD'*)
5537  lt_cv_prog_gnu_ld=yes
5538  ;;
5539*)
5540  lt_cv_prog_gnu_ld=no
5541  ;;
5542esac
5543fi
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5545$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5546with_gnu_ld=$lt_cv_prog_gnu_ld
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5557$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5558if ${lt_cv_path_NM+:} false; then :
5559  $as_echo_n "(cached) " >&6
5560else
5561  if test -n "$NM"; then
5562  # Let the user override the test.
5563  lt_cv_path_NM="$NM"
5564else
5565  lt_nm_to_check="${ac_tool_prefix}nm"
5566  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5567    lt_nm_to_check="$lt_nm_to_check nm"
5568  fi
5569  for lt_tmp_nm in $lt_nm_to_check; do
5570    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5571    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5572      IFS="$lt_save_ifs"
5573      test -z "$ac_dir" && ac_dir=.
5574      tmp_nm="$ac_dir/$lt_tmp_nm"
5575      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5576	# Check to see if the nm accepts a BSD-compat flag.
5577	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5578	#   nm: unknown option "B" ignored
5579	# Tru64's nm complains that /dev/null is an invalid object file
5580	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5581	*/dev/null* | *'Invalid file or object type'*)
5582	  lt_cv_path_NM="$tmp_nm -B"
5583	  break
5584	  ;;
5585	*)
5586	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5587	  */dev/null*)
5588	    lt_cv_path_NM="$tmp_nm -p"
5589	    break
5590	    ;;
5591	  *)
5592	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5593	    continue # so that we can try to find one that supports BSD flags
5594	    ;;
5595	  esac
5596	  ;;
5597	esac
5598      fi
5599    done
5600    IFS="$lt_save_ifs"
5601  done
5602  : ${lt_cv_path_NM=no}
5603fi
5604fi
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5606$as_echo "$lt_cv_path_NM" >&6; }
5607if test "$lt_cv_path_NM" != "no"; then
5608  NM="$lt_cv_path_NM"
5609else
5610  # Didn't find any BSD compatible name lister, look for dumpbin.
5611  if test -n "$DUMPBIN"; then :
5612    # Let the user override the test.
5613  else
5614    if test -n "$ac_tool_prefix"; then
5615  for ac_prog in dumpbin "link -dump"
5616  do
5617    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5618set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620$as_echo_n "checking for $ac_word... " >&6; }
5621if ${ac_cv_prog_DUMPBIN+:} false; then :
5622  $as_echo_n "(cached) " >&6
5623else
5624  if test -n "$DUMPBIN"; then
5625  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5626else
5627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628for as_dir in $PATH
5629do
5630  IFS=$as_save_IFS
5631  test -z "$as_dir" && as_dir=.
5632    for ac_exec_ext in '' $ac_executable_extensions; do
5633  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5634    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5636    break 2
5637  fi
5638done
5639  done
5640IFS=$as_save_IFS
5641
5642fi
5643fi
5644DUMPBIN=$ac_cv_prog_DUMPBIN
5645if test -n "$DUMPBIN"; then
5646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5647$as_echo "$DUMPBIN" >&6; }
5648else
5649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650$as_echo "no" >&6; }
5651fi
5652
5653
5654    test -n "$DUMPBIN" && break
5655  done
5656fi
5657if test -z "$DUMPBIN"; then
5658  ac_ct_DUMPBIN=$DUMPBIN
5659  for ac_prog in dumpbin "link -dump"
5660do
5661  # Extract the first word of "$ac_prog", so it can be a program name with args.
5662set dummy $ac_prog; ac_word=$2
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664$as_echo_n "checking for $ac_word... " >&6; }
5665if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5666  $as_echo_n "(cached) " >&6
5667else
5668  if test -n "$ac_ct_DUMPBIN"; then
5669  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5670else
5671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672for as_dir in $PATH
5673do
5674  IFS=$as_save_IFS
5675  test -z "$as_dir" && as_dir=.
5676    for ac_exec_ext in '' $ac_executable_extensions; do
5677  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5678    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5679    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5680    break 2
5681  fi
5682done
5683  done
5684IFS=$as_save_IFS
5685
5686fi
5687fi
5688ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5689if test -n "$ac_ct_DUMPBIN"; then
5690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5691$as_echo "$ac_ct_DUMPBIN" >&6; }
5692else
5693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694$as_echo "no" >&6; }
5695fi
5696
5697
5698  test -n "$ac_ct_DUMPBIN" && break
5699done
5700
5701  if test "x$ac_ct_DUMPBIN" = x; then
5702    DUMPBIN=":"
5703  else
5704    case $cross_compiling:$ac_tool_warned in
5705yes:)
5706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5708ac_tool_warned=yes ;;
5709esac
5710    DUMPBIN=$ac_ct_DUMPBIN
5711  fi
5712fi
5713
5714    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5715    *COFF*)
5716      DUMPBIN="$DUMPBIN -symbols"
5717      ;;
5718    *)
5719      DUMPBIN=:
5720      ;;
5721    esac
5722  fi
5723
5724  if test "$DUMPBIN" != ":"; then
5725    NM="$DUMPBIN"
5726  fi
5727fi
5728test -z "$NM" && NM=nm
5729
5730
5731
5732
5733
5734
5735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5736$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5737if ${lt_cv_nm_interface+:} false; then :
5738  $as_echo_n "(cached) " >&6
5739else
5740  lt_cv_nm_interface="BSD nm"
5741  echo "int some_variable = 0;" > conftest.$ac_ext
5742  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5743  (eval "$ac_compile" 2>conftest.err)
5744  cat conftest.err >&5
5745  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5746  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5747  cat conftest.err >&5
5748  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5749  cat conftest.out >&5
5750  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5751    lt_cv_nm_interface="MS dumpbin"
5752  fi
5753  rm -f conftest*
5754fi
5755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5756$as_echo "$lt_cv_nm_interface" >&6; }
5757
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5759$as_echo_n "checking whether ln -s works... " >&6; }
5760LN_S=$as_ln_s
5761if test "$LN_S" = "ln -s"; then
5762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5763$as_echo "yes" >&6; }
5764else
5765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5766$as_echo "no, using $LN_S" >&6; }
5767fi
5768
5769# find the maximum length of command line arguments
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5771$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5772if ${lt_cv_sys_max_cmd_len+:} false; then :
5773  $as_echo_n "(cached) " >&6
5774else
5775    i=0
5776  teststring="ABCD"
5777
5778  case $build_os in
5779  msdosdjgpp*)
5780    # On DJGPP, this test can blow up pretty badly due to problems in libc
5781    # (any single argument exceeding 2000 bytes causes a buffer overrun
5782    # during glob expansion).  Even if it were fixed, the result of this
5783    # check would be larger than it should be.
5784    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5785    ;;
5786
5787  gnu*)
5788    # Under GNU Hurd, this test is not required because there is
5789    # no limit to the length of command line arguments.
5790    # Libtool will interpret -1 as no limit whatsoever
5791    lt_cv_sys_max_cmd_len=-1;
5792    ;;
5793
5794  cygwin* | mingw* | cegcc*)
5795    # On Win9x/ME, this test blows up -- it succeeds, but takes
5796    # about 5 minutes as the teststring grows exponentially.
5797    # Worse, since 9x/ME are not pre-emptively multitasking,
5798    # you end up with a "frozen" computer, even though with patience
5799    # the test eventually succeeds (with a max line length of 256k).
5800    # Instead, let's just punt: use the minimum linelength reported by
5801    # all of the supported platforms: 8192 (on NT/2K/XP).
5802    lt_cv_sys_max_cmd_len=8192;
5803    ;;
5804
5805  mint*)
5806    # On MiNT this can take a long time and run out of memory.
5807    lt_cv_sys_max_cmd_len=8192;
5808    ;;
5809
5810  amigaos*)
5811    # On AmigaOS with pdksh, this test takes hours, literally.
5812    # So we just punt and use a minimum line length of 8192.
5813    lt_cv_sys_max_cmd_len=8192;
5814    ;;
5815
5816  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5817    # This has been around since 386BSD, at least.  Likely further.
5818    if test -x /sbin/sysctl; then
5819      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5820    elif test -x /usr/sbin/sysctl; then
5821      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5822    else
5823      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5824    fi
5825    # And add a safety zone
5826    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5827    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5828    ;;
5829
5830  interix*)
5831    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5832    lt_cv_sys_max_cmd_len=196608
5833    ;;
5834
5835  os2*)
5836    # The test takes a long time on OS/2.
5837    lt_cv_sys_max_cmd_len=8192
5838    ;;
5839
5840  osf*)
5841    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5842    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5843    # nice to cause kernel panics so lets avoid the loop below.
5844    # First set a reasonable default.
5845    lt_cv_sys_max_cmd_len=16384
5846    #
5847    if test -x /sbin/sysconfig; then
5848      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5849        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5850      esac
5851    fi
5852    ;;
5853  sco3.2v5*)
5854    lt_cv_sys_max_cmd_len=102400
5855    ;;
5856  sysv5* | sco5v6* | sysv4.2uw2*)
5857    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5858    if test -n "$kargmax"; then
5859      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5860    else
5861      lt_cv_sys_max_cmd_len=32768
5862    fi
5863    ;;
5864  *)
5865    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5866    if test -n "$lt_cv_sys_max_cmd_len"; then
5867      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5868      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5869    else
5870      # Make teststring a little bigger before we do anything with it.
5871      # a 1K string should be a reasonable start.
5872      for i in 1 2 3 4 5 6 7 8 ; do
5873        teststring=$teststring$teststring
5874      done
5875      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5876      # If test is not a shell built-in, we'll probably end up computing a
5877      # maximum length that is only half of the actual maximum length, but
5878      # we can't tell.
5879      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5880	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5881	      test $i != 17 # 1/2 MB should be enough
5882      do
5883        i=`expr $i + 1`
5884        teststring=$teststring$teststring
5885      done
5886      # Only check the string length outside the loop.
5887      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5888      teststring=
5889      # Add a significant safety factor because C++ compilers can tack on
5890      # massive amounts of additional arguments before passing them to the
5891      # linker.  It appears as though 1/2 is a usable value.
5892      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5893    fi
5894    ;;
5895  esac
5896
5897fi
5898
5899if test -n $lt_cv_sys_max_cmd_len ; then
5900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5901$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5902else
5903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5904$as_echo "none" >&6; }
5905fi
5906max_cmd_len=$lt_cv_sys_max_cmd_len
5907
5908
5909
5910
5911
5912
5913: ${CP="cp -f"}
5914: ${MV="mv -f"}
5915: ${RM="rm -f"}
5916
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5918$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5919# Try some XSI features
5920xsi_shell=no
5921( _lt_dummy="a/b/c"
5922  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5923      = c,a/b,b/c, \
5924    && eval 'test $(( 1 + 1 )) -eq 2 \
5925    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5926  && xsi_shell=yes
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5928$as_echo "$xsi_shell" >&6; }
5929
5930
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5932$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5933lt_shell_append=no
5934( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5935    >/dev/null 2>&1 \
5936  && lt_shell_append=yes
5937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5938$as_echo "$lt_shell_append" >&6; }
5939
5940
5941if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5942  lt_unset=unset
5943else
5944  lt_unset=false
5945fi
5946
5947
5948
5949
5950
5951# test EBCDIC or ASCII
5952case `echo X|tr X '\101'` in
5953 A) # ASCII based system
5954    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5955  lt_SP2NL='tr \040 \012'
5956  lt_NL2SP='tr \015\012 \040\040'
5957  ;;
5958 *) # EBCDIC based system
5959  lt_SP2NL='tr \100 \n'
5960  lt_NL2SP='tr \r\n \100\100'
5961  ;;
5962esac
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5973$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5974if ${lt_cv_to_host_file_cmd+:} false; then :
5975  $as_echo_n "(cached) " >&6
5976else
5977  case $host in
5978  *-*-mingw* )
5979    case $build in
5980      *-*-mingw* ) # actually msys
5981        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5982        ;;
5983      *-*-cygwin* )
5984        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5985        ;;
5986      * ) # otherwise, assume *nix
5987        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5988        ;;
5989    esac
5990    ;;
5991  *-*-cygwin* )
5992    case $build in
5993      *-*-mingw* ) # actually msys
5994        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5995        ;;
5996      *-*-cygwin* )
5997        lt_cv_to_host_file_cmd=func_convert_file_noop
5998        ;;
5999      * ) # otherwise, assume *nix
6000        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6001        ;;
6002    esac
6003    ;;
6004  * ) # unhandled hosts (and "normal" native builds)
6005    lt_cv_to_host_file_cmd=func_convert_file_noop
6006    ;;
6007esac
6008
6009fi
6010
6011to_host_file_cmd=$lt_cv_to_host_file_cmd
6012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6013$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6014
6015
6016
6017
6018
6019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6020$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6021if ${lt_cv_to_tool_file_cmd+:} false; then :
6022  $as_echo_n "(cached) " >&6
6023else
6024  #assume ordinary cross tools, or native build.
6025lt_cv_to_tool_file_cmd=func_convert_file_noop
6026case $host in
6027  *-*-mingw* )
6028    case $build in
6029      *-*-mingw* ) # actually msys
6030        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6031        ;;
6032    esac
6033    ;;
6034esac
6035
6036fi
6037
6038to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6040$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6041
6042
6043
6044
6045
6046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6047$as_echo_n "checking for $LD option to reload object files... " >&6; }
6048if ${lt_cv_ld_reload_flag+:} false; then :
6049  $as_echo_n "(cached) " >&6
6050else
6051  lt_cv_ld_reload_flag='-r'
6052fi
6053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6054$as_echo "$lt_cv_ld_reload_flag" >&6; }
6055reload_flag=$lt_cv_ld_reload_flag
6056case $reload_flag in
6057"" | " "*) ;;
6058*) reload_flag=" $reload_flag" ;;
6059esac
6060reload_cmds='$LD$reload_flag -o $output$reload_objs'
6061case $host_os in
6062  cygwin* | mingw* | pw32* | cegcc*)
6063    if test "$GCC" != yes; then
6064      reload_cmds=false
6065    fi
6066    ;;
6067  darwin*)
6068    if test "$GCC" = yes; then
6069      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6070    else
6071      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6072    fi
6073    ;;
6074esac
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084if test -n "$ac_tool_prefix"; then
6085  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6086set dummy ${ac_tool_prefix}objdump; ac_word=$2
6087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088$as_echo_n "checking for $ac_word... " >&6; }
6089if ${ac_cv_prog_OBJDUMP+:} false; then :
6090  $as_echo_n "(cached) " >&6
6091else
6092  if test -n "$OBJDUMP"; then
6093  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6094else
6095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096for as_dir in $PATH
6097do
6098  IFS=$as_save_IFS
6099  test -z "$as_dir" && as_dir=.
6100    for ac_exec_ext in '' $ac_executable_extensions; do
6101  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6102    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6103    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104    break 2
6105  fi
6106done
6107  done
6108IFS=$as_save_IFS
6109
6110fi
6111fi
6112OBJDUMP=$ac_cv_prog_OBJDUMP
6113if test -n "$OBJDUMP"; then
6114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6115$as_echo "$OBJDUMP" >&6; }
6116else
6117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6118$as_echo "no" >&6; }
6119fi
6120
6121
6122fi
6123if test -z "$ac_cv_prog_OBJDUMP"; then
6124  ac_ct_OBJDUMP=$OBJDUMP
6125  # Extract the first word of "objdump", so it can be a program name with args.
6126set dummy objdump; ac_word=$2
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128$as_echo_n "checking for $ac_word... " >&6; }
6129if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6130  $as_echo_n "(cached) " >&6
6131else
6132  if test -n "$ac_ct_OBJDUMP"; then
6133  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6134else
6135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136for as_dir in $PATH
6137do
6138  IFS=$as_save_IFS
6139  test -z "$as_dir" && as_dir=.
6140    for ac_exec_ext in '' $ac_executable_extensions; do
6141  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6142    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6143    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6144    break 2
6145  fi
6146done
6147  done
6148IFS=$as_save_IFS
6149
6150fi
6151fi
6152ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6153if test -n "$ac_ct_OBJDUMP"; then
6154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6155$as_echo "$ac_ct_OBJDUMP" >&6; }
6156else
6157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6158$as_echo "no" >&6; }
6159fi
6160
6161  if test "x$ac_ct_OBJDUMP" = x; then
6162    OBJDUMP="false"
6163  else
6164    case $cross_compiling:$ac_tool_warned in
6165yes:)
6166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6168ac_tool_warned=yes ;;
6169esac
6170    OBJDUMP=$ac_ct_OBJDUMP
6171  fi
6172else
6173  OBJDUMP="$ac_cv_prog_OBJDUMP"
6174fi
6175
6176test -z "$OBJDUMP" && OBJDUMP=objdump
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6187$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6188if ${lt_cv_deplibs_check_method+:} false; then :
6189  $as_echo_n "(cached) " >&6
6190else
6191  lt_cv_file_magic_cmd='$MAGIC_CMD'
6192lt_cv_file_magic_test_file=
6193lt_cv_deplibs_check_method='unknown'
6194# Need to set the preceding variable on all platforms that support
6195# interlibrary dependencies.
6196# 'none' -- dependencies not supported.
6197# `unknown' -- same as none, but documents that we really don't know.
6198# 'pass_all' -- all dependencies passed with no checks.
6199# 'test_compile' -- check by making test program.
6200# 'file_magic [[regex]]' -- check by looking for files in library path
6201# which responds to the $file_magic_cmd with a given extended regex.
6202# If you have `file' or equivalent on your system and you're not sure
6203# whether `pass_all' will *always* work, you probably want this one.
6204
6205case $host_os in
6206aix[4-9]*)
6207  lt_cv_deplibs_check_method=pass_all
6208  ;;
6209
6210beos*)
6211  lt_cv_deplibs_check_method=pass_all
6212  ;;
6213
6214bsdi[45]*)
6215  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6216  lt_cv_file_magic_cmd='/usr/bin/file -L'
6217  lt_cv_file_magic_test_file=/shlib/libc.so
6218  ;;
6219
6220cygwin*)
6221  # func_win32_libid is a shell function defined in ltmain.sh
6222  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6223  lt_cv_file_magic_cmd='func_win32_libid'
6224  ;;
6225
6226mingw* | pw32*)
6227  # Base MSYS/MinGW do not provide the 'file' command needed by
6228  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6229  # unless we find 'file', for example because we are cross-compiling.
6230  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6231  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6232    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6233    lt_cv_file_magic_cmd='func_win32_libid'
6234  else
6235    # Keep this pattern in sync with the one in func_win32_libid.
6236    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6237    lt_cv_file_magic_cmd='$OBJDUMP -f'
6238  fi
6239  ;;
6240
6241cegcc*)
6242  # use the weaker test based on 'objdump'. See mingw*.
6243  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6244  lt_cv_file_magic_cmd='$OBJDUMP -f'
6245  ;;
6246
6247darwin* | rhapsody*)
6248  lt_cv_deplibs_check_method=pass_all
6249  ;;
6250
6251freebsd* | dragonfly*)
6252  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6253    case $host_cpu in
6254    i*86 )
6255      # Not sure whether the presence of OpenBSD here was a mistake.
6256      # Let's accept both of them until this is cleared up.
6257      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6258      lt_cv_file_magic_cmd=/usr/bin/file
6259      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6260      ;;
6261    esac
6262  else
6263    lt_cv_deplibs_check_method=pass_all
6264  fi
6265  ;;
6266
6267gnu*)
6268  lt_cv_deplibs_check_method=pass_all
6269  ;;
6270
6271haiku*)
6272  lt_cv_deplibs_check_method=pass_all
6273  ;;
6274
6275hpux10.20* | hpux11*)
6276  lt_cv_file_magic_cmd=/usr/bin/file
6277  case $host_cpu in
6278  ia64*)
6279    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6280    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6281    ;;
6282  hppa*64*)
6283    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]'
6284    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6285    ;;
6286  *)
6287    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6288    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6289    ;;
6290  esac
6291  ;;
6292
6293interix[3-9]*)
6294  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6295  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6296  ;;
6297
6298irix5* | irix6* | nonstopux*)
6299  case $LD in
6300  *-32|*"-32 ") libmagic=32-bit;;
6301  *-n32|*"-n32 ") libmagic=N32;;
6302  *-64|*"-64 ") libmagic=64-bit;;
6303  *) libmagic=never-match;;
6304  esac
6305  lt_cv_deplibs_check_method=pass_all
6306  ;;
6307
6308# This must be glibc/ELF.
6309linux* | k*bsd*-gnu | kopensolaris*-gnu)
6310  lt_cv_deplibs_check_method=pass_all
6311  ;;
6312
6313netbsd*)
6314  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6315    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6316  else
6317    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6318  fi
6319  ;;
6320
6321newos6*)
6322  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6323  lt_cv_file_magic_cmd=/usr/bin/file
6324  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6325  ;;
6326
6327*nto* | *qnx*)
6328  lt_cv_deplibs_check_method=pass_all
6329  ;;
6330
6331openbsd*)
6332  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6333    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6334  else
6335    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6336  fi
6337  ;;
6338
6339osf3* | osf4* | osf5*)
6340  lt_cv_deplibs_check_method=pass_all
6341  ;;
6342
6343rdos*)
6344  lt_cv_deplibs_check_method=pass_all
6345  ;;
6346
6347solaris*)
6348  lt_cv_deplibs_check_method=pass_all
6349  ;;
6350
6351sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6352  lt_cv_deplibs_check_method=pass_all
6353  ;;
6354
6355sysv4 | sysv4.3*)
6356  case $host_vendor in
6357  motorola)
6358    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]'
6359    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6360    ;;
6361  ncr)
6362    lt_cv_deplibs_check_method=pass_all
6363    ;;
6364  sequent)
6365    lt_cv_file_magic_cmd='/bin/file'
6366    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6367    ;;
6368  sni)
6369    lt_cv_file_magic_cmd='/bin/file'
6370    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6371    lt_cv_file_magic_test_file=/lib/libc.so
6372    ;;
6373  siemens)
6374    lt_cv_deplibs_check_method=pass_all
6375    ;;
6376  pc)
6377    lt_cv_deplibs_check_method=pass_all
6378    ;;
6379  esac
6380  ;;
6381
6382tpf*)
6383  lt_cv_deplibs_check_method=pass_all
6384  ;;
6385esac
6386
6387fi
6388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6389$as_echo "$lt_cv_deplibs_check_method" >&6; }
6390
6391file_magic_glob=
6392want_nocaseglob=no
6393if test "$build" = "$host"; then
6394  case $host_os in
6395  mingw* | pw32*)
6396    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6397      want_nocaseglob=yes
6398    else
6399      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6400    fi
6401    ;;
6402  esac
6403fi
6404
6405file_magic_cmd=$lt_cv_file_magic_cmd
6406deplibs_check_method=$lt_cv_deplibs_check_method
6407test -z "$deplibs_check_method" && deplibs_check_method=unknown
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430if test -n "$ac_tool_prefix"; then
6431  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6432set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434$as_echo_n "checking for $ac_word... " >&6; }
6435if ${ac_cv_prog_DLLTOOL+:} false; then :
6436  $as_echo_n "(cached) " >&6
6437else
6438  if test -n "$DLLTOOL"; then
6439  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6440else
6441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442for as_dir in $PATH
6443do
6444  IFS=$as_save_IFS
6445  test -z "$as_dir" && as_dir=.
6446    for ac_exec_ext in '' $ac_executable_extensions; do
6447  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6449    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450    break 2
6451  fi
6452done
6453  done
6454IFS=$as_save_IFS
6455
6456fi
6457fi
6458DLLTOOL=$ac_cv_prog_DLLTOOL
6459if test -n "$DLLTOOL"; then
6460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6461$as_echo "$DLLTOOL" >&6; }
6462else
6463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464$as_echo "no" >&6; }
6465fi
6466
6467
6468fi
6469if test -z "$ac_cv_prog_DLLTOOL"; then
6470  ac_ct_DLLTOOL=$DLLTOOL
6471  # Extract the first word of "dlltool", so it can be a program name with args.
6472set dummy dlltool; ac_word=$2
6473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474$as_echo_n "checking for $ac_word... " >&6; }
6475if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6476  $as_echo_n "(cached) " >&6
6477else
6478  if test -n "$ac_ct_DLLTOOL"; then
6479  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6480else
6481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482for as_dir in $PATH
6483do
6484  IFS=$as_save_IFS
6485  test -z "$as_dir" && as_dir=.
6486    for ac_exec_ext in '' $ac_executable_extensions; do
6487  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6488    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6489    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490    break 2
6491  fi
6492done
6493  done
6494IFS=$as_save_IFS
6495
6496fi
6497fi
6498ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6499if test -n "$ac_ct_DLLTOOL"; then
6500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6501$as_echo "$ac_ct_DLLTOOL" >&6; }
6502else
6503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504$as_echo "no" >&6; }
6505fi
6506
6507  if test "x$ac_ct_DLLTOOL" = x; then
6508    DLLTOOL="false"
6509  else
6510    case $cross_compiling:$ac_tool_warned in
6511yes:)
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6514ac_tool_warned=yes ;;
6515esac
6516    DLLTOOL=$ac_ct_DLLTOOL
6517  fi
6518else
6519  DLLTOOL="$ac_cv_prog_DLLTOOL"
6520fi
6521
6522test -z "$DLLTOOL" && DLLTOOL=dlltool
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6534$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6535if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6536  $as_echo_n "(cached) " >&6
6537else
6538  lt_cv_sharedlib_from_linklib_cmd='unknown'
6539
6540case $host_os in
6541cygwin* | mingw* | pw32* | cegcc*)
6542  # two different shell functions defined in ltmain.sh
6543  # decide which to use based on capabilities of $DLLTOOL
6544  case `$DLLTOOL --help 2>&1` in
6545  *--identify-strict*)
6546    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6547    ;;
6548  *)
6549    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6550    ;;
6551  esac
6552  ;;
6553*)
6554  # fallback: assume linklib IS sharedlib
6555  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6556  ;;
6557esac
6558
6559fi
6560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6561$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6562sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6563test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6564
6565
6566
6567
6568
6569
6570
6571if test -n "$ac_tool_prefix"; then
6572  for ac_prog in ar
6573  do
6574    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6575set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577$as_echo_n "checking for $ac_word... " >&6; }
6578if ${ac_cv_prog_AR+:} false; then :
6579  $as_echo_n "(cached) " >&6
6580else
6581  if test -n "$AR"; then
6582  ac_cv_prog_AR="$AR" # Let the user override the test.
6583else
6584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585for as_dir in $PATH
6586do
6587  IFS=$as_save_IFS
6588  test -z "$as_dir" && as_dir=.
6589    for ac_exec_ext in '' $ac_executable_extensions; do
6590  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6591    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6592    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6593    break 2
6594  fi
6595done
6596  done
6597IFS=$as_save_IFS
6598
6599fi
6600fi
6601AR=$ac_cv_prog_AR
6602if test -n "$AR"; then
6603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6604$as_echo "$AR" >&6; }
6605else
6606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607$as_echo "no" >&6; }
6608fi
6609
6610
6611    test -n "$AR" && break
6612  done
6613fi
6614if test -z "$AR"; then
6615  ac_ct_AR=$AR
6616  for ac_prog in ar
6617do
6618  # Extract the first word of "$ac_prog", so it can be a program name with args.
6619set dummy $ac_prog; ac_word=$2
6620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621$as_echo_n "checking for $ac_word... " >&6; }
6622if ${ac_cv_prog_ac_ct_AR+:} false; then :
6623  $as_echo_n "(cached) " >&6
6624else
6625  if test -n "$ac_ct_AR"; then
6626  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6627else
6628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629for as_dir in $PATH
6630do
6631  IFS=$as_save_IFS
6632  test -z "$as_dir" && as_dir=.
6633    for ac_exec_ext in '' $ac_executable_extensions; do
6634  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6635    ac_cv_prog_ac_ct_AR="$ac_prog"
6636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6637    break 2
6638  fi
6639done
6640  done
6641IFS=$as_save_IFS
6642
6643fi
6644fi
6645ac_ct_AR=$ac_cv_prog_ac_ct_AR
6646if test -n "$ac_ct_AR"; then
6647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6648$as_echo "$ac_ct_AR" >&6; }
6649else
6650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6651$as_echo "no" >&6; }
6652fi
6653
6654
6655  test -n "$ac_ct_AR" && break
6656done
6657
6658  if test "x$ac_ct_AR" = x; then
6659    AR="false"
6660  else
6661    case $cross_compiling:$ac_tool_warned in
6662yes:)
6663{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6664$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6665ac_tool_warned=yes ;;
6666esac
6667    AR=$ac_ct_AR
6668  fi
6669fi
6670
6671: ${AR=ar}
6672: ${AR_FLAGS=cru}
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6685$as_echo_n "checking for archiver @FILE support... " >&6; }
6686if ${lt_cv_ar_at_file+:} false; then :
6687  $as_echo_n "(cached) " >&6
6688else
6689  lt_cv_ar_at_file=no
6690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691/* end confdefs.h.  */
6692
6693int
6694main ()
6695{
6696
6697  ;
6698  return 0;
6699}
6700_ACEOF
6701if ac_fn_c_try_compile "$LINENO"; then :
6702  echo conftest.$ac_objext > conftest.lst
6703      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6704      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6705  (eval $lt_ar_try) 2>&5
6706  ac_status=$?
6707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6708  test $ac_status = 0; }
6709      if test "$ac_status" -eq 0; then
6710	# Ensure the archiver fails upon bogus file names.
6711	rm -f conftest.$ac_objext libconftest.a
6712	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6713  (eval $lt_ar_try) 2>&5
6714  ac_status=$?
6715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6716  test $ac_status = 0; }
6717	if test "$ac_status" -ne 0; then
6718          lt_cv_ar_at_file=@
6719        fi
6720      fi
6721      rm -f conftest.* libconftest.a
6722
6723fi
6724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6725
6726fi
6727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6728$as_echo "$lt_cv_ar_at_file" >&6; }
6729
6730if test "x$lt_cv_ar_at_file" = xno; then
6731  archiver_list_spec=
6732else
6733  archiver_list_spec=$lt_cv_ar_at_file
6734fi
6735
6736
6737
6738
6739
6740
6741
6742if test -n "$ac_tool_prefix"; then
6743  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6744set dummy ${ac_tool_prefix}strip; ac_word=$2
6745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6746$as_echo_n "checking for $ac_word... " >&6; }
6747if ${ac_cv_prog_STRIP+:} false; then :
6748  $as_echo_n "(cached) " >&6
6749else
6750  if test -n "$STRIP"; then
6751  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6752else
6753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754for as_dir in $PATH
6755do
6756  IFS=$as_save_IFS
6757  test -z "$as_dir" && as_dir=.
6758    for ac_exec_ext in '' $ac_executable_extensions; do
6759  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6760    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6761    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6762    break 2
6763  fi
6764done
6765  done
6766IFS=$as_save_IFS
6767
6768fi
6769fi
6770STRIP=$ac_cv_prog_STRIP
6771if test -n "$STRIP"; then
6772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6773$as_echo "$STRIP" >&6; }
6774else
6775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6776$as_echo "no" >&6; }
6777fi
6778
6779
6780fi
6781if test -z "$ac_cv_prog_STRIP"; then
6782  ac_ct_STRIP=$STRIP
6783  # Extract the first word of "strip", so it can be a program name with args.
6784set dummy strip; ac_word=$2
6785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6786$as_echo_n "checking for $ac_word... " >&6; }
6787if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6788  $as_echo_n "(cached) " >&6
6789else
6790  if test -n "$ac_ct_STRIP"; then
6791  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6792else
6793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794for as_dir in $PATH
6795do
6796  IFS=$as_save_IFS
6797  test -z "$as_dir" && as_dir=.
6798    for ac_exec_ext in '' $ac_executable_extensions; do
6799  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6800    ac_cv_prog_ac_ct_STRIP="strip"
6801    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6802    break 2
6803  fi
6804done
6805  done
6806IFS=$as_save_IFS
6807
6808fi
6809fi
6810ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6811if test -n "$ac_ct_STRIP"; then
6812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6813$as_echo "$ac_ct_STRIP" >&6; }
6814else
6815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6816$as_echo "no" >&6; }
6817fi
6818
6819  if test "x$ac_ct_STRIP" = x; then
6820    STRIP=":"
6821  else
6822    case $cross_compiling:$ac_tool_warned in
6823yes:)
6824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6826ac_tool_warned=yes ;;
6827esac
6828    STRIP=$ac_ct_STRIP
6829  fi
6830else
6831  STRIP="$ac_cv_prog_STRIP"
6832fi
6833
6834test -z "$STRIP" && STRIP=:
6835
6836
6837
6838
6839
6840
6841if test -n "$ac_tool_prefix"; then
6842  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6843set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6845$as_echo_n "checking for $ac_word... " >&6; }
6846if ${ac_cv_prog_RANLIB+:} false; then :
6847  $as_echo_n "(cached) " >&6
6848else
6849  if test -n "$RANLIB"; then
6850  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6851else
6852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853for as_dir in $PATH
6854do
6855  IFS=$as_save_IFS
6856  test -z "$as_dir" && as_dir=.
6857    for ac_exec_ext in '' $ac_executable_extensions; do
6858  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6859    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6860    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6861    break 2
6862  fi
6863done
6864  done
6865IFS=$as_save_IFS
6866
6867fi
6868fi
6869RANLIB=$ac_cv_prog_RANLIB
6870if test -n "$RANLIB"; then
6871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6872$as_echo "$RANLIB" >&6; }
6873else
6874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6875$as_echo "no" >&6; }
6876fi
6877
6878
6879fi
6880if test -z "$ac_cv_prog_RANLIB"; then
6881  ac_ct_RANLIB=$RANLIB
6882  # Extract the first word of "ranlib", so it can be a program name with args.
6883set dummy ranlib; ac_word=$2
6884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6885$as_echo_n "checking for $ac_word... " >&6; }
6886if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6887  $as_echo_n "(cached) " >&6
6888else
6889  if test -n "$ac_ct_RANLIB"; then
6890  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6891else
6892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893for as_dir in $PATH
6894do
6895  IFS=$as_save_IFS
6896  test -z "$as_dir" && as_dir=.
6897    for ac_exec_ext in '' $ac_executable_extensions; do
6898  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6899    ac_cv_prog_ac_ct_RANLIB="ranlib"
6900    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6901    break 2
6902  fi
6903done
6904  done
6905IFS=$as_save_IFS
6906
6907fi
6908fi
6909ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6910if test -n "$ac_ct_RANLIB"; then
6911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6912$as_echo "$ac_ct_RANLIB" >&6; }
6913else
6914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6915$as_echo "no" >&6; }
6916fi
6917
6918  if test "x$ac_ct_RANLIB" = x; then
6919    RANLIB=":"
6920  else
6921    case $cross_compiling:$ac_tool_warned in
6922yes:)
6923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6925ac_tool_warned=yes ;;
6926esac
6927    RANLIB=$ac_ct_RANLIB
6928  fi
6929else
6930  RANLIB="$ac_cv_prog_RANLIB"
6931fi
6932
6933test -z "$RANLIB" && RANLIB=:
6934
6935
6936
6937
6938
6939
6940# Determine commands to create old-style static archives.
6941old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6942old_postinstall_cmds='chmod 644 $oldlib'
6943old_postuninstall_cmds=
6944
6945if test -n "$RANLIB"; then
6946  case $host_os in
6947  openbsd*)
6948    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6949    ;;
6950  *)
6951    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6952    ;;
6953  esac
6954  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6955fi
6956
6957case $host_os in
6958  darwin*)
6959    lock_old_archive_extraction=yes ;;
6960  *)
6961    lock_old_archive_extraction=no ;;
6962esac
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002# If no C compiler was specified, use CC.
7003LTCC=${LTCC-"$CC"}
7004
7005# If no C compiler flags were specified, use CFLAGS.
7006LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7007
7008# Allow CC to be a program name with arguments.
7009compiler=$CC
7010
7011
7012# Check for command to grab the raw symbol name followed by C symbol from nm.
7013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7014$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7015if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7016  $as_echo_n "(cached) " >&6
7017else
7018
7019# These are sane defaults that work on at least a few old systems.
7020# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7021
7022# Character class describing NM global symbol codes.
7023symcode='[BCDEGRST]'
7024
7025# Regexp to match symbols that can be accessed directly from C.
7026sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7027
7028# Define system-specific variables.
7029case $host_os in
7030aix*)
7031  symcode='[BCDT]'
7032  ;;
7033cygwin* | mingw* | pw32* | cegcc*)
7034  symcode='[ABCDGISTW]'
7035  ;;
7036hpux*)
7037  if test "$host_cpu" = ia64; then
7038    symcode='[ABCDEGRST]'
7039  fi
7040  ;;
7041irix* | nonstopux*)
7042  symcode='[BCDEGRST]'
7043  ;;
7044osf*)
7045  symcode='[BCDEGQRST]'
7046  ;;
7047solaris*)
7048  symcode='[BDRT]'
7049  ;;
7050sco3.2v5*)
7051  symcode='[DT]'
7052  ;;
7053sysv4.2uw2*)
7054  symcode='[DT]'
7055  ;;
7056sysv5* | sco5v6* | unixware* | OpenUNIX*)
7057  symcode='[ABDT]'
7058  ;;
7059sysv4)
7060  symcode='[DFNSTU]'
7061  ;;
7062esac
7063
7064# If we're using GNU nm, then use its standard symbol codes.
7065case `$NM -V 2>&1` in
7066*GNU* | *'with BFD'*)
7067  symcode='[ABCDGIRSTW]' ;;
7068esac
7069
7070# Transform an extracted symbol line into a proper C declaration.
7071# Some systems (esp. on ia64) link data and code symbols differently,
7072# so use this general approach.
7073lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7074
7075# Transform an extracted symbol line into symbol name and symbol address
7076lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7077lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7078
7079# Handle CRLF in mingw tool chain
7080opt_cr=
7081case $build_os in
7082mingw*)
7083  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7084  ;;
7085esac
7086
7087# Try without a prefix underscore, then with it.
7088for ac_symprfx in "" "_"; do
7089
7090  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7091  symxfrm="\\1 $ac_symprfx\\2 \\2"
7092
7093  # Write the raw and C identifiers.
7094  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7095    # Fake it for dumpbin and say T for any non-static function
7096    # and D for any global variable.
7097    # Also find C++ and __fastcall symbols from MSVC++,
7098    # which start with @ or ?.
7099    lt_cv_sys_global_symbol_pipe="$AWK '"\
7100"     {last_section=section; section=\$ 3};"\
7101"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7102"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7103"     \$ 0!~/External *\|/{next};"\
7104"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7105"     {if(hide[section]) next};"\
7106"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7107"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7108"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7109"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7110"     ' prfx=^$ac_symprfx"
7111  else
7112    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7113  fi
7114  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7115
7116  # Check to see that the pipe works correctly.
7117  pipe_works=no
7118
7119  rm -f conftest*
7120  cat > conftest.$ac_ext <<_LT_EOF
7121#ifdef __cplusplus
7122extern "C" {
7123#endif
7124char nm_test_var;
7125void nm_test_func(void);
7126void nm_test_func(void){}
7127#ifdef __cplusplus
7128}
7129#endif
7130int main(){nm_test_var='a';nm_test_func();return(0);}
7131_LT_EOF
7132
7133  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7134  (eval $ac_compile) 2>&5
7135  ac_status=$?
7136  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7137  test $ac_status = 0; }; then
7138    # Now try to grab the symbols.
7139    nlist=conftest.nm
7140    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7141  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7142  ac_status=$?
7143  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7144  test $ac_status = 0; } && test -s "$nlist"; then
7145      # Try sorting and uniquifying the output.
7146      if sort "$nlist" | uniq > "$nlist"T; then
7147	mv -f "$nlist"T "$nlist"
7148      else
7149	rm -f "$nlist"T
7150      fi
7151
7152      # Make sure that we snagged all the symbols we need.
7153      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7154	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7155	  cat <<_LT_EOF > conftest.$ac_ext
7156/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7157#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7158/* DATA imports from DLLs on WIN32 con't be const, because runtime
7159   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7160# define LT_DLSYM_CONST
7161#elif defined(__osf__)
7162/* This system does not cope well with relocations in const data.  */
7163# define LT_DLSYM_CONST
7164#else
7165# define LT_DLSYM_CONST const
7166#endif
7167
7168#ifdef __cplusplus
7169extern "C" {
7170#endif
7171
7172_LT_EOF
7173	  # Now generate the symbol file.
7174	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7175
7176	  cat <<_LT_EOF >> conftest.$ac_ext
7177
7178/* The mapping between symbol names and symbols.  */
7179LT_DLSYM_CONST struct {
7180  const char *name;
7181  void       *address;
7182}
7183lt__PROGRAM__LTX_preloaded_symbols[] =
7184{
7185  { "@PROGRAM@", (void *) 0 },
7186_LT_EOF
7187	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7188	  cat <<\_LT_EOF >> conftest.$ac_ext
7189  {0, (void *) 0}
7190};
7191
7192/* This works around a problem in FreeBSD linker */
7193#ifdef FREEBSD_WORKAROUND
7194static const void *lt_preloaded_setup() {
7195  return lt__PROGRAM__LTX_preloaded_symbols;
7196}
7197#endif
7198
7199#ifdef __cplusplus
7200}
7201#endif
7202_LT_EOF
7203	  # Now try linking the two files.
7204	  mv conftest.$ac_objext conftstm.$ac_objext
7205	  lt_globsym_save_LIBS=$LIBS
7206	  lt_globsym_save_CFLAGS=$CFLAGS
7207	  LIBS="conftstm.$ac_objext"
7208	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7209	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7210  (eval $ac_link) 2>&5
7211  ac_status=$?
7212  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7213  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7214	    pipe_works=yes
7215	  fi
7216	  LIBS=$lt_globsym_save_LIBS
7217	  CFLAGS=$lt_globsym_save_CFLAGS
7218	else
7219	  echo "cannot find nm_test_func in $nlist" >&5
7220	fi
7221      else
7222	echo "cannot find nm_test_var in $nlist" >&5
7223      fi
7224    else
7225      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7226    fi
7227  else
7228    echo "$progname: failed program was:" >&5
7229    cat conftest.$ac_ext >&5
7230  fi
7231  rm -rf conftest* conftst*
7232
7233  # Do not use the global_symbol_pipe unless it works.
7234  if test "$pipe_works" = yes; then
7235    break
7236  else
7237    lt_cv_sys_global_symbol_pipe=
7238  fi
7239done
7240
7241fi
7242
7243if test -z "$lt_cv_sys_global_symbol_pipe"; then
7244  lt_cv_sys_global_symbol_to_cdecl=
7245fi
7246if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7248$as_echo "failed" >&6; }
7249else
7250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7251$as_echo "ok" >&6; }
7252fi
7253
7254# Response file support.
7255if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7256  nm_file_list_spec='@'
7257elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7258  nm_file_list_spec='@'
7259fi
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7288$as_echo_n "checking for sysroot... " >&6; }
7289
7290# Check whether --with-sysroot was given.
7291if test "${with_sysroot+set}" = set; then :
7292  withval=$with_sysroot;
7293else
7294  with_sysroot=no
7295fi
7296
7297
7298lt_sysroot=
7299case ${with_sysroot} in #(
7300 yes)
7301   if test "$GCC" = yes; then
7302     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7303   fi
7304   ;; #(
7305 /*)
7306   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7307   ;; #(
7308 no|'')
7309   ;; #(
7310 *)
7311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7312$as_echo "${with_sysroot}" >&6; }
7313   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7314   ;;
7315esac
7316
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7318$as_echo "${lt_sysroot:-no}" >&6; }
7319
7320
7321
7322
7323
7324# Check whether --enable-libtool-lock was given.
7325if test "${enable_libtool_lock+set}" = set; then :
7326  enableval=$enable_libtool_lock;
7327fi
7328
7329test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7330
7331# Some flags need to be propagated to the compiler or linker for good
7332# libtool support.
7333case $host in
7334ia64-*-hpux*)
7335  # Find out which ABI we are using.
7336  echo 'int i;' > conftest.$ac_ext
7337  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7338  (eval $ac_compile) 2>&5
7339  ac_status=$?
7340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7341  test $ac_status = 0; }; then
7342    case `/usr/bin/file conftest.$ac_objext` in
7343      *ELF-32*)
7344	HPUX_IA64_MODE="32"
7345	;;
7346      *ELF-64*)
7347	HPUX_IA64_MODE="64"
7348	;;
7349    esac
7350  fi
7351  rm -rf conftest*
7352  ;;
7353*-*-irix6*)
7354  # Find out which ABI we are using.
7355  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7356  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357  (eval $ac_compile) 2>&5
7358  ac_status=$?
7359  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7360  test $ac_status = 0; }; then
7361    if test "$lt_cv_prog_gnu_ld" = yes; then
7362      case `/usr/bin/file conftest.$ac_objext` in
7363	*32-bit*)
7364	  LD="${LD-ld} -melf32bsmip"
7365	  ;;
7366	*N32*)
7367	  LD="${LD-ld} -melf32bmipn32"
7368	  ;;
7369	*64-bit*)
7370	  LD="${LD-ld} -melf64bmip"
7371	;;
7372      esac
7373    else
7374      case `/usr/bin/file conftest.$ac_objext` in
7375	*32-bit*)
7376	  LD="${LD-ld} -32"
7377	  ;;
7378	*N32*)
7379	  LD="${LD-ld} -n32"
7380	  ;;
7381	*64-bit*)
7382	  LD="${LD-ld} -64"
7383	  ;;
7384      esac
7385    fi
7386  fi
7387  rm -rf conftest*
7388  ;;
7389
7390x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7391s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7392  # Find out which ABI we are using.
7393  echo 'int i;' > conftest.$ac_ext
7394  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7395  (eval $ac_compile) 2>&5
7396  ac_status=$?
7397  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7398  test $ac_status = 0; }; then
7399    case `/usr/bin/file conftest.o` in
7400      *32-bit*)
7401	case $host in
7402	  x86_64-*kfreebsd*-gnu)
7403	    LD="${LD-ld} -m elf_i386_fbsd"
7404	    ;;
7405	  x86_64-*linux*)
7406	    LD="${LD-ld} -m elf_i386"
7407	    ;;
7408	  ppc64-*linux*|powerpc64-*linux*)
7409	    LD="${LD-ld} -m elf32ppclinux"
7410	    ;;
7411	  s390x-*linux*)
7412	    LD="${LD-ld} -m elf_s390"
7413	    ;;
7414	  sparc64-*linux*)
7415	    LD="${LD-ld} -m elf32_sparc"
7416	    ;;
7417	esac
7418	;;
7419      *64-bit*)
7420	case $host in
7421	  x86_64-*kfreebsd*-gnu)
7422	    LD="${LD-ld} -m elf_x86_64_fbsd"
7423	    ;;
7424	  x86_64-*linux*)
7425	    LD="${LD-ld} -m elf_x86_64"
7426	    ;;
7427	  ppc*-*linux*|powerpc*-*linux*)
7428	    LD="${LD-ld} -m elf64ppc"
7429	    ;;
7430	  s390*-*linux*|s390*-*tpf*)
7431	    LD="${LD-ld} -m elf64_s390"
7432	    ;;
7433	  sparc*-*linux*)
7434	    LD="${LD-ld} -m elf64_sparc"
7435	    ;;
7436	esac
7437	;;
7438    esac
7439  fi
7440  rm -rf conftest*
7441  ;;
7442
7443*-*-sco3.2v5*)
7444  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7445  SAVE_CFLAGS="$CFLAGS"
7446  CFLAGS="$CFLAGS -belf"
7447  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7448$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7449if ${lt_cv_cc_needs_belf+:} false; then :
7450  $as_echo_n "(cached) " >&6
7451else
7452  ac_ext=c
7453ac_cpp='$CPP $CPPFLAGS'
7454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7456ac_compiler_gnu=$ac_cv_c_compiler_gnu
7457
7458     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459/* end confdefs.h.  */
7460
7461int
7462main ()
7463{
7464
7465  ;
7466  return 0;
7467}
7468_ACEOF
7469if ac_fn_c_try_link "$LINENO"; then :
7470  lt_cv_cc_needs_belf=yes
7471else
7472  lt_cv_cc_needs_belf=no
7473fi
7474rm -f core conftest.err conftest.$ac_objext \
7475    conftest$ac_exeext conftest.$ac_ext
7476     ac_ext=c
7477ac_cpp='$CPP $CPPFLAGS'
7478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7480ac_compiler_gnu=$ac_cv_c_compiler_gnu
7481
7482fi
7483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7484$as_echo "$lt_cv_cc_needs_belf" >&6; }
7485  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7486    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7487    CFLAGS="$SAVE_CFLAGS"
7488  fi
7489  ;;
7490*-*solaris*)
7491  # Find out which ABI we are using.
7492  echo 'int i;' > conftest.$ac_ext
7493  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7494  (eval $ac_compile) 2>&5
7495  ac_status=$?
7496  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7497  test $ac_status = 0; }; then
7498    case `/usr/bin/file conftest.o` in
7499    *64-bit*)
7500      case $lt_cv_prog_gnu_ld in
7501      yes*)
7502        case $host in
7503        i?86-*-solaris*)
7504          LD="${LD-ld} -m elf_x86_64"
7505          ;;
7506        sparc*-*-solaris*)
7507          LD="${LD-ld} -m elf64_sparc"
7508          ;;
7509        esac
7510        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7511        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7512          LD="${LD-ld}_sol2"
7513        fi
7514        ;;
7515      *)
7516	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7517	  LD="${LD-ld} -64"
7518	fi
7519	;;
7520      esac
7521      ;;
7522    esac
7523  fi
7524  rm -rf conftest*
7525  ;;
7526esac
7527
7528need_locks="$enable_libtool_lock"
7529
7530if test -n "$ac_tool_prefix"; then
7531  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7532set dummy ${ac_tool_prefix}mt; ac_word=$2
7533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534$as_echo_n "checking for $ac_word... " >&6; }
7535if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7536  $as_echo_n "(cached) " >&6
7537else
7538  if test -n "$MANIFEST_TOOL"; then
7539  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7540else
7541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542for as_dir in $PATH
7543do
7544  IFS=$as_save_IFS
7545  test -z "$as_dir" && as_dir=.
7546    for ac_exec_ext in '' $ac_executable_extensions; do
7547  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7548    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7549    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7550    break 2
7551  fi
7552done
7553  done
7554IFS=$as_save_IFS
7555
7556fi
7557fi
7558MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7559if test -n "$MANIFEST_TOOL"; then
7560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7561$as_echo "$MANIFEST_TOOL" >&6; }
7562else
7563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564$as_echo "no" >&6; }
7565fi
7566
7567
7568fi
7569if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7570  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7571  # Extract the first word of "mt", so it can be a program name with args.
7572set dummy mt; ac_word=$2
7573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7574$as_echo_n "checking for $ac_word... " >&6; }
7575if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7576  $as_echo_n "(cached) " >&6
7577else
7578  if test -n "$ac_ct_MANIFEST_TOOL"; then
7579  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7580else
7581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582for as_dir in $PATH
7583do
7584  IFS=$as_save_IFS
7585  test -z "$as_dir" && as_dir=.
7586    for ac_exec_ext in '' $ac_executable_extensions; do
7587  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7588    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7589    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7590    break 2
7591  fi
7592done
7593  done
7594IFS=$as_save_IFS
7595
7596fi
7597fi
7598ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7599if test -n "$ac_ct_MANIFEST_TOOL"; then
7600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7601$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7602else
7603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7604$as_echo "no" >&6; }
7605fi
7606
7607  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7608    MANIFEST_TOOL=":"
7609  else
7610    case $cross_compiling:$ac_tool_warned in
7611yes:)
7612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7614ac_tool_warned=yes ;;
7615esac
7616    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7617  fi
7618else
7619  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7620fi
7621
7622test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7624$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7625if ${lt_cv_path_mainfest_tool+:} false; then :
7626  $as_echo_n "(cached) " >&6
7627else
7628  lt_cv_path_mainfest_tool=no
7629  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7630  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7631  cat conftest.err >&5
7632  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7633    lt_cv_path_mainfest_tool=yes
7634  fi
7635  rm -f conftest*
7636fi
7637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7638$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7639if test "x$lt_cv_path_mainfest_tool" != xyes; then
7640  MANIFEST_TOOL=:
7641fi
7642
7643
7644
7645
7646
7647
7648  case $host_os in
7649    rhapsody* | darwin*)
7650    if test -n "$ac_tool_prefix"; then
7651  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7652set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7654$as_echo_n "checking for $ac_word... " >&6; }
7655if ${ac_cv_prog_DSYMUTIL+:} false; then :
7656  $as_echo_n "(cached) " >&6
7657else
7658  if test -n "$DSYMUTIL"; then
7659  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7660else
7661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662for as_dir in $PATH
7663do
7664  IFS=$as_save_IFS
7665  test -z "$as_dir" && as_dir=.
7666    for ac_exec_ext in '' $ac_executable_extensions; do
7667  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7668    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7670    break 2
7671  fi
7672done
7673  done
7674IFS=$as_save_IFS
7675
7676fi
7677fi
7678DSYMUTIL=$ac_cv_prog_DSYMUTIL
7679if test -n "$DSYMUTIL"; then
7680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7681$as_echo "$DSYMUTIL" >&6; }
7682else
7683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7684$as_echo "no" >&6; }
7685fi
7686
7687
7688fi
7689if test -z "$ac_cv_prog_DSYMUTIL"; then
7690  ac_ct_DSYMUTIL=$DSYMUTIL
7691  # Extract the first word of "dsymutil", so it can be a program name with args.
7692set dummy dsymutil; ac_word=$2
7693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7694$as_echo_n "checking for $ac_word... " >&6; }
7695if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7696  $as_echo_n "(cached) " >&6
7697else
7698  if test -n "$ac_ct_DSYMUTIL"; then
7699  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7700else
7701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702for as_dir in $PATH
7703do
7704  IFS=$as_save_IFS
7705  test -z "$as_dir" && as_dir=.
7706    for ac_exec_ext in '' $ac_executable_extensions; do
7707  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7708    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7710    break 2
7711  fi
7712done
7713  done
7714IFS=$as_save_IFS
7715
7716fi
7717fi
7718ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7719if test -n "$ac_ct_DSYMUTIL"; then
7720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7721$as_echo "$ac_ct_DSYMUTIL" >&6; }
7722else
7723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7724$as_echo "no" >&6; }
7725fi
7726
7727  if test "x$ac_ct_DSYMUTIL" = x; then
7728    DSYMUTIL=":"
7729  else
7730    case $cross_compiling:$ac_tool_warned in
7731yes:)
7732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7734ac_tool_warned=yes ;;
7735esac
7736    DSYMUTIL=$ac_ct_DSYMUTIL
7737  fi
7738else
7739  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7740fi
7741
7742    if test -n "$ac_tool_prefix"; then
7743  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7744set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7746$as_echo_n "checking for $ac_word... " >&6; }
7747if ${ac_cv_prog_NMEDIT+:} false; then :
7748  $as_echo_n "(cached) " >&6
7749else
7750  if test -n "$NMEDIT"; then
7751  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7752else
7753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754for as_dir in $PATH
7755do
7756  IFS=$as_save_IFS
7757  test -z "$as_dir" && as_dir=.
7758    for ac_exec_ext in '' $ac_executable_extensions; do
7759  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7760    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7761    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7762    break 2
7763  fi
7764done
7765  done
7766IFS=$as_save_IFS
7767
7768fi
7769fi
7770NMEDIT=$ac_cv_prog_NMEDIT
7771if test -n "$NMEDIT"; then
7772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7773$as_echo "$NMEDIT" >&6; }
7774else
7775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776$as_echo "no" >&6; }
7777fi
7778
7779
7780fi
7781if test -z "$ac_cv_prog_NMEDIT"; then
7782  ac_ct_NMEDIT=$NMEDIT
7783  # Extract the first word of "nmedit", so it can be a program name with args.
7784set dummy nmedit; ac_word=$2
7785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7786$as_echo_n "checking for $ac_word... " >&6; }
7787if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7788  $as_echo_n "(cached) " >&6
7789else
7790  if test -n "$ac_ct_NMEDIT"; then
7791  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7792else
7793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794for as_dir in $PATH
7795do
7796  IFS=$as_save_IFS
7797  test -z "$as_dir" && as_dir=.
7798    for ac_exec_ext in '' $ac_executable_extensions; do
7799  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7800    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7801    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7802    break 2
7803  fi
7804done
7805  done
7806IFS=$as_save_IFS
7807
7808fi
7809fi
7810ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7811if test -n "$ac_ct_NMEDIT"; then
7812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7813$as_echo "$ac_ct_NMEDIT" >&6; }
7814else
7815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816$as_echo "no" >&6; }
7817fi
7818
7819  if test "x$ac_ct_NMEDIT" = x; then
7820    NMEDIT=":"
7821  else
7822    case $cross_compiling:$ac_tool_warned in
7823yes:)
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7826ac_tool_warned=yes ;;
7827esac
7828    NMEDIT=$ac_ct_NMEDIT
7829  fi
7830else
7831  NMEDIT="$ac_cv_prog_NMEDIT"
7832fi
7833
7834    if test -n "$ac_tool_prefix"; then
7835  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7836set dummy ${ac_tool_prefix}lipo; ac_word=$2
7837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7838$as_echo_n "checking for $ac_word... " >&6; }
7839if ${ac_cv_prog_LIPO+:} false; then :
7840  $as_echo_n "(cached) " >&6
7841else
7842  if test -n "$LIPO"; then
7843  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7844else
7845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846for as_dir in $PATH
7847do
7848  IFS=$as_save_IFS
7849  test -z "$as_dir" && as_dir=.
7850    for ac_exec_ext in '' $ac_executable_extensions; do
7851  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7852    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7854    break 2
7855  fi
7856done
7857  done
7858IFS=$as_save_IFS
7859
7860fi
7861fi
7862LIPO=$ac_cv_prog_LIPO
7863if test -n "$LIPO"; then
7864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7865$as_echo "$LIPO" >&6; }
7866else
7867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868$as_echo "no" >&6; }
7869fi
7870
7871
7872fi
7873if test -z "$ac_cv_prog_LIPO"; then
7874  ac_ct_LIPO=$LIPO
7875  # Extract the first word of "lipo", so it can be a program name with args.
7876set dummy lipo; ac_word=$2
7877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878$as_echo_n "checking for $ac_word... " >&6; }
7879if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7880  $as_echo_n "(cached) " >&6
7881else
7882  if test -n "$ac_ct_LIPO"; then
7883  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7884else
7885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886for as_dir in $PATH
7887do
7888  IFS=$as_save_IFS
7889  test -z "$as_dir" && as_dir=.
7890    for ac_exec_ext in '' $ac_executable_extensions; do
7891  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7892    ac_cv_prog_ac_ct_LIPO="lipo"
7893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7894    break 2
7895  fi
7896done
7897  done
7898IFS=$as_save_IFS
7899
7900fi
7901fi
7902ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7903if test -n "$ac_ct_LIPO"; then
7904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7905$as_echo "$ac_ct_LIPO" >&6; }
7906else
7907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908$as_echo "no" >&6; }
7909fi
7910
7911  if test "x$ac_ct_LIPO" = x; then
7912    LIPO=":"
7913  else
7914    case $cross_compiling:$ac_tool_warned in
7915yes:)
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7918ac_tool_warned=yes ;;
7919esac
7920    LIPO=$ac_ct_LIPO
7921  fi
7922else
7923  LIPO="$ac_cv_prog_LIPO"
7924fi
7925
7926    if test -n "$ac_tool_prefix"; then
7927  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7928set dummy ${ac_tool_prefix}otool; ac_word=$2
7929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7930$as_echo_n "checking for $ac_word... " >&6; }
7931if ${ac_cv_prog_OTOOL+:} false; then :
7932  $as_echo_n "(cached) " >&6
7933else
7934  if test -n "$OTOOL"; then
7935  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7936else
7937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938for as_dir in $PATH
7939do
7940  IFS=$as_save_IFS
7941  test -z "$as_dir" && as_dir=.
7942    for ac_exec_ext in '' $ac_executable_extensions; do
7943  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7944    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7946    break 2
7947  fi
7948done
7949  done
7950IFS=$as_save_IFS
7951
7952fi
7953fi
7954OTOOL=$ac_cv_prog_OTOOL
7955if test -n "$OTOOL"; then
7956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7957$as_echo "$OTOOL" >&6; }
7958else
7959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960$as_echo "no" >&6; }
7961fi
7962
7963
7964fi
7965if test -z "$ac_cv_prog_OTOOL"; then
7966  ac_ct_OTOOL=$OTOOL
7967  # Extract the first word of "otool", so it can be a program name with args.
7968set dummy otool; ac_word=$2
7969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7970$as_echo_n "checking for $ac_word... " >&6; }
7971if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7972  $as_echo_n "(cached) " >&6
7973else
7974  if test -n "$ac_ct_OTOOL"; then
7975  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7976else
7977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978for as_dir in $PATH
7979do
7980  IFS=$as_save_IFS
7981  test -z "$as_dir" && as_dir=.
7982    for ac_exec_ext in '' $ac_executable_extensions; do
7983  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7984    ac_cv_prog_ac_ct_OTOOL="otool"
7985    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7986    break 2
7987  fi
7988done
7989  done
7990IFS=$as_save_IFS
7991
7992fi
7993fi
7994ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7995if test -n "$ac_ct_OTOOL"; then
7996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7997$as_echo "$ac_ct_OTOOL" >&6; }
7998else
7999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000$as_echo "no" >&6; }
8001fi
8002
8003  if test "x$ac_ct_OTOOL" = x; then
8004    OTOOL=":"
8005  else
8006    case $cross_compiling:$ac_tool_warned in
8007yes:)
8008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8010ac_tool_warned=yes ;;
8011esac
8012    OTOOL=$ac_ct_OTOOL
8013  fi
8014else
8015  OTOOL="$ac_cv_prog_OTOOL"
8016fi
8017
8018    if test -n "$ac_tool_prefix"; then
8019  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8020set dummy ${ac_tool_prefix}otool64; ac_word=$2
8021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8022$as_echo_n "checking for $ac_word... " >&6; }
8023if ${ac_cv_prog_OTOOL64+:} false; then :
8024  $as_echo_n "(cached) " >&6
8025else
8026  if test -n "$OTOOL64"; then
8027  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8028else
8029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030for as_dir in $PATH
8031do
8032  IFS=$as_save_IFS
8033  test -z "$as_dir" && as_dir=.
8034    for ac_exec_ext in '' $ac_executable_extensions; do
8035  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8036    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8038    break 2
8039  fi
8040done
8041  done
8042IFS=$as_save_IFS
8043
8044fi
8045fi
8046OTOOL64=$ac_cv_prog_OTOOL64
8047if test -n "$OTOOL64"; then
8048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8049$as_echo "$OTOOL64" >&6; }
8050else
8051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052$as_echo "no" >&6; }
8053fi
8054
8055
8056fi
8057if test -z "$ac_cv_prog_OTOOL64"; then
8058  ac_ct_OTOOL64=$OTOOL64
8059  # Extract the first word of "otool64", so it can be a program name with args.
8060set dummy otool64; ac_word=$2
8061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062$as_echo_n "checking for $ac_word... " >&6; }
8063if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8064  $as_echo_n "(cached) " >&6
8065else
8066  if test -n "$ac_ct_OTOOL64"; then
8067  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8068else
8069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070for as_dir in $PATH
8071do
8072  IFS=$as_save_IFS
8073  test -z "$as_dir" && as_dir=.
8074    for ac_exec_ext in '' $ac_executable_extensions; do
8075  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8076    ac_cv_prog_ac_ct_OTOOL64="otool64"
8077    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8078    break 2
8079  fi
8080done
8081  done
8082IFS=$as_save_IFS
8083
8084fi
8085fi
8086ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8087if test -n "$ac_ct_OTOOL64"; then
8088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8089$as_echo "$ac_ct_OTOOL64" >&6; }
8090else
8091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092$as_echo "no" >&6; }
8093fi
8094
8095  if test "x$ac_ct_OTOOL64" = x; then
8096    OTOOL64=":"
8097  else
8098    case $cross_compiling:$ac_tool_warned in
8099yes:)
8100{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8101$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8102ac_tool_warned=yes ;;
8103esac
8104    OTOOL64=$ac_ct_OTOOL64
8105  fi
8106else
8107  OTOOL64="$ac_cv_prog_OTOOL64"
8108fi
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8137$as_echo_n "checking for -single_module linker flag... " >&6; }
8138if ${lt_cv_apple_cc_single_mod+:} false; then :
8139  $as_echo_n "(cached) " >&6
8140else
8141  lt_cv_apple_cc_single_mod=no
8142      if test -z "${LT_MULTI_MODULE}"; then
8143	# By default we will add the -single_module flag. You can override
8144	# by either setting the environment variable LT_MULTI_MODULE
8145	# non-empty at configure time, or by adding -multi_module to the
8146	# link flags.
8147	rm -rf libconftest.dylib*
8148	echo "int foo(void){return 1;}" > conftest.c
8149	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8150-dynamiclib -Wl,-single_module conftest.c" >&5
8151	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8152	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8153        _lt_result=$?
8154	# If there is a non-empty error log, and "single_module"
8155	# appears in it, assume the flag caused a linker warning
8156        if test -s conftest.err && $GREP single_module conftest.err; then
8157	  cat conftest.err >&5
8158	# Otherwise, if the output was created with a 0 exit code from
8159	# the compiler, it worked.
8160	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8161	  lt_cv_apple_cc_single_mod=yes
8162	else
8163	  cat conftest.err >&5
8164	fi
8165	rm -rf libconftest.dylib*
8166	rm -f conftest.*
8167      fi
8168fi
8169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8170$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8171
8172    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8173$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8174if ${lt_cv_ld_exported_symbols_list+:} false; then :
8175  $as_echo_n "(cached) " >&6
8176else
8177  lt_cv_ld_exported_symbols_list=no
8178      save_LDFLAGS=$LDFLAGS
8179      echo "_main" > conftest.sym
8180      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8181      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8182/* end confdefs.h.  */
8183
8184int
8185main ()
8186{
8187
8188  ;
8189  return 0;
8190}
8191_ACEOF
8192if ac_fn_c_try_link "$LINENO"; then :
8193  lt_cv_ld_exported_symbols_list=yes
8194else
8195  lt_cv_ld_exported_symbols_list=no
8196fi
8197rm -f core conftest.err conftest.$ac_objext \
8198    conftest$ac_exeext conftest.$ac_ext
8199	LDFLAGS="$save_LDFLAGS"
8200
8201fi
8202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8203$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8204
8205    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8206$as_echo_n "checking for -force_load linker flag... " >&6; }
8207if ${lt_cv_ld_force_load+:} false; then :
8208  $as_echo_n "(cached) " >&6
8209else
8210  lt_cv_ld_force_load=no
8211      cat > conftest.c << _LT_EOF
8212int forced_loaded() { return 2;}
8213_LT_EOF
8214      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8215      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8216      echo "$AR cru libconftest.a conftest.o" >&5
8217      $AR cru libconftest.a conftest.o 2>&5
8218      echo "$RANLIB libconftest.a" >&5
8219      $RANLIB libconftest.a 2>&5
8220      cat > conftest.c << _LT_EOF
8221int main() { return 0;}
8222_LT_EOF
8223      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8224      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8225      _lt_result=$?
8226      if test -s conftest.err && $GREP force_load conftest.err; then
8227	cat conftest.err >&5
8228      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8229	lt_cv_ld_force_load=yes
8230      else
8231	cat conftest.err >&5
8232      fi
8233        rm -f conftest.err libconftest.a conftest conftest.c
8234        rm -rf conftest.dSYM
8235
8236fi
8237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8238$as_echo "$lt_cv_ld_force_load" >&6; }
8239    case $host_os in
8240    rhapsody* | darwin1.[012])
8241      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8242    darwin1.*)
8243      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8244    darwin*) # darwin 5.x on
8245      # if running on 10.5 or later, the deployment target defaults
8246      # to the OS version, if on x86, and 10.4, the deployment
8247      # target defaults to 10.4. Don't you love it?
8248      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8249	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8250	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8251	10.[012]*)
8252	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8253	10.*)
8254	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8255      esac
8256    ;;
8257  esac
8258    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8259      _lt_dar_single_mod='$single_module'
8260    fi
8261    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8262      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8263    else
8264      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8265    fi
8266    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8267      _lt_dsymutil='~$DSYMUTIL $lib || :'
8268    else
8269      _lt_dsymutil=
8270    fi
8271    ;;
8272  esac
8273
8274for ac_header in dlfcn.h
8275do :
8276  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8277"
8278if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8279  cat >>confdefs.h <<_ACEOF
8280#define HAVE_DLFCN_H 1
8281_ACEOF
8282
8283fi
8284
8285done
8286
8287
8288
8289
8290
8291# Set options
8292# Check whether --enable-static was given.
8293if test "${enable_static+set}" = set; then :
8294  enableval=$enable_static; p=${PACKAGE-default}
8295    case $enableval in
8296    yes) enable_static=yes ;;
8297    no) enable_static=no ;;
8298    *)
8299     enable_static=no
8300      # Look at the argument we got.  We use all the common list separators.
8301      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8302      for pkg in $enableval; do
8303	IFS="$lt_save_ifs"
8304	if test "X$pkg" = "X$p"; then
8305	  enable_static=yes
8306	fi
8307      done
8308      IFS="$lt_save_ifs"
8309      ;;
8310    esac
8311else
8312  enable_static=no
8313fi
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324        enable_dlopen=no
8325
8326
8327  enable_win32_dll=no
8328
8329
8330            # Check whether --enable-shared was given.
8331if test "${enable_shared+set}" = set; then :
8332  enableval=$enable_shared; p=${PACKAGE-default}
8333    case $enableval in
8334    yes) enable_shared=yes ;;
8335    no) enable_shared=no ;;
8336    *)
8337      enable_shared=no
8338      # Look at the argument we got.  We use all the common list separators.
8339      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8340      for pkg in $enableval; do
8341	IFS="$lt_save_ifs"
8342	if test "X$pkg" = "X$p"; then
8343	  enable_shared=yes
8344	fi
8345      done
8346      IFS="$lt_save_ifs"
8347      ;;
8348    esac
8349else
8350  enable_shared=yes
8351fi
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363# Check whether --with-pic was given.
8364if test "${with_pic+set}" = set; then :
8365  withval=$with_pic; lt_p=${PACKAGE-default}
8366    case $withval in
8367    yes|no) pic_mode=$withval ;;
8368    *)
8369      pic_mode=default
8370      # Look at the argument we got.  We use all the common list separators.
8371      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8372      for lt_pkg in $withval; do
8373	IFS="$lt_save_ifs"
8374	if test "X$lt_pkg" = "X$lt_p"; then
8375	  pic_mode=yes
8376	fi
8377      done
8378      IFS="$lt_save_ifs"
8379      ;;
8380    esac
8381else
8382  pic_mode=default
8383fi
8384
8385
8386test -z "$pic_mode" && pic_mode=default
8387
8388
8389
8390
8391
8392
8393
8394  # Check whether --enable-fast-install was given.
8395if test "${enable_fast_install+set}" = set; then :
8396  enableval=$enable_fast_install; p=${PACKAGE-default}
8397    case $enableval in
8398    yes) enable_fast_install=yes ;;
8399    no) enable_fast_install=no ;;
8400    *)
8401      enable_fast_install=no
8402      # Look at the argument we got.  We use all the common list separators.
8403      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8404      for pkg in $enableval; do
8405	IFS="$lt_save_ifs"
8406	if test "X$pkg" = "X$p"; then
8407	  enable_fast_install=yes
8408	fi
8409      done
8410      IFS="$lt_save_ifs"
8411      ;;
8412    esac
8413else
8414  enable_fast_install=yes
8415fi
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427# This can be used to rebuild libtool when needed
8428LIBTOOL_DEPS="$ltmain"
8429
8430# Always use our own libtool.
8431LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462test -z "$LN_S" && LN_S="ln -s"
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477if test -n "${ZSH_VERSION+set}" ; then
8478   setopt NO_GLOB_SUBST
8479fi
8480
8481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8482$as_echo_n "checking for objdir... " >&6; }
8483if ${lt_cv_objdir+:} false; then :
8484  $as_echo_n "(cached) " >&6
8485else
8486  rm -f .libs 2>/dev/null
8487mkdir .libs 2>/dev/null
8488if test -d .libs; then
8489  lt_cv_objdir=.libs
8490else
8491  # MS-DOS does not allow filenames that begin with a dot.
8492  lt_cv_objdir=_libs
8493fi
8494rmdir .libs 2>/dev/null
8495fi
8496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8497$as_echo "$lt_cv_objdir" >&6; }
8498objdir=$lt_cv_objdir
8499
8500
8501
8502
8503
8504cat >>confdefs.h <<_ACEOF
8505#define LT_OBJDIR "$lt_cv_objdir/"
8506_ACEOF
8507
8508
8509
8510
8511case $host_os in
8512aix3*)
8513  # AIX sometimes has problems with the GCC collect2 program.  For some
8514  # reason, if we set the COLLECT_NAMES environment variable, the problems
8515  # vanish in a puff of smoke.
8516  if test "X${COLLECT_NAMES+set}" != Xset; then
8517    COLLECT_NAMES=
8518    export COLLECT_NAMES
8519  fi
8520  ;;
8521esac
8522
8523# Global variables:
8524ofile=libtool
8525can_build_shared=yes
8526
8527# All known linkers require a `.a' archive for static linking (except MSVC,
8528# which needs '.lib').
8529libext=a
8530
8531with_gnu_ld="$lt_cv_prog_gnu_ld"
8532
8533old_CC="$CC"
8534old_CFLAGS="$CFLAGS"
8535
8536# Set sane defaults for various variables
8537test -z "$CC" && CC=cc
8538test -z "$LTCC" && LTCC=$CC
8539test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8540test -z "$LD" && LD=ld
8541test -z "$ac_objext" && ac_objext=o
8542
8543for cc_temp in $compiler""; do
8544  case $cc_temp in
8545    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8546    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8547    \-*) ;;
8548    *) break;;
8549  esac
8550done
8551cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8552
8553
8554# Only perform the check for file, if the check method requires it
8555test -z "$MAGIC_CMD" && MAGIC_CMD=file
8556case $deplibs_check_method in
8557file_magic*)
8558  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8559    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8560$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8561if ${lt_cv_path_MAGIC_CMD+:} false; then :
8562  $as_echo_n "(cached) " >&6
8563else
8564  case $MAGIC_CMD in
8565[\\/*] |  ?:[\\/]*)
8566  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8567  ;;
8568*)
8569  lt_save_MAGIC_CMD="$MAGIC_CMD"
8570  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8571  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8572  for ac_dir in $ac_dummy; do
8573    IFS="$lt_save_ifs"
8574    test -z "$ac_dir" && ac_dir=.
8575    if test -f $ac_dir/${ac_tool_prefix}file; then
8576      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8577      if test -n "$file_magic_test_file"; then
8578	case $deplibs_check_method in
8579	"file_magic "*)
8580	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8581	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8582	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8583	    $EGREP "$file_magic_regex" > /dev/null; then
8584	    :
8585	  else
8586	    cat <<_LT_EOF 1>&2
8587
8588*** Warning: the command libtool uses to detect shared libraries,
8589*** $file_magic_cmd, produces output that libtool cannot recognize.
8590*** The result is that libtool may fail to recognize shared libraries
8591*** as such.  This will affect the creation of libtool libraries that
8592*** depend on shared libraries, but programs linked with such libtool
8593*** libraries will work regardless of this problem.  Nevertheless, you
8594*** may want to report the problem to your system manager and/or to
8595*** bug-libtool@gnu.org
8596
8597_LT_EOF
8598	  fi ;;
8599	esac
8600      fi
8601      break
8602    fi
8603  done
8604  IFS="$lt_save_ifs"
8605  MAGIC_CMD="$lt_save_MAGIC_CMD"
8606  ;;
8607esac
8608fi
8609
8610MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8611if test -n "$MAGIC_CMD"; then
8612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8613$as_echo "$MAGIC_CMD" >&6; }
8614else
8615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616$as_echo "no" >&6; }
8617fi
8618
8619
8620
8621
8622
8623if test -z "$lt_cv_path_MAGIC_CMD"; then
8624  if test -n "$ac_tool_prefix"; then
8625    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8626$as_echo_n "checking for file... " >&6; }
8627if ${lt_cv_path_MAGIC_CMD+:} false; then :
8628  $as_echo_n "(cached) " >&6
8629else
8630  case $MAGIC_CMD in
8631[\\/*] |  ?:[\\/]*)
8632  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8633  ;;
8634*)
8635  lt_save_MAGIC_CMD="$MAGIC_CMD"
8636  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8637  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8638  for ac_dir in $ac_dummy; do
8639    IFS="$lt_save_ifs"
8640    test -z "$ac_dir" && ac_dir=.
8641    if test -f $ac_dir/file; then
8642      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8643      if test -n "$file_magic_test_file"; then
8644	case $deplibs_check_method in
8645	"file_magic "*)
8646	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8647	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8648	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8649	    $EGREP "$file_magic_regex" > /dev/null; then
8650	    :
8651	  else
8652	    cat <<_LT_EOF 1>&2
8653
8654*** Warning: the command libtool uses to detect shared libraries,
8655*** $file_magic_cmd, produces output that libtool cannot recognize.
8656*** The result is that libtool may fail to recognize shared libraries
8657*** as such.  This will affect the creation of libtool libraries that
8658*** depend on shared libraries, but programs linked with such libtool
8659*** libraries will work regardless of this problem.  Nevertheless, you
8660*** may want to report the problem to your system manager and/or to
8661*** bug-libtool@gnu.org
8662
8663_LT_EOF
8664	  fi ;;
8665	esac
8666      fi
8667      break
8668    fi
8669  done
8670  IFS="$lt_save_ifs"
8671  MAGIC_CMD="$lt_save_MAGIC_CMD"
8672  ;;
8673esac
8674fi
8675
8676MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8677if test -n "$MAGIC_CMD"; then
8678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8679$as_echo "$MAGIC_CMD" >&6; }
8680else
8681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682$as_echo "no" >&6; }
8683fi
8684
8685
8686  else
8687    MAGIC_CMD=:
8688  fi
8689fi
8690
8691  fi
8692  ;;
8693esac
8694
8695# Use C for the default configuration in the libtool script
8696
8697lt_save_CC="$CC"
8698ac_ext=c
8699ac_cpp='$CPP $CPPFLAGS'
8700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8702ac_compiler_gnu=$ac_cv_c_compiler_gnu
8703
8704
8705# Source file extension for C test sources.
8706ac_ext=c
8707
8708# Object file extension for compiled C test sources.
8709objext=o
8710objext=$objext
8711
8712# Code to be used in simple compile tests
8713lt_simple_compile_test_code="int some_variable = 0;"
8714
8715# Code to be used in simple link tests
8716lt_simple_link_test_code='int main(){return(0);}'
8717
8718
8719
8720
8721
8722
8723
8724# If no C compiler was specified, use CC.
8725LTCC=${LTCC-"$CC"}
8726
8727# If no C compiler flags were specified, use CFLAGS.
8728LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8729
8730# Allow CC to be a program name with arguments.
8731compiler=$CC
8732
8733# Save the default compiler, since it gets overwritten when the other
8734# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8735compiler_DEFAULT=$CC
8736
8737# save warnings/boilerplate of simple test code
8738ac_outfile=conftest.$ac_objext
8739echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8740eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8741_lt_compiler_boilerplate=`cat conftest.err`
8742$RM conftest*
8743
8744ac_outfile=conftest.$ac_objext
8745echo "$lt_simple_link_test_code" >conftest.$ac_ext
8746eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8747_lt_linker_boilerplate=`cat conftest.err`
8748$RM -r conftest*
8749
8750
8751## CAVEAT EMPTOR:
8752## There is no encapsulation within the following macros, do not change
8753## the running order or otherwise move them around unless you know exactly
8754## what you are doing...
8755if test -n "$compiler"; then
8756
8757lt_prog_compiler_no_builtin_flag=
8758
8759if test "$GCC" = yes; then
8760  case $cc_basename in
8761  nvcc*)
8762    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8763  *)
8764    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8765  esac
8766
8767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8768$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8769if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8770  $as_echo_n "(cached) " >&6
8771else
8772  lt_cv_prog_compiler_rtti_exceptions=no
8773   ac_outfile=conftest.$ac_objext
8774   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8775   lt_compiler_flag="-fno-rtti -fno-exceptions"
8776   # Insert the option either (1) after the last *FLAGS variable, or
8777   # (2) before a word containing "conftest.", or (3) at the end.
8778   # Note that $ac_compile itself does not contain backslashes and begins
8779   # with a dollar sign (not a hyphen), so the echo should work correctly.
8780   # The option is referenced via a variable to avoid confusing sed.
8781   lt_compile=`echo "$ac_compile" | $SED \
8782   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8783   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8784   -e 's:$: $lt_compiler_flag:'`
8785   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8786   (eval "$lt_compile" 2>conftest.err)
8787   ac_status=$?
8788   cat conftest.err >&5
8789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790   if (exit $ac_status) && test -s "$ac_outfile"; then
8791     # The compiler can only warn and ignore the option if not recognized
8792     # So say no if there are warnings other than the usual output.
8793     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8794     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8795     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8796       lt_cv_prog_compiler_rtti_exceptions=yes
8797     fi
8798   fi
8799   $RM conftest*
8800
8801fi
8802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8803$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8804
8805if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8806    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8807else
8808    :
8809fi
8810
8811fi
8812
8813
8814
8815
8816
8817
8818  lt_prog_compiler_wl=
8819lt_prog_compiler_pic=
8820lt_prog_compiler_static=
8821
8822
8823  if test "$GCC" = yes; then
8824    lt_prog_compiler_wl='-Wl,'
8825    lt_prog_compiler_static='-static'
8826
8827    case $host_os in
8828      aix*)
8829      # All AIX code is PIC.
8830      if test "$host_cpu" = ia64; then
8831	# AIX 5 now supports IA64 processor
8832	lt_prog_compiler_static='-Bstatic'
8833      fi
8834      ;;
8835
8836    amigaos*)
8837      case $host_cpu in
8838      powerpc)
8839            # see comment about AmigaOS4 .so support
8840            lt_prog_compiler_pic='-fPIC'
8841        ;;
8842      m68k)
8843            # FIXME: we need at least 68020 code to build shared libraries, but
8844            # adding the `-m68020' flag to GCC prevents building anything better,
8845            # like `-m68040'.
8846            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8847        ;;
8848      esac
8849      ;;
8850
8851    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8852      # PIC is the default for these OSes.
8853      ;;
8854
8855    mingw* | cygwin* | pw32* | os2* | cegcc*)
8856      # This hack is so that the source file can tell whether it is being
8857      # built for inclusion in a dll (and should export symbols for example).
8858      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8859      # (--disable-auto-import) libraries
8860      lt_prog_compiler_pic='-DDLL_EXPORT'
8861      ;;
8862
8863    darwin* | rhapsody*)
8864      # PIC is the default on this platform
8865      # Common symbols not allowed in MH_DYLIB files
8866      lt_prog_compiler_pic='-fno-common'
8867      ;;
8868
8869    haiku*)
8870      # PIC is the default for Haiku.
8871      # The "-static" flag exists, but is broken.
8872      lt_prog_compiler_static=
8873      ;;
8874
8875    hpux*)
8876      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8877      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8878      # sets the default TLS model and affects inlining.
8879      case $host_cpu in
8880      hppa*64*)
8881	# +Z the default
8882	;;
8883      *)
8884	lt_prog_compiler_pic='-fPIC'
8885	;;
8886      esac
8887      ;;
8888
8889    interix[3-9]*)
8890      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8891      # Instead, we relocate shared libraries at runtime.
8892      ;;
8893
8894    msdosdjgpp*)
8895      # Just because we use GCC doesn't mean we suddenly get shared libraries
8896      # on systems that don't support them.
8897      lt_prog_compiler_can_build_shared=no
8898      enable_shared=no
8899      ;;
8900
8901    *nto* | *qnx*)
8902      # QNX uses GNU C++, but need to define -shared option too, otherwise
8903      # it will coredump.
8904      lt_prog_compiler_pic='-fPIC -shared'
8905      ;;
8906
8907    sysv4*MP*)
8908      if test -d /usr/nec; then
8909	lt_prog_compiler_pic=-Kconform_pic
8910      fi
8911      ;;
8912
8913    *)
8914      lt_prog_compiler_pic='-fPIC'
8915      ;;
8916    esac
8917
8918    case $cc_basename in
8919    nvcc*) # Cuda Compiler Driver 2.2
8920      lt_prog_compiler_wl='-Xlinker '
8921      if test -n "$lt_prog_compiler_pic"; then
8922        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8923      fi
8924      ;;
8925    esac
8926  else
8927    # PORTME Check for flag to pass linker flags through the system compiler.
8928    case $host_os in
8929    aix*)
8930      lt_prog_compiler_wl='-Wl,'
8931      if test "$host_cpu" = ia64; then
8932	# AIX 5 now supports IA64 processor
8933	lt_prog_compiler_static='-Bstatic'
8934      else
8935	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8936      fi
8937      ;;
8938
8939    mingw* | cygwin* | pw32* | os2* | cegcc*)
8940      # This hack is so that the source file can tell whether it is being
8941      # built for inclusion in a dll (and should export symbols for example).
8942      lt_prog_compiler_pic='-DDLL_EXPORT'
8943      ;;
8944
8945    hpux9* | hpux10* | hpux11*)
8946      lt_prog_compiler_wl='-Wl,'
8947      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8948      # not for PA HP-UX.
8949      case $host_cpu in
8950      hppa*64*|ia64*)
8951	# +Z the default
8952	;;
8953      *)
8954	lt_prog_compiler_pic='+Z'
8955	;;
8956      esac
8957      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8958      lt_prog_compiler_static='${wl}-a ${wl}archive'
8959      ;;
8960
8961    irix5* | irix6* | nonstopux*)
8962      lt_prog_compiler_wl='-Wl,'
8963      # PIC (with -KPIC) is the default.
8964      lt_prog_compiler_static='-non_shared'
8965      ;;
8966
8967    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8968      case $cc_basename in
8969      # old Intel for x86_64 which still supported -KPIC.
8970      ecc*)
8971	lt_prog_compiler_wl='-Wl,'
8972	lt_prog_compiler_pic='-KPIC'
8973	lt_prog_compiler_static='-static'
8974        ;;
8975      # icc used to be incompatible with GCC.
8976      # ICC 10 doesn't accept -KPIC any more.
8977      icc* | ifort*)
8978	lt_prog_compiler_wl='-Wl,'
8979	lt_prog_compiler_pic='-fPIC'
8980	lt_prog_compiler_static='-static'
8981        ;;
8982      # Lahey Fortran 8.1.
8983      lf95*)
8984	lt_prog_compiler_wl='-Wl,'
8985	lt_prog_compiler_pic='--shared'
8986	lt_prog_compiler_static='--static'
8987	;;
8988      nagfor*)
8989	# NAG Fortran compiler
8990	lt_prog_compiler_wl='-Wl,-Wl,,'
8991	lt_prog_compiler_pic='-PIC'
8992	lt_prog_compiler_static='-Bstatic'
8993	;;
8994      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8995        # Portland Group compilers (*not* the Pentium gcc compiler,
8996	# which looks to be a dead project)
8997	lt_prog_compiler_wl='-Wl,'
8998	lt_prog_compiler_pic='-fpic'
8999	lt_prog_compiler_static='-Bstatic'
9000        ;;
9001      ccc*)
9002        lt_prog_compiler_wl='-Wl,'
9003        # All Alpha code is PIC.
9004        lt_prog_compiler_static='-non_shared'
9005        ;;
9006      xl* | bgxl* | bgf* | mpixl*)
9007	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9008	lt_prog_compiler_wl='-Wl,'
9009	lt_prog_compiler_pic='-qpic'
9010	lt_prog_compiler_static='-qstaticlink'
9011	;;
9012      *)
9013	case `$CC -V 2>&1 | sed 5q` in
9014	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9015	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9016	  lt_prog_compiler_pic='-KPIC'
9017	  lt_prog_compiler_static='-Bstatic'
9018	  lt_prog_compiler_wl=''
9019	  ;;
9020	*Sun\ F* | *Sun*Fortran*)
9021	  lt_prog_compiler_pic='-KPIC'
9022	  lt_prog_compiler_static='-Bstatic'
9023	  lt_prog_compiler_wl='-Qoption ld '
9024	  ;;
9025	*Sun\ C*)
9026	  # Sun C 5.9
9027	  lt_prog_compiler_pic='-KPIC'
9028	  lt_prog_compiler_static='-Bstatic'
9029	  lt_prog_compiler_wl='-Wl,'
9030	  ;;
9031        *Intel*\ [CF]*Compiler*)
9032	  lt_prog_compiler_wl='-Wl,'
9033	  lt_prog_compiler_pic='-fPIC'
9034	  lt_prog_compiler_static='-static'
9035	  ;;
9036	*Portland\ Group*)
9037	  lt_prog_compiler_wl='-Wl,'
9038	  lt_prog_compiler_pic='-fpic'
9039	  lt_prog_compiler_static='-Bstatic'
9040	  ;;
9041	esac
9042	;;
9043      esac
9044      ;;
9045
9046    newsos6)
9047      lt_prog_compiler_pic='-KPIC'
9048      lt_prog_compiler_static='-Bstatic'
9049      ;;
9050
9051    *nto* | *qnx*)
9052      # QNX uses GNU C++, but need to define -shared option too, otherwise
9053      # it will coredump.
9054      lt_prog_compiler_pic='-fPIC -shared'
9055      ;;
9056
9057    osf3* | osf4* | osf5*)
9058      lt_prog_compiler_wl='-Wl,'
9059      # All OSF/1 code is PIC.
9060      lt_prog_compiler_static='-non_shared'
9061      ;;
9062
9063    rdos*)
9064      lt_prog_compiler_static='-non_shared'
9065      ;;
9066
9067    solaris*)
9068      lt_prog_compiler_pic='-KPIC'
9069      lt_prog_compiler_static='-Bstatic'
9070      case $cc_basename in
9071      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9072	lt_prog_compiler_wl='-Qoption ld ';;
9073      *)
9074	lt_prog_compiler_wl='-Wl,';;
9075      esac
9076      ;;
9077
9078    sunos4*)
9079      lt_prog_compiler_wl='-Qoption ld '
9080      lt_prog_compiler_pic='-PIC'
9081      lt_prog_compiler_static='-Bstatic'
9082      ;;
9083
9084    sysv4 | sysv4.2uw2* | sysv4.3*)
9085      lt_prog_compiler_wl='-Wl,'
9086      lt_prog_compiler_pic='-KPIC'
9087      lt_prog_compiler_static='-Bstatic'
9088      ;;
9089
9090    sysv4*MP*)
9091      if test -d /usr/nec ;then
9092	lt_prog_compiler_pic='-Kconform_pic'
9093	lt_prog_compiler_static='-Bstatic'
9094      fi
9095      ;;
9096
9097    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9098      lt_prog_compiler_wl='-Wl,'
9099      lt_prog_compiler_pic='-KPIC'
9100      lt_prog_compiler_static='-Bstatic'
9101      ;;
9102
9103    unicos*)
9104      lt_prog_compiler_wl='-Wl,'
9105      lt_prog_compiler_can_build_shared=no
9106      ;;
9107
9108    uts4*)
9109      lt_prog_compiler_pic='-pic'
9110      lt_prog_compiler_static='-Bstatic'
9111      ;;
9112
9113    *)
9114      lt_prog_compiler_can_build_shared=no
9115      ;;
9116    esac
9117  fi
9118
9119case $host_os in
9120  # For platforms which do not support PIC, -DPIC is meaningless:
9121  *djgpp*)
9122    lt_prog_compiler_pic=
9123    ;;
9124  *)
9125    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9126    ;;
9127esac
9128
9129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9130$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9131if ${lt_cv_prog_compiler_pic+:} false; then :
9132  $as_echo_n "(cached) " >&6
9133else
9134  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9135fi
9136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9137$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9138lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9139
9140#
9141# Check to make sure the PIC flag actually works.
9142#
9143if test -n "$lt_prog_compiler_pic"; then
9144  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9145$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9146if ${lt_cv_prog_compiler_pic_works+:} false; then :
9147  $as_echo_n "(cached) " >&6
9148else
9149  lt_cv_prog_compiler_pic_works=no
9150   ac_outfile=conftest.$ac_objext
9151   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9152   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9153   # Insert the option either (1) after the last *FLAGS variable, or
9154   # (2) before a word containing "conftest.", or (3) at the end.
9155   # Note that $ac_compile itself does not contain backslashes and begins
9156   # with a dollar sign (not a hyphen), so the echo should work correctly.
9157   # The option is referenced via a variable to avoid confusing sed.
9158   lt_compile=`echo "$ac_compile" | $SED \
9159   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9160   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9161   -e 's:$: $lt_compiler_flag:'`
9162   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9163   (eval "$lt_compile" 2>conftest.err)
9164   ac_status=$?
9165   cat conftest.err >&5
9166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167   if (exit $ac_status) && test -s "$ac_outfile"; then
9168     # The compiler can only warn and ignore the option if not recognized
9169     # So say no if there are warnings other than the usual output.
9170     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9171     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9172     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9173       lt_cv_prog_compiler_pic_works=yes
9174     fi
9175   fi
9176   $RM conftest*
9177
9178fi
9179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9180$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9181
9182if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9183    case $lt_prog_compiler_pic in
9184     "" | " "*) ;;
9185     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9186     esac
9187else
9188    lt_prog_compiler_pic=
9189     lt_prog_compiler_can_build_shared=no
9190fi
9191
9192fi
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204#
9205# Check to make sure the static flag actually works.
9206#
9207wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9209$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9210if ${lt_cv_prog_compiler_static_works+:} false; then :
9211  $as_echo_n "(cached) " >&6
9212else
9213  lt_cv_prog_compiler_static_works=no
9214   save_LDFLAGS="$LDFLAGS"
9215   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9216   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9217   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9218     # The linker can only warn and ignore the option if not recognized
9219     # So say no if there are warnings
9220     if test -s conftest.err; then
9221       # Append any errors to the config.log.
9222       cat conftest.err 1>&5
9223       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9224       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9225       if diff conftest.exp conftest.er2 >/dev/null; then
9226         lt_cv_prog_compiler_static_works=yes
9227       fi
9228     else
9229       lt_cv_prog_compiler_static_works=yes
9230     fi
9231   fi
9232   $RM -r conftest*
9233   LDFLAGS="$save_LDFLAGS"
9234
9235fi
9236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9237$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9238
9239if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9240    :
9241else
9242    lt_prog_compiler_static=
9243fi
9244
9245
9246
9247
9248
9249
9250
9251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9252$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9253if ${lt_cv_prog_compiler_c_o+:} false; then :
9254  $as_echo_n "(cached) " >&6
9255else
9256  lt_cv_prog_compiler_c_o=no
9257   $RM -r conftest 2>/dev/null
9258   mkdir conftest
9259   cd conftest
9260   mkdir out
9261   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9262
9263   lt_compiler_flag="-o out/conftest2.$ac_objext"
9264   # Insert the option either (1) after the last *FLAGS variable, or
9265   # (2) before a word containing "conftest.", or (3) at the end.
9266   # Note that $ac_compile itself does not contain backslashes and begins
9267   # with a dollar sign (not a hyphen), so the echo should work correctly.
9268   lt_compile=`echo "$ac_compile" | $SED \
9269   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9270   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9271   -e 's:$: $lt_compiler_flag:'`
9272   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9273   (eval "$lt_compile" 2>out/conftest.err)
9274   ac_status=$?
9275   cat out/conftest.err >&5
9276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9278   then
9279     # The compiler can only warn and ignore the option if not recognized
9280     # So say no if there are warnings
9281     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9282     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9283     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9284       lt_cv_prog_compiler_c_o=yes
9285     fi
9286   fi
9287   chmod u+w . 2>&5
9288   $RM conftest*
9289   # SGI C++ compiler will create directory out/ii_files/ for
9290   # template instantiation
9291   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9292   $RM out/* && rmdir out
9293   cd ..
9294   $RM -r conftest
9295   $RM conftest*
9296
9297fi
9298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9299$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9300
9301
9302
9303
9304
9305
9306  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9307$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9308if ${lt_cv_prog_compiler_c_o+:} false; then :
9309  $as_echo_n "(cached) " >&6
9310else
9311  lt_cv_prog_compiler_c_o=no
9312   $RM -r conftest 2>/dev/null
9313   mkdir conftest
9314   cd conftest
9315   mkdir out
9316   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9317
9318   lt_compiler_flag="-o out/conftest2.$ac_objext"
9319   # Insert the option either (1) after the last *FLAGS variable, or
9320   # (2) before a word containing "conftest.", or (3) at the end.
9321   # Note that $ac_compile itself does not contain backslashes and begins
9322   # with a dollar sign (not a hyphen), so the echo should work correctly.
9323   lt_compile=`echo "$ac_compile" | $SED \
9324   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9325   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9326   -e 's:$: $lt_compiler_flag:'`
9327   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9328   (eval "$lt_compile" 2>out/conftest.err)
9329   ac_status=$?
9330   cat out/conftest.err >&5
9331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9333   then
9334     # The compiler can only warn and ignore the option if not recognized
9335     # So say no if there are warnings
9336     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9337     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9338     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9339       lt_cv_prog_compiler_c_o=yes
9340     fi
9341   fi
9342   chmod u+w . 2>&5
9343   $RM conftest*
9344   # SGI C++ compiler will create directory out/ii_files/ for
9345   # template instantiation
9346   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9347   $RM out/* && rmdir out
9348   cd ..
9349   $RM -r conftest
9350   $RM conftest*
9351
9352fi
9353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9354$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9355
9356
9357
9358
9359hard_links="nottested"
9360if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9361  # do not overwrite the value of need_locks provided by the user
9362  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9363$as_echo_n "checking if we can lock with hard links... " >&6; }
9364  hard_links=yes
9365  $RM conftest*
9366  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9367  touch conftest.a
9368  ln conftest.a conftest.b 2>&5 || hard_links=no
9369  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9371$as_echo "$hard_links" >&6; }
9372  if test "$hard_links" = no; then
9373    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9374$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9375    need_locks=warn
9376  fi
9377else
9378  need_locks=no
9379fi
9380
9381
9382
9383
9384
9385
9386  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9387$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9388
9389  runpath_var=
9390  allow_undefined_flag=
9391  always_export_symbols=no
9392  archive_cmds=
9393  archive_expsym_cmds=
9394  compiler_needs_object=no
9395  enable_shared_with_static_runtimes=no
9396  export_dynamic_flag_spec=
9397  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9398  hardcode_automatic=no
9399  hardcode_direct=no
9400  hardcode_direct_absolute=no
9401  hardcode_libdir_flag_spec=
9402  hardcode_libdir_separator=
9403  hardcode_minus_L=no
9404  hardcode_shlibpath_var=unsupported
9405  inherit_rpath=no
9406  link_all_deplibs=unknown
9407  module_cmds=
9408  module_expsym_cmds=
9409  old_archive_from_new_cmds=
9410  old_archive_from_expsyms_cmds=
9411  thread_safe_flag_spec=
9412  whole_archive_flag_spec=
9413  # include_expsyms should be a list of space-separated symbols to be *always*
9414  # included in the symbol list
9415  include_expsyms=
9416  # exclude_expsyms can be an extended regexp of symbols to exclude
9417  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9418  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9419  # as well as any symbol that contains `d'.
9420  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9421  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9422  # platforms (ab)use it in PIC code, but their linkers get confused if
9423  # the symbol is explicitly referenced.  Since portable code cannot
9424  # rely on this symbol name, it's probably fine to never include it in
9425  # preloaded symbol tables.
9426  # Exclude shared library initialization/finalization symbols.
9427  extract_expsyms_cmds=
9428
9429  case $host_os in
9430  cygwin* | mingw* | pw32* | cegcc*)
9431    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9432    # When not using gcc, we currently assume that we are using
9433    # Microsoft Visual C++.
9434    if test "$GCC" != yes; then
9435      with_gnu_ld=no
9436    fi
9437    ;;
9438  interix*)
9439    # we just hope/assume this is gcc and not c89 (= MSVC++)
9440    with_gnu_ld=yes
9441    ;;
9442  openbsd*)
9443    with_gnu_ld=no
9444    ;;
9445  esac
9446
9447  ld_shlibs=yes
9448
9449  # On some targets, GNU ld is compatible enough with the native linker
9450  # that we're better off using the native interface for both.
9451  lt_use_gnu_ld_interface=no
9452  if test "$with_gnu_ld" = yes; then
9453    case $host_os in
9454      aix*)
9455	# The AIX port of GNU ld has always aspired to compatibility
9456	# with the native linker.  However, as the warning in the GNU ld
9457	# block says, versions before 2.19.5* couldn't really create working
9458	# shared libraries, regardless of the interface used.
9459	case `$LD -v 2>&1` in
9460	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9461	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9462	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9463	  *)
9464	    lt_use_gnu_ld_interface=yes
9465	    ;;
9466	esac
9467	;;
9468      *)
9469	lt_use_gnu_ld_interface=yes
9470	;;
9471    esac
9472  fi
9473
9474  if test "$lt_use_gnu_ld_interface" = yes; then
9475    # If archive_cmds runs LD, not CC, wlarc should be empty
9476    wlarc='${wl}'
9477
9478    # Set some defaults for GNU ld with shared library support. These
9479    # are reset later if shared libraries are not supported. Putting them
9480    # here allows them to be overridden if necessary.
9481    runpath_var=LD_RUN_PATH
9482    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9483    export_dynamic_flag_spec='${wl}--export-dynamic'
9484    # ancient GNU ld didn't support --whole-archive et. al.
9485    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9486      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9487    else
9488      whole_archive_flag_spec=
9489    fi
9490    supports_anon_versioning=no
9491    case `$LD -v 2>&1` in
9492      *GNU\ gold*) supports_anon_versioning=yes ;;
9493      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9494      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9495      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9496      *\ 2.11.*) ;; # other 2.11 versions
9497      *) supports_anon_versioning=yes ;;
9498    esac
9499
9500    # See if GNU ld supports shared libraries.
9501    case $host_os in
9502    aix[3-9]*)
9503      # On AIX/PPC, the GNU linker is very broken
9504      if test "$host_cpu" != ia64; then
9505	ld_shlibs=no
9506	cat <<_LT_EOF 1>&2
9507
9508*** Warning: the GNU linker, at least up to release 2.19, is reported
9509*** to be unable to reliably create shared libraries on AIX.
9510*** Therefore, libtool is disabling shared libraries support.  If you
9511*** really care for shared libraries, you may want to install binutils
9512*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9513*** You will then need to restart the configuration process.
9514
9515_LT_EOF
9516      fi
9517      ;;
9518
9519    amigaos*)
9520      case $host_cpu in
9521      powerpc)
9522            # see comment about AmigaOS4 .so support
9523            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9524            archive_expsym_cmds=''
9525        ;;
9526      m68k)
9527            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)'
9528            hardcode_libdir_flag_spec='-L$libdir'
9529            hardcode_minus_L=yes
9530        ;;
9531      esac
9532      ;;
9533
9534    beos*)
9535      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9536	allow_undefined_flag=unsupported
9537	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9538	# support --undefined.  This deserves some investigation.  FIXME
9539	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9540      else
9541	ld_shlibs=no
9542      fi
9543      ;;
9544
9545    cygwin* | mingw* | pw32* | cegcc*)
9546      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9547      # as there is no search path for DLLs.
9548      hardcode_libdir_flag_spec='-L$libdir'
9549      export_dynamic_flag_spec='${wl}--export-all-symbols'
9550      allow_undefined_flag=unsupported
9551      always_export_symbols=no
9552      enable_shared_with_static_runtimes=yes
9553      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'
9554      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9555
9556      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9557        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9558	# If the export-symbols file already is a .def file (1st line
9559	# is EXPORTS), use it as is; otherwise, prepend...
9560	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9561	  cp $export_symbols $output_objdir/$soname.def;
9562	else
9563	  echo EXPORTS > $output_objdir/$soname.def;
9564	  cat $export_symbols >> $output_objdir/$soname.def;
9565	fi~
9566	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9567      else
9568	ld_shlibs=no
9569      fi
9570      ;;
9571
9572    haiku*)
9573      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9574      link_all_deplibs=yes
9575      ;;
9576
9577    interix[3-9]*)
9578      hardcode_direct=no
9579      hardcode_shlibpath_var=no
9580      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9581      export_dynamic_flag_spec='${wl}-E'
9582      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9583      # Instead, shared libraries are loaded at an image base (0x10000000 by
9584      # default) and relocated if they conflict, which is a slow very memory
9585      # consuming and fragmenting process.  To avoid this, we pick a random,
9586      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9587      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9588      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9589      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'
9590      ;;
9591
9592    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9593      tmp_diet=no
9594      if test "$host_os" = linux-dietlibc; then
9595	case $cc_basename in
9596	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9597	esac
9598      fi
9599      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9600	 && test "$tmp_diet" = no
9601      then
9602	tmp_addflag=' $pic_flag'
9603	tmp_sharedflag='-shared'
9604	case $cc_basename,$host_cpu in
9605        pgcc*)				# Portland Group C compiler
9606	  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'
9607	  tmp_addflag=' $pic_flag'
9608	  ;;
9609	pgf77* | pgf90* | pgf95* | pgfortran*)
9610					# Portland Group f77 and f90 compilers
9611	  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'
9612	  tmp_addflag=' $pic_flag -Mnomain' ;;
9613	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9614	  tmp_addflag=' -i_dynamic' ;;
9615	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9616	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9617	ifc* | ifort*)			# Intel Fortran compiler
9618	  tmp_addflag=' -nofor_main' ;;
9619	lf95*)				# Lahey Fortran 8.1
9620	  whole_archive_flag_spec=
9621	  tmp_sharedflag='--shared' ;;
9622	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9623	  tmp_sharedflag='-qmkshrobj'
9624	  tmp_addflag= ;;
9625	nvcc*)	# Cuda Compiler Driver 2.2
9626	  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'
9627	  compiler_needs_object=yes
9628	  ;;
9629	esac
9630	case `$CC -V 2>&1 | sed 5q` in
9631	*Sun\ C*)			# Sun C 5.9
9632	  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'
9633	  compiler_needs_object=yes
9634	  tmp_sharedflag='-G' ;;
9635	*Sun\ F*)			# Sun Fortran 8.3
9636	  tmp_sharedflag='-G' ;;
9637	esac
9638	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9639
9640        if test "x$supports_anon_versioning" = xyes; then
9641          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9642	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9643	    echo "local: *; };" >> $output_objdir/$libname.ver~
9644	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9645        fi
9646
9647	case $cc_basename in
9648	xlf* | bgf* | bgxlf* | mpixlf*)
9649	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9650	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9651	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9652	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9653	  if test "x$supports_anon_versioning" = xyes; then
9654	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9655	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9656	      echo "local: *; };" >> $output_objdir/$libname.ver~
9657	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9658	  fi
9659	  ;;
9660	esac
9661      else
9662        ld_shlibs=no
9663      fi
9664      ;;
9665
9666    netbsd*)
9667      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9668	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9669	wlarc=
9670      else
9671	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9672	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9673      fi
9674      ;;
9675
9676    solaris*)
9677      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9678	ld_shlibs=no
9679	cat <<_LT_EOF 1>&2
9680
9681*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9682*** create shared libraries on Solaris systems.  Therefore, libtool
9683*** is disabling shared libraries support.  We urge you to upgrade GNU
9684*** binutils to release 2.9.1 or newer.  Another option is to modify
9685*** your PATH or compiler configuration so that the native linker is
9686*** used, and then restart.
9687
9688_LT_EOF
9689      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9690	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9691	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9692      else
9693	ld_shlibs=no
9694      fi
9695      ;;
9696
9697    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9698      case `$LD -v 2>&1` in
9699        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9700	ld_shlibs=no
9701	cat <<_LT_EOF 1>&2
9702
9703*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9704*** reliably create shared libraries on SCO systems.  Therefore, libtool
9705*** is disabling shared libraries support.  We urge you to upgrade GNU
9706*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9707*** your PATH or compiler configuration so that the native linker is
9708*** used, and then restart.
9709
9710_LT_EOF
9711	;;
9712	*)
9713	  # For security reasons, it is highly recommended that you always
9714	  # use absolute paths for naming shared libraries, and exclude the
9715	  # DT_RUNPATH tag from executables and libraries.  But doing so
9716	  # requires that you compile everything twice, which is a pain.
9717	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9718	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9719	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9720	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9721	  else
9722	    ld_shlibs=no
9723	  fi
9724	;;
9725      esac
9726      ;;
9727
9728    sunos4*)
9729      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9730      wlarc=
9731      hardcode_direct=yes
9732      hardcode_shlibpath_var=no
9733      ;;
9734
9735    *)
9736      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9737	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9738	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9739      else
9740	ld_shlibs=no
9741      fi
9742      ;;
9743    esac
9744
9745    if test "$ld_shlibs" = no; then
9746      runpath_var=
9747      hardcode_libdir_flag_spec=
9748      export_dynamic_flag_spec=
9749      whole_archive_flag_spec=
9750    fi
9751  else
9752    # PORTME fill in a description of your system's linker (not GNU ld)
9753    case $host_os in
9754    aix3*)
9755      allow_undefined_flag=unsupported
9756      always_export_symbols=yes
9757      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'
9758      # Note: this linker hardcodes the directories in LIBPATH if there
9759      # are no directories specified by -L.
9760      hardcode_minus_L=yes
9761      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9762	# Neither direct hardcoding nor static linking is supported with a
9763	# broken collect2.
9764	hardcode_direct=unsupported
9765      fi
9766      ;;
9767
9768    aix[4-9]*)
9769      if test "$host_cpu" = ia64; then
9770	# On IA64, the linker does run time linking by default, so we don't
9771	# have to do anything special.
9772	aix_use_runtimelinking=no
9773	exp_sym_flag='-Bexport'
9774	no_entry_flag=""
9775      else
9776	# If we're using GNU nm, then we don't want the "-C" option.
9777	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9778	# Also, AIX nm treats weak defined symbols like other global
9779	# defined symbols, whereas GNU nm marks them as "W".
9780	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9781	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9782	else
9783	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9784	fi
9785	aix_use_runtimelinking=no
9786
9787	# Test if we are trying to use run time linking or normal
9788	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9789	# need to do runtime linking.
9790	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9791	  for ld_flag in $LDFLAGS; do
9792	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9793	    aix_use_runtimelinking=yes
9794	    break
9795	  fi
9796	  done
9797	  ;;
9798	esac
9799
9800	exp_sym_flag='-bexport'
9801	no_entry_flag='-bnoentry'
9802      fi
9803
9804      # When large executables or shared objects are built, AIX ld can
9805      # have problems creating the table of contents.  If linking a library
9806      # or program results in "error TOC overflow" add -mminimal-toc to
9807      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9808      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9809
9810      archive_cmds=''
9811      hardcode_direct=yes
9812      hardcode_direct_absolute=yes
9813      hardcode_libdir_separator=':'
9814      link_all_deplibs=yes
9815      file_list_spec='${wl}-f,'
9816
9817      if test "$GCC" = yes; then
9818	case $host_os in aix4.[012]|aix4.[012].*)
9819	# We only want to do this on AIX 4.2 and lower, the check
9820	# below for broken collect2 doesn't work under 4.3+
9821	  collect2name=`${CC} -print-prog-name=collect2`
9822	  if test -f "$collect2name" &&
9823	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9824	  then
9825	  # We have reworked collect2
9826	  :
9827	  else
9828	  # We have old collect2
9829	  hardcode_direct=unsupported
9830	  # It fails to find uninstalled libraries when the uninstalled
9831	  # path is not listed in the libpath.  Setting hardcode_minus_L
9832	  # to unsupported forces relinking
9833	  hardcode_minus_L=yes
9834	  hardcode_libdir_flag_spec='-L$libdir'
9835	  hardcode_libdir_separator=
9836	  fi
9837	  ;;
9838	esac
9839	shared_flag='-shared'
9840	if test "$aix_use_runtimelinking" = yes; then
9841	  shared_flag="$shared_flag "'${wl}-G'
9842	fi
9843      else
9844	# not using gcc
9845	if test "$host_cpu" = ia64; then
9846	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9847	# chokes on -Wl,-G. The following line is correct:
9848	  shared_flag='-G'
9849	else
9850	  if test "$aix_use_runtimelinking" = yes; then
9851	    shared_flag='${wl}-G'
9852	  else
9853	    shared_flag='${wl}-bM:SRE'
9854	  fi
9855	fi
9856      fi
9857
9858      export_dynamic_flag_spec='${wl}-bexpall'
9859      # It seems that -bexpall does not export symbols beginning with
9860      # underscore (_), so it is better to generate a list of symbols to export.
9861      always_export_symbols=yes
9862      if test "$aix_use_runtimelinking" = yes; then
9863	# Warning - without using the other runtime loading flags (-brtl),
9864	# -berok will link without error, but may produce a broken library.
9865	allow_undefined_flag='-berok'
9866        # Determine the default libpath from the value encoded in an
9867        # empty executable.
9868        if test "${lt_cv_aix_libpath+set}" = set; then
9869  aix_libpath=$lt_cv_aix_libpath
9870else
9871  if ${lt_cv_aix_libpath_+:} false; then :
9872  $as_echo_n "(cached) " >&6
9873else
9874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9875/* end confdefs.h.  */
9876
9877int
9878main ()
9879{
9880
9881  ;
9882  return 0;
9883}
9884_ACEOF
9885if ac_fn_c_try_link "$LINENO"; then :
9886
9887  lt_aix_libpath_sed='
9888      /Import File Strings/,/^$/ {
9889	  /^0/ {
9890	      s/^0  *\([^ ]*\) *$/\1/
9891	      p
9892	  }
9893      }'
9894  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9895  # Check for a 64-bit object if we didn't find anything.
9896  if test -z "$lt_cv_aix_libpath_"; then
9897    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9898  fi
9899fi
9900rm -f core conftest.err conftest.$ac_objext \
9901    conftest$ac_exeext conftest.$ac_ext
9902  if test -z "$lt_cv_aix_libpath_"; then
9903    lt_cv_aix_libpath_="/usr/lib:/lib"
9904  fi
9905
9906fi
9907
9908  aix_libpath=$lt_cv_aix_libpath_
9909fi
9910
9911        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9912        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9913      else
9914	if test "$host_cpu" = ia64; then
9915	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9916	  allow_undefined_flag="-z nodefs"
9917	  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"
9918	else
9919	 # Determine the default libpath from the value encoded in an
9920	 # empty executable.
9921	 if test "${lt_cv_aix_libpath+set}" = set; then
9922  aix_libpath=$lt_cv_aix_libpath
9923else
9924  if ${lt_cv_aix_libpath_+:} false; then :
9925  $as_echo_n "(cached) " >&6
9926else
9927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9928/* end confdefs.h.  */
9929
9930int
9931main ()
9932{
9933
9934  ;
9935  return 0;
9936}
9937_ACEOF
9938if ac_fn_c_try_link "$LINENO"; then :
9939
9940  lt_aix_libpath_sed='
9941      /Import File Strings/,/^$/ {
9942	  /^0/ {
9943	      s/^0  *\([^ ]*\) *$/\1/
9944	      p
9945	  }
9946      }'
9947  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9948  # Check for a 64-bit object if we didn't find anything.
9949  if test -z "$lt_cv_aix_libpath_"; then
9950    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9951  fi
9952fi
9953rm -f core conftest.err conftest.$ac_objext \
9954    conftest$ac_exeext conftest.$ac_ext
9955  if test -z "$lt_cv_aix_libpath_"; then
9956    lt_cv_aix_libpath_="/usr/lib:/lib"
9957  fi
9958
9959fi
9960
9961  aix_libpath=$lt_cv_aix_libpath_
9962fi
9963
9964	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9965	  # Warning - without using the other run time loading flags,
9966	  # -berok will link without error, but may produce a broken library.
9967	  no_undefined_flag=' ${wl}-bernotok'
9968	  allow_undefined_flag=' ${wl}-berok'
9969	  if test "$with_gnu_ld" = yes; then
9970	    # We only use this code for GNU lds that support --whole-archive.
9971	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9972	  else
9973	    # Exported symbols can be pulled into shared objects from archives
9974	    whole_archive_flag_spec='$convenience'
9975	  fi
9976	  archive_cmds_need_lc=yes
9977	  # This is similar to how AIX traditionally builds its shared libraries.
9978	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9979	fi
9980      fi
9981      ;;
9982
9983    amigaos*)
9984      case $host_cpu in
9985      powerpc)
9986            # see comment about AmigaOS4 .so support
9987            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9988            archive_expsym_cmds=''
9989        ;;
9990      m68k)
9991            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)'
9992            hardcode_libdir_flag_spec='-L$libdir'
9993            hardcode_minus_L=yes
9994        ;;
9995      esac
9996      ;;
9997
9998    bsdi[45]*)
9999      export_dynamic_flag_spec=-rdynamic
10000      ;;
10001
10002    cygwin* | mingw* | pw32* | cegcc*)
10003      # When not using gcc, we currently assume that we are using
10004      # Microsoft Visual C++.
10005      # hardcode_libdir_flag_spec is actually meaningless, as there is
10006      # no search path for DLLs.
10007      case $cc_basename in
10008      cl*)
10009	# Native MSVC
10010	hardcode_libdir_flag_spec=' '
10011	allow_undefined_flag=unsupported
10012	always_export_symbols=yes
10013	file_list_spec='@'
10014	# Tell ltmain to make .lib files, not .a files.
10015	libext=lib
10016	# Tell ltmain to make .dll files, not .so files.
10017	shrext_cmds=".dll"
10018	# FIXME: Setting linknames here is a bad hack.
10019	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10020	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10021	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10022	  else
10023	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10024	  fi~
10025	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10026	  linknames='
10027	# The linker will not automatically build a static lib if we build a DLL.
10028	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10029	enable_shared_with_static_runtimes=yes
10030	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10031	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10032	# Don't use ranlib
10033	old_postinstall_cmds='chmod 644 $oldlib'
10034	postlink_cmds='lt_outputfile="@OUTPUT@"~
10035	  lt_tool_outputfile="@TOOL_OUTPUT@"~
10036	  case $lt_outputfile in
10037	    *.exe|*.EXE) ;;
10038	    *)
10039	      lt_outputfile="$lt_outputfile.exe"
10040	      lt_tool_outputfile="$lt_tool_outputfile.exe"
10041	      ;;
10042	  esac~
10043	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10044	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10045	    $RM "$lt_outputfile.manifest";
10046	  fi'
10047	;;
10048      *)
10049	# Assume MSVC wrapper
10050	hardcode_libdir_flag_spec=' '
10051	allow_undefined_flag=unsupported
10052	# Tell ltmain to make .lib files, not .a files.
10053	libext=lib
10054	# Tell ltmain to make .dll files, not .so files.
10055	shrext_cmds=".dll"
10056	# FIXME: Setting linknames here is a bad hack.
10057	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10058	# The linker will automatically build a .lib file if we build a DLL.
10059	old_archive_from_new_cmds='true'
10060	# FIXME: Should let the user specify the lib program.
10061	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10062	enable_shared_with_static_runtimes=yes
10063	;;
10064      esac
10065      ;;
10066
10067    darwin* | rhapsody*)
10068
10069
10070  archive_cmds_need_lc=no
10071  hardcode_direct=no
10072  hardcode_automatic=yes
10073  hardcode_shlibpath_var=unsupported
10074  if test "$lt_cv_ld_force_load" = "yes"; then
10075    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\"`'
10076
10077  else
10078    whole_archive_flag_spec=''
10079  fi
10080  link_all_deplibs=yes
10081  allow_undefined_flag="$_lt_dar_allow_undefined"
10082  case $cc_basename in
10083     ifort*) _lt_dar_can_shared=yes ;;
10084     *) _lt_dar_can_shared=$GCC ;;
10085  esac
10086  if test "$_lt_dar_can_shared" = "yes"; then
10087    output_verbose_link_cmd=func_echo_all
10088    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10089    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10090    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}"
10091    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}"
10092
10093  else
10094  ld_shlibs=no
10095  fi
10096
10097      ;;
10098
10099    dgux*)
10100      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10101      hardcode_libdir_flag_spec='-L$libdir'
10102      hardcode_shlibpath_var=no
10103      ;;
10104
10105    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10106    # support.  Future versions do this automatically, but an explicit c++rt0.o
10107    # does not break anything, and helps significantly (at the cost of a little
10108    # extra space).
10109    freebsd2.2*)
10110      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10111      hardcode_libdir_flag_spec='-R$libdir'
10112      hardcode_direct=yes
10113      hardcode_shlibpath_var=no
10114      ;;
10115
10116    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10117    freebsd2.*)
10118      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10119      hardcode_direct=yes
10120      hardcode_minus_L=yes
10121      hardcode_shlibpath_var=no
10122      ;;
10123
10124    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10125    freebsd* | dragonfly*)
10126      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10127      hardcode_libdir_flag_spec='-R$libdir'
10128      hardcode_direct=yes
10129      hardcode_shlibpath_var=no
10130      ;;
10131
10132    hpux9*)
10133      if test "$GCC" = yes; then
10134	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10135      else
10136	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10137      fi
10138      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10139      hardcode_libdir_separator=:
10140      hardcode_direct=yes
10141
10142      # hardcode_minus_L: Not really in the search PATH,
10143      # but as the default location of the library.
10144      hardcode_minus_L=yes
10145      export_dynamic_flag_spec='${wl}-E'
10146      ;;
10147
10148    hpux10*)
10149      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10150	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10151      else
10152	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10153      fi
10154      if test "$with_gnu_ld" = no; then
10155	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10156	hardcode_libdir_separator=:
10157	hardcode_direct=yes
10158	hardcode_direct_absolute=yes
10159	export_dynamic_flag_spec='${wl}-E'
10160	# hardcode_minus_L: Not really in the search PATH,
10161	# but as the default location of the library.
10162	hardcode_minus_L=yes
10163      fi
10164      ;;
10165
10166    hpux11*)
10167      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10168	case $host_cpu in
10169	hppa*64*)
10170	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10171	  ;;
10172	ia64*)
10173	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10174	  ;;
10175	*)
10176	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10177	  ;;
10178	esac
10179      else
10180	case $host_cpu in
10181	hppa*64*)
10182	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10183	  ;;
10184	ia64*)
10185	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10186	  ;;
10187	*)
10188
10189	  # Older versions of the 11.00 compiler do not understand -b yet
10190	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10191	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10192$as_echo_n "checking if $CC understands -b... " >&6; }
10193if ${lt_cv_prog_compiler__b+:} false; then :
10194  $as_echo_n "(cached) " >&6
10195else
10196  lt_cv_prog_compiler__b=no
10197   save_LDFLAGS="$LDFLAGS"
10198   LDFLAGS="$LDFLAGS -b"
10199   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10200   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10201     # The linker can only warn and ignore the option if not recognized
10202     # So say no if there are warnings
10203     if test -s conftest.err; then
10204       # Append any errors to the config.log.
10205       cat conftest.err 1>&5
10206       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10207       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10208       if diff conftest.exp conftest.er2 >/dev/null; then
10209         lt_cv_prog_compiler__b=yes
10210       fi
10211     else
10212       lt_cv_prog_compiler__b=yes
10213     fi
10214   fi
10215   $RM -r conftest*
10216   LDFLAGS="$save_LDFLAGS"
10217
10218fi
10219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10220$as_echo "$lt_cv_prog_compiler__b" >&6; }
10221
10222if test x"$lt_cv_prog_compiler__b" = xyes; then
10223    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10224else
10225    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10226fi
10227
10228	  ;;
10229	esac
10230      fi
10231      if test "$with_gnu_ld" = no; then
10232	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10233	hardcode_libdir_separator=:
10234
10235	case $host_cpu in
10236	hppa*64*|ia64*)
10237	  hardcode_direct=no
10238	  hardcode_shlibpath_var=no
10239	  ;;
10240	*)
10241	  hardcode_direct=yes
10242	  hardcode_direct_absolute=yes
10243	  export_dynamic_flag_spec='${wl}-E'
10244
10245	  # hardcode_minus_L: Not really in the search PATH,
10246	  # but as the default location of the library.
10247	  hardcode_minus_L=yes
10248	  ;;
10249	esac
10250      fi
10251      ;;
10252
10253    irix5* | irix6* | nonstopux*)
10254      if test "$GCC" = yes; then
10255	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'
10256	# Try to use the -exported_symbol ld option, if it does not
10257	# work, assume that -exports_file does not work either and
10258	# implicitly export all symbols.
10259	# This should be the same for all languages, so no per-tag cache variable.
10260	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10261$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10262if ${lt_cv_irix_exported_symbol+:} false; then :
10263  $as_echo_n "(cached) " >&6
10264else
10265  save_LDFLAGS="$LDFLAGS"
10266	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10267	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10268/* end confdefs.h.  */
10269int foo (void) { return 0; }
10270_ACEOF
10271if ac_fn_c_try_link "$LINENO"; then :
10272  lt_cv_irix_exported_symbol=yes
10273else
10274  lt_cv_irix_exported_symbol=no
10275fi
10276rm -f core conftest.err conftest.$ac_objext \
10277    conftest$ac_exeext conftest.$ac_ext
10278           LDFLAGS="$save_LDFLAGS"
10279fi
10280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10281$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10282	if test "$lt_cv_irix_exported_symbol" = yes; then
10283          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'
10284	fi
10285      else
10286	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'
10287	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'
10288      fi
10289      archive_cmds_need_lc='no'
10290      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10291      hardcode_libdir_separator=:
10292      inherit_rpath=yes
10293      link_all_deplibs=yes
10294      ;;
10295
10296    netbsd*)
10297      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10298	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10299      else
10300	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10301      fi
10302      hardcode_libdir_flag_spec='-R$libdir'
10303      hardcode_direct=yes
10304      hardcode_shlibpath_var=no
10305      ;;
10306
10307    newsos6)
10308      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10309      hardcode_direct=yes
10310      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10311      hardcode_libdir_separator=:
10312      hardcode_shlibpath_var=no
10313      ;;
10314
10315    *nto* | *qnx*)
10316      ;;
10317
10318    openbsd*)
10319      if test -f /usr/libexec/ld.so; then
10320	hardcode_direct=yes
10321	hardcode_shlibpath_var=no
10322	hardcode_direct_absolute=yes
10323	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10324	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10325	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10326	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10327	  export_dynamic_flag_spec='${wl}-E'
10328	else
10329	  case $host_os in
10330	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10331	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10332	     hardcode_libdir_flag_spec='-R$libdir'
10333	     ;;
10334	   *)
10335	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10336	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10337	     ;;
10338	  esac
10339	fi
10340      else
10341	ld_shlibs=no
10342      fi
10343      ;;
10344
10345    os2*)
10346      hardcode_libdir_flag_spec='-L$libdir'
10347      hardcode_minus_L=yes
10348      allow_undefined_flag=unsupported
10349      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10350      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10351      ;;
10352
10353    osf3*)
10354      if test "$GCC" = yes; then
10355	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10356	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'
10357      else
10358	allow_undefined_flag=' -expect_unresolved \*'
10359	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'
10360      fi
10361      archive_cmds_need_lc='no'
10362      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10363      hardcode_libdir_separator=:
10364      ;;
10365
10366    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10367      if test "$GCC" = yes; then
10368	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10369	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'
10370	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10371      else
10372	allow_undefined_flag=' -expect_unresolved \*'
10373	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'
10374	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~
10375	$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'
10376
10377	# Both c and cxx compiler support -rpath directly
10378	hardcode_libdir_flag_spec='-rpath $libdir'
10379      fi
10380      archive_cmds_need_lc='no'
10381      hardcode_libdir_separator=:
10382      ;;
10383
10384    solaris*)
10385      no_undefined_flag=' -z defs'
10386      if test "$GCC" = yes; then
10387	wlarc='${wl}'
10388	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10389	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10390	  $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'
10391      else
10392	case `$CC -V 2>&1` in
10393	*"Compilers 5.0"*)
10394	  wlarc=''
10395	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10396	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10397	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10398	  ;;
10399	*)
10400	  wlarc='${wl}'
10401	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10402	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10403	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10404	  ;;
10405	esac
10406      fi
10407      hardcode_libdir_flag_spec='-R$libdir'
10408      hardcode_shlibpath_var=no
10409      case $host_os in
10410      solaris2.[0-5] | solaris2.[0-5].*) ;;
10411      *)
10412	# The compiler driver will combine and reorder linker options,
10413	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10414	# but is careful enough not to reorder.
10415	# Supported since Solaris 2.6 (maybe 2.5.1?)
10416	if test "$GCC" = yes; then
10417	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10418	else
10419	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10420	fi
10421	;;
10422      esac
10423      link_all_deplibs=yes
10424      ;;
10425
10426    sunos4*)
10427      if test "x$host_vendor" = xsequent; then
10428	# Use $CC to link under sequent, because it throws in some extra .o
10429	# files that make .init and .fini sections work.
10430	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10431      else
10432	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10433      fi
10434      hardcode_libdir_flag_spec='-L$libdir'
10435      hardcode_direct=yes
10436      hardcode_minus_L=yes
10437      hardcode_shlibpath_var=no
10438      ;;
10439
10440    sysv4)
10441      case $host_vendor in
10442	sni)
10443	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10444	  hardcode_direct=yes # is this really true???
10445	;;
10446	siemens)
10447	  ## LD is ld it makes a PLAMLIB
10448	  ## CC just makes a GrossModule.
10449	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10450	  reload_cmds='$CC -r -o $output$reload_objs'
10451	  hardcode_direct=no
10452        ;;
10453	motorola)
10454	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10455	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10456	;;
10457      esac
10458      runpath_var='LD_RUN_PATH'
10459      hardcode_shlibpath_var=no
10460      ;;
10461
10462    sysv4.3*)
10463      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10464      hardcode_shlibpath_var=no
10465      export_dynamic_flag_spec='-Bexport'
10466      ;;
10467
10468    sysv4*MP*)
10469      if test -d /usr/nec; then
10470	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10471	hardcode_shlibpath_var=no
10472	runpath_var=LD_RUN_PATH
10473	hardcode_runpath_var=yes
10474	ld_shlibs=yes
10475      fi
10476      ;;
10477
10478    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10479      no_undefined_flag='${wl}-z,text'
10480      archive_cmds_need_lc=no
10481      hardcode_shlibpath_var=no
10482      runpath_var='LD_RUN_PATH'
10483
10484      if test "$GCC" = yes; then
10485	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10486	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10487      else
10488	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10489	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10490      fi
10491      ;;
10492
10493    sysv5* | sco3.2v5* | sco5v6*)
10494      # Note: We can NOT use -z defs as we might desire, because we do not
10495      # link with -lc, and that would cause any symbols used from libc to
10496      # always be unresolved, which means just about no library would
10497      # ever link correctly.  If we're not using GNU ld we use -z text
10498      # though, which does catch some bad symbols but isn't as heavy-handed
10499      # as -z defs.
10500      no_undefined_flag='${wl}-z,text'
10501      allow_undefined_flag='${wl}-z,nodefs'
10502      archive_cmds_need_lc=no
10503      hardcode_shlibpath_var=no
10504      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10505      hardcode_libdir_separator=':'
10506      link_all_deplibs=yes
10507      export_dynamic_flag_spec='${wl}-Bexport'
10508      runpath_var='LD_RUN_PATH'
10509
10510      if test "$GCC" = yes; then
10511	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10512	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10513      else
10514	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10515	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10516      fi
10517      ;;
10518
10519    uts4*)
10520      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10521      hardcode_libdir_flag_spec='-L$libdir'
10522      hardcode_shlibpath_var=no
10523      ;;
10524
10525    *)
10526      ld_shlibs=no
10527      ;;
10528    esac
10529
10530    if test x$host_vendor = xsni; then
10531      case $host in
10532      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10533	export_dynamic_flag_spec='${wl}-Blargedynsym'
10534	;;
10535      esac
10536    fi
10537  fi
10538
10539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10540$as_echo "$ld_shlibs" >&6; }
10541test "$ld_shlibs" = no && can_build_shared=no
10542
10543with_gnu_ld=$with_gnu_ld
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559#
10560# Do we need to explicitly link libc?
10561#
10562case "x$archive_cmds_need_lc" in
10563x|xyes)
10564  # Assume -lc should be added
10565  archive_cmds_need_lc=yes
10566
10567  if test "$enable_shared" = yes && test "$GCC" = yes; then
10568    case $archive_cmds in
10569    *'~'*)
10570      # FIXME: we may have to deal with multi-command sequences.
10571      ;;
10572    '$CC '*)
10573      # Test whether the compiler implicitly links with -lc since on some
10574      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10575      # to ld, don't add -lc before -lgcc.
10576      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10577$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10578if ${lt_cv_archive_cmds_need_lc+:} false; then :
10579  $as_echo_n "(cached) " >&6
10580else
10581  $RM conftest*
10582	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10583
10584	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10585  (eval $ac_compile) 2>&5
10586  ac_status=$?
10587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10588  test $ac_status = 0; } 2>conftest.err; then
10589	  soname=conftest
10590	  lib=conftest
10591	  libobjs=conftest.$ac_objext
10592	  deplibs=
10593	  wl=$lt_prog_compiler_wl
10594	  pic_flag=$lt_prog_compiler_pic
10595	  compiler_flags=-v
10596	  linker_flags=-v
10597	  verstring=
10598	  output_objdir=.
10599	  libname=conftest
10600	  lt_save_allow_undefined_flag=$allow_undefined_flag
10601	  allow_undefined_flag=
10602	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10603  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10604  ac_status=$?
10605  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10606  test $ac_status = 0; }
10607	  then
10608	    lt_cv_archive_cmds_need_lc=no
10609	  else
10610	    lt_cv_archive_cmds_need_lc=yes
10611	  fi
10612	  allow_undefined_flag=$lt_save_allow_undefined_flag
10613	else
10614	  cat conftest.err 1>&5
10615	fi
10616	$RM conftest*
10617
10618fi
10619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10620$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10621      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10622      ;;
10623    esac
10624  fi
10625  ;;
10626esac
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10780$as_echo_n "checking dynamic linker characteristics... " >&6; }
10781
10782if test "$GCC" = yes; then
10783  case $host_os in
10784    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10785    *) lt_awk_arg="/^libraries:/" ;;
10786  esac
10787  case $host_os in
10788    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10789    *) lt_sed_strip_eq="s,=/,/,g" ;;
10790  esac
10791  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10792  case $lt_search_path_spec in
10793  *\;*)
10794    # if the path contains ";" then we assume it to be the separator
10795    # otherwise default to the standard path separator (i.e. ":") - it is
10796    # assumed that no part of a normal pathname contains ";" but that should
10797    # okay in the real world where ";" in dirpaths is itself problematic.
10798    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10799    ;;
10800  *)
10801    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10802    ;;
10803  esac
10804  # Ok, now we have the path, separated by spaces, we can step through it
10805  # and add multilib dir if necessary.
10806  lt_tmp_lt_search_path_spec=
10807  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10808  for lt_sys_path in $lt_search_path_spec; do
10809    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10810      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10811    else
10812      test -d "$lt_sys_path" && \
10813	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10814    fi
10815  done
10816  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10817BEGIN {RS=" "; FS="/|\n";} {
10818  lt_foo="";
10819  lt_count=0;
10820  for (lt_i = NF; lt_i > 0; lt_i--) {
10821    if ($lt_i != "" && $lt_i != ".") {
10822      if ($lt_i == "..") {
10823        lt_count++;
10824      } else {
10825        if (lt_count == 0) {
10826          lt_foo="/" $lt_i lt_foo;
10827        } else {
10828          lt_count--;
10829        }
10830      }
10831    }
10832  }
10833  if (lt_foo != "") { lt_freq[lt_foo]++; }
10834  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10835}'`
10836  # AWK program above erroneously prepends '/' to C:/dos/paths
10837  # for these hosts.
10838  case $host_os in
10839    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10840      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10841  esac
10842  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10843else
10844  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10845fi
10846library_names_spec=
10847libname_spec='lib$name'
10848soname_spec=
10849shrext_cmds=".so"
10850postinstall_cmds=
10851postuninstall_cmds=
10852finish_cmds=
10853finish_eval=
10854shlibpath_var=
10855shlibpath_overrides_runpath=unknown
10856version_type=none
10857dynamic_linker="$host_os ld.so"
10858sys_lib_dlsearch_path_spec="/lib /usr/lib"
10859need_lib_prefix=unknown
10860hardcode_into_libs=no
10861
10862# when you set need_version to no, make sure it does not cause -set_version
10863# flags to be left without arguments
10864need_version=unknown
10865
10866case $host_os in
10867aix3*)
10868  version_type=linux # correct to gnu/linux during the next big refactor
10869  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10870  shlibpath_var=LIBPATH
10871
10872  # AIX 3 has no versioning support, so we append a major version to the name.
10873  soname_spec='${libname}${release}${shared_ext}$major'
10874  ;;
10875
10876aix[4-9]*)
10877  version_type=linux # correct to gnu/linux during the next big refactor
10878  need_lib_prefix=no
10879  need_version=no
10880  hardcode_into_libs=yes
10881  if test "$host_cpu" = ia64; then
10882    # AIX 5 supports IA64
10883    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10884    shlibpath_var=LD_LIBRARY_PATH
10885  else
10886    # With GCC up to 2.95.x, collect2 would create an import file
10887    # for dependence libraries.  The import file would start with
10888    # the line `#! .'.  This would cause the generated library to
10889    # depend on `.', always an invalid library.  This was fixed in
10890    # development snapshots of GCC prior to 3.0.
10891    case $host_os in
10892      aix4 | aix4.[01] | aix4.[01].*)
10893      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10894	   echo ' yes '
10895	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10896	:
10897      else
10898	can_build_shared=no
10899      fi
10900      ;;
10901    esac
10902    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10903    # soname into executable. Probably we can add versioning support to
10904    # collect2, so additional links can be useful in future.
10905    if test "$aix_use_runtimelinking" = yes; then
10906      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10907      # instead of lib<name>.a to let people know that these are not
10908      # typical AIX shared libraries.
10909      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10910    else
10911      # We preserve .a as extension for shared libraries through AIX4.2
10912      # and later when we are not doing run time linking.
10913      library_names_spec='${libname}${release}.a $libname.a'
10914      soname_spec='${libname}${release}${shared_ext}$major'
10915    fi
10916    shlibpath_var=LIBPATH
10917  fi
10918  ;;
10919
10920amigaos*)
10921  case $host_cpu in
10922  powerpc)
10923    # Since July 2007 AmigaOS4 officially supports .so libraries.
10924    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10925    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10926    ;;
10927  m68k)
10928    library_names_spec='$libname.ixlibrary $libname.a'
10929    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10930    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
10931    ;;
10932  esac
10933  ;;
10934
10935beos*)
10936  library_names_spec='${libname}${shared_ext}'
10937  dynamic_linker="$host_os ld.so"
10938  shlibpath_var=LIBRARY_PATH
10939  ;;
10940
10941bsdi[45]*)
10942  version_type=linux # correct to gnu/linux during the next big refactor
10943  need_version=no
10944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10945  soname_spec='${libname}${release}${shared_ext}$major'
10946  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10947  shlibpath_var=LD_LIBRARY_PATH
10948  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10949  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10950  # the default ld.so.conf also contains /usr/contrib/lib and
10951  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10952  # libtool to hard-code these into programs
10953  ;;
10954
10955cygwin* | mingw* | pw32* | cegcc*)
10956  version_type=windows
10957  shrext_cmds=".dll"
10958  need_version=no
10959  need_lib_prefix=no
10960
10961  case $GCC,$cc_basename in
10962  yes,*)
10963    # gcc
10964    library_names_spec='$libname.dll.a'
10965    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10966    postinstall_cmds='base_file=`basename \${file}`~
10967      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10968      dldir=$destdir/`dirname \$dlpath`~
10969      test -d \$dldir || mkdir -p \$dldir~
10970      $install_prog $dir/$dlname \$dldir/$dlname~
10971      chmod a+x \$dldir/$dlname~
10972      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10973        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10974      fi'
10975    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10976      dlpath=$dir/\$dldll~
10977       $RM \$dlpath'
10978    shlibpath_overrides_runpath=yes
10979
10980    case $host_os in
10981    cygwin*)
10982      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10983      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10984
10985      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10986      ;;
10987    mingw* | cegcc*)
10988      # MinGW DLLs use traditional 'lib' prefix
10989      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10990      ;;
10991    pw32*)
10992      # pw32 DLLs use 'pw' prefix rather than 'lib'
10993      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10994      ;;
10995    esac
10996    dynamic_linker='Win32 ld.exe'
10997    ;;
10998
10999  *,cl*)
11000    # Native MSVC
11001    libname_spec='$name'
11002    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11003    library_names_spec='${libname}.dll.lib'
11004
11005    case $build_os in
11006    mingw*)
11007      sys_lib_search_path_spec=
11008      lt_save_ifs=$IFS
11009      IFS=';'
11010      for lt_path in $LIB
11011      do
11012        IFS=$lt_save_ifs
11013        # Let DOS variable expansion print the short 8.3 style file name.
11014        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11015        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11016      done
11017      IFS=$lt_save_ifs
11018      # Convert to MSYS style.
11019      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11020      ;;
11021    cygwin*)
11022      # Convert to unix form, then to dos form, then back to unix form
11023      # but this time dos style (no spaces!) so that the unix form looks
11024      # like /cygdrive/c/PROGRA~1:/cygdr...
11025      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11026      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11027      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11028      ;;
11029    *)
11030      sys_lib_search_path_spec="$LIB"
11031      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11032        # It is most probably a Windows format PATH.
11033        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11034      else
11035        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11036      fi
11037      # FIXME: find the short name or the path components, as spaces are
11038      # common. (e.g. "Program Files" -> "PROGRA~1")
11039      ;;
11040    esac
11041
11042    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11043    postinstall_cmds='base_file=`basename \${file}`~
11044      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11045      dldir=$destdir/`dirname \$dlpath`~
11046      test -d \$dldir || mkdir -p \$dldir~
11047      $install_prog $dir/$dlname \$dldir/$dlname'
11048    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11049      dlpath=$dir/\$dldll~
11050       $RM \$dlpath'
11051    shlibpath_overrides_runpath=yes
11052    dynamic_linker='Win32 link.exe'
11053    ;;
11054
11055  *)
11056    # Assume MSVC wrapper
11057    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11058    dynamic_linker='Win32 ld.exe'
11059    ;;
11060  esac
11061  # FIXME: first we should search . and the directory the executable is in
11062  shlibpath_var=PATH
11063  ;;
11064
11065darwin* | rhapsody*)
11066  dynamic_linker="$host_os dyld"
11067  version_type=darwin
11068  need_lib_prefix=no
11069  need_version=no
11070  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11071  soname_spec='${libname}${release}${major}$shared_ext'
11072  shlibpath_overrides_runpath=yes
11073  shlibpath_var=DYLD_LIBRARY_PATH
11074  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11075
11076  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11077  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11078  ;;
11079
11080dgux*)
11081  version_type=linux # correct to gnu/linux during the next big refactor
11082  need_lib_prefix=no
11083  need_version=no
11084  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11085  soname_spec='${libname}${release}${shared_ext}$major'
11086  shlibpath_var=LD_LIBRARY_PATH
11087  ;;
11088
11089freebsd* | dragonfly*)
11090  # DragonFly does not have aout.  When/if they implement a new
11091  # versioning mechanism, adjust this.
11092  if test -x /usr/bin/objformat; then
11093    objformat=`/usr/bin/objformat`
11094  else
11095    case $host_os in
11096    freebsd[23].*) objformat=aout ;;
11097    *) objformat=elf ;;
11098    esac
11099  fi
11100  version_type=freebsd-$objformat
11101  case $version_type in
11102    freebsd-elf*)
11103      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11104      need_version=no
11105      need_lib_prefix=no
11106      ;;
11107    freebsd-*)
11108      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11109      need_version=yes
11110      ;;
11111  esac
11112  shlibpath_var=LD_LIBRARY_PATH
11113  case $host_os in
11114  freebsd2.*)
11115    shlibpath_overrides_runpath=yes
11116    ;;
11117  freebsd3.[01]* | freebsdelf3.[01]*)
11118    shlibpath_overrides_runpath=yes
11119    hardcode_into_libs=yes
11120    ;;
11121  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11122  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11123    shlibpath_overrides_runpath=no
11124    hardcode_into_libs=yes
11125    ;;
11126  *) # from 4.6 on, and DragonFly
11127    shlibpath_overrides_runpath=yes
11128    hardcode_into_libs=yes
11129    ;;
11130  esac
11131  ;;
11132
11133gnu*)
11134  version_type=linux # correct to gnu/linux during the next big refactor
11135  need_lib_prefix=no
11136  need_version=no
11137  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11138  soname_spec='${libname}${release}${shared_ext}$major'
11139  shlibpath_var=LD_LIBRARY_PATH
11140  shlibpath_overrides_runpath=no
11141  hardcode_into_libs=yes
11142  ;;
11143
11144haiku*)
11145  version_type=linux # correct to gnu/linux during the next big refactor
11146  need_lib_prefix=no
11147  need_version=no
11148  dynamic_linker="$host_os runtime_loader"
11149  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11150  soname_spec='${libname}${release}${shared_ext}$major'
11151  shlibpath_var=LIBRARY_PATH
11152  shlibpath_overrides_runpath=yes
11153  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11154  hardcode_into_libs=yes
11155  ;;
11156
11157hpux9* | hpux10* | hpux11*)
11158  # Give a soname corresponding to the major version so that dld.sl refuses to
11159  # link against other versions.
11160  version_type=sunos
11161  need_lib_prefix=no
11162  need_version=no
11163  case $host_cpu in
11164  ia64*)
11165    shrext_cmds='.so'
11166    hardcode_into_libs=yes
11167    dynamic_linker="$host_os dld.so"
11168    shlibpath_var=LD_LIBRARY_PATH
11169    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11170    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11171    soname_spec='${libname}${release}${shared_ext}$major'
11172    if test "X$HPUX_IA64_MODE" = X32; then
11173      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11174    else
11175      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11176    fi
11177    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11178    ;;
11179  hppa*64*)
11180    shrext_cmds='.sl'
11181    hardcode_into_libs=yes
11182    dynamic_linker="$host_os dld.sl"
11183    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11184    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11185    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11186    soname_spec='${libname}${release}${shared_ext}$major'
11187    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11188    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11189    ;;
11190  *)
11191    shrext_cmds='.sl'
11192    dynamic_linker="$host_os dld.sl"
11193    shlibpath_var=SHLIB_PATH
11194    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11195    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11196    soname_spec='${libname}${release}${shared_ext}$major'
11197    ;;
11198  esac
11199  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11200  postinstall_cmds='chmod 555 $lib'
11201  # or fails outright, so override atomically:
11202  install_override_mode=555
11203  ;;
11204
11205interix[3-9]*)
11206  version_type=linux # correct to gnu/linux during the next big refactor
11207  need_lib_prefix=no
11208  need_version=no
11209  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11210  soname_spec='${libname}${release}${shared_ext}$major'
11211  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11212  shlibpath_var=LD_LIBRARY_PATH
11213  shlibpath_overrides_runpath=no
11214  hardcode_into_libs=yes
11215  ;;
11216
11217irix5* | irix6* | nonstopux*)
11218  case $host_os in
11219    nonstopux*) version_type=nonstopux ;;
11220    *)
11221	if test "$lt_cv_prog_gnu_ld" = yes; then
11222		version_type=linux # correct to gnu/linux during the next big refactor
11223	else
11224		version_type=irix
11225	fi ;;
11226  esac
11227  need_lib_prefix=no
11228  need_version=no
11229  soname_spec='${libname}${release}${shared_ext}$major'
11230  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11231  case $host_os in
11232  irix5* | nonstopux*)
11233    libsuff= shlibsuff=
11234    ;;
11235  *)
11236    case $LD in # libtool.m4 will add one of these switches to LD
11237    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11238      libsuff= shlibsuff= libmagic=32-bit;;
11239    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11240      libsuff=32 shlibsuff=N32 libmagic=N32;;
11241    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11242      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11243    *) libsuff= shlibsuff= libmagic=never-match;;
11244    esac
11245    ;;
11246  esac
11247  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11248  shlibpath_overrides_runpath=no
11249  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11250  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11251  hardcode_into_libs=yes
11252  ;;
11253
11254# No shared lib support for Linux oldld, aout, or coff.
11255linux*oldld* | linux*aout* | linux*coff*)
11256  dynamic_linker=no
11257  ;;
11258
11259# This must be glibc/ELF.
11260linux* | k*bsd*-gnu | kopensolaris*-gnu)
11261  version_type=linux # correct to gnu/linux during the next big refactor
11262  need_lib_prefix=no
11263  need_version=no
11264  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11265  soname_spec='${libname}${release}${shared_ext}$major'
11266  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11267  shlibpath_var=LD_LIBRARY_PATH
11268  shlibpath_overrides_runpath=no
11269
11270  # Some binutils ld are patched to set DT_RUNPATH
11271  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11272  $as_echo_n "(cached) " >&6
11273else
11274  lt_cv_shlibpath_overrides_runpath=no
11275    save_LDFLAGS=$LDFLAGS
11276    save_libdir=$libdir
11277    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11278	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11279    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280/* end confdefs.h.  */
11281
11282int
11283main ()
11284{
11285
11286  ;
11287  return 0;
11288}
11289_ACEOF
11290if ac_fn_c_try_link "$LINENO"; then :
11291  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11292  lt_cv_shlibpath_overrides_runpath=yes
11293fi
11294fi
11295rm -f core conftest.err conftest.$ac_objext \
11296    conftest$ac_exeext conftest.$ac_ext
11297    LDFLAGS=$save_LDFLAGS
11298    libdir=$save_libdir
11299
11300fi
11301
11302  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11303
11304  # This implies no fast_install, which is unacceptable.
11305  # Some rework will be needed to allow for fast_install
11306  # before this can be enabled.
11307  hardcode_into_libs=yes
11308
11309  # Add ABI-specific directories to the system library path.
11310  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11311
11312  # Append ld.so.conf contents to the search path
11313  if test -f /etc/ld.so.conf; then
11314    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' ' '`
11315    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11316
11317  fi
11318
11319  # We used to test for /lib/ld.so.1 and disable shared libraries on
11320  # powerpc, because MkLinux only supported shared libraries with the
11321  # GNU dynamic linker.  Since this was broken with cross compilers,
11322  # most powerpc-linux boxes support dynamic linking these days and
11323  # people can always --disable-shared, the test was removed, and we
11324  # assume the GNU/Linux dynamic linker is in use.
11325  dynamic_linker='GNU/Linux ld.so'
11326  ;;
11327
11328netbsd*)
11329  version_type=sunos
11330  need_lib_prefix=no
11331  need_version=no
11332  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11333    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11334    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11335    dynamic_linker='NetBSD (a.out) ld.so'
11336  else
11337    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11338    soname_spec='${libname}${release}${shared_ext}$major'
11339    dynamic_linker='NetBSD ld.elf_so'
11340  fi
11341  shlibpath_var=LD_LIBRARY_PATH
11342  shlibpath_overrides_runpath=yes
11343  hardcode_into_libs=yes
11344  ;;
11345
11346newsos6)
11347  version_type=linux # correct to gnu/linux during the next big refactor
11348  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11349  shlibpath_var=LD_LIBRARY_PATH
11350  shlibpath_overrides_runpath=yes
11351  ;;
11352
11353*nto* | *qnx*)
11354  version_type=qnx
11355  need_lib_prefix=no
11356  need_version=no
11357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11358  soname_spec='${libname}${release}${shared_ext}$major'
11359  shlibpath_var=LD_LIBRARY_PATH
11360  shlibpath_overrides_runpath=no
11361  hardcode_into_libs=yes
11362  dynamic_linker='ldqnx.so'
11363  ;;
11364
11365openbsd*)
11366  version_type=sunos
11367  sys_lib_dlsearch_path_spec="/usr/lib"
11368  need_lib_prefix=no
11369  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11370  case $host_os in
11371    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11372    *)				need_version=no  ;;
11373  esac
11374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11375  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11376  shlibpath_var=LD_LIBRARY_PATH
11377  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11378    case $host_os in
11379      openbsd2.[89] | openbsd2.[89].*)
11380	shlibpath_overrides_runpath=no
11381	;;
11382      *)
11383	shlibpath_overrides_runpath=yes
11384	;;
11385      esac
11386  else
11387    shlibpath_overrides_runpath=yes
11388  fi
11389  ;;
11390
11391os2*)
11392  libname_spec='$name'
11393  shrext_cmds=".dll"
11394  need_lib_prefix=no
11395  library_names_spec='$libname${shared_ext} $libname.a'
11396  dynamic_linker='OS/2 ld.exe'
11397  shlibpath_var=LIBPATH
11398  ;;
11399
11400osf3* | osf4* | osf5*)
11401  version_type=osf
11402  need_lib_prefix=no
11403  need_version=no
11404  soname_spec='${libname}${release}${shared_ext}$major'
11405  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11406  shlibpath_var=LD_LIBRARY_PATH
11407  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11408  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11409  ;;
11410
11411rdos*)
11412  dynamic_linker=no
11413  ;;
11414
11415solaris*)
11416  version_type=linux # correct to gnu/linux during the next big refactor
11417  need_lib_prefix=no
11418  need_version=no
11419  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11420  soname_spec='${libname}${release}${shared_ext}$major'
11421  shlibpath_var=LD_LIBRARY_PATH
11422  shlibpath_overrides_runpath=yes
11423  hardcode_into_libs=yes
11424  # ldd complains unless libraries are executable
11425  postinstall_cmds='chmod +x $lib'
11426  ;;
11427
11428sunos4*)
11429  version_type=sunos
11430  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11431  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11432  shlibpath_var=LD_LIBRARY_PATH
11433  shlibpath_overrides_runpath=yes
11434  if test "$with_gnu_ld" = yes; then
11435    need_lib_prefix=no
11436  fi
11437  need_version=yes
11438  ;;
11439
11440sysv4 | sysv4.3*)
11441  version_type=linux # correct to gnu/linux during the next big refactor
11442  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11443  soname_spec='${libname}${release}${shared_ext}$major'
11444  shlibpath_var=LD_LIBRARY_PATH
11445  case $host_vendor in
11446    sni)
11447      shlibpath_overrides_runpath=no
11448      need_lib_prefix=no
11449      runpath_var=LD_RUN_PATH
11450      ;;
11451    siemens)
11452      need_lib_prefix=no
11453      ;;
11454    motorola)
11455      need_lib_prefix=no
11456      need_version=no
11457      shlibpath_overrides_runpath=no
11458      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11459      ;;
11460  esac
11461  ;;
11462
11463sysv4*MP*)
11464  if test -d /usr/nec ;then
11465    version_type=linux # correct to gnu/linux during the next big refactor
11466    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11467    soname_spec='$libname${shared_ext}.$major'
11468    shlibpath_var=LD_LIBRARY_PATH
11469  fi
11470  ;;
11471
11472sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11473  version_type=freebsd-elf
11474  need_lib_prefix=no
11475  need_version=no
11476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11477  soname_spec='${libname}${release}${shared_ext}$major'
11478  shlibpath_var=LD_LIBRARY_PATH
11479  shlibpath_overrides_runpath=yes
11480  hardcode_into_libs=yes
11481  if test "$with_gnu_ld" = yes; then
11482    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11483  else
11484    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11485    case $host_os in
11486      sco3.2v5*)
11487        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11488	;;
11489    esac
11490  fi
11491  sys_lib_dlsearch_path_spec='/usr/lib'
11492  ;;
11493
11494tpf*)
11495  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11496  version_type=linux # correct to gnu/linux during the next big refactor
11497  need_lib_prefix=no
11498  need_version=no
11499  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11500  shlibpath_var=LD_LIBRARY_PATH
11501  shlibpath_overrides_runpath=no
11502  hardcode_into_libs=yes
11503  ;;
11504
11505uts4*)
11506  version_type=linux # correct to gnu/linux during the next big refactor
11507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11508  soname_spec='${libname}${release}${shared_ext}$major'
11509  shlibpath_var=LD_LIBRARY_PATH
11510  ;;
11511
11512*)
11513  dynamic_linker=no
11514  ;;
11515esac
11516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11517$as_echo "$dynamic_linker" >&6; }
11518test "$dynamic_linker" = no && can_build_shared=no
11519
11520variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11521if test "$GCC" = yes; then
11522  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11523fi
11524
11525if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11526  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11527fi
11528if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11529  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11530fi
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11624$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11625hardcode_action=
11626if test -n "$hardcode_libdir_flag_spec" ||
11627   test -n "$runpath_var" ||
11628   test "X$hardcode_automatic" = "Xyes" ; then
11629
11630  # We can hardcode non-existent directories.
11631  if test "$hardcode_direct" != no &&
11632     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11633     # have to relink, otherwise we might link with an installed library
11634     # when we should be linking with a yet-to-be-installed one
11635     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11636     test "$hardcode_minus_L" != no; then
11637    # Linking always hardcodes the temporary library directory.
11638    hardcode_action=relink
11639  else
11640    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11641    hardcode_action=immediate
11642  fi
11643else
11644  # We cannot hardcode anything, or else we can only hardcode existing
11645  # directories.
11646  hardcode_action=unsupported
11647fi
11648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11649$as_echo "$hardcode_action" >&6; }
11650
11651if test "$hardcode_action" = relink ||
11652   test "$inherit_rpath" = yes; then
11653  # Fast installation is not supported
11654  enable_fast_install=no
11655elif test "$shlibpath_overrides_runpath" = yes ||
11656     test "$enable_shared" = no; then
11657  # Fast installation is not necessary
11658  enable_fast_install=needless
11659fi
11660
11661
11662
11663
11664
11665
11666  if test "x$enable_dlopen" != xyes; then
11667  enable_dlopen=unknown
11668  enable_dlopen_self=unknown
11669  enable_dlopen_self_static=unknown
11670else
11671  lt_cv_dlopen=no
11672  lt_cv_dlopen_libs=
11673
11674  case $host_os in
11675  beos*)
11676    lt_cv_dlopen="load_add_on"
11677    lt_cv_dlopen_libs=
11678    lt_cv_dlopen_self=yes
11679    ;;
11680
11681  mingw* | pw32* | cegcc*)
11682    lt_cv_dlopen="LoadLibrary"
11683    lt_cv_dlopen_libs=
11684    ;;
11685
11686  cygwin*)
11687    lt_cv_dlopen="dlopen"
11688    lt_cv_dlopen_libs=
11689    ;;
11690
11691  darwin*)
11692  # if libdl is installed we need to link against it
11693    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11694$as_echo_n "checking for dlopen in -ldl... " >&6; }
11695if ${ac_cv_lib_dl_dlopen+:} false; then :
11696  $as_echo_n "(cached) " >&6
11697else
11698  ac_check_lib_save_LIBS=$LIBS
11699LIBS="-ldl  $LIBS"
11700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11701/* end confdefs.h.  */
11702
11703/* Override any GCC internal prototype to avoid an error.
11704   Use char because int might match the return type of a GCC
11705   builtin and then its argument prototype would still apply.  */
11706#ifdef __cplusplus
11707extern "C"
11708#endif
11709char dlopen ();
11710int
11711main ()
11712{
11713return dlopen ();
11714  ;
11715  return 0;
11716}
11717_ACEOF
11718if ac_fn_c_try_link "$LINENO"; then :
11719  ac_cv_lib_dl_dlopen=yes
11720else
11721  ac_cv_lib_dl_dlopen=no
11722fi
11723rm -f core conftest.err conftest.$ac_objext \
11724    conftest$ac_exeext conftest.$ac_ext
11725LIBS=$ac_check_lib_save_LIBS
11726fi
11727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11728$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11729if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11730  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11731else
11732
11733    lt_cv_dlopen="dyld"
11734    lt_cv_dlopen_libs=
11735    lt_cv_dlopen_self=yes
11736
11737fi
11738
11739    ;;
11740
11741  *)
11742    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11743if test "x$ac_cv_func_shl_load" = xyes; then :
11744  lt_cv_dlopen="shl_load"
11745else
11746  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11747$as_echo_n "checking for shl_load in -ldld... " >&6; }
11748if ${ac_cv_lib_dld_shl_load+:} false; then :
11749  $as_echo_n "(cached) " >&6
11750else
11751  ac_check_lib_save_LIBS=$LIBS
11752LIBS="-ldld  $LIBS"
11753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11754/* end confdefs.h.  */
11755
11756/* Override any GCC internal prototype to avoid an error.
11757   Use char because int might match the return type of a GCC
11758   builtin and then its argument prototype would still apply.  */
11759#ifdef __cplusplus
11760extern "C"
11761#endif
11762char shl_load ();
11763int
11764main ()
11765{
11766return shl_load ();
11767  ;
11768  return 0;
11769}
11770_ACEOF
11771if ac_fn_c_try_link "$LINENO"; then :
11772  ac_cv_lib_dld_shl_load=yes
11773else
11774  ac_cv_lib_dld_shl_load=no
11775fi
11776rm -f core conftest.err conftest.$ac_objext \
11777    conftest$ac_exeext conftest.$ac_ext
11778LIBS=$ac_check_lib_save_LIBS
11779fi
11780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11781$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11782if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11783  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11784else
11785  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11786if test "x$ac_cv_func_dlopen" = xyes; then :
11787  lt_cv_dlopen="dlopen"
11788else
11789  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11790$as_echo_n "checking for dlopen in -ldl... " >&6; }
11791if ${ac_cv_lib_dl_dlopen+:} false; then :
11792  $as_echo_n "(cached) " >&6
11793else
11794  ac_check_lib_save_LIBS=$LIBS
11795LIBS="-ldl  $LIBS"
11796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11797/* end confdefs.h.  */
11798
11799/* Override any GCC internal prototype to avoid an error.
11800   Use char because int might match the return type of a GCC
11801   builtin and then its argument prototype would still apply.  */
11802#ifdef __cplusplus
11803extern "C"
11804#endif
11805char dlopen ();
11806int
11807main ()
11808{
11809return dlopen ();
11810  ;
11811  return 0;
11812}
11813_ACEOF
11814if ac_fn_c_try_link "$LINENO"; then :
11815  ac_cv_lib_dl_dlopen=yes
11816else
11817  ac_cv_lib_dl_dlopen=no
11818fi
11819rm -f core conftest.err conftest.$ac_objext \
11820    conftest$ac_exeext conftest.$ac_ext
11821LIBS=$ac_check_lib_save_LIBS
11822fi
11823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11824$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11825if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11826  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11827else
11828  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11829$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11830if ${ac_cv_lib_svld_dlopen+:} false; then :
11831  $as_echo_n "(cached) " >&6
11832else
11833  ac_check_lib_save_LIBS=$LIBS
11834LIBS="-lsvld  $LIBS"
11835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11836/* end confdefs.h.  */
11837
11838/* Override any GCC internal prototype to avoid an error.
11839   Use char because int might match the return type of a GCC
11840   builtin and then its argument prototype would still apply.  */
11841#ifdef __cplusplus
11842extern "C"
11843#endif
11844char dlopen ();
11845int
11846main ()
11847{
11848return dlopen ();
11849  ;
11850  return 0;
11851}
11852_ACEOF
11853if ac_fn_c_try_link "$LINENO"; then :
11854  ac_cv_lib_svld_dlopen=yes
11855else
11856  ac_cv_lib_svld_dlopen=no
11857fi
11858rm -f core conftest.err conftest.$ac_objext \
11859    conftest$ac_exeext conftest.$ac_ext
11860LIBS=$ac_check_lib_save_LIBS
11861fi
11862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11863$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11864if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11865  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11866else
11867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11868$as_echo_n "checking for dld_link in -ldld... " >&6; }
11869if ${ac_cv_lib_dld_dld_link+:} false; then :
11870  $as_echo_n "(cached) " >&6
11871else
11872  ac_check_lib_save_LIBS=$LIBS
11873LIBS="-ldld  $LIBS"
11874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875/* end confdefs.h.  */
11876
11877/* Override any GCC internal prototype to avoid an error.
11878   Use char because int might match the return type of a GCC
11879   builtin and then its argument prototype would still apply.  */
11880#ifdef __cplusplus
11881extern "C"
11882#endif
11883char dld_link ();
11884int
11885main ()
11886{
11887return dld_link ();
11888  ;
11889  return 0;
11890}
11891_ACEOF
11892if ac_fn_c_try_link "$LINENO"; then :
11893  ac_cv_lib_dld_dld_link=yes
11894else
11895  ac_cv_lib_dld_dld_link=no
11896fi
11897rm -f core conftest.err conftest.$ac_objext \
11898    conftest$ac_exeext conftest.$ac_ext
11899LIBS=$ac_check_lib_save_LIBS
11900fi
11901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11902$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11903if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11904  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11905fi
11906
11907
11908fi
11909
11910
11911fi
11912
11913
11914fi
11915
11916
11917fi
11918
11919
11920fi
11921
11922    ;;
11923  esac
11924
11925  if test "x$lt_cv_dlopen" != xno; then
11926    enable_dlopen=yes
11927  else
11928    enable_dlopen=no
11929  fi
11930
11931  case $lt_cv_dlopen in
11932  dlopen)
11933    save_CPPFLAGS="$CPPFLAGS"
11934    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11935
11936    save_LDFLAGS="$LDFLAGS"
11937    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11938
11939    save_LIBS="$LIBS"
11940    LIBS="$lt_cv_dlopen_libs $LIBS"
11941
11942    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11943$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11944if ${lt_cv_dlopen_self+:} false; then :
11945  $as_echo_n "(cached) " >&6
11946else
11947  	  if test "$cross_compiling" = yes; then :
11948  lt_cv_dlopen_self=cross
11949else
11950  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11951  lt_status=$lt_dlunknown
11952  cat > conftest.$ac_ext <<_LT_EOF
11953#line $LINENO "configure"
11954#include "confdefs.h"
11955
11956#if HAVE_DLFCN_H
11957#include <dlfcn.h>
11958#endif
11959
11960#include <stdio.h>
11961
11962#ifdef RTLD_GLOBAL
11963#  define LT_DLGLOBAL		RTLD_GLOBAL
11964#else
11965#  ifdef DL_GLOBAL
11966#    define LT_DLGLOBAL		DL_GLOBAL
11967#  else
11968#    define LT_DLGLOBAL		0
11969#  endif
11970#endif
11971
11972/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11973   find out it does not work in some platform. */
11974#ifndef LT_DLLAZY_OR_NOW
11975#  ifdef RTLD_LAZY
11976#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11977#  else
11978#    ifdef DL_LAZY
11979#      define LT_DLLAZY_OR_NOW		DL_LAZY
11980#    else
11981#      ifdef RTLD_NOW
11982#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11983#      else
11984#        ifdef DL_NOW
11985#          define LT_DLLAZY_OR_NOW	DL_NOW
11986#        else
11987#          define LT_DLLAZY_OR_NOW	0
11988#        endif
11989#      endif
11990#    endif
11991#  endif
11992#endif
11993
11994/* When -fvisbility=hidden is used, assume the code has been annotated
11995   correspondingly for the symbols needed.  */
11996#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11997int fnord () __attribute__((visibility("default")));
11998#endif
11999
12000int fnord () { return 42; }
12001int main ()
12002{
12003  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12004  int status = $lt_dlunknown;
12005
12006  if (self)
12007    {
12008      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12009      else
12010        {
12011	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12012          else puts (dlerror ());
12013	}
12014      /* dlclose (self); */
12015    }
12016  else
12017    puts (dlerror ());
12018
12019  return status;
12020}
12021_LT_EOF
12022  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12023  (eval $ac_link) 2>&5
12024  ac_status=$?
12025  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12026  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12027    (./conftest; exit; ) >&5 2>/dev/null
12028    lt_status=$?
12029    case x$lt_status in
12030      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12031      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12032      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12033    esac
12034  else :
12035    # compilation failed
12036    lt_cv_dlopen_self=no
12037  fi
12038fi
12039rm -fr conftest*
12040
12041
12042fi
12043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12044$as_echo "$lt_cv_dlopen_self" >&6; }
12045
12046    if test "x$lt_cv_dlopen_self" = xyes; then
12047      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12048      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12049$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12050if ${lt_cv_dlopen_self_static+:} false; then :
12051  $as_echo_n "(cached) " >&6
12052else
12053  	  if test "$cross_compiling" = yes; then :
12054  lt_cv_dlopen_self_static=cross
12055else
12056  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12057  lt_status=$lt_dlunknown
12058  cat > conftest.$ac_ext <<_LT_EOF
12059#line $LINENO "configure"
12060#include "confdefs.h"
12061
12062#if HAVE_DLFCN_H
12063#include <dlfcn.h>
12064#endif
12065
12066#include <stdio.h>
12067
12068#ifdef RTLD_GLOBAL
12069#  define LT_DLGLOBAL		RTLD_GLOBAL
12070#else
12071#  ifdef DL_GLOBAL
12072#    define LT_DLGLOBAL		DL_GLOBAL
12073#  else
12074#    define LT_DLGLOBAL		0
12075#  endif
12076#endif
12077
12078/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12079   find out it does not work in some platform. */
12080#ifndef LT_DLLAZY_OR_NOW
12081#  ifdef RTLD_LAZY
12082#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12083#  else
12084#    ifdef DL_LAZY
12085#      define LT_DLLAZY_OR_NOW		DL_LAZY
12086#    else
12087#      ifdef RTLD_NOW
12088#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12089#      else
12090#        ifdef DL_NOW
12091#          define LT_DLLAZY_OR_NOW	DL_NOW
12092#        else
12093#          define LT_DLLAZY_OR_NOW	0
12094#        endif
12095#      endif
12096#    endif
12097#  endif
12098#endif
12099
12100/* When -fvisbility=hidden is used, assume the code has been annotated
12101   correspondingly for the symbols needed.  */
12102#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12103int fnord () __attribute__((visibility("default")));
12104#endif
12105
12106int fnord () { return 42; }
12107int main ()
12108{
12109  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12110  int status = $lt_dlunknown;
12111
12112  if (self)
12113    {
12114      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12115      else
12116        {
12117	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12118          else puts (dlerror ());
12119	}
12120      /* dlclose (self); */
12121    }
12122  else
12123    puts (dlerror ());
12124
12125  return status;
12126}
12127_LT_EOF
12128  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12129  (eval $ac_link) 2>&5
12130  ac_status=$?
12131  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12132  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12133    (./conftest; exit; ) >&5 2>/dev/null
12134    lt_status=$?
12135    case x$lt_status in
12136      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12137      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12138      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12139    esac
12140  else :
12141    # compilation failed
12142    lt_cv_dlopen_self_static=no
12143  fi
12144fi
12145rm -fr conftest*
12146
12147
12148fi
12149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12150$as_echo "$lt_cv_dlopen_self_static" >&6; }
12151    fi
12152
12153    CPPFLAGS="$save_CPPFLAGS"
12154    LDFLAGS="$save_LDFLAGS"
12155    LIBS="$save_LIBS"
12156    ;;
12157  esac
12158
12159  case $lt_cv_dlopen_self in
12160  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12161  *) enable_dlopen_self=unknown ;;
12162  esac
12163
12164  case $lt_cv_dlopen_self_static in
12165  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12166  *) enable_dlopen_self_static=unknown ;;
12167  esac
12168fi
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186striplib=
12187old_striplib=
12188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12189$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12190if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12191  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12192  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12194$as_echo "yes" >&6; }
12195else
12196# FIXME - insert some real tests, host_os isn't really good enough
12197  case $host_os in
12198  darwin*)
12199    if test -n "$STRIP" ; then
12200      striplib="$STRIP -x"
12201      old_striplib="$STRIP -S"
12202      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12203$as_echo "yes" >&6; }
12204    else
12205      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12206$as_echo "no" >&6; }
12207    fi
12208    ;;
12209  *)
12210    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211$as_echo "no" >&6; }
12212    ;;
12213  esac
12214fi
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227  # Report which library types will actually be built
12228  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12229$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12231$as_echo "$can_build_shared" >&6; }
12232
12233  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12234$as_echo_n "checking whether to build shared libraries... " >&6; }
12235  test "$can_build_shared" = "no" && enable_shared=no
12236
12237  # On AIX, shared libraries and static libraries use the same namespace, and
12238  # are all built from PIC.
12239  case $host_os in
12240  aix3*)
12241    test "$enable_shared" = yes && enable_static=no
12242    if test -n "$RANLIB"; then
12243      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12244      postinstall_cmds='$RANLIB $lib'
12245    fi
12246    ;;
12247
12248  aix[4-9]*)
12249    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12250      test "$enable_shared" = yes && enable_static=no
12251    fi
12252    ;;
12253  esac
12254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12255$as_echo "$enable_shared" >&6; }
12256
12257  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12258$as_echo_n "checking whether to build static libraries... " >&6; }
12259  # Make sure either enable_shared or enable_static is yes.
12260  test "$enable_shared" = yes || enable_static=yes
12261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12262$as_echo "$enable_static" >&6; }
12263
12264
12265
12266
12267fi
12268ac_ext=c
12269ac_cpp='$CPP $CPPFLAGS'
12270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12272ac_compiler_gnu=$ac_cv_c_compiler_gnu
12273
12274CC="$lt_save_CC"
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290        ac_config_commands="$ac_config_commands libtool"
12291
12292
12293
12294
12295# Only expand once:
12296
12297
12298ac_ext=cpp
12299ac_cpp='$CXXCPP $CPPFLAGS'
12300ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12301ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12302ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12303if test -z "$CXX"; then
12304  if test -n "$CCC"; then
12305    CXX=$CCC
12306  else
12307    if test -n "$ac_tool_prefix"; then
12308  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12309  do
12310    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12311set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12313$as_echo_n "checking for $ac_word... " >&6; }
12314if ${ac_cv_prog_CXX+:} false; then :
12315  $as_echo_n "(cached) " >&6
12316else
12317  if test -n "$CXX"; then
12318  ac_cv_prog_CXX="$CXX" # Let the user override the test.
12319else
12320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12321for as_dir in $PATH
12322do
12323  IFS=$as_save_IFS
12324  test -z "$as_dir" && as_dir=.
12325    for ac_exec_ext in '' $ac_executable_extensions; do
12326  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12327    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12328    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12329    break 2
12330  fi
12331done
12332  done
12333IFS=$as_save_IFS
12334
12335fi
12336fi
12337CXX=$ac_cv_prog_CXX
12338if test -n "$CXX"; then
12339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12340$as_echo "$CXX" >&6; }
12341else
12342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343$as_echo "no" >&6; }
12344fi
12345
12346
12347    test -n "$CXX" && break
12348  done
12349fi
12350if test -z "$CXX"; then
12351  ac_ct_CXX=$CXX
12352  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12353do
12354  # Extract the first word of "$ac_prog", so it can be a program name with args.
12355set dummy $ac_prog; ac_word=$2
12356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12357$as_echo_n "checking for $ac_word... " >&6; }
12358if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12359  $as_echo_n "(cached) " >&6
12360else
12361  if test -n "$ac_ct_CXX"; then
12362  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12363else
12364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12365for as_dir in $PATH
12366do
12367  IFS=$as_save_IFS
12368  test -z "$as_dir" && as_dir=.
12369    for ac_exec_ext in '' $ac_executable_extensions; do
12370  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12371    ac_cv_prog_ac_ct_CXX="$ac_prog"
12372    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12373    break 2
12374  fi
12375done
12376  done
12377IFS=$as_save_IFS
12378
12379fi
12380fi
12381ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12382if test -n "$ac_ct_CXX"; then
12383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12384$as_echo "$ac_ct_CXX" >&6; }
12385else
12386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387$as_echo "no" >&6; }
12388fi
12389
12390
12391  test -n "$ac_ct_CXX" && break
12392done
12393
12394  if test "x$ac_ct_CXX" = x; then
12395    CXX="g++"
12396  else
12397    case $cross_compiling:$ac_tool_warned in
12398yes:)
12399{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12401ac_tool_warned=yes ;;
12402esac
12403    CXX=$ac_ct_CXX
12404  fi
12405fi
12406
12407  fi
12408fi
12409# Provide some information about the compiler.
12410$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12411set X $ac_compile
12412ac_compiler=$2
12413for ac_option in --version -v -V -qversion; do
12414  { { ac_try="$ac_compiler $ac_option >&5"
12415case "(($ac_try" in
12416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12417  *) ac_try_echo=$ac_try;;
12418esac
12419eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12420$as_echo "$ac_try_echo"; } >&5
12421  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12422  ac_status=$?
12423  if test -s conftest.err; then
12424    sed '10a\
12425... rest of stderr output deleted ...
12426         10q' conftest.err >conftest.er1
12427    cat conftest.er1 >&5
12428  fi
12429  rm -f conftest.er1 conftest.err
12430  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12431  test $ac_status = 0; }
12432done
12433
12434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12435$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12436if ${ac_cv_cxx_compiler_gnu+:} false; then :
12437  $as_echo_n "(cached) " >&6
12438else
12439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12440/* end confdefs.h.  */
12441
12442int
12443main ()
12444{
12445#ifndef __GNUC__
12446       choke me
12447#endif
12448
12449  ;
12450  return 0;
12451}
12452_ACEOF
12453if ac_fn_cxx_try_compile "$LINENO"; then :
12454  ac_compiler_gnu=yes
12455else
12456  ac_compiler_gnu=no
12457fi
12458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12459ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12460
12461fi
12462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12463$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12464if test $ac_compiler_gnu = yes; then
12465  GXX=yes
12466else
12467  GXX=
12468fi
12469ac_test_CXXFLAGS=${CXXFLAGS+set}
12470ac_save_CXXFLAGS=$CXXFLAGS
12471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12472$as_echo_n "checking whether $CXX accepts -g... " >&6; }
12473if ${ac_cv_prog_cxx_g+:} false; then :
12474  $as_echo_n "(cached) " >&6
12475else
12476  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12477   ac_cxx_werror_flag=yes
12478   ac_cv_prog_cxx_g=no
12479   CXXFLAGS="-g"
12480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12481/* end confdefs.h.  */
12482
12483int
12484main ()
12485{
12486
12487  ;
12488  return 0;
12489}
12490_ACEOF
12491if ac_fn_cxx_try_compile "$LINENO"; then :
12492  ac_cv_prog_cxx_g=yes
12493else
12494  CXXFLAGS=""
12495      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12496/* end confdefs.h.  */
12497
12498int
12499main ()
12500{
12501
12502  ;
12503  return 0;
12504}
12505_ACEOF
12506if ac_fn_cxx_try_compile "$LINENO"; then :
12507
12508else
12509  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12510	 CXXFLAGS="-g"
12511	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12512/* end confdefs.h.  */
12513
12514int
12515main ()
12516{
12517
12518  ;
12519  return 0;
12520}
12521_ACEOF
12522if ac_fn_cxx_try_compile "$LINENO"; then :
12523  ac_cv_prog_cxx_g=yes
12524fi
12525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12526fi
12527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12528fi
12529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12530   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12531fi
12532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12533$as_echo "$ac_cv_prog_cxx_g" >&6; }
12534if test "$ac_test_CXXFLAGS" = set; then
12535  CXXFLAGS=$ac_save_CXXFLAGS
12536elif test $ac_cv_prog_cxx_g = yes; then
12537  if test "$GXX" = yes; then
12538    CXXFLAGS="-g -O2"
12539  else
12540    CXXFLAGS="-g"
12541  fi
12542else
12543  if test "$GXX" = yes; then
12544    CXXFLAGS="-O2"
12545  else
12546    CXXFLAGS=
12547  fi
12548fi
12549ac_ext=c
12550ac_cpp='$CPP $CPPFLAGS'
12551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12553ac_compiler_gnu=$ac_cv_c_compiler_gnu
12554
12555depcc="$CXX"  am_compiler_list=
12556
12557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12558$as_echo_n "checking dependency style of $depcc... " >&6; }
12559if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12560  $as_echo_n "(cached) " >&6
12561else
12562  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12563  # We make a subdir and do the tests there.  Otherwise we can end up
12564  # making bogus files that we don't know about and never remove.  For
12565  # instance it was reported that on HP-UX the gcc test will end up
12566  # making a dummy file named 'D' -- because '-MD' means "put the output
12567  # in D".
12568  rm -rf conftest.dir
12569  mkdir conftest.dir
12570  # Copy depcomp to subdir because otherwise we won't find it if we're
12571  # using a relative directory.
12572  cp "$am_depcomp" conftest.dir
12573  cd conftest.dir
12574  # We will build objects and dependencies in a subdirectory because
12575  # it helps to detect inapplicable dependency modes.  For instance
12576  # both Tru64's cc and ICC support -MD to output dependencies as a
12577  # side effect of compilation, but ICC will put the dependencies in
12578  # the current directory while Tru64 will put them in the object
12579  # directory.
12580  mkdir sub
12581
12582  am_cv_CXX_dependencies_compiler_type=none
12583  if test "$am_compiler_list" = ""; then
12584     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12585  fi
12586  am__universal=false
12587  case " $depcc " in #(
12588     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12589     esac
12590
12591  for depmode in $am_compiler_list; do
12592    # Setup a source with many dependencies, because some compilers
12593    # like to wrap large dependency lists on column 80 (with \), and
12594    # we should not choose a depcomp mode which is confused by this.
12595    #
12596    # We need to recreate these files for each test, as the compiler may
12597    # overwrite some of them when testing with obscure command lines.
12598    # This happens at least with the AIX C compiler.
12599    : > sub/conftest.c
12600    for i in 1 2 3 4 5 6; do
12601      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12602      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12603      # Solaris 10 /bin/sh.
12604      echo '/* dummy */' > sub/conftst$i.h
12605    done
12606    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12607
12608    # We check with '-c' and '-o' for the sake of the "dashmstdout"
12609    # mode.  It turns out that the SunPro C++ compiler does not properly
12610    # handle '-M -o', and we need to detect this.  Also, some Intel
12611    # versions had trouble with output in subdirs.
12612    am__obj=sub/conftest.${OBJEXT-o}
12613    am__minus_obj="-o $am__obj"
12614    case $depmode in
12615    gcc)
12616      # This depmode causes a compiler race in universal mode.
12617      test "$am__universal" = false || continue
12618      ;;
12619    nosideeffect)
12620      # After this tag, mechanisms are not by side-effect, so they'll
12621      # only be used when explicitly requested.
12622      if test "x$enable_dependency_tracking" = xyes; then
12623	continue
12624      else
12625	break
12626      fi
12627      ;;
12628    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12629      # This compiler won't grok '-c -o', but also, the minuso test has
12630      # not run yet.  These depmodes are late enough in the game, and
12631      # so weak that their functioning should not be impacted.
12632      am__obj=conftest.${OBJEXT-o}
12633      am__minus_obj=
12634      ;;
12635    none) break ;;
12636    esac
12637    if depmode=$depmode \
12638       source=sub/conftest.c object=$am__obj \
12639       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12640       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12641         >/dev/null 2>conftest.err &&
12642       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12643       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12644       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12645       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12646      # icc doesn't choke on unknown options, it will just issue warnings
12647      # or remarks (even with -Werror).  So we grep stderr for any message
12648      # that says an option was ignored or not supported.
12649      # When given -MP, icc 7.0 and 7.1 complain thusly:
12650      #   icc: Command line warning: ignoring option '-M'; no argument required
12651      # The diagnosis changed in icc 8.0:
12652      #   icc: Command line remark: option '-MP' not supported
12653      if (grep 'ignoring option' conftest.err ||
12654          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12655        am_cv_CXX_dependencies_compiler_type=$depmode
12656        break
12657      fi
12658    fi
12659  done
12660
12661  cd ..
12662  rm -rf conftest.dir
12663else
12664  am_cv_CXX_dependencies_compiler_type=none
12665fi
12666
12667fi
12668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12669$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12670CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12671
12672 if
12673  test "x$enable_dependency_tracking" != xno \
12674  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12675  am__fastdepCXX_TRUE=
12676  am__fastdepCXX_FALSE='#'
12677else
12678  am__fastdepCXX_TRUE='#'
12679  am__fastdepCXX_FALSE=
12680fi
12681
12682
12683
12684
12685
12686func_stripname_cnf ()
12687{
12688  case ${2} in
12689  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12690  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12691  esac
12692} # func_stripname_cnf
12693
12694      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12695    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12696    (test "X$CXX" != "Xg++"))) ; then
12697  ac_ext=cpp
12698ac_cpp='$CXXCPP $CPPFLAGS'
12699ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12700ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12701ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12703$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12704if test -z "$CXXCPP"; then
12705  if ${ac_cv_prog_CXXCPP+:} false; then :
12706  $as_echo_n "(cached) " >&6
12707else
12708      # Double quotes because CXXCPP needs to be expanded
12709    for CXXCPP in "$CXX -E" "/lib/cpp"
12710    do
12711      ac_preproc_ok=false
12712for ac_cxx_preproc_warn_flag in '' yes
12713do
12714  # Use a header file that comes with gcc, so configuring glibc
12715  # with a fresh cross-compiler works.
12716  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12717  # <limits.h> exists even on freestanding compilers.
12718  # On the NeXT, cc -E runs the code through the compiler's parser,
12719  # not just through cpp. "Syntax error" is here to catch this case.
12720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721/* end confdefs.h.  */
12722#ifdef __STDC__
12723# include <limits.h>
12724#else
12725# include <assert.h>
12726#endif
12727		     Syntax error
12728_ACEOF
12729if ac_fn_cxx_try_cpp "$LINENO"; then :
12730
12731else
12732  # Broken: fails on valid input.
12733continue
12734fi
12735rm -f conftest.err conftest.i conftest.$ac_ext
12736
12737  # OK, works on sane cases.  Now check whether nonexistent headers
12738  # can be detected and how.
12739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740/* end confdefs.h.  */
12741#include <ac_nonexistent.h>
12742_ACEOF
12743if ac_fn_cxx_try_cpp "$LINENO"; then :
12744  # Broken: success on invalid input.
12745continue
12746else
12747  # Passes both tests.
12748ac_preproc_ok=:
12749break
12750fi
12751rm -f conftest.err conftest.i conftest.$ac_ext
12752
12753done
12754# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12755rm -f conftest.i conftest.err conftest.$ac_ext
12756if $ac_preproc_ok; then :
12757  break
12758fi
12759
12760    done
12761    ac_cv_prog_CXXCPP=$CXXCPP
12762
12763fi
12764  CXXCPP=$ac_cv_prog_CXXCPP
12765else
12766  ac_cv_prog_CXXCPP=$CXXCPP
12767fi
12768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12769$as_echo "$CXXCPP" >&6; }
12770ac_preproc_ok=false
12771for ac_cxx_preproc_warn_flag in '' yes
12772do
12773  # Use a header file that comes with gcc, so configuring glibc
12774  # with a fresh cross-compiler works.
12775  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12776  # <limits.h> exists even on freestanding compilers.
12777  # On the NeXT, cc -E runs the code through the compiler's parser,
12778  # not just through cpp. "Syntax error" is here to catch this case.
12779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12780/* end confdefs.h.  */
12781#ifdef __STDC__
12782# include <limits.h>
12783#else
12784# include <assert.h>
12785#endif
12786		     Syntax error
12787_ACEOF
12788if ac_fn_cxx_try_cpp "$LINENO"; then :
12789
12790else
12791  # Broken: fails on valid input.
12792continue
12793fi
12794rm -f conftest.err conftest.i conftest.$ac_ext
12795
12796  # OK, works on sane cases.  Now check whether nonexistent headers
12797  # can be detected and how.
12798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799/* end confdefs.h.  */
12800#include <ac_nonexistent.h>
12801_ACEOF
12802if ac_fn_cxx_try_cpp "$LINENO"; then :
12803  # Broken: success on invalid input.
12804continue
12805else
12806  # Passes both tests.
12807ac_preproc_ok=:
12808break
12809fi
12810rm -f conftest.err conftest.i conftest.$ac_ext
12811
12812done
12813# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12814rm -f conftest.i conftest.err conftest.$ac_ext
12815if $ac_preproc_ok; then :
12816
12817else
12818  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12819$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12820as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12821See \`config.log' for more details" "$LINENO" 5; }
12822fi
12823
12824ac_ext=c
12825ac_cpp='$CPP $CPPFLAGS'
12826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12828ac_compiler_gnu=$ac_cv_c_compiler_gnu
12829
12830else
12831  _lt_caught_CXX_error=yes
12832fi
12833
12834ac_ext=cpp
12835ac_cpp='$CXXCPP $CPPFLAGS'
12836ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12837ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12838ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12839
12840archive_cmds_need_lc_CXX=no
12841allow_undefined_flag_CXX=
12842always_export_symbols_CXX=no
12843archive_expsym_cmds_CXX=
12844compiler_needs_object_CXX=no
12845export_dynamic_flag_spec_CXX=
12846hardcode_direct_CXX=no
12847hardcode_direct_absolute_CXX=no
12848hardcode_libdir_flag_spec_CXX=
12849hardcode_libdir_separator_CXX=
12850hardcode_minus_L_CXX=no
12851hardcode_shlibpath_var_CXX=unsupported
12852hardcode_automatic_CXX=no
12853inherit_rpath_CXX=no
12854module_cmds_CXX=
12855module_expsym_cmds_CXX=
12856link_all_deplibs_CXX=unknown
12857old_archive_cmds_CXX=$old_archive_cmds
12858reload_flag_CXX=$reload_flag
12859reload_cmds_CXX=$reload_cmds
12860no_undefined_flag_CXX=
12861whole_archive_flag_spec_CXX=
12862enable_shared_with_static_runtimes_CXX=no
12863
12864# Source file extension for C++ test sources.
12865ac_ext=cpp
12866
12867# Object file extension for compiled C++ test sources.
12868objext=o
12869objext_CXX=$objext
12870
12871# No sense in running all these tests if we already determined that
12872# the CXX compiler isn't working.  Some variables (like enable_shared)
12873# are currently assumed to apply to all compilers on this platform,
12874# and will be corrupted by setting them based on a non-working compiler.
12875if test "$_lt_caught_CXX_error" != yes; then
12876  # Code to be used in simple compile tests
12877  lt_simple_compile_test_code="int some_variable = 0;"
12878
12879  # Code to be used in simple link tests
12880  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12881
12882  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12883
12884
12885
12886
12887
12888
12889# If no C compiler was specified, use CC.
12890LTCC=${LTCC-"$CC"}
12891
12892# If no C compiler flags were specified, use CFLAGS.
12893LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12894
12895# Allow CC to be a program name with arguments.
12896compiler=$CC
12897
12898
12899  # save warnings/boilerplate of simple test code
12900  ac_outfile=conftest.$ac_objext
12901echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12902eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12903_lt_compiler_boilerplate=`cat conftest.err`
12904$RM conftest*
12905
12906  ac_outfile=conftest.$ac_objext
12907echo "$lt_simple_link_test_code" >conftest.$ac_ext
12908eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12909_lt_linker_boilerplate=`cat conftest.err`
12910$RM -r conftest*
12911
12912
12913  # Allow CC to be a program name with arguments.
12914  lt_save_CC=$CC
12915  lt_save_CFLAGS=$CFLAGS
12916  lt_save_LD=$LD
12917  lt_save_GCC=$GCC
12918  GCC=$GXX
12919  lt_save_with_gnu_ld=$with_gnu_ld
12920  lt_save_path_LD=$lt_cv_path_LD
12921  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12922    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12923  else
12924    $as_unset lt_cv_prog_gnu_ld
12925  fi
12926  if test -n "${lt_cv_path_LDCXX+set}"; then
12927    lt_cv_path_LD=$lt_cv_path_LDCXX
12928  else
12929    $as_unset lt_cv_path_LD
12930  fi
12931  test -z "${LDCXX+set}" || LD=$LDCXX
12932  CC=${CXX-"c++"}
12933  CFLAGS=$CXXFLAGS
12934  compiler=$CC
12935  compiler_CXX=$CC
12936  for cc_temp in $compiler""; do
12937  case $cc_temp in
12938    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12939    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12940    \-*) ;;
12941    *) break;;
12942  esac
12943done
12944cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12945
12946
12947  if test -n "$compiler"; then
12948    # We don't want -fno-exception when compiling C++ code, so set the
12949    # no_builtin_flag separately
12950    if test "$GXX" = yes; then
12951      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12952    else
12953      lt_prog_compiler_no_builtin_flag_CXX=
12954    fi
12955
12956    if test "$GXX" = yes; then
12957      # Set up default GNU C++ configuration
12958
12959
12960
12961# Check whether --with-gnu-ld was given.
12962if test "${with_gnu_ld+set}" = set; then :
12963  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12964else
12965  with_gnu_ld=no
12966fi
12967
12968ac_prog=ld
12969if test "$GCC" = yes; then
12970  # Check if gcc -print-prog-name=ld gives a path.
12971  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12972$as_echo_n "checking for ld used by $CC... " >&6; }
12973  case $host in
12974  *-*-mingw*)
12975    # gcc leaves a trailing carriage return which upsets mingw
12976    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12977  *)
12978    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12979  esac
12980  case $ac_prog in
12981    # Accept absolute paths.
12982    [\\/]* | ?:[\\/]*)
12983      re_direlt='/[^/][^/]*/\.\./'
12984      # Canonicalize the pathname of ld
12985      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12986      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12987	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12988      done
12989      test -z "$LD" && LD="$ac_prog"
12990      ;;
12991  "")
12992    # If it fails, then pretend we aren't using GCC.
12993    ac_prog=ld
12994    ;;
12995  *)
12996    # If it is relative, then search for the first ld in PATH.
12997    with_gnu_ld=unknown
12998    ;;
12999  esac
13000elif test "$with_gnu_ld" = yes; then
13001  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13002$as_echo_n "checking for GNU ld... " >&6; }
13003else
13004  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13005$as_echo_n "checking for non-GNU ld... " >&6; }
13006fi
13007if ${lt_cv_path_LD+:} false; then :
13008  $as_echo_n "(cached) " >&6
13009else
13010  if test -z "$LD"; then
13011  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13012  for ac_dir in $PATH; do
13013    IFS="$lt_save_ifs"
13014    test -z "$ac_dir" && ac_dir=.
13015    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13016      lt_cv_path_LD="$ac_dir/$ac_prog"
13017      # Check to see if the program is GNU ld.  I'd rather use --version,
13018      # but apparently some variants of GNU ld only accept -v.
13019      # Break only if it was the GNU/non-GNU ld that we prefer.
13020      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13021      *GNU* | *'with BFD'*)
13022	test "$with_gnu_ld" != no && break
13023	;;
13024      *)
13025	test "$with_gnu_ld" != yes && break
13026	;;
13027      esac
13028    fi
13029  done
13030  IFS="$lt_save_ifs"
13031else
13032  lt_cv_path_LD="$LD" # Let the user override the test with a path.
13033fi
13034fi
13035
13036LD="$lt_cv_path_LD"
13037if test -n "$LD"; then
13038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13039$as_echo "$LD" >&6; }
13040else
13041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13042$as_echo "no" >&6; }
13043fi
13044test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13046$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13047if ${lt_cv_prog_gnu_ld+:} false; then :
13048  $as_echo_n "(cached) " >&6
13049else
13050  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13051case `$LD -v 2>&1 </dev/null` in
13052*GNU* | *'with BFD'*)
13053  lt_cv_prog_gnu_ld=yes
13054  ;;
13055*)
13056  lt_cv_prog_gnu_ld=no
13057  ;;
13058esac
13059fi
13060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13061$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13062with_gnu_ld=$lt_cv_prog_gnu_ld
13063
13064
13065
13066
13067
13068
13069
13070      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13071      # archiving commands below assume that GNU ld is being used.
13072      if test "$with_gnu_ld" = yes; then
13073        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13074        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13075
13076        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13077        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13078
13079        # If archive_cmds runs LD, not CC, wlarc should be empty
13080        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13081        #     investigate it a little bit more. (MM)
13082        wlarc='${wl}'
13083
13084        # ancient GNU ld didn't support --whole-archive et. al.
13085        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13086	  $GREP 'no-whole-archive' > /dev/null; then
13087          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13088        else
13089          whole_archive_flag_spec_CXX=
13090        fi
13091      else
13092        with_gnu_ld=no
13093        wlarc=
13094
13095        # A generic and very simple default shared library creation
13096        # command for GNU C++ for the case where it uses the native
13097        # linker, instead of GNU ld.  If possible, this setting should
13098        # overridden to take advantage of the native linker features on
13099        # the platform it is being used on.
13100        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13101      fi
13102
13103      # Commands to make compiler produce verbose output that lists
13104      # what "hidden" libraries, object files and flags are used when
13105      # linking a shared library.
13106      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13107
13108    else
13109      GXX=no
13110      with_gnu_ld=no
13111      wlarc=
13112    fi
13113
13114    # PORTME: fill in a description of your system's C++ link characteristics
13115    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13116$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13117    ld_shlibs_CXX=yes
13118    case $host_os in
13119      aix3*)
13120        # FIXME: insert proper C++ library support
13121        ld_shlibs_CXX=no
13122        ;;
13123      aix[4-9]*)
13124        if test "$host_cpu" = ia64; then
13125          # On IA64, the linker does run time linking by default, so we don't
13126          # have to do anything special.
13127          aix_use_runtimelinking=no
13128          exp_sym_flag='-Bexport'
13129          no_entry_flag=""
13130        else
13131          aix_use_runtimelinking=no
13132
13133          # Test if we are trying to use run time linking or normal
13134          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13135          # need to do runtime linking.
13136          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13137	    for ld_flag in $LDFLAGS; do
13138	      case $ld_flag in
13139	      *-brtl*)
13140	        aix_use_runtimelinking=yes
13141	        break
13142	        ;;
13143	      esac
13144	    done
13145	    ;;
13146          esac
13147
13148          exp_sym_flag='-bexport'
13149          no_entry_flag='-bnoentry'
13150        fi
13151
13152        # When large executables or shared objects are built, AIX ld can
13153        # have problems creating the table of contents.  If linking a library
13154        # or program results in "error TOC overflow" add -mminimal-toc to
13155        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13156        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13157
13158        archive_cmds_CXX=''
13159        hardcode_direct_CXX=yes
13160        hardcode_direct_absolute_CXX=yes
13161        hardcode_libdir_separator_CXX=':'
13162        link_all_deplibs_CXX=yes
13163        file_list_spec_CXX='${wl}-f,'
13164
13165        if test "$GXX" = yes; then
13166          case $host_os in aix4.[012]|aix4.[012].*)
13167          # We only want to do this on AIX 4.2 and lower, the check
13168          # below for broken collect2 doesn't work under 4.3+
13169	  collect2name=`${CC} -print-prog-name=collect2`
13170	  if test -f "$collect2name" &&
13171	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13172	  then
13173	    # We have reworked collect2
13174	    :
13175	  else
13176	    # We have old collect2
13177	    hardcode_direct_CXX=unsupported
13178	    # It fails to find uninstalled libraries when the uninstalled
13179	    # path is not listed in the libpath.  Setting hardcode_minus_L
13180	    # to unsupported forces relinking
13181	    hardcode_minus_L_CXX=yes
13182	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13183	    hardcode_libdir_separator_CXX=
13184	  fi
13185          esac
13186          shared_flag='-shared'
13187	  if test "$aix_use_runtimelinking" = yes; then
13188	    shared_flag="$shared_flag "'${wl}-G'
13189	  fi
13190        else
13191          # not using gcc
13192          if test "$host_cpu" = ia64; then
13193	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13194	  # chokes on -Wl,-G. The following line is correct:
13195	  shared_flag='-G'
13196          else
13197	    if test "$aix_use_runtimelinking" = yes; then
13198	      shared_flag='${wl}-G'
13199	    else
13200	      shared_flag='${wl}-bM:SRE'
13201	    fi
13202          fi
13203        fi
13204
13205        export_dynamic_flag_spec_CXX='${wl}-bexpall'
13206        # It seems that -bexpall does not export symbols beginning with
13207        # underscore (_), so it is better to generate a list of symbols to
13208	# export.
13209        always_export_symbols_CXX=yes
13210        if test "$aix_use_runtimelinking" = yes; then
13211          # Warning - without using the other runtime loading flags (-brtl),
13212          # -berok will link without error, but may produce a broken library.
13213          allow_undefined_flag_CXX='-berok'
13214          # Determine the default libpath from the value encoded in an empty
13215          # executable.
13216          if test "${lt_cv_aix_libpath+set}" = set; then
13217  aix_libpath=$lt_cv_aix_libpath
13218else
13219  if ${lt_cv_aix_libpath__CXX+:} false; then :
13220  $as_echo_n "(cached) " >&6
13221else
13222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13223/* end confdefs.h.  */
13224
13225int
13226main ()
13227{
13228
13229  ;
13230  return 0;
13231}
13232_ACEOF
13233if ac_fn_cxx_try_link "$LINENO"; then :
13234
13235  lt_aix_libpath_sed='
13236      /Import File Strings/,/^$/ {
13237	  /^0/ {
13238	      s/^0  *\([^ ]*\) *$/\1/
13239	      p
13240	  }
13241      }'
13242  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13243  # Check for a 64-bit object if we didn't find anything.
13244  if test -z "$lt_cv_aix_libpath__CXX"; then
13245    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13246  fi
13247fi
13248rm -f core conftest.err conftest.$ac_objext \
13249    conftest$ac_exeext conftest.$ac_ext
13250  if test -z "$lt_cv_aix_libpath__CXX"; then
13251    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13252  fi
13253
13254fi
13255
13256  aix_libpath=$lt_cv_aix_libpath__CXX
13257fi
13258
13259          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13260
13261          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13262        else
13263          if test "$host_cpu" = ia64; then
13264	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13265	    allow_undefined_flag_CXX="-z nodefs"
13266	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13267          else
13268	    # Determine the default libpath from the value encoded in an
13269	    # empty executable.
13270	    if test "${lt_cv_aix_libpath+set}" = set; then
13271  aix_libpath=$lt_cv_aix_libpath
13272else
13273  if ${lt_cv_aix_libpath__CXX+:} false; then :
13274  $as_echo_n "(cached) " >&6
13275else
13276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277/* end confdefs.h.  */
13278
13279int
13280main ()
13281{
13282
13283  ;
13284  return 0;
13285}
13286_ACEOF
13287if ac_fn_cxx_try_link "$LINENO"; then :
13288
13289  lt_aix_libpath_sed='
13290      /Import File Strings/,/^$/ {
13291	  /^0/ {
13292	      s/^0  *\([^ ]*\) *$/\1/
13293	      p
13294	  }
13295      }'
13296  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13297  # Check for a 64-bit object if we didn't find anything.
13298  if test -z "$lt_cv_aix_libpath__CXX"; then
13299    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13300  fi
13301fi
13302rm -f core conftest.err conftest.$ac_objext \
13303    conftest$ac_exeext conftest.$ac_ext
13304  if test -z "$lt_cv_aix_libpath__CXX"; then
13305    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13306  fi
13307
13308fi
13309
13310  aix_libpath=$lt_cv_aix_libpath__CXX
13311fi
13312
13313	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13314	    # Warning - without using the other run time loading flags,
13315	    # -berok will link without error, but may produce a broken library.
13316	    no_undefined_flag_CXX=' ${wl}-bernotok'
13317	    allow_undefined_flag_CXX=' ${wl}-berok'
13318	    if test "$with_gnu_ld" = yes; then
13319	      # We only use this code for GNU lds that support --whole-archive.
13320	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13321	    else
13322	      # Exported symbols can be pulled into shared objects from archives
13323	      whole_archive_flag_spec_CXX='$convenience'
13324	    fi
13325	    archive_cmds_need_lc_CXX=yes
13326	    # This is similar to how AIX traditionally builds its shared
13327	    # libraries.
13328	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13329          fi
13330        fi
13331        ;;
13332
13333      beos*)
13334	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13335	  allow_undefined_flag_CXX=unsupported
13336	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13337	  # support --undefined.  This deserves some investigation.  FIXME
13338	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13339	else
13340	  ld_shlibs_CXX=no
13341	fi
13342	;;
13343
13344      chorus*)
13345        case $cc_basename in
13346          *)
13347	  # FIXME: insert proper C++ library support
13348	  ld_shlibs_CXX=no
13349	  ;;
13350        esac
13351        ;;
13352
13353      cygwin* | mingw* | pw32* | cegcc*)
13354	case $GXX,$cc_basename in
13355	,cl* | no,cl*)
13356	  # Native MSVC
13357	  # hardcode_libdir_flag_spec is actually meaningless, as there is
13358	  # no search path for DLLs.
13359	  hardcode_libdir_flag_spec_CXX=' '
13360	  allow_undefined_flag_CXX=unsupported
13361	  always_export_symbols_CXX=yes
13362	  file_list_spec_CXX='@'
13363	  # Tell ltmain to make .lib files, not .a files.
13364	  libext=lib
13365	  # Tell ltmain to make .dll files, not .so files.
13366	  shrext_cmds=".dll"
13367	  # FIXME: Setting linknames here is a bad hack.
13368	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13369	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13370	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13371	    else
13372	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13373	    fi~
13374	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13375	    linknames='
13376	  # The linker will not automatically build a static lib if we build a DLL.
13377	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13378	  enable_shared_with_static_runtimes_CXX=yes
13379	  # Don't use ranlib
13380	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
13381	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13382	    lt_tool_outputfile="@TOOL_OUTPUT@"~
13383	    case $lt_outputfile in
13384	      *.exe|*.EXE) ;;
13385	      *)
13386		lt_outputfile="$lt_outputfile.exe"
13387		lt_tool_outputfile="$lt_tool_outputfile.exe"
13388		;;
13389	    esac~
13390	    func_to_tool_file "$lt_outputfile"~
13391	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13392	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13393	      $RM "$lt_outputfile.manifest";
13394	    fi'
13395	  ;;
13396	*)
13397	  # g++
13398	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13399	  # as there is no search path for DLLs.
13400	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13401	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13402	  allow_undefined_flag_CXX=unsupported
13403	  always_export_symbols_CXX=no
13404	  enable_shared_with_static_runtimes_CXX=yes
13405
13406	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13407	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13408	    # If the export-symbols file already is a .def file (1st line
13409	    # is EXPORTS), use it as is; otherwise, prepend...
13410	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13411	      cp $export_symbols $output_objdir/$soname.def;
13412	    else
13413	      echo EXPORTS > $output_objdir/$soname.def;
13414	      cat $export_symbols >> $output_objdir/$soname.def;
13415	    fi~
13416	    $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13417	  else
13418	    ld_shlibs_CXX=no
13419	  fi
13420	  ;;
13421	esac
13422	;;
13423      darwin* | rhapsody*)
13424
13425
13426  archive_cmds_need_lc_CXX=no
13427  hardcode_direct_CXX=no
13428  hardcode_automatic_CXX=yes
13429  hardcode_shlibpath_var_CXX=unsupported
13430  if test "$lt_cv_ld_force_load" = "yes"; then
13431    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13432
13433  else
13434    whole_archive_flag_spec_CXX=''
13435  fi
13436  link_all_deplibs_CXX=yes
13437  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13438  case $cc_basename in
13439     ifort*) _lt_dar_can_shared=yes ;;
13440     *) _lt_dar_can_shared=$GCC ;;
13441  esac
13442  if test "$_lt_dar_can_shared" = "yes"; then
13443    output_verbose_link_cmd=func_echo_all
13444    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13445    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13446    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13447    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13448       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13449      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13450      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13451    fi
13452
13453  else
13454  ld_shlibs_CXX=no
13455  fi
13456
13457	;;
13458
13459      dgux*)
13460        case $cc_basename in
13461          ec++*)
13462	    # FIXME: insert proper C++ library support
13463	    ld_shlibs_CXX=no
13464	    ;;
13465          ghcx*)
13466	    # Green Hills C++ Compiler
13467	    # FIXME: insert proper C++ library support
13468	    ld_shlibs_CXX=no
13469	    ;;
13470          *)
13471	    # FIXME: insert proper C++ library support
13472	    ld_shlibs_CXX=no
13473	    ;;
13474        esac
13475        ;;
13476
13477      freebsd2.*)
13478        # C++ shared libraries reported to be fairly broken before
13479	# switch to ELF
13480        ld_shlibs_CXX=no
13481        ;;
13482
13483      freebsd-elf*)
13484        archive_cmds_need_lc_CXX=no
13485        ;;
13486
13487      freebsd* | dragonfly*)
13488        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13489        # conventions
13490        ld_shlibs_CXX=yes
13491        ;;
13492
13493      gnu*)
13494        ;;
13495
13496      haiku*)
13497        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13498        link_all_deplibs_CXX=yes
13499        ;;
13500
13501      hpux9*)
13502        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13503        hardcode_libdir_separator_CXX=:
13504        export_dynamic_flag_spec_CXX='${wl}-E'
13505        hardcode_direct_CXX=yes
13506        hardcode_minus_L_CXX=yes # Not in the search PATH,
13507				             # but as the default
13508				             # location of the library.
13509
13510        case $cc_basename in
13511          CC*)
13512            # FIXME: insert proper C++ library support
13513            ld_shlibs_CXX=no
13514            ;;
13515          aCC*)
13516            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13517            # Commands to make compiler produce verbose output that lists
13518            # what "hidden" libraries, object files and flags are used when
13519            # linking a shared library.
13520            #
13521            # There doesn't appear to be a way to prevent this compiler from
13522            # explicitly linking system object files so we need to strip them
13523            # from the output so that they don't get included in the library
13524            # dependencies.
13525            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13526            ;;
13527          *)
13528            if test "$GXX" = yes; then
13529              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13530            else
13531              # FIXME: insert proper C++ library support
13532              ld_shlibs_CXX=no
13533            fi
13534            ;;
13535        esac
13536        ;;
13537
13538      hpux10*|hpux11*)
13539        if test $with_gnu_ld = no; then
13540	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13541	  hardcode_libdir_separator_CXX=:
13542
13543          case $host_cpu in
13544            hppa*64*|ia64*)
13545              ;;
13546            *)
13547	      export_dynamic_flag_spec_CXX='${wl}-E'
13548              ;;
13549          esac
13550        fi
13551        case $host_cpu in
13552          hppa*64*|ia64*)
13553            hardcode_direct_CXX=no
13554            hardcode_shlibpath_var_CXX=no
13555            ;;
13556          *)
13557            hardcode_direct_CXX=yes
13558            hardcode_direct_absolute_CXX=yes
13559            hardcode_minus_L_CXX=yes # Not in the search PATH,
13560					         # but as the default
13561					         # location of the library.
13562            ;;
13563        esac
13564
13565        case $cc_basename in
13566          CC*)
13567	    # FIXME: insert proper C++ library support
13568	    ld_shlibs_CXX=no
13569	    ;;
13570          aCC*)
13571	    case $host_cpu in
13572	      hppa*64*)
13573	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13574	        ;;
13575	      ia64*)
13576	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13577	        ;;
13578	      *)
13579	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13580	        ;;
13581	    esac
13582	    # Commands to make compiler produce verbose output that lists
13583	    # what "hidden" libraries, object files and flags are used when
13584	    # linking a shared library.
13585	    #
13586	    # There doesn't appear to be a way to prevent this compiler from
13587	    # explicitly linking system object files so we need to strip them
13588	    # from the output so that they don't get included in the library
13589	    # dependencies.
13590	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13591	    ;;
13592          *)
13593	    if test "$GXX" = yes; then
13594	      if test $with_gnu_ld = no; then
13595	        case $host_cpu in
13596	          hppa*64*)
13597	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13598	            ;;
13599	          ia64*)
13600	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13601	            ;;
13602	          *)
13603	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13604	            ;;
13605	        esac
13606	      fi
13607	    else
13608	      # FIXME: insert proper C++ library support
13609	      ld_shlibs_CXX=no
13610	    fi
13611	    ;;
13612        esac
13613        ;;
13614
13615      interix[3-9]*)
13616	hardcode_direct_CXX=no
13617	hardcode_shlibpath_var_CXX=no
13618	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13619	export_dynamic_flag_spec_CXX='${wl}-E'
13620	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13621	# Instead, shared libraries are loaded at an image base (0x10000000 by
13622	# default) and relocated if they conflict, which is a slow very memory
13623	# consuming and fragmenting process.  To avoid this, we pick a random,
13624	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13625	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13626	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13627	archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13628	;;
13629      irix5* | irix6*)
13630        case $cc_basename in
13631          CC*)
13632	    # SGI C++
13633	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13634
13635	    # Archives containing C++ object files must be created using
13636	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13637	    # necessary to make sure instantiated templates are included
13638	    # in the archive.
13639	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13640	    ;;
13641          *)
13642	    if test "$GXX" = yes; then
13643	      if test "$with_gnu_ld" = no; then
13644	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13645	      else
13646	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13647	      fi
13648	    fi
13649	    link_all_deplibs_CXX=yes
13650	    ;;
13651        esac
13652        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13653        hardcode_libdir_separator_CXX=:
13654        inherit_rpath_CXX=yes
13655        ;;
13656
13657      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13658        case $cc_basename in
13659          KCC*)
13660	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13661
13662	    # KCC will only create a shared library if the output file
13663	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13664	    # to its proper name (with version) after linking.
13665	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13666	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13667	    # Commands to make compiler produce verbose output that lists
13668	    # what "hidden" libraries, object files and flags are used when
13669	    # linking a shared library.
13670	    #
13671	    # There doesn't appear to be a way to prevent this compiler from
13672	    # explicitly linking system object files so we need to strip them
13673	    # from the output so that they don't get included in the library
13674	    # dependencies.
13675	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13676
13677	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13678	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13679
13680	    # Archives containing C++ object files must be created using
13681	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13682	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13683	    ;;
13684	  icpc* | ecpc* )
13685	    # Intel C++
13686	    with_gnu_ld=yes
13687	    # version 8.0 and above of icpc choke on multiply defined symbols
13688	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13689	    # earlier do not add the objects themselves.
13690	    case `$CC -V 2>&1` in
13691	      *"Version 7."*)
13692	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13693		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13694		;;
13695	      *)  # Version 8.0 or newer
13696	        tmp_idyn=
13697	        case $host_cpu in
13698		  ia64*) tmp_idyn=' -i_dynamic';;
13699		esac
13700	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13701		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13702		;;
13703	    esac
13704	    archive_cmds_need_lc_CXX=no
13705	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13706	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13707	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13708	    ;;
13709          pgCC* | pgcpp*)
13710            # Portland Group C++ compiler
13711	    case `$CC -V` in
13712	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13713	      prelink_cmds_CXX='tpldir=Template.dir~
13714		rm -rf $tpldir~
13715		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13716		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13717	      old_archive_cmds_CXX='tpldir=Template.dir~
13718		rm -rf $tpldir~
13719		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13720		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13721		$RANLIB $oldlib'
13722	      archive_cmds_CXX='tpldir=Template.dir~
13723		rm -rf $tpldir~
13724		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13725		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13726	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13727		rm -rf $tpldir~
13728		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13729		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13730	      ;;
13731	    *) # Version 6 and above use weak symbols
13732	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13733	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13734	      ;;
13735	    esac
13736
13737	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13738	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13739	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13740            ;;
13741	  cxx*)
13742	    # Compaq C++
13743	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13744	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13745
13746	    runpath_var=LD_RUN_PATH
13747	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13748	    hardcode_libdir_separator_CXX=:
13749
13750	    # Commands to make compiler produce verbose output that lists
13751	    # what "hidden" libraries, object files and flags are used when
13752	    # linking a shared library.
13753	    #
13754	    # There doesn't appear to be a way to prevent this compiler from
13755	    # explicitly linking system object files so we need to strip them
13756	    # from the output so that they don't get included in the library
13757	    # dependencies.
13758	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13759	    ;;
13760	  xl* | mpixl* | bgxl*)
13761	    # IBM XL 8.0 on PPC, with GNU ld
13762	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13763	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13764	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13765	    if test "x$supports_anon_versioning" = xyes; then
13766	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13767		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13768		echo "local: *; };" >> $output_objdir/$libname.ver~
13769		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13770	    fi
13771	    ;;
13772	  *)
13773	    case `$CC -V 2>&1 | sed 5q` in
13774	    *Sun\ C*)
13775	      # Sun C++ 5.9
13776	      no_undefined_flag_CXX=' -zdefs'
13777	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13778	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13779	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13780	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13781	      compiler_needs_object_CXX=yes
13782
13783	      # Not sure whether something based on
13784	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13785	      # would be better.
13786	      output_verbose_link_cmd='func_echo_all'
13787
13788	      # Archives containing C++ object files must be created using
13789	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13790	      # necessary to make sure instantiated templates are included
13791	      # in the archive.
13792	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13793	      ;;
13794	    esac
13795	    ;;
13796	esac
13797	;;
13798
13799      lynxos*)
13800        # FIXME: insert proper C++ library support
13801	ld_shlibs_CXX=no
13802	;;
13803
13804      m88k*)
13805        # FIXME: insert proper C++ library support
13806        ld_shlibs_CXX=no
13807	;;
13808
13809      mvs*)
13810        case $cc_basename in
13811          cxx*)
13812	    # FIXME: insert proper C++ library support
13813	    ld_shlibs_CXX=no
13814	    ;;
13815	  *)
13816	    # FIXME: insert proper C++ library support
13817	    ld_shlibs_CXX=no
13818	    ;;
13819	esac
13820	;;
13821
13822      netbsd*)
13823        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13824	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13825	  wlarc=
13826	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13827	  hardcode_direct_CXX=yes
13828	  hardcode_shlibpath_var_CXX=no
13829	fi
13830	# Workaround some broken pre-1.5 toolchains
13831	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13832	;;
13833
13834      *nto* | *qnx*)
13835        ld_shlibs_CXX=yes
13836	;;
13837
13838      openbsd2*)
13839        # C++ shared libraries are fairly broken
13840	ld_shlibs_CXX=no
13841	;;
13842
13843      openbsd*)
13844	if test -f /usr/libexec/ld.so; then
13845	  hardcode_direct_CXX=yes
13846	  hardcode_shlibpath_var_CXX=no
13847	  hardcode_direct_absolute_CXX=yes
13848	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13849	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13850	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13851	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13852	    export_dynamic_flag_spec_CXX='${wl}-E'
13853	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13854	  fi
13855	  output_verbose_link_cmd=func_echo_all
13856	else
13857	  ld_shlibs_CXX=no
13858	fi
13859	;;
13860
13861      osf3* | osf4* | osf5*)
13862        case $cc_basename in
13863          KCC*)
13864	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13865
13866	    # KCC will only create a shared library if the output file
13867	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13868	    # to its proper name (with version) after linking.
13869	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13870
13871	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13872	    hardcode_libdir_separator_CXX=:
13873
13874	    # Archives containing C++ object files must be created using
13875	    # the KAI C++ compiler.
13876	    case $host in
13877	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13878	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13879	    esac
13880	    ;;
13881          RCC*)
13882	    # Rational C++ 2.4.1
13883	    # FIXME: insert proper C++ library support
13884	    ld_shlibs_CXX=no
13885	    ;;
13886          cxx*)
13887	    case $host in
13888	      osf3*)
13889	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13890	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13891	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13892		;;
13893	      *)
13894	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13895	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13896	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13897	          echo "-hidden">> $lib.exp~
13898	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13899	          $RM $lib.exp'
13900	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13901		;;
13902	    esac
13903
13904	    hardcode_libdir_separator_CXX=:
13905
13906	    # Commands to make compiler produce verbose output that lists
13907	    # what "hidden" libraries, object files and flags are used when
13908	    # linking a shared library.
13909	    #
13910	    # There doesn't appear to be a way to prevent this compiler from
13911	    # explicitly linking system object files so we need to strip them
13912	    # from the output so that they don't get included in the library
13913	    # dependencies.
13914	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13915	    ;;
13916	  *)
13917	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13918	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13919	      case $host in
13920	        osf3*)
13921	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13922		  ;;
13923	        *)
13924	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13925		  ;;
13926	      esac
13927
13928	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13929	      hardcode_libdir_separator_CXX=:
13930
13931	      # Commands to make compiler produce verbose output that lists
13932	      # what "hidden" libraries, object files and flags are used when
13933	      # linking a shared library.
13934	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13935
13936	    else
13937	      # FIXME: insert proper C++ library support
13938	      ld_shlibs_CXX=no
13939	    fi
13940	    ;;
13941        esac
13942        ;;
13943
13944      psos*)
13945        # FIXME: insert proper C++ library support
13946        ld_shlibs_CXX=no
13947        ;;
13948
13949      sunos4*)
13950        case $cc_basename in
13951          CC*)
13952	    # Sun C++ 4.x
13953	    # FIXME: insert proper C++ library support
13954	    ld_shlibs_CXX=no
13955	    ;;
13956          lcc*)
13957	    # Lucid
13958	    # FIXME: insert proper C++ library support
13959	    ld_shlibs_CXX=no
13960	    ;;
13961          *)
13962	    # FIXME: insert proper C++ library support
13963	    ld_shlibs_CXX=no
13964	    ;;
13965        esac
13966        ;;
13967
13968      solaris*)
13969        case $cc_basename in
13970          CC* | sunCC*)
13971	    # Sun C++ 4.2, 5.x and Centerline C++
13972            archive_cmds_need_lc_CXX=yes
13973	    no_undefined_flag_CXX=' -zdefs'
13974	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13975	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13976	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13977
13978	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13979	    hardcode_shlibpath_var_CXX=no
13980	    case $host_os in
13981	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13982	      *)
13983		# The compiler driver will combine and reorder linker options,
13984		# but understands `-z linker_flag'.
13985	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13986		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13987	        ;;
13988	    esac
13989	    link_all_deplibs_CXX=yes
13990
13991	    output_verbose_link_cmd='func_echo_all'
13992
13993	    # Archives containing C++ object files must be created using
13994	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13995	    # necessary to make sure instantiated templates are included
13996	    # in the archive.
13997	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13998	    ;;
13999          gcx*)
14000	    # Green Hills C++ Compiler
14001	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14002
14003	    # The C++ compiler must be used to create the archive.
14004	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14005	    ;;
14006          *)
14007	    # GNU C++ compiler with Solaris linker
14008	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14009	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14010	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14011	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14012	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14013		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14014
14015	        # Commands to make compiler produce verbose output that lists
14016	        # what "hidden" libraries, object files and flags are used when
14017	        # linking a shared library.
14018	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14019	      else
14020	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
14021	        # platform.
14022	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14023	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14024		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14025
14026	        # Commands to make compiler produce verbose output that lists
14027	        # what "hidden" libraries, object files and flags are used when
14028	        # linking a shared library.
14029	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14030	      fi
14031
14032	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14033	      case $host_os in
14034		solaris2.[0-5] | solaris2.[0-5].*) ;;
14035		*)
14036		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14037		  ;;
14038	      esac
14039	    fi
14040	    ;;
14041        esac
14042        ;;
14043
14044    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14045      no_undefined_flag_CXX='${wl}-z,text'
14046      archive_cmds_need_lc_CXX=no
14047      hardcode_shlibpath_var_CXX=no
14048      runpath_var='LD_RUN_PATH'
14049
14050      case $cc_basename in
14051        CC*)
14052	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14053	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14054	  ;;
14055	*)
14056	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14057	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14058	  ;;
14059      esac
14060      ;;
14061
14062      sysv5* | sco3.2v5* | sco5v6*)
14063	# Note: We can NOT use -z defs as we might desire, because we do not
14064	# link with -lc, and that would cause any symbols used from libc to
14065	# always be unresolved, which means just about no library would
14066	# ever link correctly.  If we're not using GNU ld we use -z text
14067	# though, which does catch some bad symbols but isn't as heavy-handed
14068	# as -z defs.
14069	no_undefined_flag_CXX='${wl}-z,text'
14070	allow_undefined_flag_CXX='${wl}-z,nodefs'
14071	archive_cmds_need_lc_CXX=no
14072	hardcode_shlibpath_var_CXX=no
14073	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14074	hardcode_libdir_separator_CXX=':'
14075	link_all_deplibs_CXX=yes
14076	export_dynamic_flag_spec_CXX='${wl}-Bexport'
14077	runpath_var='LD_RUN_PATH'
14078
14079	case $cc_basename in
14080          CC*)
14081	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14082	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14083	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14084	      '"$old_archive_cmds_CXX"
14085	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14086	      '"$reload_cmds_CXX"
14087	    ;;
14088	  *)
14089	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14090	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14091	    ;;
14092	esac
14093      ;;
14094
14095      tandem*)
14096        case $cc_basename in
14097          NCC*)
14098	    # NonStop-UX NCC 3.20
14099	    # FIXME: insert proper C++ library support
14100	    ld_shlibs_CXX=no
14101	    ;;
14102          *)
14103	    # FIXME: insert proper C++ library support
14104	    ld_shlibs_CXX=no
14105	    ;;
14106        esac
14107        ;;
14108
14109      vxworks*)
14110        # FIXME: insert proper C++ library support
14111        ld_shlibs_CXX=no
14112        ;;
14113
14114      *)
14115        # FIXME: insert proper C++ library support
14116        ld_shlibs_CXX=no
14117        ;;
14118    esac
14119
14120    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14121$as_echo "$ld_shlibs_CXX" >&6; }
14122    test "$ld_shlibs_CXX" = no && can_build_shared=no
14123
14124    GCC_CXX="$GXX"
14125    LD_CXX="$LD"
14126
14127    ## CAVEAT EMPTOR:
14128    ## There is no encapsulation within the following macros, do not change
14129    ## the running order or otherwise move them around unless you know exactly
14130    ## what you are doing...
14131    # Dependencies to place before and after the object being linked:
14132predep_objects_CXX=
14133postdep_objects_CXX=
14134predeps_CXX=
14135postdeps_CXX=
14136compiler_lib_search_path_CXX=
14137
14138cat > conftest.$ac_ext <<_LT_EOF
14139class Foo
14140{
14141public:
14142  Foo (void) { a = 0; }
14143private:
14144  int a;
14145};
14146_LT_EOF
14147
14148
14149_lt_libdeps_save_CFLAGS=$CFLAGS
14150case "$CC $CFLAGS " in #(
14151*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14152*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14153*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14154esac
14155
14156if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14157  (eval $ac_compile) 2>&5
14158  ac_status=$?
14159  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14160  test $ac_status = 0; }; then
14161  # Parse the compiler output and extract the necessary
14162  # objects, libraries and library flags.
14163
14164  # Sentinel used to keep track of whether or not we are before
14165  # the conftest object file.
14166  pre_test_object_deps_done=no
14167
14168  for p in `eval "$output_verbose_link_cmd"`; do
14169    case ${prev}${p} in
14170
14171    -L* | -R* | -l*)
14172       # Some compilers place space between "-{L,R}" and the path.
14173       # Remove the space.
14174       if test $p = "-L" ||
14175          test $p = "-R"; then
14176	 prev=$p
14177	 continue
14178       fi
14179
14180       # Expand the sysroot to ease extracting the directories later.
14181       if test -z "$prev"; then
14182         case $p in
14183         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14184         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14185         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14186         esac
14187       fi
14188       case $p in
14189       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14190       esac
14191       if test "$pre_test_object_deps_done" = no; then
14192	 case ${prev} in
14193	 -L | -R)
14194	   # Internal compiler library paths should come after those
14195	   # provided the user.  The postdeps already come after the
14196	   # user supplied libs so there is no need to process them.
14197	   if test -z "$compiler_lib_search_path_CXX"; then
14198	     compiler_lib_search_path_CXX="${prev}${p}"
14199	   else
14200	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14201	   fi
14202	   ;;
14203	 # The "-l" case would never come before the object being
14204	 # linked, so don't bother handling this case.
14205	 esac
14206       else
14207	 if test -z "$postdeps_CXX"; then
14208	   postdeps_CXX="${prev}${p}"
14209	 else
14210	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14211	 fi
14212       fi
14213       prev=
14214       ;;
14215
14216    *.lto.$objext) ;; # Ignore GCC LTO objects
14217    *.$objext)
14218       # This assumes that the test object file only shows up
14219       # once in the compiler output.
14220       if test "$p" = "conftest.$objext"; then
14221	 pre_test_object_deps_done=yes
14222	 continue
14223       fi
14224
14225       if test "$pre_test_object_deps_done" = no; then
14226	 if test -z "$predep_objects_CXX"; then
14227	   predep_objects_CXX="$p"
14228	 else
14229	   predep_objects_CXX="$predep_objects_CXX $p"
14230	 fi
14231       else
14232	 if test -z "$postdep_objects_CXX"; then
14233	   postdep_objects_CXX="$p"
14234	 else
14235	   postdep_objects_CXX="$postdep_objects_CXX $p"
14236	 fi
14237       fi
14238       ;;
14239
14240    *) ;; # Ignore the rest.
14241
14242    esac
14243  done
14244
14245  # Clean up.
14246  rm -f a.out a.exe
14247else
14248  echo "libtool.m4: error: problem compiling CXX test program"
14249fi
14250
14251$RM -f confest.$objext
14252CFLAGS=$_lt_libdeps_save_CFLAGS
14253
14254# PORTME: override above test on systems where it is broken
14255case $host_os in
14256interix[3-9]*)
14257  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14258  # hack all around it, let's just trust "g++" to DTRT.
14259  predep_objects_CXX=
14260  postdep_objects_CXX=
14261  postdeps_CXX=
14262  ;;
14263
14264linux*)
14265  case `$CC -V 2>&1 | sed 5q` in
14266  *Sun\ C*)
14267    # Sun C++ 5.9
14268
14269    # The more standards-conforming stlport4 library is
14270    # incompatible with the Cstd library. Avoid specifying
14271    # it if it's in CXXFLAGS. Ignore libCrun as
14272    # -library=stlport4 depends on it.
14273    case " $CXX $CXXFLAGS " in
14274    *" -library=stlport4 "*)
14275      solaris_use_stlport4=yes
14276      ;;
14277    esac
14278
14279    if test "$solaris_use_stlport4" != yes; then
14280      postdeps_CXX='-library=Cstd -library=Crun'
14281    fi
14282    ;;
14283  esac
14284  ;;
14285
14286solaris*)
14287  case $cc_basename in
14288  CC* | sunCC*)
14289    # The more standards-conforming stlport4 library is
14290    # incompatible with the Cstd library. Avoid specifying
14291    # it if it's in CXXFLAGS. Ignore libCrun as
14292    # -library=stlport4 depends on it.
14293    case " $CXX $CXXFLAGS " in
14294    *" -library=stlport4 "*)
14295      solaris_use_stlport4=yes
14296      ;;
14297    esac
14298
14299    # Adding this requires a known-good setup of shared libraries for
14300    # Sun compiler versions before 5.6, else PIC objects from an old
14301    # archive will be linked into the output, leading to subtle bugs.
14302    if test "$solaris_use_stlport4" != yes; then
14303      postdeps_CXX='-library=Cstd -library=Crun'
14304    fi
14305    ;;
14306  esac
14307  ;;
14308esac
14309
14310
14311case " $postdeps_CXX " in
14312*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14313esac
14314 compiler_lib_search_dirs_CXX=
14315if test -n "${compiler_lib_search_path_CXX}"; then
14316 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14317fi
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349    lt_prog_compiler_wl_CXX=
14350lt_prog_compiler_pic_CXX=
14351lt_prog_compiler_static_CXX=
14352
14353
14354  # C++ specific cases for pic, static, wl, etc.
14355  if test "$GXX" = yes; then
14356    lt_prog_compiler_wl_CXX='-Wl,'
14357    lt_prog_compiler_static_CXX='-static'
14358
14359    case $host_os in
14360    aix*)
14361      # All AIX code is PIC.
14362      if test "$host_cpu" = ia64; then
14363	# AIX 5 now supports IA64 processor
14364	lt_prog_compiler_static_CXX='-Bstatic'
14365      fi
14366      ;;
14367
14368    amigaos*)
14369      case $host_cpu in
14370      powerpc)
14371            # see comment about AmigaOS4 .so support
14372            lt_prog_compiler_pic_CXX='-fPIC'
14373        ;;
14374      m68k)
14375            # FIXME: we need at least 68020 code to build shared libraries, but
14376            # adding the `-m68020' flag to GCC prevents building anything better,
14377            # like `-m68040'.
14378            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14379        ;;
14380      esac
14381      ;;
14382
14383    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14384      # PIC is the default for these OSes.
14385      ;;
14386    mingw* | cygwin* | os2* | pw32* | cegcc*)
14387      # This hack is so that the source file can tell whether it is being
14388      # built for inclusion in a dll (and should export symbols for example).
14389      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14390      # (--disable-auto-import) libraries
14391      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14392      ;;
14393    darwin* | rhapsody*)
14394      # PIC is the default on this platform
14395      # Common symbols not allowed in MH_DYLIB files
14396      lt_prog_compiler_pic_CXX='-fno-common'
14397      ;;
14398    *djgpp*)
14399      # DJGPP does not support shared libraries at all
14400      lt_prog_compiler_pic_CXX=
14401      ;;
14402    haiku*)
14403      # PIC is the default for Haiku.
14404      # The "-static" flag exists, but is broken.
14405      lt_prog_compiler_static_CXX=
14406      ;;
14407    interix[3-9]*)
14408      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14409      # Instead, we relocate shared libraries at runtime.
14410      ;;
14411    sysv4*MP*)
14412      if test -d /usr/nec; then
14413	lt_prog_compiler_pic_CXX=-Kconform_pic
14414      fi
14415      ;;
14416    hpux*)
14417      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14418      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14419      # sets the default TLS model and affects inlining.
14420      case $host_cpu in
14421      hppa*64*)
14422	;;
14423      *)
14424	lt_prog_compiler_pic_CXX='-fPIC'
14425	;;
14426      esac
14427      ;;
14428    *qnx* | *nto*)
14429      # QNX uses GNU C++, but need to define -shared option too, otherwise
14430      # it will coredump.
14431      lt_prog_compiler_pic_CXX='-fPIC -shared'
14432      ;;
14433    *)
14434      lt_prog_compiler_pic_CXX='-fPIC'
14435      ;;
14436    esac
14437  else
14438    case $host_os in
14439      aix[4-9]*)
14440	# All AIX code is PIC.
14441	if test "$host_cpu" = ia64; then
14442	  # AIX 5 now supports IA64 processor
14443	  lt_prog_compiler_static_CXX='-Bstatic'
14444	else
14445	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14446	fi
14447	;;
14448      chorus*)
14449	case $cc_basename in
14450	cxch68*)
14451	  # Green Hills C++ Compiler
14452	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14453	  ;;
14454	esac
14455	;;
14456      mingw* | cygwin* | os2* | pw32* | cegcc*)
14457	# This hack is so that the source file can tell whether it is being
14458	# built for inclusion in a dll (and should export symbols for example).
14459	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14460	;;
14461      dgux*)
14462	case $cc_basename in
14463	  ec++*)
14464	    lt_prog_compiler_pic_CXX='-KPIC'
14465	    ;;
14466	  ghcx*)
14467	    # Green Hills C++ Compiler
14468	    lt_prog_compiler_pic_CXX='-pic'
14469	    ;;
14470	  *)
14471	    ;;
14472	esac
14473	;;
14474      freebsd* | dragonfly*)
14475	# FreeBSD uses GNU C++
14476	;;
14477      hpux9* | hpux10* | hpux11*)
14478	case $cc_basename in
14479	  CC*)
14480	    lt_prog_compiler_wl_CXX='-Wl,'
14481	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14482	    if test "$host_cpu" != ia64; then
14483	      lt_prog_compiler_pic_CXX='+Z'
14484	    fi
14485	    ;;
14486	  aCC*)
14487	    lt_prog_compiler_wl_CXX='-Wl,'
14488	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14489	    case $host_cpu in
14490	    hppa*64*|ia64*)
14491	      # +Z the default
14492	      ;;
14493	    *)
14494	      lt_prog_compiler_pic_CXX='+Z'
14495	      ;;
14496	    esac
14497	    ;;
14498	  *)
14499	    ;;
14500	esac
14501	;;
14502      interix*)
14503	# This is c89, which is MS Visual C++ (no shared libs)
14504	# Anyone wants to do a port?
14505	;;
14506      irix5* | irix6* | nonstopux*)
14507	case $cc_basename in
14508	  CC*)
14509	    lt_prog_compiler_wl_CXX='-Wl,'
14510	    lt_prog_compiler_static_CXX='-non_shared'
14511	    # CC pic flag -KPIC is the default.
14512	    ;;
14513	  *)
14514	    ;;
14515	esac
14516	;;
14517      linux* | k*bsd*-gnu | kopensolaris*-gnu)
14518	case $cc_basename in
14519	  KCC*)
14520	    # KAI C++ Compiler
14521	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14522	    lt_prog_compiler_pic_CXX='-fPIC'
14523	    ;;
14524	  ecpc* )
14525	    # old Intel C++ for x86_64 which still supported -KPIC.
14526	    lt_prog_compiler_wl_CXX='-Wl,'
14527	    lt_prog_compiler_pic_CXX='-KPIC'
14528	    lt_prog_compiler_static_CXX='-static'
14529	    ;;
14530	  icpc* )
14531	    # Intel C++, used to be incompatible with GCC.
14532	    # ICC 10 doesn't accept -KPIC any more.
14533	    lt_prog_compiler_wl_CXX='-Wl,'
14534	    lt_prog_compiler_pic_CXX='-fPIC'
14535	    lt_prog_compiler_static_CXX='-static'
14536	    ;;
14537	  pgCC* | pgcpp*)
14538	    # Portland Group C++ compiler
14539	    lt_prog_compiler_wl_CXX='-Wl,'
14540	    lt_prog_compiler_pic_CXX='-fpic'
14541	    lt_prog_compiler_static_CXX='-Bstatic'
14542	    ;;
14543	  cxx*)
14544	    # Compaq C++
14545	    # Make sure the PIC flag is empty.  It appears that all Alpha
14546	    # Linux and Compaq Tru64 Unix objects are PIC.
14547	    lt_prog_compiler_pic_CXX=
14548	    lt_prog_compiler_static_CXX='-non_shared'
14549	    ;;
14550	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14551	    # IBM XL 8.0, 9.0 on PPC and BlueGene
14552	    lt_prog_compiler_wl_CXX='-Wl,'
14553	    lt_prog_compiler_pic_CXX='-qpic'
14554	    lt_prog_compiler_static_CXX='-qstaticlink'
14555	    ;;
14556	  *)
14557	    case `$CC -V 2>&1 | sed 5q` in
14558	    *Sun\ C*)
14559	      # Sun C++ 5.9
14560	      lt_prog_compiler_pic_CXX='-KPIC'
14561	      lt_prog_compiler_static_CXX='-Bstatic'
14562	      lt_prog_compiler_wl_CXX='-Qoption ld '
14563	      ;;
14564	    esac
14565	    ;;
14566	esac
14567	;;
14568      lynxos*)
14569	;;
14570      m88k*)
14571	;;
14572      mvs*)
14573	case $cc_basename in
14574	  cxx*)
14575	    lt_prog_compiler_pic_CXX='-W c,exportall'
14576	    ;;
14577	  *)
14578	    ;;
14579	esac
14580	;;
14581      netbsd*)
14582	;;
14583      *qnx* | *nto*)
14584        # QNX uses GNU C++, but need to define -shared option too, otherwise
14585        # it will coredump.
14586        lt_prog_compiler_pic_CXX='-fPIC -shared'
14587        ;;
14588      osf3* | osf4* | osf5*)
14589	case $cc_basename in
14590	  KCC*)
14591	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14592	    ;;
14593	  RCC*)
14594	    # Rational C++ 2.4.1
14595	    lt_prog_compiler_pic_CXX='-pic'
14596	    ;;
14597	  cxx*)
14598	    # Digital/Compaq C++
14599	    lt_prog_compiler_wl_CXX='-Wl,'
14600	    # Make sure the PIC flag is empty.  It appears that all Alpha
14601	    # Linux and Compaq Tru64 Unix objects are PIC.
14602	    lt_prog_compiler_pic_CXX=
14603	    lt_prog_compiler_static_CXX='-non_shared'
14604	    ;;
14605	  *)
14606	    ;;
14607	esac
14608	;;
14609      psos*)
14610	;;
14611      solaris*)
14612	case $cc_basename in
14613	  CC* | sunCC*)
14614	    # Sun C++ 4.2, 5.x and Centerline C++
14615	    lt_prog_compiler_pic_CXX='-KPIC'
14616	    lt_prog_compiler_static_CXX='-Bstatic'
14617	    lt_prog_compiler_wl_CXX='-Qoption ld '
14618	    ;;
14619	  gcx*)
14620	    # Green Hills C++ Compiler
14621	    lt_prog_compiler_pic_CXX='-PIC'
14622	    ;;
14623	  *)
14624	    ;;
14625	esac
14626	;;
14627      sunos4*)
14628	case $cc_basename in
14629	  CC*)
14630	    # Sun C++ 4.x
14631	    lt_prog_compiler_pic_CXX='-pic'
14632	    lt_prog_compiler_static_CXX='-Bstatic'
14633	    ;;
14634	  lcc*)
14635	    # Lucid
14636	    lt_prog_compiler_pic_CXX='-pic'
14637	    ;;
14638	  *)
14639	    ;;
14640	esac
14641	;;
14642      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14643	case $cc_basename in
14644	  CC*)
14645	    lt_prog_compiler_wl_CXX='-Wl,'
14646	    lt_prog_compiler_pic_CXX='-KPIC'
14647	    lt_prog_compiler_static_CXX='-Bstatic'
14648	    ;;
14649	esac
14650	;;
14651      tandem*)
14652	case $cc_basename in
14653	  NCC*)
14654	    # NonStop-UX NCC 3.20
14655	    lt_prog_compiler_pic_CXX='-KPIC'
14656	    ;;
14657	  *)
14658	    ;;
14659	esac
14660	;;
14661      vxworks*)
14662	;;
14663      *)
14664	lt_prog_compiler_can_build_shared_CXX=no
14665	;;
14666    esac
14667  fi
14668
14669case $host_os in
14670  # For platforms which do not support PIC, -DPIC is meaningless:
14671  *djgpp*)
14672    lt_prog_compiler_pic_CXX=
14673    ;;
14674  *)
14675    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14676    ;;
14677esac
14678
14679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14680$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14681if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14682  $as_echo_n "(cached) " >&6
14683else
14684  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14685fi
14686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14687$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14688lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14689
14690#
14691# Check to make sure the PIC flag actually works.
14692#
14693if test -n "$lt_prog_compiler_pic_CXX"; then
14694  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14695$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14696if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14697  $as_echo_n "(cached) " >&6
14698else
14699  lt_cv_prog_compiler_pic_works_CXX=no
14700   ac_outfile=conftest.$ac_objext
14701   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14702   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14703   # Insert the option either (1) after the last *FLAGS variable, or
14704   # (2) before a word containing "conftest.", or (3) at the end.
14705   # Note that $ac_compile itself does not contain backslashes and begins
14706   # with a dollar sign (not a hyphen), so the echo should work correctly.
14707   # The option is referenced via a variable to avoid confusing sed.
14708   lt_compile=`echo "$ac_compile" | $SED \
14709   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14710   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14711   -e 's:$: $lt_compiler_flag:'`
14712   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14713   (eval "$lt_compile" 2>conftest.err)
14714   ac_status=$?
14715   cat conftest.err >&5
14716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717   if (exit $ac_status) && test -s "$ac_outfile"; then
14718     # The compiler can only warn and ignore the option if not recognized
14719     # So say no if there are warnings other than the usual output.
14720     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14721     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14722     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14723       lt_cv_prog_compiler_pic_works_CXX=yes
14724     fi
14725   fi
14726   $RM conftest*
14727
14728fi
14729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14730$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14731
14732if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14733    case $lt_prog_compiler_pic_CXX in
14734     "" | " "*) ;;
14735     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14736     esac
14737else
14738    lt_prog_compiler_pic_CXX=
14739     lt_prog_compiler_can_build_shared_CXX=no
14740fi
14741
14742fi
14743
14744
14745
14746
14747
14748#
14749# Check to make sure the static flag actually works.
14750#
14751wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14753$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14754if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14755  $as_echo_n "(cached) " >&6
14756else
14757  lt_cv_prog_compiler_static_works_CXX=no
14758   save_LDFLAGS="$LDFLAGS"
14759   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14760   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14761   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14762     # The linker can only warn and ignore the option if not recognized
14763     # So say no if there are warnings
14764     if test -s conftest.err; then
14765       # Append any errors to the config.log.
14766       cat conftest.err 1>&5
14767       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14768       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14769       if diff conftest.exp conftest.er2 >/dev/null; then
14770         lt_cv_prog_compiler_static_works_CXX=yes
14771       fi
14772     else
14773       lt_cv_prog_compiler_static_works_CXX=yes
14774     fi
14775   fi
14776   $RM -r conftest*
14777   LDFLAGS="$save_LDFLAGS"
14778
14779fi
14780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14781$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14782
14783if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14784    :
14785else
14786    lt_prog_compiler_static_CXX=
14787fi
14788
14789
14790
14791
14792    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14793$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14794if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14795  $as_echo_n "(cached) " >&6
14796else
14797  lt_cv_prog_compiler_c_o_CXX=no
14798   $RM -r conftest 2>/dev/null
14799   mkdir conftest
14800   cd conftest
14801   mkdir out
14802   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14803
14804   lt_compiler_flag="-o out/conftest2.$ac_objext"
14805   # Insert the option either (1) after the last *FLAGS variable, or
14806   # (2) before a word containing "conftest.", or (3) at the end.
14807   # Note that $ac_compile itself does not contain backslashes and begins
14808   # with a dollar sign (not a hyphen), so the echo should work correctly.
14809   lt_compile=`echo "$ac_compile" | $SED \
14810   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14811   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14812   -e 's:$: $lt_compiler_flag:'`
14813   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14814   (eval "$lt_compile" 2>out/conftest.err)
14815   ac_status=$?
14816   cat out/conftest.err >&5
14817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14819   then
14820     # The compiler can only warn and ignore the option if not recognized
14821     # So say no if there are warnings
14822     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14823     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14824     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14825       lt_cv_prog_compiler_c_o_CXX=yes
14826     fi
14827   fi
14828   chmod u+w . 2>&5
14829   $RM conftest*
14830   # SGI C++ compiler will create directory out/ii_files/ for
14831   # template instantiation
14832   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14833   $RM out/* && rmdir out
14834   cd ..
14835   $RM -r conftest
14836   $RM conftest*
14837
14838fi
14839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14840$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14841
14842
14843
14844    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14845$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14846if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14847  $as_echo_n "(cached) " >&6
14848else
14849  lt_cv_prog_compiler_c_o_CXX=no
14850   $RM -r conftest 2>/dev/null
14851   mkdir conftest
14852   cd conftest
14853   mkdir out
14854   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14855
14856   lt_compiler_flag="-o out/conftest2.$ac_objext"
14857   # Insert the option either (1) after the last *FLAGS variable, or
14858   # (2) before a word containing "conftest.", or (3) at the end.
14859   # Note that $ac_compile itself does not contain backslashes and begins
14860   # with a dollar sign (not a hyphen), so the echo should work correctly.
14861   lt_compile=`echo "$ac_compile" | $SED \
14862   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14863   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14864   -e 's:$: $lt_compiler_flag:'`
14865   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14866   (eval "$lt_compile" 2>out/conftest.err)
14867   ac_status=$?
14868   cat out/conftest.err >&5
14869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14871   then
14872     # The compiler can only warn and ignore the option if not recognized
14873     # So say no if there are warnings
14874     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14875     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14876     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14877       lt_cv_prog_compiler_c_o_CXX=yes
14878     fi
14879   fi
14880   chmod u+w . 2>&5
14881   $RM conftest*
14882   # SGI C++ compiler will create directory out/ii_files/ for
14883   # template instantiation
14884   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14885   $RM out/* && rmdir out
14886   cd ..
14887   $RM -r conftest
14888   $RM conftest*
14889
14890fi
14891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14892$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14893
14894
14895
14896
14897hard_links="nottested"
14898if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14899  # do not overwrite the value of need_locks provided by the user
14900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14901$as_echo_n "checking if we can lock with hard links... " >&6; }
14902  hard_links=yes
14903  $RM conftest*
14904  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14905  touch conftest.a
14906  ln conftest.a conftest.b 2>&5 || hard_links=no
14907  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14909$as_echo "$hard_links" >&6; }
14910  if test "$hard_links" = no; then
14911    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14912$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14913    need_locks=warn
14914  fi
14915else
14916  need_locks=no
14917fi
14918
14919
14920
14921    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14922$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14923
14924  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14925  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14926  case $host_os in
14927  aix[4-9]*)
14928    # If we're using GNU nm, then we don't want the "-C" option.
14929    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14930    # Also, AIX nm treats weak defined symbols like other global defined
14931    # symbols, whereas GNU nm marks them as "W".
14932    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14933      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14934    else
14935      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14936    fi
14937    ;;
14938  pw32*)
14939    export_symbols_cmds_CXX="$ltdll_cmds"
14940    ;;
14941  cygwin* | mingw* | cegcc*)
14942    case $cc_basename in
14943    cl*)
14944      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14945      ;;
14946    *)
14947      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14948      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14949      ;;
14950    esac
14951    ;;
14952  *)
14953    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14954    ;;
14955  esac
14956
14957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14958$as_echo "$ld_shlibs_CXX" >&6; }
14959test "$ld_shlibs_CXX" = no && can_build_shared=no
14960
14961with_gnu_ld_CXX=$with_gnu_ld
14962
14963
14964
14965
14966
14967
14968#
14969# Do we need to explicitly link libc?
14970#
14971case "x$archive_cmds_need_lc_CXX" in
14972x|xyes)
14973  # Assume -lc should be added
14974  archive_cmds_need_lc_CXX=yes
14975
14976  if test "$enable_shared" = yes && test "$GCC" = yes; then
14977    case $archive_cmds_CXX in
14978    *'~'*)
14979      # FIXME: we may have to deal with multi-command sequences.
14980      ;;
14981    '$CC '*)
14982      # Test whether the compiler implicitly links with -lc since on some
14983      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14984      # to ld, don't add -lc before -lgcc.
14985      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14986$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14987if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14988  $as_echo_n "(cached) " >&6
14989else
14990  $RM conftest*
14991	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14992
14993	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14994  (eval $ac_compile) 2>&5
14995  ac_status=$?
14996  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14997  test $ac_status = 0; } 2>conftest.err; then
14998	  soname=conftest
14999	  lib=conftest
15000	  libobjs=conftest.$ac_objext
15001	  deplibs=
15002	  wl=$lt_prog_compiler_wl_CXX
15003	  pic_flag=$lt_prog_compiler_pic_CXX
15004	  compiler_flags=-v
15005	  linker_flags=-v
15006	  verstring=
15007	  output_objdir=.
15008	  libname=conftest
15009	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15010	  allow_undefined_flag_CXX=
15011	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15012  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15013  ac_status=$?
15014  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15015  test $ac_status = 0; }
15016	  then
15017	    lt_cv_archive_cmds_need_lc_CXX=no
15018	  else
15019	    lt_cv_archive_cmds_need_lc_CXX=yes
15020	  fi
15021	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15022	else
15023	  cat conftest.err 1>&5
15024	fi
15025	$RM conftest*
15026
15027fi
15028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15029$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15030      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15031      ;;
15032    esac
15033  fi
15034  ;;
15035esac
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15099$as_echo_n "checking dynamic linker characteristics... " >&6; }
15100
15101library_names_spec=
15102libname_spec='lib$name'
15103soname_spec=
15104shrext_cmds=".so"
15105postinstall_cmds=
15106postuninstall_cmds=
15107finish_cmds=
15108finish_eval=
15109shlibpath_var=
15110shlibpath_overrides_runpath=unknown
15111version_type=none
15112dynamic_linker="$host_os ld.so"
15113sys_lib_dlsearch_path_spec="/lib /usr/lib"
15114need_lib_prefix=unknown
15115hardcode_into_libs=no
15116
15117# when you set need_version to no, make sure it does not cause -set_version
15118# flags to be left without arguments
15119need_version=unknown
15120
15121case $host_os in
15122aix3*)
15123  version_type=linux # correct to gnu/linux during the next big refactor
15124  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15125  shlibpath_var=LIBPATH
15126
15127  # AIX 3 has no versioning support, so we append a major version to the name.
15128  soname_spec='${libname}${release}${shared_ext}$major'
15129  ;;
15130
15131aix[4-9]*)
15132  version_type=linux # correct to gnu/linux during the next big refactor
15133  need_lib_prefix=no
15134  need_version=no
15135  hardcode_into_libs=yes
15136  if test "$host_cpu" = ia64; then
15137    # AIX 5 supports IA64
15138    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15139    shlibpath_var=LD_LIBRARY_PATH
15140  else
15141    # With GCC up to 2.95.x, collect2 would create an import file
15142    # for dependence libraries.  The import file would start with
15143    # the line `#! .'.  This would cause the generated library to
15144    # depend on `.', always an invalid library.  This was fixed in
15145    # development snapshots of GCC prior to 3.0.
15146    case $host_os in
15147      aix4 | aix4.[01] | aix4.[01].*)
15148      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15149	   echo ' yes '
15150	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15151	:
15152      else
15153	can_build_shared=no
15154      fi
15155      ;;
15156    esac
15157    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15158    # soname into executable. Probably we can add versioning support to
15159    # collect2, so additional links can be useful in future.
15160    if test "$aix_use_runtimelinking" = yes; then
15161      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15162      # instead of lib<name>.a to let people know that these are not
15163      # typical AIX shared libraries.
15164      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15165    else
15166      # We preserve .a as extension for shared libraries through AIX4.2
15167      # and later when we are not doing run time linking.
15168      library_names_spec='${libname}${release}.a $libname.a'
15169      soname_spec='${libname}${release}${shared_ext}$major'
15170    fi
15171    shlibpath_var=LIBPATH
15172  fi
15173  ;;
15174
15175amigaos*)
15176  case $host_cpu in
15177  powerpc)
15178    # Since July 2007 AmigaOS4 officially supports .so libraries.
15179    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15180    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15181    ;;
15182  m68k)
15183    library_names_spec='$libname.ixlibrary $libname.a'
15184    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15185    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
15186    ;;
15187  esac
15188  ;;
15189
15190beos*)
15191  library_names_spec='${libname}${shared_ext}'
15192  dynamic_linker="$host_os ld.so"
15193  shlibpath_var=LIBRARY_PATH
15194  ;;
15195
15196bsdi[45]*)
15197  version_type=linux # correct to gnu/linux during the next big refactor
15198  need_version=no
15199  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15200  soname_spec='${libname}${release}${shared_ext}$major'
15201  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15202  shlibpath_var=LD_LIBRARY_PATH
15203  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15204  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15205  # the default ld.so.conf also contains /usr/contrib/lib and
15206  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15207  # libtool to hard-code these into programs
15208  ;;
15209
15210cygwin* | mingw* | pw32* | cegcc*)
15211  version_type=windows
15212  shrext_cmds=".dll"
15213  need_version=no
15214  need_lib_prefix=no
15215
15216  case $GCC,$cc_basename in
15217  yes,*)
15218    # gcc
15219    library_names_spec='$libname.dll.a'
15220    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15221    postinstall_cmds='base_file=`basename \${file}`~
15222      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15223      dldir=$destdir/`dirname \$dlpath`~
15224      test -d \$dldir || mkdir -p \$dldir~
15225      $install_prog $dir/$dlname \$dldir/$dlname~
15226      chmod a+x \$dldir/$dlname~
15227      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15228        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15229      fi'
15230    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15231      dlpath=$dir/\$dldll~
15232       $RM \$dlpath'
15233    shlibpath_overrides_runpath=yes
15234
15235    case $host_os in
15236    cygwin*)
15237      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15238      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15239
15240      ;;
15241    mingw* | cegcc*)
15242      # MinGW DLLs use traditional 'lib' prefix
15243      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15244      ;;
15245    pw32*)
15246      # pw32 DLLs use 'pw' prefix rather than 'lib'
15247      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15248      ;;
15249    esac
15250    dynamic_linker='Win32 ld.exe'
15251    ;;
15252
15253  *,cl*)
15254    # Native MSVC
15255    libname_spec='$name'
15256    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15257    library_names_spec='${libname}.dll.lib'
15258
15259    case $build_os in
15260    mingw*)
15261      sys_lib_search_path_spec=
15262      lt_save_ifs=$IFS
15263      IFS=';'
15264      for lt_path in $LIB
15265      do
15266        IFS=$lt_save_ifs
15267        # Let DOS variable expansion print the short 8.3 style file name.
15268        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15269        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15270      done
15271      IFS=$lt_save_ifs
15272      # Convert to MSYS style.
15273      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15274      ;;
15275    cygwin*)
15276      # Convert to unix form, then to dos form, then back to unix form
15277      # but this time dos style (no spaces!) so that the unix form looks
15278      # like /cygdrive/c/PROGRA~1:/cygdr...
15279      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15280      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15281      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15282      ;;
15283    *)
15284      sys_lib_search_path_spec="$LIB"
15285      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15286        # It is most probably a Windows format PATH.
15287        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15288      else
15289        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15290      fi
15291      # FIXME: find the short name or the path components, as spaces are
15292      # common. (e.g. "Program Files" -> "PROGRA~1")
15293      ;;
15294    esac
15295
15296    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15297    postinstall_cmds='base_file=`basename \${file}`~
15298      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15299      dldir=$destdir/`dirname \$dlpath`~
15300      test -d \$dldir || mkdir -p \$dldir~
15301      $install_prog $dir/$dlname \$dldir/$dlname'
15302    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15303      dlpath=$dir/\$dldll~
15304       $RM \$dlpath'
15305    shlibpath_overrides_runpath=yes
15306    dynamic_linker='Win32 link.exe'
15307    ;;
15308
15309  *)
15310    # Assume MSVC wrapper
15311    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15312    dynamic_linker='Win32 ld.exe'
15313    ;;
15314  esac
15315  # FIXME: first we should search . and the directory the executable is in
15316  shlibpath_var=PATH
15317  ;;
15318
15319darwin* | rhapsody*)
15320  dynamic_linker="$host_os dyld"
15321  version_type=darwin
15322  need_lib_prefix=no
15323  need_version=no
15324  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15325  soname_spec='${libname}${release}${major}$shared_ext'
15326  shlibpath_overrides_runpath=yes
15327  shlibpath_var=DYLD_LIBRARY_PATH
15328  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15329
15330  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15331  ;;
15332
15333dgux*)
15334  version_type=linux # correct to gnu/linux during the next big refactor
15335  need_lib_prefix=no
15336  need_version=no
15337  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15338  soname_spec='${libname}${release}${shared_ext}$major'
15339  shlibpath_var=LD_LIBRARY_PATH
15340  ;;
15341
15342freebsd* | dragonfly*)
15343  # DragonFly does not have aout.  When/if they implement a new
15344  # versioning mechanism, adjust this.
15345  if test -x /usr/bin/objformat; then
15346    objformat=`/usr/bin/objformat`
15347  else
15348    case $host_os in
15349    freebsd[23].*) objformat=aout ;;
15350    *) objformat=elf ;;
15351    esac
15352  fi
15353  version_type=freebsd-$objformat
15354  case $version_type in
15355    freebsd-elf*)
15356      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15357      need_version=no
15358      need_lib_prefix=no
15359      ;;
15360    freebsd-*)
15361      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15362      need_version=yes
15363      ;;
15364  esac
15365  shlibpath_var=LD_LIBRARY_PATH
15366  case $host_os in
15367  freebsd2.*)
15368    shlibpath_overrides_runpath=yes
15369    ;;
15370  freebsd3.[01]* | freebsdelf3.[01]*)
15371    shlibpath_overrides_runpath=yes
15372    hardcode_into_libs=yes
15373    ;;
15374  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15375  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15376    shlibpath_overrides_runpath=no
15377    hardcode_into_libs=yes
15378    ;;
15379  *) # from 4.6 on, and DragonFly
15380    shlibpath_overrides_runpath=yes
15381    hardcode_into_libs=yes
15382    ;;
15383  esac
15384  ;;
15385
15386gnu*)
15387  version_type=linux # correct to gnu/linux during the next big refactor
15388  need_lib_prefix=no
15389  need_version=no
15390  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15391  soname_spec='${libname}${release}${shared_ext}$major'
15392  shlibpath_var=LD_LIBRARY_PATH
15393  shlibpath_overrides_runpath=no
15394  hardcode_into_libs=yes
15395  ;;
15396
15397haiku*)
15398  version_type=linux # correct to gnu/linux during the next big refactor
15399  need_lib_prefix=no
15400  need_version=no
15401  dynamic_linker="$host_os runtime_loader"
15402  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15403  soname_spec='${libname}${release}${shared_ext}$major'
15404  shlibpath_var=LIBRARY_PATH
15405  shlibpath_overrides_runpath=yes
15406  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15407  hardcode_into_libs=yes
15408  ;;
15409
15410hpux9* | hpux10* | hpux11*)
15411  # Give a soname corresponding to the major version so that dld.sl refuses to
15412  # link against other versions.
15413  version_type=sunos
15414  need_lib_prefix=no
15415  need_version=no
15416  case $host_cpu in
15417  ia64*)
15418    shrext_cmds='.so'
15419    hardcode_into_libs=yes
15420    dynamic_linker="$host_os dld.so"
15421    shlibpath_var=LD_LIBRARY_PATH
15422    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15423    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15424    soname_spec='${libname}${release}${shared_ext}$major'
15425    if test "X$HPUX_IA64_MODE" = X32; then
15426      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15427    else
15428      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15429    fi
15430    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15431    ;;
15432  hppa*64*)
15433    shrext_cmds='.sl'
15434    hardcode_into_libs=yes
15435    dynamic_linker="$host_os dld.sl"
15436    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15437    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15438    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15439    soname_spec='${libname}${release}${shared_ext}$major'
15440    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15441    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15442    ;;
15443  *)
15444    shrext_cmds='.sl'
15445    dynamic_linker="$host_os dld.sl"
15446    shlibpath_var=SHLIB_PATH
15447    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15448    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15449    soname_spec='${libname}${release}${shared_ext}$major'
15450    ;;
15451  esac
15452  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15453  postinstall_cmds='chmod 555 $lib'
15454  # or fails outright, so override atomically:
15455  install_override_mode=555
15456  ;;
15457
15458interix[3-9]*)
15459  version_type=linux # correct to gnu/linux during the next big refactor
15460  need_lib_prefix=no
15461  need_version=no
15462  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15463  soname_spec='${libname}${release}${shared_ext}$major'
15464  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15465  shlibpath_var=LD_LIBRARY_PATH
15466  shlibpath_overrides_runpath=no
15467  hardcode_into_libs=yes
15468  ;;
15469
15470irix5* | irix6* | nonstopux*)
15471  case $host_os in
15472    nonstopux*) version_type=nonstopux ;;
15473    *)
15474	if test "$lt_cv_prog_gnu_ld" = yes; then
15475		version_type=linux # correct to gnu/linux during the next big refactor
15476	else
15477		version_type=irix
15478	fi ;;
15479  esac
15480  need_lib_prefix=no
15481  need_version=no
15482  soname_spec='${libname}${release}${shared_ext}$major'
15483  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15484  case $host_os in
15485  irix5* | nonstopux*)
15486    libsuff= shlibsuff=
15487    ;;
15488  *)
15489    case $LD in # libtool.m4 will add one of these switches to LD
15490    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15491      libsuff= shlibsuff= libmagic=32-bit;;
15492    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15493      libsuff=32 shlibsuff=N32 libmagic=N32;;
15494    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15495      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15496    *) libsuff= shlibsuff= libmagic=never-match;;
15497    esac
15498    ;;
15499  esac
15500  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15501  shlibpath_overrides_runpath=no
15502  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15503  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15504  hardcode_into_libs=yes
15505  ;;
15506
15507# No shared lib support for Linux oldld, aout, or coff.
15508linux*oldld* | linux*aout* | linux*coff*)
15509  dynamic_linker=no
15510  ;;
15511
15512# This must be glibc/ELF.
15513linux* | k*bsd*-gnu | kopensolaris*-gnu)
15514  version_type=linux # correct to gnu/linux during the next big refactor
15515  need_lib_prefix=no
15516  need_version=no
15517  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15518  soname_spec='${libname}${release}${shared_ext}$major'
15519  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15520  shlibpath_var=LD_LIBRARY_PATH
15521  shlibpath_overrides_runpath=no
15522
15523  # Some binutils ld are patched to set DT_RUNPATH
15524  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15525  $as_echo_n "(cached) " >&6
15526else
15527  lt_cv_shlibpath_overrides_runpath=no
15528    save_LDFLAGS=$LDFLAGS
15529    save_libdir=$libdir
15530    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15531	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15532    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15533/* end confdefs.h.  */
15534
15535int
15536main ()
15537{
15538
15539  ;
15540  return 0;
15541}
15542_ACEOF
15543if ac_fn_cxx_try_link "$LINENO"; then :
15544  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15545  lt_cv_shlibpath_overrides_runpath=yes
15546fi
15547fi
15548rm -f core conftest.err conftest.$ac_objext \
15549    conftest$ac_exeext conftest.$ac_ext
15550    LDFLAGS=$save_LDFLAGS
15551    libdir=$save_libdir
15552
15553fi
15554
15555  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15556
15557  # This implies no fast_install, which is unacceptable.
15558  # Some rework will be needed to allow for fast_install
15559  # before this can be enabled.
15560  hardcode_into_libs=yes
15561
15562  # Add ABI-specific directories to the system library path.
15563  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15564
15565  # Append ld.so.conf contents to the search path
15566  if test -f /etc/ld.so.conf; then
15567    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' ' '`
15568    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15569
15570  fi
15571
15572  # We used to test for /lib/ld.so.1 and disable shared libraries on
15573  # powerpc, because MkLinux only supported shared libraries with the
15574  # GNU dynamic linker.  Since this was broken with cross compilers,
15575  # most powerpc-linux boxes support dynamic linking these days and
15576  # people can always --disable-shared, the test was removed, and we
15577  # assume the GNU/Linux dynamic linker is in use.
15578  dynamic_linker='GNU/Linux ld.so'
15579  ;;
15580
15581netbsd*)
15582  version_type=sunos
15583  need_lib_prefix=no
15584  need_version=no
15585  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15586    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15587    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15588    dynamic_linker='NetBSD (a.out) ld.so'
15589  else
15590    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15591    soname_spec='${libname}${release}${shared_ext}$major'
15592    dynamic_linker='NetBSD ld.elf_so'
15593  fi
15594  shlibpath_var=LD_LIBRARY_PATH
15595  shlibpath_overrides_runpath=yes
15596  hardcode_into_libs=yes
15597  ;;
15598
15599newsos6)
15600  version_type=linux # correct to gnu/linux during the next big refactor
15601  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15602  shlibpath_var=LD_LIBRARY_PATH
15603  shlibpath_overrides_runpath=yes
15604  ;;
15605
15606*nto* | *qnx*)
15607  version_type=qnx
15608  need_lib_prefix=no
15609  need_version=no
15610  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15611  soname_spec='${libname}${release}${shared_ext}$major'
15612  shlibpath_var=LD_LIBRARY_PATH
15613  shlibpath_overrides_runpath=no
15614  hardcode_into_libs=yes
15615  dynamic_linker='ldqnx.so'
15616  ;;
15617
15618openbsd*)
15619  version_type=sunos
15620  sys_lib_dlsearch_path_spec="/usr/lib"
15621  need_lib_prefix=no
15622  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15623  case $host_os in
15624    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
15625    *)				need_version=no  ;;
15626  esac
15627  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15628  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15629  shlibpath_var=LD_LIBRARY_PATH
15630  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15631    case $host_os in
15632      openbsd2.[89] | openbsd2.[89].*)
15633	shlibpath_overrides_runpath=no
15634	;;
15635      *)
15636	shlibpath_overrides_runpath=yes
15637	;;
15638      esac
15639  else
15640    shlibpath_overrides_runpath=yes
15641  fi
15642  ;;
15643
15644os2*)
15645  libname_spec='$name'
15646  shrext_cmds=".dll"
15647  need_lib_prefix=no
15648  library_names_spec='$libname${shared_ext} $libname.a'
15649  dynamic_linker='OS/2 ld.exe'
15650  shlibpath_var=LIBPATH
15651  ;;
15652
15653osf3* | osf4* | osf5*)
15654  version_type=osf
15655  need_lib_prefix=no
15656  need_version=no
15657  soname_spec='${libname}${release}${shared_ext}$major'
15658  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15659  shlibpath_var=LD_LIBRARY_PATH
15660  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15661  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15662  ;;
15663
15664rdos*)
15665  dynamic_linker=no
15666  ;;
15667
15668solaris*)
15669  version_type=linux # correct to gnu/linux during the next big refactor
15670  need_lib_prefix=no
15671  need_version=no
15672  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15673  soname_spec='${libname}${release}${shared_ext}$major'
15674  shlibpath_var=LD_LIBRARY_PATH
15675  shlibpath_overrides_runpath=yes
15676  hardcode_into_libs=yes
15677  # ldd complains unless libraries are executable
15678  postinstall_cmds='chmod +x $lib'
15679  ;;
15680
15681sunos4*)
15682  version_type=sunos
15683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15684  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15685  shlibpath_var=LD_LIBRARY_PATH
15686  shlibpath_overrides_runpath=yes
15687  if test "$with_gnu_ld" = yes; then
15688    need_lib_prefix=no
15689  fi
15690  need_version=yes
15691  ;;
15692
15693sysv4 | sysv4.3*)
15694  version_type=linux # correct to gnu/linux during the next big refactor
15695  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15696  soname_spec='${libname}${release}${shared_ext}$major'
15697  shlibpath_var=LD_LIBRARY_PATH
15698  case $host_vendor in
15699    sni)
15700      shlibpath_overrides_runpath=no
15701      need_lib_prefix=no
15702      runpath_var=LD_RUN_PATH
15703      ;;
15704    siemens)
15705      need_lib_prefix=no
15706      ;;
15707    motorola)
15708      need_lib_prefix=no
15709      need_version=no
15710      shlibpath_overrides_runpath=no
15711      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15712      ;;
15713  esac
15714  ;;
15715
15716sysv4*MP*)
15717  if test -d /usr/nec ;then
15718    version_type=linux # correct to gnu/linux during the next big refactor
15719    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15720    soname_spec='$libname${shared_ext}.$major'
15721    shlibpath_var=LD_LIBRARY_PATH
15722  fi
15723  ;;
15724
15725sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15726  version_type=freebsd-elf
15727  need_lib_prefix=no
15728  need_version=no
15729  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15730  soname_spec='${libname}${release}${shared_ext}$major'
15731  shlibpath_var=LD_LIBRARY_PATH
15732  shlibpath_overrides_runpath=yes
15733  hardcode_into_libs=yes
15734  if test "$with_gnu_ld" = yes; then
15735    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15736  else
15737    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15738    case $host_os in
15739      sco3.2v5*)
15740        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15741	;;
15742    esac
15743  fi
15744  sys_lib_dlsearch_path_spec='/usr/lib'
15745  ;;
15746
15747tpf*)
15748  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15749  version_type=linux # correct to gnu/linux during the next big refactor
15750  need_lib_prefix=no
15751  need_version=no
15752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15753  shlibpath_var=LD_LIBRARY_PATH
15754  shlibpath_overrides_runpath=no
15755  hardcode_into_libs=yes
15756  ;;
15757
15758uts4*)
15759  version_type=linux # correct to gnu/linux during the next big refactor
15760  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15761  soname_spec='${libname}${release}${shared_ext}$major'
15762  shlibpath_var=LD_LIBRARY_PATH
15763  ;;
15764
15765*)
15766  dynamic_linker=no
15767  ;;
15768esac
15769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15770$as_echo "$dynamic_linker" >&6; }
15771test "$dynamic_linker" = no && can_build_shared=no
15772
15773variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15774if test "$GCC" = yes; then
15775  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15776fi
15777
15778if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15779  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15780fi
15781if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15782  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15783fi
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15823$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15824hardcode_action_CXX=
15825if test -n "$hardcode_libdir_flag_spec_CXX" ||
15826   test -n "$runpath_var_CXX" ||
15827   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15828
15829  # We can hardcode non-existent directories.
15830  if test "$hardcode_direct_CXX" != no &&
15831     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15832     # have to relink, otherwise we might link with an installed library
15833     # when we should be linking with a yet-to-be-installed one
15834     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15835     test "$hardcode_minus_L_CXX" != no; then
15836    # Linking always hardcodes the temporary library directory.
15837    hardcode_action_CXX=relink
15838  else
15839    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15840    hardcode_action_CXX=immediate
15841  fi
15842else
15843  # We cannot hardcode anything, or else we can only hardcode existing
15844  # directories.
15845  hardcode_action_CXX=unsupported
15846fi
15847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15848$as_echo "$hardcode_action_CXX" >&6; }
15849
15850if test "$hardcode_action_CXX" = relink ||
15851   test "$inherit_rpath_CXX" = yes; then
15852  # Fast installation is not supported
15853  enable_fast_install=no
15854elif test "$shlibpath_overrides_runpath" = yes ||
15855     test "$enable_shared" = no; then
15856  # Fast installation is not necessary
15857  enable_fast_install=needless
15858fi
15859
15860
15861
15862
15863
15864
15865
15866  fi # test -n "$compiler"
15867
15868  CC=$lt_save_CC
15869  CFLAGS=$lt_save_CFLAGS
15870  LDCXX=$LD
15871  LD=$lt_save_LD
15872  GCC=$lt_save_GCC
15873  with_gnu_ld=$lt_save_with_gnu_ld
15874  lt_cv_path_LDCXX=$lt_cv_path_LD
15875  lt_cv_path_LD=$lt_save_path_LD
15876  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15877  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15878fi # test "$_lt_caught_CXX_error" != yes
15879
15880ac_ext=c
15881ac_cpp='$CPP $CPPFLAGS'
15882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15884ac_compiler_gnu=$ac_cv_c_compiler_gnu
15885
15886
15887
15888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
15889$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
15890if ${ac_cv_prog_cc_c99+:} false; then :
15891  $as_echo_n "(cached) " >&6
15892else
15893  ac_cv_prog_cc_c99=no
15894ac_save_CC=$CC
15895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15896/* end confdefs.h.  */
15897#include <stdarg.h>
15898#include <stdbool.h>
15899#include <stdlib.h>
15900#include <wchar.h>
15901#include <stdio.h>
15902
15903// Check varargs macros.  These examples are taken from C99 6.10.3.5.
15904#define debug(...) fprintf (stderr, __VA_ARGS__)
15905#define showlist(...) puts (#__VA_ARGS__)
15906#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
15907static void
15908test_varargs_macros (void)
15909{
15910  int x = 1234;
15911  int y = 5678;
15912  debug ("Flag");
15913  debug ("X = %d\n", x);
15914  showlist (The first, second, and third items.);
15915  report (x>y, "x is %d but y is %d", x, y);
15916}
15917
15918// Check long long types.
15919#define BIG64 18446744073709551615ull
15920#define BIG32 4294967295ul
15921#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
15922#if !BIG_OK
15923  your preprocessor is broken;
15924#endif
15925#if BIG_OK
15926#else
15927  your preprocessor is broken;
15928#endif
15929static long long int bignum = -9223372036854775807LL;
15930static unsigned long long int ubignum = BIG64;
15931
15932struct incomplete_array
15933{
15934  int datasize;
15935  double data[];
15936};
15937
15938struct named_init {
15939  int number;
15940  const wchar_t *name;
15941  double average;
15942};
15943
15944typedef const char *ccp;
15945
15946static inline int
15947test_restrict (ccp restrict text)
15948{
15949  // See if C++-style comments work.
15950  // Iterate through items via the restricted pointer.
15951  // Also check for declarations in for loops.
15952  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
15953    continue;
15954  return 0;
15955}
15956
15957// Check varargs and va_copy.
15958static void
15959test_varargs (const char *format, ...)
15960{
15961  va_list args;
15962  va_start (args, format);
15963  va_list args_copy;
15964  va_copy (args_copy, args);
15965
15966  const char *str;
15967  int number;
15968  float fnumber;
15969
15970  while (*format)
15971    {
15972      switch (*format++)
15973	{
15974	case 's': // string
15975	  str = va_arg (args_copy, const char *);
15976	  break;
15977	case 'd': // int
15978	  number = va_arg (args_copy, int);
15979	  break;
15980	case 'f': // float
15981	  fnumber = va_arg (args_copy, double);
15982	  break;
15983	default:
15984	  break;
15985	}
15986    }
15987  va_end (args_copy);
15988  va_end (args);
15989}
15990
15991int
15992main ()
15993{
15994
15995  // Check bool.
15996  _Bool success = false;
15997
15998  // Check restrict.
15999  if (test_restrict ("String literal") == 0)
16000    success = true;
16001  char *restrict newvar = "Another string";
16002
16003  // Check varargs.
16004  test_varargs ("s, d' f .", "string", 65, 34.234);
16005  test_varargs_macros ();
16006
16007  // Check flexible array members.
16008  struct incomplete_array *ia =
16009    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
16010  ia->datasize = 10;
16011  for (int i = 0; i < ia->datasize; ++i)
16012    ia->data[i] = i * 1.234;
16013
16014  // Check named initializers.
16015  struct named_init ni = {
16016    .number = 34,
16017    .name = L"Test wide string",
16018    .average = 543.34343,
16019  };
16020
16021  ni.number = 58;
16022
16023  int dynamic_array[ni.number];
16024  dynamic_array[ni.number - 1] = 543;
16025
16026  // work around unused variable warnings
16027  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
16028	  || dynamic_array[ni.number - 1] != 543);
16029
16030  ;
16031  return 0;
16032}
16033_ACEOF
16034for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
16035do
16036  CC="$ac_save_CC $ac_arg"
16037  if ac_fn_c_try_compile "$LINENO"; then :
16038  ac_cv_prog_cc_c99=$ac_arg
16039fi
16040rm -f core conftest.err conftest.$ac_objext
16041  test "x$ac_cv_prog_cc_c99" != "xno" && break
16042done
16043rm -f conftest.$ac_ext
16044CC=$ac_save_CC
16045
16046fi
16047# AC_CACHE_VAL
16048case "x$ac_cv_prog_cc_c99" in
16049  x)
16050    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16051$as_echo "none needed" >&6; } ;;
16052  xno)
16053    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16054$as_echo "unsupported" >&6; } ;;
16055  *)
16056    CC="$CC $ac_cv_prog_cc_c99"
16057    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
16058$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
16059esac
16060if test "x$ac_cv_prog_cc_c99" != xno; then :
16061
16062fi
16063
16064
16065if test "x${ac_cv_prog_cc_c99}" == "xno"; then :
16066  as_fn_error $? "No c99 compatible compiler found" "$LINENO" 5
16067fi
16068
16069
16070
16071
16072
16073cat >>confdefs.h <<_ACEOF
16074#define HOST_VENDOR "$host_vendor"
16075_ACEOF
16076
16077
16078cat >>confdefs.h <<_ACEOF
16079#define HOST_OS "$host_os"
16080_ACEOF
16081
16082
16083cat >>confdefs.h <<_ACEOF
16084#define HOST_CPU "$host_cpu"
16085_ACEOF
16086
16087
16088
16089cat >>confdefs.h <<_ACEOF
16090#define TARGET_VENDOR "$target_vendor"
16091_ACEOF
16092
16093
16094cat >>confdefs.h <<_ACEOF
16095#define TARGET_OS "$target_os"
16096_ACEOF
16097
16098
16099cat >>confdefs.h <<_ACEOF
16100#define TARGET_CPU "$target_cpu"
16101_ACEOF
16102
16103
16104      case $target_os in #(
16105  *mingw*) :
16106    TARGET_WINDOWS="true"
16107
16108$as_echo "#define TARGET_OS_WINDOWS 1" >>confdefs.h
16109
16110
16111$as_echo "#define EAI_SYSTEM 11" >>confdefs.h
16112
16113         ;; #(
16114  *freebsd*|*dragonfly*) :
16115
16116$as_echo "#define TARGET_OS_FREEBSD 1" >>confdefs.h
16117
16118
16119$as_echo "#define __APPLE_CC__ 1" >>confdefs.h
16120 ;; #(
16121  *solaris*) :
16122
16123$as_echo "#define TARGET_OS_SOLARIS 1" >>confdefs.h
16124 ;; #(
16125  *darwin*) :
16126    TARGET_OSX="true" ;; #(
16127  *linux*) :
16128    TARGET_LINUX="true"
16129
16130$as_echo "#define TARGET_OS_LINUX 1" >>confdefs.h
16131 ;; #(
16132  *) :
16133     ;;
16134esac
16135
16136   if test "x${TARGET_WINDOWS}" = "xtrue"; then
16137  BUILD_WIN32_TRUE=
16138  BUILD_WIN32_FALSE='#'
16139else
16140  BUILD_WIN32_TRUE='#'
16141  BUILD_WIN32_FALSE=
16142fi
16143
16144   if test "x${TARGET_OSX}" = "xtrue"; then
16145  TARGET_OSX_TRUE=
16146  TARGET_OSX_FALSE='#'
16147else
16148  TARGET_OSX_TRUE='#'
16149  TARGET_OSX_FALSE=
16150fi
16151
16152   if test "x${TARGET_LINUX}" = "xtrue"; then
16153  TARGET_LINUX_TRUE=
16154  TARGET_LINUX_FALSE='#'
16155else
16156  TARGET_LINUX_TRUE='#'
16157  TARGET_LINUX_FALSE=
16158fi
16159
16160   if test "x${TARGET_OS_FREEBSD}" = "xtrue"; then
16161  TARGET_FREEBSD_TRUE=
16162  TARGET_FREEBSD_FALSE='#'
16163else
16164  TARGET_FREEBSD_TRUE='#'
16165  TARGET_FREEBSD_FALSE=
16166fi
16167
16168
16169# Check whether --enable-silent-rules was given.
16170if test "${enable_silent_rules+set}" = set; then :
16171  enableval=$enable_silent_rules;
16172fi
16173
16174case $enable_silent_rules in # (((
16175  yes) AM_DEFAULT_VERBOSITY=0;;
16176   no) AM_DEFAULT_VERBOSITY=1;;
16177    *) AM_DEFAULT_VERBOSITY=0;;
16178esac
16179am_make=${MAKE-make}
16180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
16181$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
16182if ${am_cv_make_support_nested_variables+:} false; then :
16183  $as_echo_n "(cached) " >&6
16184else
16185  if $as_echo 'TRUE=$(BAR$(V))
16186BAR0=false
16187BAR1=true
16188V=1
16189am__doit:
16190	@$(TRUE)
16191.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
16192  am_cv_make_support_nested_variables=yes
16193else
16194  am_cv_make_support_nested_variables=no
16195fi
16196fi
16197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
16198$as_echo "$am_cv_make_support_nested_variables" >&6; }
16199if test $am_cv_make_support_nested_variables = yes; then
16200    AM_V='$(V)'
16201  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16202else
16203  AM_V=$AM_DEFAULT_VERBOSITY
16204  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
16205fi
16206AM_BACKSLASH='\'
16207
16208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts " >&5
16209$as_echo_n "checking whether the linker accepts ... " >&6; }
16210if ${ax_cv_check_ldflags__+:} false; then :
16211  $as_echo_n "(cached) " >&6
16212else
16213
16214  ax_check_save_flags=$LDFLAGS
16215  LDFLAGS="$LDFLAGS  "
16216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16217/* end confdefs.h.  */
16218
16219int
16220main ()
16221{
16222
16223  ;
16224  return 0;
16225}
16226_ACEOF
16227if ac_fn_c_try_link "$LINENO"; then :
16228  ax_cv_check_ldflags__=yes
16229else
16230  ax_cv_check_ldflags__=no
16231fi
16232rm -f core conftest.err conftest.$ac_objext \
16233    conftest$ac_exeext conftest.$ac_ext
16234  LDFLAGS=$ax_check_save_flags
16235fi
16236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__" >&5
16237$as_echo "$ax_cv_check_ldflags__" >&6; }
16238if test x"$ax_cv_check_ldflags__" = xyes; then :
16239  :
16240else
16241  :
16242fi
16243
16244if ${CFLAGS+:} false; then :
16245  case " $CFLAGS " in
16246    *"  "*)
16247      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
16248  (: CFLAGS already contains ) 2>&5
16249  ac_status=$?
16250  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16251  test $ac_status = 0; }
16252      ;;
16253    *)
16254      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
16255  (: CFLAGS="$CFLAGS ") 2>&5
16256  ac_status=$?
16257  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16258  test $ac_status = 0; }
16259      CFLAGS="$CFLAGS "
16260      ;;
16261   esac
16262else
16263  CFLAGS=""
16264fi
16265
16266    # Check whether --enable-debug was given.
16267if test "${enable_debug+set}" = set; then :
16268  enableval=$enable_debug; ax_enable_debug=yes
16269
16270$as_echo "#define DEBUG 1" >>confdefs.h
16271
16272
16273
16274
16275    if ${ax_cv_have_MCHECK+:} false; then :
16276  $as_echo_n "(cached) " >&6
16277else
16278
16279  CPPFLAGS_save="${CPPFLAGS}"
16280  CFLAGS_save="${CFLAGS}"
16281  CXXFLAGS_save="${CXXFLAGS}"
16282  OBJCFLAGS_save="${OBJCFLAGS}"
16283  LDFLAGS_save="${LDFLAGS}"
16284  LIBS_save="${LIBS}"
16285
16286
16287      if test "x$MCHECK_CPPFLAGS" != "x"; then :
16288  CPPFLAGS="$CPPFLAGS $MCHECK_CPPFLAGS"
16289fi
16290
16291      if test "x$MCHECK_LDFLAGS" != "x"; then :
16292  LDFLAGS="$LDFLAGS $MCHECK_LDFLAGS"
16293fi
16294
16295      ac_fn_c_check_header_mongrel "$LINENO" "mcheck.h" "ac_cv_header_mcheck_h" "$ac_includes_default"
16296if test "x$ac_cv_header_mcheck_h" = xyes; then :
16297
16298        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
16299$as_echo_n "checking for main in -lmcheck... " >&6; }
16300if ${ac_cv_lib_mcheck_main+:} false; then :
16301  $as_echo_n "(cached) " >&6
16302else
16303  ac_check_lib_save_LIBS=$LIBS
16304LIBS="-lmcheck  $LIBS"
16305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16306/* end confdefs.h.  */
16307
16308
16309int
16310main ()
16311{
16312return main ();
16313  ;
16314  return 0;
16315}
16316_ACEOF
16317if ac_fn_c_try_link "$LINENO"; then :
16318  ac_cv_lib_mcheck_main=yes
16319else
16320  ac_cv_lib_mcheck_main=no
16321fi
16322rm -f core conftest.err conftest.$ac_objext \
16323    conftest$ac_exeext conftest.$ac_ext
16324LIBS=$ac_check_lib_save_LIBS
16325fi
16326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
16327$as_echo "$ac_cv_lib_mcheck_main" >&6; }
16328if test "x$ac_cv_lib_mcheck_main" = xyes; then :
16329  ax_cv_have_MCHECK=yes
16330else
16331  ax_cv_have_MCHECK=no
16332fi
16333
16334
16335else
16336  ax_cv_have_MCHECK=no
16337fi
16338
16339
16340
16341
16342  CPPFLAGS="${CPPFLAGS_save}"
16343  CFLAGS="${CFLAGS_save}"
16344  CXXFLAGS="${CXXFLAGS_save}"
16345  OBJCFLAGS="${OBJCFLAGS_save}"
16346  LDFLAGS="${LDFLAGS_save}"
16347  LIBS="${LIBS_save}"
16348
16349
16350fi
16351
16352
16353    if test "$ax_cv_have_MCHECK" = "yes"; then :
16354
16355$as_echo "#define HAVE_MCHECK 1" >>confdefs.h
16356
16357
16358
16359        MCHECK_LIB=-lmcheck
16360
16361
16362
16363for flag in -lmcheck; do
16364  as_CACHEVAR=`$as_echo "ax_cv_check_ldflags__$flag" | $as_tr_sh`
16365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
16366$as_echo_n "checking whether the linker accepts $flag... " >&6; }
16367if eval \${$as_CACHEVAR+:} false; then :
16368  $as_echo_n "(cached) " >&6
16369else
16370
16371  ax_check_save_flags=$LDFLAGS
16372  LDFLAGS="$LDFLAGS  $flag"
16373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16374/* end confdefs.h.  */
16375
16376int
16377main ()
16378{
16379
16380  ;
16381  return 0;
16382}
16383_ACEOF
16384if ac_fn_c_try_link "$LINENO"; then :
16385  eval "$as_CACHEVAR=yes"
16386else
16387  eval "$as_CACHEVAR=no"
16388fi
16389rm -f core conftest.err conftest.$ac_objext \
16390    conftest$ac_exeext conftest.$ac_ext
16391  LDFLAGS=$ax_check_save_flags
16392fi
16393eval ac_res=\$$as_CACHEVAR
16394	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16395$as_echo "$ac_res" >&6; }
16396if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
16397  if ${LDFLAGS+:} false; then :
16398  case " $LDFLAGS " in
16399    *" $flag "*)
16400      { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains \$flag"; } >&5
16401  (: LDFLAGS already contains $flag) 2>&5
16402  ac_status=$?
16403  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16404  test $ac_status = 0; }
16405      ;;
16406    *)
16407      { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS \$flag\""; } >&5
16408  (: LDFLAGS="$LDFLAGS $flag") 2>&5
16409  ac_status=$?
16410  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16411  test $ac_status = 0; }
16412      LDFLAGS="$LDFLAGS $flag"
16413      ;;
16414   esac
16415else
16416  LDFLAGS="$flag"
16417fi
16418
16419else
16420  :
16421fi
16422
16423done
16424
16425else
16426  :
16427fi
16428
16429else
16430  ax_enable_debug=no
16431
16432
16433$as_echo "#define DEBUG 0" >>confdefs.h
16434
16435fi
16436
16437
16438    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debug" >&5
16439$as_echo_n "checking for debug... " >&6; }
16440    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_debug" >&5
16441$as_echo "$ax_enable_debug" >&6; }
16442     if test "x${ax_enable_debug}" = "xyes"; then
16443  DEBUG_TRUE=
16444  DEBUG_FALSE='#'
16445else
16446  DEBUG_TRUE='#'
16447  DEBUG_FALSE=
16448fi
16449
16450    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vcs system" >&5
16451$as_echo_n "checking for vcs system... " >&6; }
16452if ${ac_cv_vcs_system+:} false; then :
16453  $as_echo_n "(cached) " >&6
16454else
16455  ac_cv_vcs_system="none"
16456      if test -d ".bzr"; then :
16457  ac_cv_vcs_system="bazaar"
16458fi
16459      if test -d ".svn"; then :
16460  ac_cv_vcs_system="svn"
16461fi
16462      if test -d ".hg"; then :
16463  ac_cv_vcs_system="mercurial"
16464fi
16465      if test -d ".git"; then :
16466  ac_cv_vcs_system="git"
16467fi
16468
16469fi
16470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_vcs_system" >&5
16471$as_echo "$ac_cv_vcs_system" >&6; }
16472
16473cat >>confdefs.h <<_ACEOF
16474#define VCS_SYSTEM "$ac_cv_vcs_system"
16475_ACEOF
16476
16477
16478
16479    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vcs checkout" >&5
16480$as_echo_n "checking for vcs checkout... " >&6; }
16481if ${ac_cv_vcs_checkout+:} false; then :
16482  $as_echo_n "(cached) " >&6
16483else
16484  if test "x$ac_cv_vcs_system" != "xnone"; then :
16485  ac_cv_vcs_checkout=yes
16486else
16487  ac_cv_vcs_checkout=no
16488fi
16489
16490fi
16491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_vcs_checkout" >&5
16492$as_echo "$ac_cv_vcs_checkout" >&6; }
16493
16494     if test "x$ac_cv_vcs_checkout" = "xyes"; then
16495  IS_VCS_CHECKOUT_TRUE=
16496  IS_VCS_CHECKOUT_FALSE='#'
16497else
16498  IS_VCS_CHECKOUT_TRUE='#'
16499  IS_VCS_CHECKOUT_FALSE=
16500fi
16501
16502    if test "x$ac_cv_vcs_checkout" = "xyes"; then :
16503
16504$as_echo "#define VCS_CHECKOUT 1" >>confdefs.h
16505
16506else
16507
16508$as_echo "#define VCS_CHECKOUT 0" >>confdefs.h
16509
16510fi
16511
16512
16513
16514    # Check whether --enable-assert was given.
16515if test "${enable_assert+set}" = set; then :
16516  enableval=$enable_assert; ax_enable_assert=yes
16517else
16518  ax_enable_assert=no
16519fi
16520
16521
16522    if  test "$ax_enable_assert" = "yes" -o "$ax_enable_debug" = "yes" -o "$ac_cv_vcs_checkout" = "yes" ; then :
16523  ax_enable_assert="yes"
16524else
16525  ax_enable_assert="no"
16526
16527$as_echo "#define NDEBUG 1" >>confdefs.h
16528
16529fi
16530
16531    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assert" >&5
16532$as_echo_n "checking for assert... " >&6; }
16533    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_assert" >&5
16534$as_echo "$ax_enable_assert" >&6; }
16535
16536
16537# First look for Boost, maybe for a specific minimum version:
16538
16539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5
16540$as_echo_n "checking for the toolset name used by Boost for $CXX... " >&6; }
16541if ${boost_cv_lib_tag+:} false; then :
16542  $as_echo_n "(cached) " >&6
16543else
16544  boost_cv_lib_tag=unknown
16545if test x$boost_cv_inc_path != xno; then
16546  ac_ext=cpp
16547ac_cpp='$CXXCPP $CPPFLAGS'
16548ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16549ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16550ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16551  # The following tests are mostly inspired by boost/config/auto_link.hpp
16552  # The list is sorted to most recent/common to oldest compiler (in order
16553  # to increase the likelihood of finding the right compiler with the
16554  # least number of compilation attempt).
16555  # Beware that some tests are sensible to the order (for instance, we must
16556  # look for MinGW before looking for GCC3).
16557  # I used one compilation test per compiler with a #error to recognize
16558  # each compiler so that it works even when cross-compiling (let me know
16559  # if you know a better approach).
16560  # Known missing tags (known from Boost's tools/build/v2/tools/common.jam):
16561  #   como, edg, kcc, bck, mp, sw, tru, xlc
16562  # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines
16563  # the same defines as GCC's).
16564  for i in \
16565    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC @ gcc48" \
16566    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC @ gcc47" \
16567    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC @ gcc46" \
16568    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \
16569    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \
16570    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \
16571    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \
16572    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \
16573    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \
16574    "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \
16575     && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
16576         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \
16577    "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \
16578    "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \
16579    "defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \
16580    "defined _MSC_VER && _MSC_VER == 1400 @ vc80" \
16581    "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \
16582    "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \
16583    "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \
16584    "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \
16585    "defined __BORLANDC__ @ bcb" \
16586    "defined __ICC && (defined __unix || defined ) @ il" \
16587    "defined __ICL @ iw" \
16588    "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \
16589    "defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \
16590    "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \
16591    "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \
16592    "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \
16593    "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8"
16594  do
16595    boost_tag_test=`expr "X$i" : 'X\([^@]*\) @ '`
16596    boost_tag=`expr "X$i" : 'X[^@]* @ \(.*\)'`
16597    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16598/* end confdefs.h.  */
16599
16600#if $boost_tag_test
16601/* OK */
16602#else
16603# error $boost_tag_test
16604#endif
16605
16606int
16607main ()
16608{
16609
16610  ;
16611  return 0;
16612}
16613_ACEOF
16614if ac_fn_cxx_try_compile "$LINENO"; then :
16615  boost_cv_lib_tag=$boost_tag; break
16616fi
16617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16618  done
16619ac_ext=c
16620ac_cpp='$CPP $CPPFLAGS'
16621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16623ac_compiler_gnu=$ac_cv_c_compiler_gnu
16624  case $boost_cv_lib_tag in #(
16625    # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed
16626    # to "gcc41" for instance.
16627    *-gcc | *'-gcc ') :;; #(  Don't re-add -gcc: it's already in there.
16628    gcc*)
16629      boost_tag_x=
16630      case $host_os in #(
16631        darwin*)
16632          if test $boost_major_version -ge 136; then
16633            # The `x' added in r46793 of Boost.
16634            boost_tag_x=x
16635          fi;;
16636      esac
16637      # We can specify multiple tags in this variable because it's used by
16638      # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ...
16639      boost_cv_lib_tag="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc"
16640      ;; #(
16641    unknown)
16642      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5
16643$as_echo "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;}
16644      boost_cv_lib_tag=
16645      ;;
16646  esac
16647fi
16648fi
16649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5
16650$as_echo "$boost_cv_lib_tag" >&6; }
16651# Check whether --enable-static-boost was given.
16652if test "${enable_static_boost+set}" = set; then :
16653  enableval=$enable_static_boost; enable_static_boost=yes
16654else
16655  enable_static_boost=no
16656fi
16657
16658# Check whether we do better use `mt' even though we weren't ask to.
16659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16660/* end confdefs.h.  */
16661
16662#if defined _REENTRANT || defined _MT || defined __MT__
16663/* use -mt */
16664#else
16665# error MT not needed
16666#endif
16667
16668int
16669main ()
16670{
16671
16672  ;
16673  return 0;
16674}
16675_ACEOF
16676if ac_fn_c_try_compile "$LINENO"; then :
16677  boost_guess_use_mt=:
16678else
16679  boost_guess_use_mt=false
16680fi
16681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16682
16683
16684echo "$as_me: this is boost.m4 serial 16" >&5
16685boost_save_IFS=$IFS
16686boost_version_req=1.39
16687IFS=.
16688set x $boost_version_req 0 0 0
16689IFS=$boost_save_IFS
16690shift
16691boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"`
16692boost_version_req_string=$1.$2.$3
16693
16694# Check whether --with-boost was given.
16695if test "${with_boost+set}" = set; then :
16696  withval=$with_boost;
16697fi
16698# If BOOST_ROOT is set and the user has not provided a value to
16699# --with-boost, then treat BOOST_ROOT as if it the user supplied it.
16700if test x"$BOOST_ROOT" != x; then
16701  if test x"$with_boost" = x; then
16702    { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5
16703$as_echo "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;}
16704    with_boost=$BOOST_ROOT
16705  else
16706    { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5
16707$as_echo "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;}
16708  fi
16709fi
16710DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"
16711boost_save_CPPFLAGS=$CPPFLAGS
16712  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5
16713$as_echo_n "checking for Boost headers version >= $boost_version_req_string... " >&6; }
16714if ${boost_cv_inc_path+:} false; then :
16715  $as_echo_n "(cached) " >&6
16716else
16717  boost_cv_inc_path=no
16718ac_ext=cpp
16719ac_cpp='$CXXCPP $CPPFLAGS'
16720ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16721ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16722ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16723    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16724/* end confdefs.h.  */
16725#include <boost/version.hpp>
16726#if !defined BOOST_VERSION
16727# error BOOST_VERSION is not defined
16728#elif BOOST_VERSION < $boost_version_req
16729# error Boost headers version < $boost_version_req
16730#endif
16731
16732int
16733main ()
16734{
16735
16736  ;
16737  return 0;
16738}
16739_ACEOF
16740    # If the user provided a value to --with-boost, use it and only it.
16741    case $with_boost in #(
16742      ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \
16743                 /usr/include C:/Boost/include;; #(
16744      *)      set x "$with_boost/include" "$with_boost";;
16745    esac
16746    shift
16747    for boost_dir
16748    do
16749    # Without --layout=system, Boost (or at least some versions) installs
16750    # itself in <prefix>/include/boost-<version>.  This inner loop helps to
16751    # find headers in such directories.
16752    #
16753    # Any ${boost_dir}/boost-x_xx directories are searched in reverse version
16754    # order followed by ${boost_dir}.  The final '.' is a sentinel for
16755    # searching $boost_dir" itself.  Entries are whitespace separated.
16756    #
16757    # I didn't indent this loop on purpose (to avoid over-indented code)
16758    boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \
16759        && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \
16760        && echo .`
16761    for boost_inc in $boost_layout_system_search_list
16762    do
16763      if test x"$boost_inc" != x.; then
16764        boost_inc="$boost_dir/$boost_inc"
16765      else
16766        boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list
16767      fi
16768      if test x"$boost_inc" != x; then
16769        # We are going to check whether the version of Boost installed
16770        # in $boost_inc is usable by running a compilation that
16771        # #includes it.  But if we pass a -I/some/path in which Boost
16772        # is not installed, the compiler will just skip this -I and
16773        # use other locations (either from CPPFLAGS, or from its list
16774        # of system include directories).  As a result we would use
16775        # header installed on the machine instead of the /some/path
16776        # specified by the user.  So in that precise case (trying
16777        # $boost_inc), make sure the version.hpp exists.
16778        #
16779        # Use test -e as there can be symlinks.
16780        test -e "$boost_inc/boost/version.hpp" || continue
16781        CPPFLAGS="$CPPFLAGS -I$boost_inc"
16782      fi
16783      if ac_fn_cxx_try_compile "$LINENO"; then :
16784  boost_cv_inc_path=yes
16785else
16786  boost_cv_version=no
16787fi
16788rm -f core conftest.err conftest.$ac_objext
16789      if test x"$boost_cv_inc_path" = xyes; then
16790        if test x"$boost_inc" != x; then
16791          boost_cv_inc_path=$boost_inc
16792        fi
16793        break 2
16794      fi
16795    done
16796    done
16797ac_ext=c
16798ac_cpp='$CPP $CPPFLAGS'
16799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16801ac_compiler_gnu=$ac_cv_c_compiler_gnu
16802
16803fi
16804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5
16805$as_echo "$boost_cv_inc_path" >&6; }
16806    case $boost_cv_inc_path in #(
16807      no)
16808        boost_errmsg="cannot find Boost headers version >= $boost_version_req_string"
16809        as_fn_error $? "$boost_errmsg" "$LINENO" 5
16810
16811        ;;#(
16812      yes)
16813        BOOST_CPPFLAGS=
16814        ;;#(
16815      *)
16816        BOOST_CPPFLAGS="-I$boost_cv_inc_path"
16817        ;;
16818    esac
16819  if test x"$boost_cv_inc_path" != xno; then
16820
16821$as_echo "#define HAVE_BOOST 1" >>confdefs.h
16822
16823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5
16824$as_echo_n "checking for Boost's header version... " >&6; }
16825if ${boost_cv_lib_version+:} false; then :
16826  $as_echo_n "(cached) " >&6
16827else
16828       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16829/* end confdefs.h.  */
16830#include <boost/version.hpp>
16831boost-lib-version = BOOST_LIB_VERSION
16832_ACEOF
16833if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16834  tr -d '\r' |
16835  $SED -n -e "/^boost-lib-version = /{s///;s/\"//g;p;q;}" >conftest.i 2>&1; then :
16836  boost_cv_lib_version=`cat conftest.i`
16837fi
16838rm -rf conftest*
16839
16840fi
16841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
16842$as_echo "$boost_cv_lib_version" >&6; }
16843    # e.g. "134" for 1_34_1 or "135" for 1_35
16844    boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'`
16845fi
16846CPPFLAGS=$boost_save_CPPFLAGS
16847
16848         if test x"$boost_cv_inc_path" = xno; then
16849  { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost program_options library" >&5
16850$as_echo "$as_me: Boost not available, not searching for the Boost program_options library" >&6;}
16851else
16852ac_ext=cpp
16853ac_cpp='$CXXCPP $CPPFLAGS'
16854ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16855ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16856ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16857if test x"$boost_cv_inc_path" = xno; then
16858  { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/program_options.hpp" >&5
16859$as_echo "$as_me: Boost not available, not searching for boost/program_options.hpp" >&6;}
16860else
16861ac_ext=cpp
16862ac_cpp='$CXXCPP $CPPFLAGS'
16863ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16864ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16865ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16866boost_save_CPPFLAGS=$CPPFLAGS
16867CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
16868ac_fn_cxx_check_header_mongrel "$LINENO" "boost/program_options.hpp" "ac_cv_header_boost_program_options_hpp" "$ac_includes_default"
16869if test "x$ac_cv_header_boost_program_options_hpp" = xyes; then :
16870
16871$as_echo "#define HAVE_BOOST_PROGRAM_OPTIONS_HPP 1" >>confdefs.h
16872
16873else
16874  as_fn_error $? "cannot find boost/program_options.hpp" "$LINENO" 5
16875fi
16876
16877
16878CPPFLAGS=$boost_save_CPPFLAGS
16879ac_ext=cpp
16880ac_cpp='$CXXCPP $CPPFLAGS'
16881ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16882ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16883ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16884fi
16885
16886boost_save_CPPFLAGS=$CPPFLAGS
16887CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
16888# Now let's try to find the library.  The algorithm is as follows: first look
16889# for a given library name according to the user's PREFERRED-RT-OPT.  For each
16890# library name, we prefer to use the ones that carry the tag (toolset name).
16891# Each library is searched through the various standard paths were Boost is
16892# usually installed.  If we can't find the standard variants, we try to
16893# enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist
16894# but there's -obviously- libboost_threads-mt.dylib).
16895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost program_options library" >&5
16896$as_echo_n "checking for the Boost program_options library... " >&6; }
16897if ${boost_cv_lib_program_options+:} false; then :
16898  $as_echo_n "(cached) " >&6
16899else
16900  boost_cv_lib_program_options=no
16901  case "" in #(
16902    mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
16903    mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
16904    *) boost_mt=; boost_rtopt=;;
16905  esac
16906  if test $enable_static_boost = yes; then
16907    boost_rtopt="s$boost_rtopt"
16908  fi
16909  # Find the proper debug variant depending on what we've been asked to find.
16910  case $boost_rtopt in #(
16911    *d*) boost_rt_d=$boost_rtopt;; #(
16912    *[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
16913      boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
16914    *) boost_rt_d='-d';;
16915  esac
16916  # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
16917  test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
16918  $boost_guess_use_mt && boost_mt=-mt
16919  # Look for the abs path the static archive.
16920  # $libext is computed by Libtool but let's make sure it's non empty.
16921  test -z "$libext" &&
16922    as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
16923  boost_save_ac_objext=$ac_objext
16924  # Generate the test file.
16925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16926/* end confdefs.h.  */
16927#include <boost/program_options.hpp>
16928
16929int
16930main ()
16931{
16932boost::program_options::options_description d("test");
16933  ;
16934  return 0;
16935}
16936_ACEOF
16937  if ac_fn_cxx_try_compile "$LINENO"; then :
16938  ac_objext=do_not_rm_me_plz
16939else
16940  as_fn_error $? "cannot compile a test that uses Boost program_options" "$LINENO" 5
16941fi
16942rm -f core conftest.err conftest.$ac_objext
16943  ac_objext=$boost_save_ac_objext
16944  boost_failed_libs=
16945# Don't bother to ident the 6 nested for loops, only the 2 innermost ones
16946# matter.
16947for boost_tag_ in -$boost_cv_lib_tag ''; do
16948for boost_ver_ in -$boost_cv_lib_version ''; do
16949for boost_mt_ in $boost_mt -mt ''; do
16950for boost_rtopt_ in $boost_rtopt '' -d; do
16951  for boost_lib in \
16952    boost_program_options$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
16953    boost_program_options$boost_tag_$boost_rtopt_$boost_ver_ \
16954    boost_program_options$boost_tag_$boost_mt_$boost_ver_ \
16955    boost_program_options$boost_tag_$boost_ver_
16956  do
16957    # Avoid testing twice the same lib
16958    case $boost_failed_libs in #(
16959      *@$boost_lib@*) continue;;
16960    esac
16961    # If with_boost is empty, we'll search in /lib first, which is not quite
16962    # right so instead we'll try to a location based on where the headers are.
16963    boost_tmp_lib=$with_boost
16964    test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
16965    for boost_ldpath in "$boost_tmp_lib/lib" '' \
16966             /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
16967             "$with_boost" C:/Boost/lib /lib*
16968    do
16969      test -e "$boost_ldpath" || continue
16970      boost_save_LDFLAGS=$LDFLAGS
16971      # Are we looking for a static library?
16972      case $boost_ldpath:$boost_rtopt_ in #(
16973        *?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
16974          boost_cv_lib_program_options_LIBS="$boost_ldpath/lib$boost_lib.$libext"
16975          test -e "$boost_cv_lib_program_options_LIBS" || continue;; #(
16976        *) # No: use -lboost_foo to find the shared library.
16977          boost_cv_lib_program_options_LIBS="-l$boost_lib";;
16978      esac
16979      boost_save_LIBS=$LIBS
16980      LIBS="$boost_cv_lib_program_options_LIBS $LIBS"
16981      test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
16982      rm -f conftest$ac_exeext
16983boost_save_ac_ext=$ac_ext
16984boost_use_source=:
16985# If we already have a .o, re-use it.  We change $ac_ext so that $ac_link
16986# tries to link the existing object file instead of compiling from source.
16987test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
16988  $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
16989if { { ac_try="$ac_link"
16990case "(($ac_try" in
16991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16992  *) ac_try_echo=$ac_try;;
16993esac
16994eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16995$as_echo "$ac_try_echo"; } >&5
16996  (eval "$ac_link") 2>conftest.err
16997  ac_status=$?
16998  if test -s conftest.err; then
16999    grep -v '^ *+' conftest.err >conftest.er1
17000    cat conftest.er1 >&5
17001    mv -f conftest.er1 conftest.err
17002  fi
17003  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17004  test $ac_status = 0; } && {
17005	 test -z "$ac_cxx_werror_flag" ||
17006	 test ! -s conftest.err
17007       } && test -s conftest$ac_exeext && {
17008	 test "$cross_compiling" = yes ||
17009	 $as_executable_p conftest$ac_exeext
17010       }; then :
17011  boost_cv_lib_program_options=yes
17012else
17013  if $boost_use_source; then
17014         $as_echo "$as_me: failed program was:" >&5
17015sed 's/^/| /' conftest.$ac_ext >&5
17016
17017       fi
17018       boost_cv_lib_program_options=no
17019fi
17020ac_objext=$boost_save_ac_objext
17021ac_ext=$boost_save_ac_ext
17022rm -f core conftest.err conftest_ipa8_conftest.oo \
17023      conftest$ac_exeext
17024      ac_objext=$boost_save_ac_objext
17025      LDFLAGS=$boost_save_LDFLAGS
17026      LIBS=$boost_save_LIBS
17027      if test x"$boost_cv_lib_program_options" = xyes; then
17028# Because Boost is often installed in non-standard locations we want to
17029# hardcode the path to the library (with rpath).  Here we assume that
17030# Libtool's macro was already invoked so we can steal its variable
17031# hardcode_libdir_flag_spec in order to get the right flags for ld.
17032        boost_save_libdir=$libdir
17033        libdir=$boost_ldpath
17034        eval boost_rpath=\"$hardcode_libdir_flag_spec\"
17035        libdir=$boost_save_libdir
17036        boost_cv_lib_program_options_LDPATH="$boost_ldpath"
17037        break 6
17038      else
17039        boost_failed_libs="$boost_failed_libs@$boost_lib@"
17040      fi
17041    done
17042  done
17043done
17044done
17045done
17046done
17047rm -f conftest.$ac_objext
17048
17049fi
17050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_program_options" >&5
17051$as_echo "$boost_cv_lib_program_options" >&6; }
17052case $boost_cv_lib_program_options in #(
17053  no) $as_echo "$as_me: failed program was:" >&5
17054sed 's/^/| /' conftest.$ac_ext >&5
17055
17056    as_fn_error $? "cannot find the flags to link with Boost program_options" "$LINENO" 5
17057    ;;
17058esac
17059BOOST_PROGRAM_OPTIONS_LDFLAGS=$boost_cv_lib_program_options_LDFLAGS
17060BOOST_PROGRAM_OPTIONS_LDPATH=$boost_cv_lib_program_options_LDPATH
17061BOOST_LDPATH=$boost_cv_lib_program_options_LDPATH
17062BOOST_PROGRAM_OPTIONS_LIBS=$boost_cv_lib_program_options_LIBS
17063CPPFLAGS=$boost_save_CPPFLAGS
17064ac_ext=c
17065ac_cpp='$CPP $CPPFLAGS'
17066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17068ac_compiler_gnu=$ac_cv_c_compiler_gnu
17069fi
17070
17071
17072
17073
17074
17075HASHKIT_LIBRARY_VERSION=2:0:0
17076
17077
17078ac_config_files="$ac_config_files libhashkit/hashkitcon.h"
17079
17080ac_config_files="$ac_config_files libhashkit-1.0/configure.h"
17081
17082 if false; then
17083  INCLUDE_HSIEH_SRC_TRUE=
17084  INCLUDE_HSIEH_SRC_FALSE='#'
17085else
17086  INCLUDE_HSIEH_SRC_TRUE='#'
17087  INCLUDE_HSIEH_SRC_FALSE=
17088fi
17089
17090
17091
17092
17093
17094
17095
17096    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of cstdint" >&5
17097$as_echo_n "checking for location of cstdint... " >&6; }
17098if ${ac_cv_cxx_cstdint+:} false; then :
17099  $as_echo_n "(cached) " >&6
17100else
17101
17102      ac_ext=cpp
17103ac_cpp='$CXXCPP $CPPFLAGS'
17104ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17105ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17106ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17107
17108
17109  CPPFLAGS_save="${CPPFLAGS}"
17110  CFLAGS_save="${CFLAGS}"
17111  CXXFLAGS_save="${CXXFLAGS}"
17112  OBJCFLAGS_save="${OBJCFLAGS}"
17113  LDFLAGS_save="${LDFLAGS}"
17114  LIBS_save="${LIBS}"
17115
17116      CXXFLAGS="${CXX_STANDARD} ${CXXFLAGS}"
17117
17118      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17119/* end confdefs.h.  */
17120
17121        #include <cstdint>
17122int
17123main ()
17124{
17125 uint32_t t
17126  ;
17127  return 0;
17128}
17129_ACEOF
17130if ac_fn_cxx_try_compile "$LINENO"; then :
17131  ac_cxx_cstdint_cstdint="<cstdint>"
17132fi
17133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17134
17135      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17136/* end confdefs.h.  */
17137
17138        #include <tr1/cstdint>
17139int
17140main ()
17141{
17142 uint32_t t
17143  ;
17144  return 0;
17145}
17146_ACEOF
17147if ac_fn_cxx_try_compile "$LINENO"; then :
17148  ac_cxx_cstdint_tr1_cstdint="<tr1/cstdint>"
17149fi
17150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17151
17152      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17153/* end confdefs.h.  */
17154
17155        #include <boost/cstdint.hpp>
17156int
17157main ()
17158{
17159 uint32_t t
17160  ;
17161  return 0;
17162}
17163_ACEOF
17164if ac_fn_cxx_try_compile "$LINENO"; then :
17165  ac_cxx_cstdint_boost_cstdint_hpp="<boost/cstdint.hpp>"
17166fi
17167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17168
17169      ac_ext=c
17170ac_cpp='$CPP $CPPFLAGS'
17171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17173ac_compiler_gnu=$ac_cv_c_compiler_gnu
17174
17175
17176  CPPFLAGS="${CPPFLAGS_save}"
17177  CFLAGS="${CFLAGS_save}"
17178  CXXFLAGS="${CXXFLAGS_save}"
17179  OBJCFLAGS="${OBJCFLAGS_save}"
17180  LDFLAGS="${LDFLAGS_save}"
17181  LIBS="${LIBS_save}"
17182
17183
17184      if test -n "$ac_cxx_cstdint_cstdint"; then :
17185  ac_cv_cxx_cstdint=$ac_cxx_cstdint_cstdint
17186elif test -n "$ac_cxx_cstdint_tr1_cstdint"; then :
17187  ac_cv_cxx_cstdint=$ac_cxx_cstdint_tr1_cstdint
17188elif test -n "$ac_cxx_cstdint_boost_cstdint_hpp"; then :
17189  ac_cv_cxx_cstdint=$ac_cxx_cstdint_boost_cstdint_hpp
17190fi
17191
17192fi
17193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_cstdint" >&5
17194$as_echo "$ac_cv_cxx_cstdint" >&6; }
17195
17196  if test -n "$ac_cv_cxx_cstdint"; then :
17197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_cstdint" >&5
17198$as_echo "$ac_cv_cxx_cstdint" >&6; }
17199else
17200
17201      ac_cv_cxx_cstdint="<stdint.h>"
17202      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find a cstdint header." >&5
17203$as_echo "$as_me: WARNING: Could not find a cstdint header." >&2;}
17204      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_cstdint" >&5
17205$as_echo "$ac_cv_cxx_cstdint" >&6; }
17206
17207fi
17208
17209
17210cat >>confdefs.h <<_ACEOF
17211#define CSTDINT_H $ac_cv_cxx_cstdint
17212_ACEOF
17213
17214
17215
17216
17217
17218
17219
17220
17221    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of cinttypes" >&5
17222$as_echo_n "checking for location of cinttypes... " >&6; }
17223if ${ac_cv_cxx_cinttypes+:} false; then :
17224  $as_echo_n "(cached) " >&6
17225else
17226
17227
17228  CPPFLAGS_save="${CPPFLAGS}"
17229  CFLAGS_save="${CFLAGS}"
17230  CXXFLAGS_save="${CXXFLAGS}"
17231  OBJCFLAGS_save="${OBJCFLAGS}"
17232  LDFLAGS_save="${LDFLAGS}"
17233  LIBS_save="${LIBS}"
17234
17235      CXXFLAGS="${CXX_STANDARD} ${CXXFLAGS}"
17236      ac_ext=cpp
17237ac_cpp='$CXXCPP $CPPFLAGS'
17238ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17239ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17240ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17241
17242
17243      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17244/* end confdefs.h.  */
17245
17246        #include <cinttypes>
17247int
17248main ()
17249{
17250
17251          uint32_t foo= UINT32_C(1);
17252
17253  ;
17254  return 0;
17255}
17256_ACEOF
17257if ac_fn_cxx_try_compile "$LINENO"; then :
17258  ac_cxx_cinttypes_cinttypes="<cinttypes>"
17259fi
17260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17261
17262# Look for tr1/cinttypes
17263      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17264/* end confdefs.h.  */
17265
17266        #include <tr1/cinttypes>
17267int
17268main ()
17269{
17270
17271          uint32_t foo= UINT32_C(1);
17272
17273  ;
17274  return 0;
17275}
17276_ACEOF
17277if ac_fn_cxx_try_compile "$LINENO"; then :
17278  ac_cxx_cinttypes_tr1_cinttypes="<tr1/cinttypes>"
17279fi
17280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17281
17282# Look for boost/cinttypes.hpp
17283      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17284/* end confdefs.h.  */
17285
17286        #include <boost/cinttypes.hpp>
17287int
17288main ()
17289{
17290
17291          uint32_t foo= UINT32_C(1);
17292
17293  ;
17294  return 0;
17295}
17296_ACEOF
17297if ac_fn_cxx_try_compile "$LINENO"; then :
17298  ac_cxx_cinttypes_boost_cinttypes_hpp="<boost/cinttypes.hpp>"
17299fi
17300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17301
17302      ac_ext=c
17303ac_cpp='$CPP $CPPFLAGS'
17304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17306ac_compiler_gnu=$ac_cv_c_compiler_gnu
17307
17308
17309  CPPFLAGS="${CPPFLAGS_save}"
17310  CFLAGS="${CFLAGS_save}"
17311  CXXFLAGS="${CXXFLAGS_save}"
17312  OBJCFLAGS="${OBJCFLAGS_save}"
17313  LDFLAGS="${LDFLAGS_save}"
17314  LIBS="${LIBS_save}"
17315
17316
17317      if test -n "$ac_cxx_cinttypes_cinttypes"; then :
17318  ac_cv_cxx_cinttypes=$ac_cxx_cinttypes_cinttypes
17319elif test -n "$ac_cxx_cinttypes_tr1_cinttypes"; then :
17320  ac_cv_cxx_cinttypes=$ac_cxx_cinttypes_tr1_cinttypes
17321elif test -n "$ac_cxx_cinttypes_boost_cinttypes_hpp"; then :
17322  ac_cv_cxx_cinttypes=$ac_cxx_cinttypes_boost_cinttypes_hpp
17323fi
17324
17325fi
17326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_cinttypes" >&5
17327$as_echo "$ac_cv_cxx_cinttypes" >&6; }
17328
17329  if  test -n "$ac_cv_cxx_cinttypes"; then :
17330
17331      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_cinttypes" >&5
17332$as_echo "$ac_cv_cxx_cinttypes" >&6; }
17333
17334else
17335
17336      ac_cv_cxx_cinttypes="<inttypes.h>"
17337      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find a cinttypes header." >&5
17338$as_echo "$as_me: WARNING: Could not find a cinttypes header." >&2;}
17339      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_cinttypes" >&5
17340$as_echo "$ac_cv_cxx_cinttypes" >&6; }
17341
17342fi
17343
17344
17345$as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
17346
17347
17348cat >>confdefs.h <<_ACEOF
17349#define CINTTYPES_H $ac_cv_cxx_cinttypes
17350_ACEOF
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362LIBTEST_VERSION=1.0
17363
17364ac_config_files="$ac_config_files libtest/version.h"
17365
17366
17367# ===========================================================================
17368#       http://www.gnu.org/software/autoconf-archive/ax_lib_mysql.html
17369# ===========================================================================
17370#
17371# SYNOPSIS
17372#
17373#   AX_LIB_MYSQL([MINIMUM-VERSION])
17374#
17375# DESCRIPTION
17376#
17377#   This macro provides tests of availability of MySQL client library of
17378#   particular version or newer.
17379#
17380#   AX_LIB_MYSQL macro takes only one argument which is optional. If there
17381#   is no required version passed, then macro does not run version test.
17382#
17383#   The --with-mysql option takes one of three possible values:
17384#
17385#   no - do not check for MySQL client library
17386#
17387#   yes - do check for MySQL library in standard locations (mysql_config
17388#   should be in the PATH)
17389#
17390#   path - complete path to mysql_config utility, use this option if
17391#   mysql_config can't be found in the PATH
17392#
17393#   This macro calls:
17394#
17395#     AC_SUBST(MYSQL_INCLUDE)
17396#     AC_SUBST(MYSQL_CFLAGS)
17397#     AC_SUBST(MYSQL_LDFLAGS)
17398#     AC_SUBST(MYSQL_VERSION)
17399#
17400#   And sets:
17401#
17402#     HAVE_MYSQL
17403#
17404# LICENSE
17405#
17406#   Copyright (c) 2008 Mateusz Loskot <mateusz@loskot.net>
17407#
17408#   Copying and distribution of this file, with or without modification, are
17409#   permitted in any medium without royalty provided the copyright notice
17410#   and this notice are preserved. This file is offered as-is, without any
17411#   warranty.
17412
17413#serial 13
17414
17415
17416
17417# ===========================================================================
17418#      http://www.gnu.org/software/autoconf-archive/ax_prog_mysqld.html
17419# ===========================================================================
17420#
17421# SYNOPSIS
17422#
17423#   AX_PROG_MYSQLD
17424#
17425# DESCRIPTION
17426#
17427#   Check for the program 'mysqld' let script continue if exists & works
17428#   pops up error message if not.
17429#
17430#   Besides checking existence, this macro also set these environment
17431#   variables upon completion:
17432#
17433#     MYSQLD = which mysqld
17434#
17435# LICENSE
17436#
17437#   Copyright (c) 2008 Gleen Salmon <gleensalmon@yahoo.com>
17438#
17439#   This program is free software; you can redistribute it and/or modify it
17440#   under the terms of the GNU General Public License as published by the
17441#   Free Software Foundation; either version 2 of the License, or (at your
17442#   option) any later version.
17443#
17444#   This program is distributed in the hope that it will be useful, but
17445#   WITHOUT ANY WARRANTY; without even the implied warranty of
17446#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
17447#   Public License for more details.
17448#
17449#   You should have received a copy of the GNU General Public License along
17450#   with this program. If not, see <http://www.gnu.org/licenses/>.
17451#
17452#   As a special exception, the respective Autoconf Macro's copyright owner
17453#   gives unlimited permission to copy, distribute and modify the configure
17454#   scripts that are the output of Autoconf when processing the Macro. You
17455#   need not follow the terms of the GNU General Public License when using
17456#   or distributing such scripts, even though portions of the text of the
17457#   Macro appear in them. The GNU General Public License (GPL) does govern
17458#   all other use of the material that constitutes the Autoconf Macro.
17459#
17460#   This special exception to the GPL applies to versions of the Autoconf
17461#   Macro released by the Autoconf Archive. When you make and distribute a
17462#   modified version of the Autoconf Macro, you may extend this special
17463#   exception to the GPL to apply to your modified version as well.
17464
17465#serial 6
17466
17467# This is what autoupdate's m4 run will expand.  It fires
17468# the warning (with _au_warn_XXX), outputs it into the
17469# updated configure.ac (with AC_DIAGNOSE), and then outputs
17470# the replacement expansion.
17471
17472
17473# This is an auxiliary macro that is also run when
17474# autoupdate runs m4.  It simply calls m4_warning, but
17475# we need a wrapper so that each warning is emitted only
17476# once.  We break the quoting in m4_warning's argument in
17477# order to expand this macro's arguments, not AU_DEFUN's.
17478
17479
17480# Finally, this is the expansion that is picked up by
17481# autoconf.  It tells the user to run autoupdate, and
17482# then outputs the replacement expansion.  We do not care
17483# about autoupdate's warning because that contains
17484# information on what to do *after* running autoupdate.
17485
17486
17487
17488
17489#serial 1
17490
17491
17492
17493
17494
17495
17496# Extract the first word of "mysqld$EXEEXT", so it can be a program name with args.
17497set dummy mysqld$EXEEXT; ac_word=$2
17498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17499$as_echo_n "checking for $ac_word... " >&6; }
17500if ${ac_cv_path_MYSQLD+:} false; then :
17501  $as_echo_n "(cached) " >&6
17502else
17503  case $MYSQLD in
17504  [\\/]* | ?:[\\/]*)
17505  ac_cv_path_MYSQLD="$MYSQLD" # Let the user override the test with a path.
17506  ;;
17507  *)
17508  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17509for as_dir in $PATH
17510do
17511  IFS=$as_save_IFS
17512  test -z "$as_dir" && as_dir=.
17513    for ac_exec_ext in '' $ac_executable_extensions; do
17514  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17515    ac_cv_path_MYSQLD="$as_dir/$ac_word$ac_exec_ext"
17516    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17517    break 2
17518  fi
17519done
17520  done
17521IFS=$as_save_IFS
17522
17523  test -z "$ac_cv_path_MYSQLD" && ac_cv_path_MYSQLD="nocommand"
17524  ;;
17525esac
17526fi
17527MYSQLD=$ac_cv_path_MYSQLD
17528if test -n "$MYSQLD"; then
17529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQLD" >&5
17530$as_echo "$MYSQLD" >&6; }
17531else
17532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17533$as_echo "no" >&6; }
17534fi
17535
17536
17537if test "$MYSQLD" = nocommand; then
17538	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mysqld not found in $PATH" >&5
17539$as_echo "$as_me: WARNING: mysqld not found in $PATH" >&2;}
17540fi;
17541
17542
17543
17544
17545
17546# Check whether --with-mysql was given.
17547if test "${with_mysql+set}" = set; then :
17548  withval=$with_mysql;
17549        if test "$withval" = "no"; then
17550            want_mysql="no"
17551        elif test "$withval" = "yes"; then
17552            want_mysql="yes"
17553        else
17554            want_mysql="yes"
17555            MYSQL_CONFIG="$withval"
17556        fi
17557
17558else
17559  want_mysql="yes"
17560
17561fi
17562
17563
17564
17565    MYSQL_INCLUDE=""
17566    MYSQL_CFLAGS=""
17567    MYSQL_LDFLAGS=""
17568    MYSQL_VERSION=""
17569
17570
17571    if test "$want_mysql" = "yes"; then
17572
17573        if test -z "$MYSQL_CONFIG" ; then
17574            for ac_prog in mysql_config mysql_config5
17575do
17576  # Extract the first word of "$ac_prog", so it can be a program name with args.
17577set dummy $ac_prog; ac_word=$2
17578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17579$as_echo_n "checking for $ac_word... " >&6; }
17580if ${ac_cv_path_MYSQL_CONFIG+:} false; then :
17581  $as_echo_n "(cached) " >&6
17582else
17583  case $MYSQL_CONFIG in
17584  [\\/]* | ?:[\\/]*)
17585  ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
17586  ;;
17587  *)
17588  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17589for as_dir in $PATH
17590do
17591  IFS=$as_save_IFS
17592  test -z "$as_dir" && as_dir=.
17593    for ac_exec_ext in '' $ac_executable_extensions; do
17594  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17595    ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17597    break 2
17598  fi
17599done
17600  done
17601IFS=$as_save_IFS
17602
17603  ;;
17604esac
17605fi
17606MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
17607if test -n "$MYSQL_CONFIG"; then
17608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
17609$as_echo "$MYSQL_CONFIG" >&6; }
17610else
17611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17612$as_echo "no" >&6; }
17613fi
17614
17615
17616  test -n "$MYSQL_CONFIG" && break
17617done
17618test -n "$MYSQL_CONFIG" || MYSQL_CONFIG="no"
17619
17620        fi
17621
17622        if test "$MYSQL_CONFIG" != "no"; then
17623            MYSQL_INCLUDE="`$MYSQL_CONFIG --include`"
17624            MYSQL_CFLAGS="`$MYSQL_CONFIG --cflags`"
17625            MYSQL_LDFLAGS="`$MYSQL_CONFIG --libs`"
17626
17627            MYSQL_VERSION=`$MYSQL_CONFIG --version`
17628
17629            found_mysql="yes"
17630        else
17631            found_mysql="no"
17632        fi
17633    fi
17634
17635
17636
17637    mysql_version_req=5.0
17638
17639    if test "$found_mysql" = "yes" -a -n "$mysql_version_req"; then
17640
17641        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MySQL version is >= $mysql_version_req" >&5
17642$as_echo_n "checking if MySQL version is >= $mysql_version_req... " >&6; }
17643
17644                        mysql_version_req_major=`expr $mysql_version_req : '\([0-9]*\)'`
17645        mysql_version_req_minor=`expr $mysql_version_req : '[0-9]*\.\([0-9]*\)'`
17646        mysql_version_req_micro=`expr $mysql_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
17647        if test "x$mysql_version_req_micro" = "x"; then
17648            mysql_version_req_micro="0"
17649        fi
17650
17651        mysql_version_req_number=`expr $mysql_version_req_major \* 1000000 \
17652                                   \+ $mysql_version_req_minor \* 1000 \
17653                                   \+ $mysql_version_req_micro`
17654
17655                        mysql_version_major=`expr $MYSQL_VERSION : '\([0-9]*\)'`
17656        mysql_version_minor=`expr $MYSQL_VERSION : '[0-9]*\.\([0-9]*\)'`
17657        mysql_version_micro=`expr $MYSQL_VERSION : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
17658        if test "x$mysql_version_micro" = "x"; then
17659            mysql_version_micro="0"
17660        fi
17661
17662        mysql_version_number=`expr $mysql_version_major \* 1000000 \
17663                                   \+ $mysql_version_minor \* 1000 \
17664                                   \+ $mysql_version_micro`
17665
17666        mysql_version_check=`expr $mysql_version_number \>\= $mysql_version_req_number`
17667        if test "$mysql_version_check" = "1"; then
17668            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17669$as_echo "yes" >&6; }
17670        else
17671            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17672$as_echo "no" >&6; }
17673        fi
17674    fi
17675
17676    if test "$found_mysql" = "yes" ; then
17677
17678$as_echo "#define HAVE_MYSQL 1" >>confdefs.h
17679
17680    fi
17681
17682
17683
17684
17685
17686
17687       if test "x${found_mysql}" = "xyes"; then
17688  HAVE_LIBMYSQL_TRUE=
17689  HAVE_LIBMYSQL_FALSE='#'
17690else
17691  HAVE_LIBMYSQL_TRUE='#'
17692  HAVE_LIBMYSQL_FALSE=
17693fi
17694
17695      if test "x${found_mysql}" = "xyes"; then :
17696
17697
17698$as_echo "#define HAVE_LIBMYSQL_BUILD 1" >>confdefs.h
17699
17700
17701else
17702
17703
17704$as_echo "#define HAVE_LIBMYSQL_BUILD 0" >>confdefs.h
17705
17706
17707fi
17708
17709      if test -f "$ac_cv_path_MYSQLD"; then :
17710
17711
17712$as_echo "#define HAVE_MYSQLD_BUILD 1" >>confdefs.h
17713
17714
17715cat >>confdefs.h <<_ACEOF
17716#define MYSQLD_BINARY "$ac_cv_path_MYSQLD"
17717_ACEOF
17718
17719
17720else
17721
17722
17723$as_echo "#define HAVE_MYSQLD_BUILD 0" >>confdefs.h
17724
17725
17726$as_echo "#define MYSQLD_BINARY 0" >>confdefs.h
17727
17728
17729fi
17730
17731
17732ac_config_files="$ac_config_files libtest/yatlcon.h"
17733
17734
17735
17736 if true; then
17737  BUILDING_GEARMAN_TRUE=
17738  BUILDING_GEARMAN_FALSE='#'
17739else
17740  BUILDING_GEARMAN_TRUE='#'
17741  BUILDING_GEARMAN_FALSE=
17742fi
17743
17744 if true; then
17745  HAVE_LIBGEARMAN_TRUE=
17746  HAVE_LIBGEARMAN_FALSE='#'
17747else
17748  HAVE_LIBGEARMAN_TRUE='#'
17749  HAVE_LIBGEARMAN_FALSE=
17750fi
17751
17752_WITH_LIBGEARMAN_SUPPORT="_WITH_LIBGEARMAN_SUPPORT 0"
17753
17754
17755$as_echo "#define GEARMAND_BINARY \"./gearmand/gearmand\"" >>confdefs.h
17756
17757
17758$as_echo "#define HAVE_LIBGEARMAN 1" >>confdefs.h
17759
17760
17761$as_echo "#define HAVE_GEARMAND_BINARY 1" >>confdefs.h
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771# Check whether --with-curl-prefix was given.
17772if test "${with_curl_prefix+set}" = set; then :
17773  withval=$with_curl_prefix; curl_config_prefix="$withval"
17774else
17775  curl_config_prefix=""
17776fi
17777
17778
17779# Check whether --with-curl-exec-prefix was given.
17780if test "${with_curl_exec_prefix+set}" = set; then :
17781  withval=$with_curl_exec_prefix; curl_config_exec_prefix="$withval"
17782else
17783  curl_config_exec_prefix=""
17784fi
17785
17786
17787
17788
17789
17790
17791  if test x$CURL_CFLAGS != x -o x$CURL_LIBS != x; then :
17792
17793
17794
17795    :
17796
17797
17798
17799    if ${ax_cv_have_LIBCURL+:} false; then :
17800  $as_echo_n "(cached) " >&6
17801else
17802
17803  CPPFLAGS_save="${CPPFLAGS}"
17804  CFLAGS_save="${CFLAGS}"
17805  CXXFLAGS_save="${CXXFLAGS}"
17806  OBJCFLAGS_save="${OBJCFLAGS}"
17807  LDFLAGS_save="${LDFLAGS}"
17808  LIBS_save="${LIBS}"
17809
17810
17811      if test "x$LIBCURL_CPPFLAGS" != "x"; then :
17812  CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
17813fi
17814
17815      if test "x$LIBCURL_LDFLAGS" != "x"; then :
17816  LDFLAGS="$LDFLAGS $LIBCURL_LDFLAGS"
17817fi
17818
17819      ac_fn_c_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
17820if test "x$ac_cv_header_curl_curl_h" = xyes; then :
17821
17822        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcurl" >&5
17823$as_echo_n "checking for main in -lcurl... " >&6; }
17824if ${ac_cv_lib_curl_main+:} false; then :
17825  $as_echo_n "(cached) " >&6
17826else
17827  ac_check_lib_save_LIBS=$LIBS
17828LIBS="-lcurl  $LIBS"
17829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17830/* end confdefs.h.  */
17831
17832
17833int
17834main ()
17835{
17836return main ();
17837  ;
17838  return 0;
17839}
17840_ACEOF
17841if ac_fn_c_try_link "$LINENO"; then :
17842  ac_cv_lib_curl_main=yes
17843else
17844  ac_cv_lib_curl_main=no
17845fi
17846rm -f core conftest.err conftest.$ac_objext \
17847    conftest$ac_exeext conftest.$ac_ext
17848LIBS=$ac_check_lib_save_LIBS
17849fi
17850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_main" >&5
17851$as_echo "$ac_cv_lib_curl_main" >&6; }
17852if test "x$ac_cv_lib_curl_main" = xyes; then :
17853  ax_cv_have_LIBCURL=yes
17854else
17855  ax_cv_have_LIBCURL=no
17856fi
17857
17858
17859else
17860  ax_cv_have_LIBCURL=no
17861fi
17862
17863
17864
17865
17866  CPPFLAGS="${CPPFLAGS_save}"
17867  CFLAGS="${CFLAGS_save}"
17868  CXXFLAGS="${CXXFLAGS_save}"
17869  OBJCFLAGS="${OBJCFLAGS_save}"
17870  LDFLAGS="${LDFLAGS_save}"
17871  LIBS="${LIBS_save}"
17872
17873
17874fi
17875
17876
17877    if test "$ax_cv_have_LIBCURL" = "yes"; then :
17878
17879$as_echo "#define HAVE_LIBCURL 1" >>confdefs.h
17880
17881
17882
17883        LIBCURL_LIB=-lcurl
17884
17885        :
17886else
17887  :
17888fi
17889
17890
17891else
17892
17893    if test x$curl_config_exec_prefix != x; then :
17894
17895      curl_config_args="$curl_config_args --exec-prefix=$curl_config_exec_prefix"
17896      if test x${CURL_CONFIG+set} != xset; then :
17897
17898	CURL_CONFIG=$curl_config_exec_prefix/bin/curl-config
17899
17900fi
17901
17902fi
17903    if test x$curl_config_prefix != x; then :
17904
17905      curl_config_args="$curl_config_args --prefix=$curl_config_prefix"
17906      if test x${CURL_CONFIG+set} != xset; then :
17907
17908	CURL_CONFIG=$curl_config_prefix/bin/curl-config
17909
17910fi
17911
17912fi
17913
17914    for ac_prog in  curl-config
17915do
17916  # Extract the first word of "$ac_prog", so it can be a program name with args.
17917set dummy $ac_prog; ac_word=$2
17918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17919$as_echo_n "checking for $ac_word... " >&6; }
17920if ${ac_cv_path_CURL_CONFIG+:} false; then :
17921  $as_echo_n "(cached) " >&6
17922else
17923  case $CURL_CONFIG in
17924  [\\/]* | ?:[\\/]*)
17925  ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
17926  ;;
17927  *)
17928  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17929for as_dir in $PATH
17930do
17931  IFS=$as_save_IFS
17932  test -z "$as_dir" && as_dir=.
17933    for ac_exec_ext in '' $ac_executable_extensions; do
17934  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17935    ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17936    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17937    break 2
17938  fi
17939done
17940  done
17941IFS=$as_save_IFS
17942
17943  ;;
17944esac
17945fi
17946CURL_CONFIG=$ac_cv_path_CURL_CONFIG
17947if test -n "$CURL_CONFIG"; then
17948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL_CONFIG" >&5
17949$as_echo "$CURL_CONFIG" >&6; }
17950else
17951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17952$as_echo "no" >&6; }
17953fi
17954
17955
17956  test -n "$CURL_CONFIG" && break
17957done
17958test -n "$CURL_CONFIG" || CURL_CONFIG="no"
17959
17960    if test "$CURL_CONFIG" == "no"; then :
17961
17962      :
17963
17964$as_echo "#define HAVE_LIBCURL 0" >>confdefs.h
17965
17966
17967
17968else
17969
17970            if test x"" = x; then :
17971
17972	CURL_CFLAGS="`$CURL_CONFIG $curl_config_args --cflags`"
17973
17974else
17975
17976	CURL_CFLAGS="`$CURL_CONFIG $curl_config_args `"
17977
17978fi
17979
17980            if test x"" = x; then :
17981
17982	CURL_LIBS="`$CURL_CONFIG $curl_config_args --libs`"
17983
17984else
17985
17986	CURL_LIBS="`$CURL_CONFIG $curl_config_args `"
17987
17988fi
17989
17990      if test x"7.21.7" != x; then :
17991
17992		if test x"'s/^libcurl\ \+//'" != x; then :
17993
17994	  	  curl_version="`$CURL_CONFIG $curl_config_args --version | $SED -e 's/^libcurl\ \+//'`"
17995
17996else
17997
17998	  curl_version="`$CURL_CONFIG $curl_config_args --version | $SED -e 's/^\ *\(.*\)\ *$/\1/'`"
17999
18000fi
18001
18002	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl ($curl_version) >= 7.21.7" >&5
18003$as_echo_n "checking for curl ($curl_version) >= 7.21.7... " >&6; }
18004
18005
18006
18007  # Used to indicate true or false condition
18008  ax_compare_version=false
18009
18010  # Convert the two version strings to be compared into a format that
18011  # allows a simple string comparison.  The end result is that a version
18012  # string of the form 1.12.5-r617 will be converted to the form
18013  # 0001001200050617.  In other words, each number is zero padded to four
18014  # digits, and non digits are removed.
18015
18016  ax_compare_version_A=`echo "$curl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
18017                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
18018                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
18019                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
18020                     -e 's/[^0-9]//g'`
18021
18022
18023  ax_compare_version_B=`echo "7.21.7" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
18024                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
18025                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
18026                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
18027                     -e 's/[^0-9]//g'`
18028
18029
18030    ax_compare_version=`echo "x$ax_compare_version_A
18031x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
18032
18033
18034
18035    if test "$ax_compare_version" = "true" ; then
18036
18037	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18038$as_echo "yes" >&6; }
18039
18040
18041
18042	  :
18043
18044
18045
18046    if ${ax_cv_have_LIBCURL+:} false; then :
18047  $as_echo_n "(cached) " >&6
18048else
18049
18050  CPPFLAGS_save="${CPPFLAGS}"
18051  CFLAGS_save="${CFLAGS}"
18052  CXXFLAGS_save="${CXXFLAGS}"
18053  OBJCFLAGS_save="${OBJCFLAGS}"
18054  LDFLAGS_save="${LDFLAGS}"
18055  LIBS_save="${LIBS}"
18056
18057
18058      if test "x$LIBCURL_CPPFLAGS" != "x"; then :
18059  CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
18060fi
18061
18062      if test "x$LIBCURL_LDFLAGS" != "x"; then :
18063  LDFLAGS="$LDFLAGS $LIBCURL_LDFLAGS"
18064fi
18065
18066      ac_fn_c_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
18067if test "x$ac_cv_header_curl_curl_h" = xyes; then :
18068
18069        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcurl" >&5
18070$as_echo_n "checking for main in -lcurl... " >&6; }
18071if ${ac_cv_lib_curl_main+:} false; then :
18072  $as_echo_n "(cached) " >&6
18073else
18074  ac_check_lib_save_LIBS=$LIBS
18075LIBS="-lcurl  $LIBS"
18076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18077/* end confdefs.h.  */
18078
18079
18080int
18081main ()
18082{
18083return main ();
18084  ;
18085  return 0;
18086}
18087_ACEOF
18088if ac_fn_c_try_link "$LINENO"; then :
18089  ac_cv_lib_curl_main=yes
18090else
18091  ac_cv_lib_curl_main=no
18092fi
18093rm -f core conftest.err conftest.$ac_objext \
18094    conftest$ac_exeext conftest.$ac_ext
18095LIBS=$ac_check_lib_save_LIBS
18096fi
18097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_main" >&5
18098$as_echo "$ac_cv_lib_curl_main" >&6; }
18099if test "x$ac_cv_lib_curl_main" = xyes; then :
18100  ax_cv_have_LIBCURL=yes
18101else
18102  ax_cv_have_LIBCURL=no
18103fi
18104
18105
18106else
18107  ax_cv_have_LIBCURL=no
18108fi
18109
18110
18111
18112
18113  CPPFLAGS="${CPPFLAGS_save}"
18114  CFLAGS="${CFLAGS_save}"
18115  CXXFLAGS="${CXXFLAGS_save}"
18116  OBJCFLAGS="${OBJCFLAGS_save}"
18117  LDFLAGS="${LDFLAGS_save}"
18118  LIBS="${LIBS_save}"
18119
18120
18121fi
18122
18123
18124    if test "$ax_cv_have_LIBCURL" = "yes"; then :
18125
18126$as_echo "#define HAVE_LIBCURL 1" >>confdefs.h
18127
18128
18129
18130        LIBCURL_LIB=-lcurl
18131
18132        :
18133else
18134  :
18135fi
18136
18137
18138    else
18139	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18140$as_echo "no" >&6; }
18141	  :
18142
18143$as_echo "#define HAVE_LIBCURL 0" >>confdefs.h
18144
18145
18146
18147  fi
18148
18149
18150else
18151
18152
18153
18154	:
18155
18156
18157
18158    if ${ax_cv_have_LIBCURL+:} false; then :
18159  $as_echo_n "(cached) " >&6
18160else
18161
18162  CPPFLAGS_save="${CPPFLAGS}"
18163  CFLAGS_save="${CFLAGS}"
18164  CXXFLAGS_save="${CXXFLAGS}"
18165  OBJCFLAGS_save="${OBJCFLAGS}"
18166  LDFLAGS_save="${LDFLAGS}"
18167  LIBS_save="${LIBS}"
18168
18169
18170      if test "x$LIBCURL_CPPFLAGS" != "x"; then :
18171  CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
18172fi
18173
18174      if test "x$LIBCURL_LDFLAGS" != "x"; then :
18175  LDFLAGS="$LDFLAGS $LIBCURL_LDFLAGS"
18176fi
18177
18178      ac_fn_c_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
18179if test "x$ac_cv_header_curl_curl_h" = xyes; then :
18180
18181        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcurl" >&5
18182$as_echo_n "checking for main in -lcurl... " >&6; }
18183if ${ac_cv_lib_curl_main+:} false; then :
18184  $as_echo_n "(cached) " >&6
18185else
18186  ac_check_lib_save_LIBS=$LIBS
18187LIBS="-lcurl  $LIBS"
18188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18189/* end confdefs.h.  */
18190
18191
18192int
18193main ()
18194{
18195return main ();
18196  ;
18197  return 0;
18198}
18199_ACEOF
18200if ac_fn_c_try_link "$LINENO"; then :
18201  ac_cv_lib_curl_main=yes
18202else
18203  ac_cv_lib_curl_main=no
18204fi
18205rm -f core conftest.err conftest.$ac_objext \
18206    conftest$ac_exeext conftest.$ac_ext
18207LIBS=$ac_check_lib_save_LIBS
18208fi
18209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_main" >&5
18210$as_echo "$ac_cv_lib_curl_main" >&6; }
18211if test "x$ac_cv_lib_curl_main" = xyes; then :
18212  ax_cv_have_LIBCURL=yes
18213else
18214  ax_cv_have_LIBCURL=no
18215fi
18216
18217
18218else
18219  ax_cv_have_LIBCURL=no
18220fi
18221
18222
18223
18224
18225  CPPFLAGS="${CPPFLAGS_save}"
18226  CFLAGS="${CFLAGS_save}"
18227  CXXFLAGS="${CXXFLAGS_save}"
18228  OBJCFLAGS="${OBJCFLAGS_save}"
18229  LDFLAGS="${LDFLAGS_save}"
18230  LIBS="${LIBS_save}"
18231
18232
18233fi
18234
18235
18236    if test "$ax_cv_have_LIBCURL" = "yes"; then :
18237
18238$as_echo "#define HAVE_LIBCURL 1" >>confdefs.h
18239
18240
18241
18242        LIBCURL_LIB=-lcurl
18243
18244        :
18245else
18246  :
18247fi
18248
18249
18250fi
18251
18252fi
18253
18254fi
18255
18256
18257
18258
18259
18260
18261 if test "x${ax_cv_have_LIBCURL}" = "xyes"; then
18262  HAVE_LIBCURL_TRUE=
18263  HAVE_LIBCURL_FALSE='#'
18264else
18265  HAVE_LIBCURL_TRUE='#'
18266  HAVE_LIBCURL_FALSE=
18267fi
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280    if test -z "$DRIZZLED_BINARY"; then :
18281
18282        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether drizzled executable path has been provided" >&5
18283$as_echo_n "checking whether drizzled executable path has been provided... " >&6; }
18284
18285# Check whether --with-drizzled was given.
18286if test "${with_drizzled+set}" = set; then :
18287  withval=$with_drizzled;
18288            if test "$withval" != yes && test "$withval" != no; then :
18289
18290                DRIZZLED_BINARY="$withval"
18291                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRIZZLED_BINARY" >&5
18292$as_echo "$DRIZZLED_BINARY" >&6; }
18293
18294else
18295
18296                DRIZZLED_BINARY=""
18297                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18298$as_echo "no" >&6; }
18299                if test "$withval" != no; then :
18300
18301                  # Extract the first word of "drizzled", so it can be a program name with args.
18302set dummy drizzled; ac_word=$2
18303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18304$as_echo_n "checking for $ac_word... " >&6; }
18305if ${ac_cv_path_DRIZZLED_BINARY+:} false; then :
18306  $as_echo_n "(cached) " >&6
18307else
18308  case $DRIZZLED_BINARY in
18309  [\\/]* | ?:[\\/]*)
18310  ac_cv_path_DRIZZLED_BINARY="$DRIZZLED_BINARY" # Let the user override the test with a path.
18311  ;;
18312  *)
18313  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18314for as_dir in $PATH
18315do
18316  IFS=$as_save_IFS
18317  test -z "$as_dir" && as_dir=.
18318    for ac_exec_ext in '' $ac_executable_extensions; do
18319  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18320    ac_cv_path_DRIZZLED_BINARY="$as_dir/$ac_word$ac_exec_ext"
18321    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18322    break 2
18323  fi
18324done
18325  done
18326IFS=$as_save_IFS
18327
18328  ;;
18329esac
18330fi
18331DRIZZLED_BINARY=$ac_cv_path_DRIZZLED_BINARY
18332if test -n "$DRIZZLED_BINARY"; then
18333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRIZZLED_BINARY" >&5
18334$as_echo "$DRIZZLED_BINARY" >&6; }
18335else
18336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18337$as_echo "no" >&6; }
18338fi
18339
18340
18341
18342fi
18343
18344fi
18345
18346else
18347
18348            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18349$as_echo "no" >&6; }
18350            # Extract the first word of "drizzled", so it can be a program name with args.
18351set dummy drizzled; ac_word=$2
18352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18353$as_echo_n "checking for $ac_word... " >&6; }
18354if ${ac_cv_path_DRIZZLED_BINARY+:} false; then :
18355  $as_echo_n "(cached) " >&6
18356else
18357  case $DRIZZLED_BINARY in
18358  [\\/]* | ?:[\\/]*)
18359  ac_cv_path_DRIZZLED_BINARY="$DRIZZLED_BINARY" # Let the user override the test with a path.
18360  ;;
18361  *)
18362  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18363for as_dir in $PATH
18364do
18365  IFS=$as_save_IFS
18366  test -z "$as_dir" && as_dir=.
18367    for ac_exec_ext in '' $ac_executable_extensions; do
18368  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18369    ac_cv_path_DRIZZLED_BINARY="$as_dir/$ac_word$ac_exec_ext"
18370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18371    break 2
18372  fi
18373done
18374  done
18375IFS=$as_save_IFS
18376
18377  ;;
18378esac
18379fi
18380DRIZZLED_BINARY=$ac_cv_path_DRIZZLED_BINARY
18381if test -n "$DRIZZLED_BINARY"; then
18382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRIZZLED_BINARY" >&5
18383$as_echo "$DRIZZLED_BINARY" >&6; }
18384else
18385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18386$as_echo "no" >&6; }
18387fi
18388
18389
18390
18391fi
18392
18393
18394fi
18395
18396
18397
18398
18399
18400
18401if test -f "$ac_cv_path_DRIZZLED_BINARY"; then :
18402
18403
18404$as_echo "#define HAVE_DRIZZLED_BINARY 1" >>confdefs.h
18405
18406
18407cat >>confdefs.h <<_ACEOF
18408#define DRIZZLED_BINARY "$ac_cv_path_DRIZZLED_BINARY"
18409_ACEOF
18410
18411
18412else
18413
18414
18415$as_echo "#define HAVE_DRIZZLED_BINARY 0" >>confdefs.h
18416
18417
18418$as_echo "#define DRIZZLED_BINARY 0" >>confdefs.h
18419
18420
18421fi
18422
18423# Check whether --enable-libdrizzle was given.
18424if test "${enable_libdrizzle+set}" = set; then :
18425  enableval=$enable_libdrizzle; ac_enable_libdrizzle="$enableval"
18426else
18427  ac_enable_libdrizzle="yes"
18428fi
18429
18430
18431    if test "x$ac_enable_libdrizzle" = "xyes"; then :
18432
18433
18434
18435    if ${ax_cv_have_LIBDRIZZLE+:} false; then :
18436  $as_echo_n "(cached) " >&6
18437else
18438
18439  CPPFLAGS_save="${CPPFLAGS}"
18440  CFLAGS_save="${CFLAGS}"
18441  CXXFLAGS_save="${CXXFLAGS}"
18442  OBJCFLAGS_save="${OBJCFLAGS}"
18443  LDFLAGS_save="${LDFLAGS}"
18444  LIBS_save="${LIBS}"
18445
18446
18447      if test "x$LIBDRIZZLE_CPPFLAGS" != "x"; then :
18448  CPPFLAGS="$CPPFLAGS $LIBDRIZZLE_CPPFLAGS"
18449fi
18450
18451      if test "x$LIBDRIZZLE_LDFLAGS" != "x"; then :
18452  LDFLAGS="$LDFLAGS $LIBDRIZZLE_LDFLAGS"
18453fi
18454
18455      ac_fn_c_check_header_mongrel "$LINENO" "libdrizzle-5.1/drizzle_client.h" "ac_cv_header_libdrizzle_5_1_drizzle_client_h" "$ac_includes_default"
18456if test "x$ac_cv_header_libdrizzle_5_1_drizzle_client_h" = xyes; then :
18457
18458        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldrizzle" >&5
18459$as_echo_n "checking for main in -ldrizzle... " >&6; }
18460if ${ac_cv_lib_drizzle_main+:} false; then :
18461  $as_echo_n "(cached) " >&6
18462else
18463  ac_check_lib_save_LIBS=$LIBS
18464LIBS="-ldrizzle  $LIBS"
18465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18466/* end confdefs.h.  */
18467
18468
18469int
18470main ()
18471{
18472return main ();
18473  ;
18474  return 0;
18475}
18476_ACEOF
18477if ac_fn_c_try_link "$LINENO"; then :
18478  ac_cv_lib_drizzle_main=yes
18479else
18480  ac_cv_lib_drizzle_main=no
18481fi
18482rm -f core conftest.err conftest.$ac_objext \
18483    conftest$ac_exeext conftest.$ac_ext
18484LIBS=$ac_check_lib_save_LIBS
18485fi
18486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_drizzle_main" >&5
18487$as_echo "$ac_cv_lib_drizzle_main" >&6; }
18488if test "x$ac_cv_lib_drizzle_main" = xyes; then :
18489  ax_cv_have_LIBDRIZZLE=yes
18490else
18491  ax_cv_have_LIBDRIZZLE=no
18492fi
18493
18494
18495else
18496  ax_cv_have_LIBDRIZZLE=no
18497fi
18498
18499
18500
18501
18502  CPPFLAGS="${CPPFLAGS_save}"
18503  CFLAGS="${CFLAGS_save}"
18504  CXXFLAGS="${CXXFLAGS_save}"
18505  OBJCFLAGS="${OBJCFLAGS_save}"
18506  LDFLAGS="${LDFLAGS_save}"
18507  LIBS="${LIBS_save}"
18508
18509
18510fi
18511
18512
18513    if test "$ax_cv_have_LIBDRIZZLE" = "yes"; then :
18514
18515$as_echo "#define HAVE_LIBDRIZZLE 1" >>confdefs.h
18516
18517
18518
18519        LIBDRIZZLE_LIB=-ldrizzle
18520
18521        :
18522else
18523
18524$as_echo "#define HAVE_LIBDRIZZLE 0" >>confdefs.h
18525
18526fi
18527
18528else
18529
18530$as_echo "#define HAVE_LIBDRIZZLE 0" >>confdefs.h
18531
18532fi
18533
18534
18535
18536
18537
18538# Check whether --with-sqlite3 was given.
18539if test "${with_sqlite3+set}" = set; then :
18540  withval=$with_sqlite3;
18541        if test "$withval" = "no"; then
18542            WANT_SQLITE3="no"
18543        elif test "$withval" = "yes"; then
18544            WANT_SQLITE3="yes"
18545            ac_sqlite3_path=""
18546        else
18547            WANT_SQLITE3="yes"
18548            ac_sqlite3_path="$withval"
18549        fi
18550
18551else
18552  WANT_SQLITE3="yes"
18553
18554fi
18555
18556
18557    SQLITE3_CFLAGS=""
18558    SQLITE3_LDFLAGS=""
18559    SQLITE3_VERSION=""
18560
18561    if test "x$WANT_SQLITE3" = "xyes"; then
18562
18563        ac_sqlite3_header="sqlite3.h"
18564
18565        sqlite3_version_req=3.0.0
18566        sqlite3_version_req_shorten=`expr $sqlite3_version_req : '\([0-9]*\.[0-9]*\)'`
18567        sqlite3_version_req_major=`expr $sqlite3_version_req : '\([0-9]*\)'`
18568        sqlite3_version_req_minor=`expr $sqlite3_version_req : '[0-9]*\.\([0-9]*\)'`
18569        sqlite3_version_req_micro=`expr $sqlite3_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
18570        if test "x$sqlite3_version_req_micro" = "x" ; then
18571            sqlite3_version_req_micro="0"
18572        fi
18573
18574        sqlite3_version_req_number=`expr $sqlite3_version_req_major \* 1000000 \
18575                                   \+ $sqlite3_version_req_minor \* 1000 \
18576                                   \+ $sqlite3_version_req_micro`
18577
18578        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 library >= $sqlite3_version_req" >&5
18579$as_echo_n "checking for SQLite3 library >= $sqlite3_version_req... " >&6; }
18580
18581        if test "$ac_sqlite3_path" != ""; then
18582            ac_sqlite3_ldflags="-L$ac_sqlite3_path/lib"
18583            ac_sqlite3_cppflags="-I$ac_sqlite3_path/include"
18584        else
18585            for ac_sqlite3_path_tmp in /usr /usr/local /opt ; do
18586                if test -f "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header" \
18587                    && test -r "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header"; then
18588                    ac_sqlite3_path=$ac_sqlite3_path_tmp
18589                    ac_sqlite3_cppflags="-I$ac_sqlite3_path_tmp/include"
18590                    ac_sqlite3_ldflags="-L$ac_sqlite3_path_tmp/lib"
18591                    break;
18592                fi
18593            done
18594        fi
18595
18596        ac_sqlite3_ldflags="$ac_sqlite3_ldflags -lsqlite3"
18597
18598        saved_CPPFLAGS="$CPPFLAGS"
18599        CPPFLAGS="$CPPFLAGS $ac_sqlite3_cppflags"
18600
18601        ac_ext=c
18602ac_cpp='$CPP $CPPFLAGS'
18603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18605ac_compiler_gnu=$ac_cv_c_compiler_gnu
18606
18607        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18608/* end confdefs.h.  */
18609
18610            #include <sqlite3.h>
18611int
18612main ()
18613{
18614
18615#if (SQLITE_VERSION_NUMBER >= $sqlite3_version_req_number)
18616// Everything is okay
18617#else
18618#  error SQLite version is too old
18619#endif
18620
18621
18622  ;
18623  return 0;
18624}
18625
18626_ACEOF
18627if ac_fn_c_try_compile "$LINENO"; then :
18628
18629            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18630$as_echo "yes" >&6; }
18631            success="yes"
18632
18633else
18634
18635            { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18636$as_echo "not found" >&6; }
18637            success="no"
18638            WANT_SQLITE3="no"
18639
18640
18641fi
18642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18643        ac_ext=c
18644ac_cpp='$CPP $CPPFLAGS'
18645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18647ac_compiler_gnu=$ac_cv_c_compiler_gnu
18648
18649
18650        CPPFLAGS="$saved_CPPFLAGS"
18651
18652        if test "$success" = "yes"; then
18653
18654            SQLITE3_CFLAGS="$ac_sqlite3_cppflags"
18655            SQLITE3_LDFLAGS="$ac_sqlite3_ldflags"
18656
18657            ac_sqlite3_header_path="$ac_sqlite3_path/include/$ac_sqlite3_header"
18658
18659                        if test "x$ac_sqlite3_header_path" != "x"; then
18660                ac_sqlite3_version=`cat $ac_sqlite3_header_path \
18661                    | grep '#define.*SQLITE_VERSION.*\"' | sed -e 's/.* "//' \
18662                        | sed -e 's/"//'`
18663                if test $ac_sqlite3_version != ""; then
18664                    SQLITE3_VERSION=$ac_sqlite3_version
18665                    ac_cv_libsqlite3=yes
18666                else
18667                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find SQLITE_VERSION macro in sqlite3.h header to retrieve SQLite version!" >&5
18668$as_echo "$as_me: WARNING: Cannot find SQLITE_VERSION macro in sqlite3.h header to retrieve SQLite version!" >&2;}
18669                fi
18670            fi
18671
18672
18673
18674
18675
18676$as_echo "#define HAVE_SQLITE3 /**/" >>confdefs.h
18677
18678        fi
18679    fi
18680
18681if test "x${WANT_SQLITE3}" = "xyes"; then :
18682
18683$as_echo "#define HAVE_LIBSQLITE3 1" >>confdefs.h
18684
18685else
18686
18687$as_echo "#define HAVE_LIBSQLITE3 0" >>confdefs.h
18688
18689fi
18690 if test "x${WANT_SQLITE3}" = "xyes"; then
18691  HAVE_LIBSQLITE3_TRUE=
18692  HAVE_LIBSQLITE3_FALSE='#'
18693else
18694  HAVE_LIBSQLITE3_TRUE='#'
18695  HAVE_LIBSQLITE3_FALSE=
18696fi
18697
18698
18699
18700
18701  # Check whether --enable-dtrace was given.
18702if test "${enable_dtrace+set}" = set; then :
18703  enableval=$enable_dtrace; ac_cv_enable_dtrace="$enableval"
18704else
18705  ac_cv_enable_dtrace="no"
18706fi
18707
18708
18709  if test "$ac_cv_enable_dtrace" = "yes"; then :
18710
18711    for ac_prog in dtrace
18712do
18713  # Extract the first word of "$ac_prog", so it can be a program name with args.
18714set dummy $ac_prog; ac_word=$2
18715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18716$as_echo_n "checking for $ac_word... " >&6; }
18717if ${ac_cv_prog_DTRACE+:} false; then :
18718  $as_echo_n "(cached) " >&6
18719else
18720  if test -n "$DTRACE"; then
18721  ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
18722else
18723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18724for as_dir in $PATH
18725do
18726  IFS=$as_save_IFS
18727  test -z "$as_dir" && as_dir=.
18728    for ac_exec_ext in '' $ac_executable_extensions; do
18729  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18730    ac_cv_prog_DTRACE="$ac_prog"
18731    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18732    break 2
18733  fi
18734done
18735  done
18736IFS=$as_save_IFS
18737
18738fi
18739fi
18740DTRACE=$ac_cv_prog_DTRACE
18741if test -n "$DTRACE"; then
18742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
18743$as_echo "$DTRACE" >&6; }
18744else
18745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18746$as_echo "no" >&6; }
18747fi
18748
18749
18750  test -n "$DTRACE" && break
18751done
18752
18753    for ac_header in sys/sdt.h
18754do :
18755  ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
18756if test "x$ac_cv_header_sys_sdt_h" = xyes; then :
18757  cat >>confdefs.h <<_ACEOF
18758#define HAVE_SYS_SDT_H 1
18759_ACEOF
18760
18761fi
18762
18763done
18764
18765
18766    if test "x$ac_cv_prog_DTRACE" = "xdtrace" -a "x${ac_cv_header_sys_sdt_h}" = "xyes"; then :
18767
18768
18769      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dtrace works" >&5
18770$as_echo_n "checking if dtrace works... " >&6; }
18771if ${ac_cv_dtrace_works+:} false; then :
18772  $as_echo_n "(cached) " >&6
18773else
18774
18775        cat >conftest.d <<_ACEOF
18776provider Example {
18777  probe increment(int);
18778};
18779_ACEOF
18780        $DTRACE -h -o conftest.h -s conftest.d 2>/dev/zero
18781        if test $? -eq 0; then :
18782  ac_cv_dtrace_works=yes
18783else
18784  ac_cv_dtrace_works=no
18785fi
18786        rm -f conftest.h conftest.d
18787
18788fi
18789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_works" >&5
18790$as_echo "$ac_cv_dtrace_works" >&6; }
18791      if test "x$ac_cv_dtrace_works" = "xyes"; then :
18792
18793
18794$as_echo "#define HAVE_DTRACE 1" >>confdefs.h
18795
18796
18797fi
18798      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dtrace should instrument object files" >&5
18799$as_echo_n "checking if dtrace should instrument object files... " >&6; }
18800if ${ac_cv_dtrace_needs_objects+:} false; then :
18801  $as_echo_n "(cached) " >&6
18802else
18803
18804                    cat >conftest.d <<_ACEOF
18805provider Example {
18806  probe increment(int);
18807};
18808_ACEOF
18809          $DTRACE -G -o conftest.d.o -s conftest.d 2>/dev/zero
18810          if test $? -eq 0; then :
18811  ac_cv_dtrace_needs_objects=yes
18812else
18813  ac_cv_dtrace_needs_objects=no
18814fi
18815          rm -f conftest.d.o conftest.d
18816
18817fi
18818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_needs_objects" >&5
18819$as_echo "$ac_cv_dtrace_needs_objects" >&6; }
18820             ac_cv_have_dtrace=yes
18821
18822fi
18823fi
18824
18825 if test "x$ac_cv_dtrace_works" = "xyes"; then
18826  HAVE_DTRACE_TRUE=
18827  HAVE_DTRACE_FALSE='#'
18828else
18829  HAVE_DTRACE_TRUE='#'
18830  HAVE_DTRACE_FALSE=
18831fi
18832
18833 if test "x$ac_cv_dtrace_needs_objects" = "xyes"; then
18834  DTRACE_NEEDS_OBJECTS_TRUE=
18835  DTRACE_NEEDS_OBJECTS_FALSE='#'
18836else
18837  DTRACE_NEEDS_OBJECTS_TRUE='#'
18838  DTRACE_NEEDS_OBJECTS_FALSE=
18839fi
18840
18841
18842
18843
18844
18845# Check whether --with-postgresql was given.
18846if test "${with_postgresql+set}" = set; then :
18847  withval=$with_postgresql;
18848        if test "$withval" = "no"; then
18849            want_postgresql="no"
18850        elif test "$withval" = "yes"; then
18851            want_postgresql="yes"
18852        else
18853            want_postgresql="yes"
18854            PG_CONFIG="$withval"
18855        fi
18856
18857else
18858  want_postgresql="yes"
18859
18860fi
18861
18862
18863    POSTGRESQL_CFLAGS=""
18864    POSTGRESQL_LDFLAGS=""
18865    POSTGRESQL_VERSION=""
18866
18867
18868    if test "$want_postgresql" = "yes"; then
18869
18870        if test -z "$PG_CONFIG" -o test; then
18871            # Extract the first word of "pg_config", so it can be a program name with args.
18872set dummy pg_config; ac_word=$2
18873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18874$as_echo_n "checking for $ac_word... " >&6; }
18875if ${ac_cv_path_PG_CONFIG+:} false; then :
18876  $as_echo_n "(cached) " >&6
18877else
18878  case $PG_CONFIG in
18879  [\\/]* | ?:[\\/]*)
18880  ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
18881  ;;
18882  *)
18883  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18884for as_dir in $PATH
18885do
18886  IFS=$as_save_IFS
18887  test -z "$as_dir" && as_dir=.
18888    for ac_exec_ext in '' $ac_executable_extensions; do
18889  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18890    ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18891    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18892    break 2
18893  fi
18894done
18895  done
18896IFS=$as_save_IFS
18897
18898  ;;
18899esac
18900fi
18901PG_CONFIG=$ac_cv_path_PG_CONFIG
18902if test -n "$PG_CONFIG"; then
18903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
18904$as_echo "$PG_CONFIG" >&6; }
18905else
18906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18907$as_echo "no" >&6; }
18908fi
18909
18910
18911        fi
18912
18913        if test ! -x "$PG_CONFIG"; then
18914            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $PG_CONFIG does not exist or it is not an exectuable file" >&5
18915$as_echo "$as_me: WARNING: $PG_CONFIG does not exist or it is not an exectuable file" >&2;}
18916            PG_CONFIG="no"
18917            found_postgresql="no"
18918        fi
18919
18920        if test "$PG_CONFIG" != "no"; then
18921            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL libraries" >&5
18922$as_echo_n "checking for PostgreSQL libraries... " >&6; }
18923
18924            POSTGRESQL_CFLAGS="-I`$PG_CONFIG --includedir`"
18925            POSTGRESQL_LDFLAGS="-L`$PG_CONFIG --libdir` -lpq"
18926
18927            POSTGRESQL_VERSION=`$PG_CONFIG --version | sed -e 's#PostgreSQL ##'`
18928
18929
18930$as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
18931
18932
18933            found_postgresql="yes"
18934            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18935$as_echo "yes" >&6; }
18936        else
18937            found_postgresql="no"
18938            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18939$as_echo "no" >&6; }
18940        fi
18941    fi
18942
18943
18944
18945    postgresql_version_req=
18946
18947    if test "$found_postgresql" = "yes" -a -n "$postgresql_version_req"; then
18948
18949        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PostgreSQL version is >= $postgresql_version_req" >&5
18950$as_echo_n "checking if PostgreSQL version is >= $postgresql_version_req... " >&6; }
18951
18952                        postgresql_version_req_major=`expr $postgresql_version_req : '\([0-9]*\)'`
18953        postgresql_version_req_minor=`expr $postgresql_version_req : '[0-9]*\.\([0-9]*\)'`
18954        postgresql_version_req_micro=`expr $postgresql_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
18955        if test "x$postgresql_version_req_micro" = "x"; then
18956            postgresql_version_req_micro="0"
18957        fi
18958
18959        postgresql_version_req_number=`expr $postgresql_version_req_major \* 1000000 \
18960                                   \+ $postgresql_version_req_minor \* 1000 \
18961                                   \+ $postgresql_version_req_micro`
18962
18963                        postgresql_version_major=`expr $POSTGRESQL_VERSION : '\([0-9]*\)'`
18964        postgresql_version_minor=`expr $POSTGRESQL_VERSION : '[0-9]*\.\([0-9]*\)'`
18965        postgresql_version_micro=`expr $POSTGRESQL_VERSION : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
18966        if test "x$postgresql_version_micro" = "x"; then
18967            postgresql_version_micro="0"
18968        fi
18969
18970        postgresql_version_number=`expr $postgresql_version_major \* 1000000 \
18971                                   \+ $postgresql_version_minor \* 1000 \
18972                                   \+ $postgresql_version_micro`
18973
18974        postgresql_version_check=`expr $postgresql_version_number \>\= $postgresql_version_req_number`
18975        if test "$postgresql_version_check" = "1"; then
18976            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18977$as_echo "yes" >&6; }
18978        else
18979            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18980$as_echo "no" >&6; }
18981        fi
18982    fi
18983
18984
18985
18986
18987
18988
18989  # Check whether --enable-libpq was given.
18990if test "${enable_libpq+set}" = set; then :
18991  enableval=$enable_libpq; ac_cv_libpq="$enableval"
18992else
18993  ac_cv_libpq="yes"
18994fi
18995
18996
18997
18998
18999  if test "x$ac_cv_libpq" = "xyes" -a "x$found_postgresql" = "xyes"; then :
19000
19001
19002$as_echo "#define HAVE_LIBPQ  1 " >>confdefs.h
19003
19004
19005else
19006
19007
19008$as_echo "#define HAVE_LIBPQ  0 " >>confdefs.h
19009
19010      # if --enable-libpq, but no Postgres, force --disable-libpq
19011      ac_cv_libpq="no"
19012
19013fi
19014
19015   if test "x$ac_cv_libpq" = "xyes"; then
19016  HAVE_LIBPQ_TRUE=
19017  HAVE_LIBPQ_FALSE='#'
19018else
19019  HAVE_LIBPQ_TRUE='#'
19020  HAVE_LIBPQ_FALSE=
19021fi
19022
19023
19024# Check whether --enable-libtokyocabinet was given.
19025if test "${enable_libtokyocabinet+set}" = set; then :
19026  enableval=$enable_libtokyocabinet; ac_enable_libtokyocabinet="$enableval"
19027else
19028  ac_enable_libtokyocabinet="yes"
19029fi
19030
19031
19032
19033
19034    if test "x$ac_enable_libtokyocabinet" = "xyes"; then :
19035  tokyocabinet_header="tcadb.h"
19036else
19037  tokyocabinet_header="does_not_exist"
19038fi
19039
19040
19041
19042
19043    if ${ax_cv_have_TOKYOCABINET+:} false; then :
19044  $as_echo_n "(cached) " >&6
19045else
19046
19047  CPPFLAGS_save="${CPPFLAGS}"
19048  CFLAGS_save="${CFLAGS}"
19049  CXXFLAGS_save="${CXXFLAGS}"
19050  OBJCFLAGS_save="${OBJCFLAGS}"
19051  LDFLAGS_save="${LDFLAGS}"
19052  LIBS_save="${LIBS}"
19053
19054
19055      if test "x$TOKYOCABINET_CPPFLAGS" != "x"; then :
19056  CPPFLAGS="$CPPFLAGS $TOKYOCABINET_CPPFLAGS"
19057fi
19058
19059      if test "x$TOKYOCABINET_LDFLAGS" != "x"; then :
19060  LDFLAGS="$LDFLAGS $TOKYOCABINET_LDFLAGS"
19061fi
19062
19063      as_ac_Header=`$as_echo "ac_cv_header_$tokyocabinet_header" | $as_tr_sh`
19064ac_fn_c_check_header_mongrel "$LINENO" "$tokyocabinet_header" "$as_ac_Header" "$ac_includes_default"
19065if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19066
19067        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltokyocabinet" >&5
19068$as_echo_n "checking for main in -ltokyocabinet... " >&6; }
19069if ${ac_cv_lib_tokyocabinet_main+:} false; then :
19070  $as_echo_n "(cached) " >&6
19071else
19072  ac_check_lib_save_LIBS=$LIBS
19073LIBS="-ltokyocabinet  $LIBS"
19074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19075/* end confdefs.h.  */
19076
19077
19078int
19079main ()
19080{
19081return main ();
19082  ;
19083  return 0;
19084}
19085_ACEOF
19086if ac_fn_c_try_link "$LINENO"; then :
19087  ac_cv_lib_tokyocabinet_main=yes
19088else
19089  ac_cv_lib_tokyocabinet_main=no
19090fi
19091rm -f core conftest.err conftest.$ac_objext \
19092    conftest$ac_exeext conftest.$ac_ext
19093LIBS=$ac_check_lib_save_LIBS
19094fi
19095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tokyocabinet_main" >&5
19096$as_echo "$ac_cv_lib_tokyocabinet_main" >&6; }
19097if test "x$ac_cv_lib_tokyocabinet_main" = xyes; then :
19098  ax_cv_have_TOKYOCABINET=yes
19099else
19100  ax_cv_have_TOKYOCABINET=no
19101fi
19102
19103
19104else
19105  ax_cv_have_TOKYOCABINET=no
19106fi
19107
19108
19109
19110
19111  CPPFLAGS="${CPPFLAGS_save}"
19112  CFLAGS="${CFLAGS_save}"
19113  CXXFLAGS="${CXXFLAGS_save}"
19114  OBJCFLAGS="${OBJCFLAGS_save}"
19115  LDFLAGS="${LDFLAGS_save}"
19116  LIBS="${LIBS_save}"
19117
19118
19119fi
19120
19121
19122    if test "$ax_cv_have_TOKYOCABINET" = "yes"; then :
19123
19124$as_echo "#define HAVE_TOKYOCABINET 1" >>confdefs.h
19125
19126
19127
19128        TOKYOCABINET_LIB=-ltokyocabinet
19129
19130        :
19131else
19132
19133$as_echo "#define HAVE_TOKYOCABINET 0" >>confdefs.h
19134
19135fi
19136
19137
19138    if test "x$ax_cv_have_TOKYOCABINET" = xno; then :
19139  ac_enable_libtokyocabinet="no"
19140fi
19141
19142     if test "x${ac_enable_libtokyocabinet}" = "xyes"; then
19143  HAVE_TOKYOCABINET_TRUE=
19144  HAVE_TOKYOCABINET_FALSE='#'
19145else
19146  HAVE_TOKYOCABINET_TRUE='#'
19147  HAVE_TOKYOCABINET_FALSE=
19148fi
19149
19150
19151ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
19152if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
19153  ac_have_decl=1
19154else
19155  ac_have_decl=0
19156fi
19157
19158cat >>confdefs.h <<_ACEOF
19159#define HAVE_DECL_STRERROR_R $ac_have_decl
19160_ACEOF
19161
19162for ac_func in strerror_r
19163do :
19164  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
19165if test "x$ac_cv_func_strerror_r" = xyes; then :
19166  cat >>confdefs.h <<_ACEOF
19167#define HAVE_STRERROR_R 1
19168_ACEOF
19169
19170fi
19171done
19172
19173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
19174$as_echo_n "checking whether strerror_r returns char *... " >&6; }
19175if ${ac_cv_func_strerror_r_char_p+:} false; then :
19176  $as_echo_n "(cached) " >&6
19177else
19178
19179    ac_cv_func_strerror_r_char_p=no
19180    if test $ac_cv_have_decl_strerror_r = yes; then
19181      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19182/* end confdefs.h.  */
19183$ac_includes_default
19184int
19185main ()
19186{
19187
19188	  char buf[100];
19189	  char x = *strerror_r (0, buf, sizeof buf);
19190	  char *p = strerror_r (0, buf, sizeof buf);
19191	  return !p || x;
19192
19193  ;
19194  return 0;
19195}
19196_ACEOF
19197if ac_fn_c_try_compile "$LINENO"; then :
19198  ac_cv_func_strerror_r_char_p=yes
19199fi
19200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19201    else
19202      # strerror_r is not declared.  Choose between
19203      # systems that have relatively inaccessible declarations for the
19204      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
19205      # former has a strerror_r that returns char*, while the latter
19206      # has a strerror_r that returns `int'.
19207      # This test should segfault on the DEC system.
19208      if test "$cross_compiling" = yes; then :
19209  :
19210else
19211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19212/* end confdefs.h.  */
19213$ac_includes_default
19214	extern char *strerror_r ();
19215int
19216main ()
19217{
19218char buf[100];
19219	  char x = *strerror_r (0, buf, sizeof buf);
19220	  return ! isalpha (x);
19221  ;
19222  return 0;
19223}
19224_ACEOF
19225if ac_fn_c_try_run "$LINENO"; then :
19226  ac_cv_func_strerror_r_char_p=yes
19227fi
19228rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19229  conftest.$ac_objext conftest.beam conftest.$ac_ext
19230fi
19231
19232    fi
19233
19234fi
19235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
19236$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
19237if test $ac_cv_func_strerror_r_char_p = yes; then
19238
19239$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
19240
19241fi
19242
19243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
19244$as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
19245if ${ac_cv_msg_nosignal+:} false; then :
19246  $as_echo_n "(cached) " >&6
19247else
19248  ac_ext=c
19249ac_cpp='$CPP $CPPFLAGS'
19250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19252ac_compiler_gnu=$ac_cv_c_compiler_gnu
19253
19254
19255  CPPFLAGS_save="${CPPFLAGS}"
19256  CFLAGS_save="${CFLAGS}"
19257  CXXFLAGS_save="${CXXFLAGS}"
19258  OBJCFLAGS_save="${OBJCFLAGS}"
19259  LDFLAGS_save="${LDFLAGS}"
19260  LIBS_save="${LIBS}"
19261
19262      CFLAGS="$CFLAGS -I${srcdir}"
19263
19264      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19265/* end confdefs.h.  */
19266#include <netdb.h>
19267int
19268main ()
19269{
19270int flags= MSG_NOSIGNAL
19271  ;
19272  return 0;
19273}
19274_ACEOF
19275if ac_fn_c_try_compile "$LINENO"; then :
19276  ac_cv_msg_nosignal="yes"
19277fi
19278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19279      ac_ext=c
19280ac_cpp='$CPP $CPPFLAGS'
19281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19283ac_compiler_gnu=$ac_cv_c_compiler_gnu
19284
19285
19286  CPPFLAGS="${CPPFLAGS_save}"
19287  CFLAGS="${CFLAGS_save}"
19288  CXXFLAGS="${CXXFLAGS_save}"
19289  OBJCFLAGS="${OBJCFLAGS_save}"
19290  LDFLAGS="${LDFLAGS_save}"
19291  LIBS="${LIBS_save}"
19292
19293fi
19294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5
19295$as_echo "$ac_cv_msg_nosignal" >&6; }
19296
19297    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_DONTWAIT" >&5
19298$as_echo_n "checking for MSG_DONTWAIT... " >&6; }
19299if ${ac_cv_msg_dontwait+:} false; then :
19300  $as_echo_n "(cached) " >&6
19301else
19302  ac_ext=c
19303ac_cpp='$CPP $CPPFLAGS'
19304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19306ac_compiler_gnu=$ac_cv_c_compiler_gnu
19307
19308
19309  CPPFLAGS_save="${CPPFLAGS}"
19310  CFLAGS_save="${CFLAGS}"
19311  CXXFLAGS_save="${CXXFLAGS}"
19312  OBJCFLAGS_save="${OBJCFLAGS}"
19313  LDFLAGS_save="${LDFLAGS}"
19314  LIBS_save="${LIBS}"
19315
19316      CFLAGS="$CFLAGS -I${srcdir}"
19317
19318      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19319/* end confdefs.h.  */
19320#include <netdb.h>
19321int
19322main ()
19323{
19324int flags= MSG_DONTWAIT
19325  ;
19326  return 0;
19327}
19328_ACEOF
19329if ac_fn_c_try_compile "$LINENO"; then :
19330  ac_cv_msg_dontwait="yes"
19331fi
19332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19333      ac_ext=c
19334ac_cpp='$CPP $CPPFLAGS'
19335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19337ac_compiler_gnu=$ac_cv_c_compiler_gnu
19338
19339
19340  CPPFLAGS="${CPPFLAGS_save}"
19341  CFLAGS="${CFLAGS_save}"
19342  CXXFLAGS="${CXXFLAGS_save}"
19343  OBJCFLAGS="${OBJCFLAGS_save}"
19344  LDFLAGS="${LDFLAGS_save}"
19345  LIBS="${LIBS_save}"
19346
19347fi
19348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_dontwait" >&5
19349$as_echo "$ac_cv_msg_dontwait" >&6; }
19350
19351    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_MORE" >&5
19352$as_echo_n "checking for MSG_MORE... " >&6; }
19353if ${ac_cv_msg_more+:} false; then :
19354  $as_echo_n "(cached) " >&6
19355else
19356  ac_ext=c
19357ac_cpp='$CPP $CPPFLAGS'
19358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19360ac_compiler_gnu=$ac_cv_c_compiler_gnu
19361
19362
19363  CPPFLAGS_save="${CPPFLAGS}"
19364  CFLAGS_save="${CFLAGS}"
19365  CXXFLAGS_save="${CXXFLAGS}"
19366  OBJCFLAGS_save="${OBJCFLAGS}"
19367  LDFLAGS_save="${LDFLAGS}"
19368  LIBS_save="${LIBS}"
19369
19370      CFLAGS="$CFLAGS -I${srcdir}"
19371      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19372/* end confdefs.h.  */
19373#include <netdb.h>
19374int
19375main ()
19376{
19377int flags= MSG_MORE
19378  ;
19379  return 0;
19380}
19381_ACEOF
19382if ac_fn_c_try_compile "$LINENO"; then :
19383  ac_cv_msg_more="yes"
19384fi
19385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19386      ac_ext=c
19387ac_cpp='$CPP $CPPFLAGS'
19388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19390ac_compiler_gnu=$ac_cv_c_compiler_gnu
19391
19392
19393  CPPFLAGS="${CPPFLAGS_save}"
19394  CFLAGS="${CFLAGS_save}"
19395  CXXFLAGS="${CXXFLAGS_save}"
19396  OBJCFLAGS="${OBJCFLAGS_save}"
19397  LDFLAGS="${LDFLAGS_save}"
19398  LIBS="${LIBS_save}"
19399
19400fi
19401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_more" >&5
19402$as_echo "$ac_cv_msg_more" >&6; }
19403
19404  if test "x$ac_cv_msg_nosignal" = "xyes"; then :
19405
19406$as_echo "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
19407
19408fi
19409  if test "x$ac_cv_msg_dontwait" = "xyes"; then :
19410
19411$as_echo "#define HAVE_MSG_DONTWAIT 1" >>confdefs.h
19412
19413fi
19414  if test "x$ac_cv_msg_more" = "xyes"; then :
19415
19416$as_echo "#define HAVE_MSG_MORE 1" >>confdefs.h
19417
19418fi
19419
19420
19421  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
19422$as_echo_n "checking for O_CLOEXEC... " >&6; }
19423if ${ac_cv_o_cloexec+:} false; then :
19424  $as_echo_n "(cached) " >&6
19425else
19426
19427    ac_ext=c
19428ac_cpp='$CPP $CPPFLAGS'
19429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19431ac_compiler_gnu=$ac_cv_c_compiler_gnu
19432
19433    save_CFLAGS="$CFLAGS"
19434    CFLAGS="$CFLAGS -I${srcdir}"
19435
19436    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19437/* end confdefs.h.  */
19438#include <fcntl.h>
19439int
19440main ()
19441{
19442 int flags= O_CLOEXEC
19443  ;
19444  return 0;
19445}
19446_ACEOF
19447if ac_fn_c_try_compile "$LINENO"; then :
19448  ac_cv_o_cloexec="yes"
19449else
19450  ac_cv_o_cloexec="no"
19451fi
19452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19453    ac_ext=c
19454ac_cpp='$CPP $CPPFLAGS'
19455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19457ac_compiler_gnu=$ac_cv_c_compiler_gnu
19458
19459    CFLAGS="$save_CFLAGS"
19460
19461fi
19462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
19463$as_echo "$ac_cv_o_cloexec" >&6; }
19464
19465  if test "x$ac_cv_o_cloexec" = "xyes"; then :
19466
19467$as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h
19468
19469fi
19470
19471# Check whether --enable-hiredis was given.
19472if test "${enable_hiredis+set}" = set; then :
19473  enableval=$enable_hiredis; ac_enable_hiredis="$enableval"
19474else
19475  ac_enable_hiredis="yes"
19476fi
19477
19478
19479
19480
19481    if test "x$ac_enable_hiredis" = "xyes"; then :
19482  hiredis_header="hiredis/hiredis.h"
19483else
19484  hiredis_header="does_not_exist"
19485fi
19486
19487
19488
19489
19490    if ${ax_cv_have_HIREDIS+:} false; then :
19491  $as_echo_n "(cached) " >&6
19492else
19493
19494  CPPFLAGS_save="${CPPFLAGS}"
19495  CFLAGS_save="${CFLAGS}"
19496  CXXFLAGS_save="${CXXFLAGS}"
19497  OBJCFLAGS_save="${OBJCFLAGS}"
19498  LDFLAGS_save="${LDFLAGS}"
19499  LIBS_save="${LIBS}"
19500
19501
19502      if test "x$HIREDIS_CPPFLAGS" != "x"; then :
19503  CPPFLAGS="$CPPFLAGS $HIREDIS_CPPFLAGS"
19504fi
19505
19506      if test "x$HIREDIS_LDFLAGS" != "x"; then :
19507  LDFLAGS="$LDFLAGS $HIREDIS_LDFLAGS"
19508fi
19509
19510      as_ac_Header=`$as_echo "ac_cv_header_$hiredis_header" | $as_tr_sh`
19511ac_fn_c_check_header_mongrel "$LINENO" "$hiredis_header" "$as_ac_Header" "$ac_includes_default"
19512if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19513
19514        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lhiredis" >&5
19515$as_echo_n "checking for main in -lhiredis... " >&6; }
19516if ${ac_cv_lib_hiredis_main+:} false; then :
19517  $as_echo_n "(cached) " >&6
19518else
19519  ac_check_lib_save_LIBS=$LIBS
19520LIBS="-lhiredis  $LIBS"
19521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19522/* end confdefs.h.  */
19523
19524
19525int
19526main ()
19527{
19528return main ();
19529  ;
19530  return 0;
19531}
19532_ACEOF
19533if ac_fn_c_try_link "$LINENO"; then :
19534  ac_cv_lib_hiredis_main=yes
19535else
19536  ac_cv_lib_hiredis_main=no
19537fi
19538rm -f core conftest.err conftest.$ac_objext \
19539    conftest$ac_exeext conftest.$ac_ext
19540LIBS=$ac_check_lib_save_LIBS
19541fi
19542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hiredis_main" >&5
19543$as_echo "$ac_cv_lib_hiredis_main" >&6; }
19544if test "x$ac_cv_lib_hiredis_main" = xyes; then :
19545  ax_cv_have_HIREDIS=yes
19546else
19547  ax_cv_have_HIREDIS=no
19548fi
19549
19550
19551else
19552  ax_cv_have_HIREDIS=no
19553fi
19554
19555
19556
19557
19558  CPPFLAGS="${CPPFLAGS_save}"
19559  CFLAGS="${CFLAGS_save}"
19560  CXXFLAGS="${CXXFLAGS_save}"
19561  OBJCFLAGS="${OBJCFLAGS_save}"
19562  LDFLAGS="${LDFLAGS_save}"
19563  LIBS="${LIBS_save}"
19564
19565
19566fi
19567
19568
19569    if test "$ax_cv_have_HIREDIS" = "yes"; then :
19570
19571$as_echo "#define HAVE_HIREDIS 1" >>confdefs.h
19572
19573
19574
19575        HIREDIS_LIB=-lhiredis
19576
19577        :
19578else
19579
19580$as_echo "#define HAVE_HIREDIS 0" >>confdefs.h
19581
19582fi
19583
19584
19585    if test "x$ax_cv_have_HIREDIS" = xno; then :
19586  ac_enable_hiredis="no"
19587fi
19588
19589
19590
19591# Checks for programs.
19592for ac_prog in dpkg-gensymbols
19593do
19594  # Extract the first word of "$ac_prog", so it can be a program name with args.
19595set dummy $ac_prog; ac_word=$2
19596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19597$as_echo_n "checking for $ac_word... " >&6; }
19598if ${ac_cv_prog_DPKG_GENSYMBOLS+:} false; then :
19599  $as_echo_n "(cached) " >&6
19600else
19601  if test -n "$DPKG_GENSYMBOLS"; then
19602  ac_cv_prog_DPKG_GENSYMBOLS="$DPKG_GENSYMBOLS" # Let the user override the test.
19603else
19604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19605for as_dir in $PATH
19606do
19607  IFS=$as_save_IFS
19608  test -z "$as_dir" && as_dir=.
19609    for ac_exec_ext in '' $ac_executable_extensions; do
19610  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19611    ac_cv_prog_DPKG_GENSYMBOLS="$ac_prog"
19612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19613    break 2
19614  fi
19615done
19616  done
19617IFS=$as_save_IFS
19618
19619fi
19620fi
19621DPKG_GENSYMBOLS=$ac_cv_prog_DPKG_GENSYMBOLS
19622if test -n "$DPKG_GENSYMBOLS"; then
19623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DPKG_GENSYMBOLS" >&5
19624$as_echo "$DPKG_GENSYMBOLS" >&6; }
19625else
19626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19627$as_echo "no" >&6; }
19628fi
19629
19630
19631  test -n "$DPKG_GENSYMBOLS" && break
19632done
19633
19634for ac_prog in perl
19635do
19636  # Extract the first word of "$ac_prog", so it can be a program name with args.
19637set dummy $ac_prog; ac_word=$2
19638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19639$as_echo_n "checking for $ac_word... " >&6; }
19640if ${ac_cv_prog_PERL+:} false; then :
19641  $as_echo_n "(cached) " >&6
19642else
19643  if test -n "$PERL"; then
19644  ac_cv_prog_PERL="$PERL" # Let the user override the test.
19645else
19646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19647for as_dir in $PATH
19648do
19649  IFS=$as_save_IFS
19650  test -z "$as_dir" && as_dir=.
19651    for ac_exec_ext in '' $ac_executable_extensions; do
19652  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19653    ac_cv_prog_PERL="$ac_prog"
19654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19655    break 2
19656  fi
19657done
19658  done
19659IFS=$as_save_IFS
19660
19661fi
19662fi
19663PERL=$ac_cv_prog_PERL
19664if test -n "$PERL"; then
19665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19666$as_echo "$PERL" >&6; }
19667else
19668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19669$as_echo "no" >&6; }
19670fi
19671
19672
19673  test -n "$PERL" && break
19674done
19675
19676for ac_prog in 'valgrind'
19677do
19678  # Extract the first word of "$ac_prog", so it can be a program name with args.
19679set dummy $ac_prog; ac_word=$2
19680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19681$as_echo_n "checking for $ac_word... " >&6; }
19682if ${ac_cv_prog_VALGRIND+:} false; then :
19683  $as_echo_n "(cached) " >&6
19684else
19685  if test -n "$VALGRIND"; then
19686  ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
19687else
19688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19689for as_dir in $PATH
19690do
19691  IFS=$as_save_IFS
19692  test -z "$as_dir" && as_dir=.
19693    for ac_exec_ext in '' $ac_executable_extensions; do
19694  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19695    ac_cv_prog_VALGRIND="$ac_prog"
19696    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19697    break 2
19698  fi
19699done
19700  done
19701IFS=$as_save_IFS
19702
19703fi
19704fi
19705VALGRIND=$ac_cv_prog_VALGRIND
19706if test -n "$VALGRIND"; then
19707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
19708$as_echo "$VALGRIND" >&6; }
19709else
19710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19711$as_echo "no" >&6; }
19712fi
19713
19714
19715  test -n "$VALGRIND" && break
19716done
19717
19718for ac_prog in 'wine'
19719do
19720  # Extract the first word of "$ac_prog", so it can be a program name with args.
19721set dummy $ac_prog; ac_word=$2
19722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19723$as_echo_n "checking for $ac_word... " >&6; }
19724if ${ac_cv_prog_WINE+:} false; then :
19725  $as_echo_n "(cached) " >&6
19726else
19727  if test -n "$WINE"; then
19728  ac_cv_prog_WINE="$WINE" # Let the user override the test.
19729else
19730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19731for as_dir in $PATH
19732do
19733  IFS=$as_save_IFS
19734  test -z "$as_dir" && as_dir=.
19735    for ac_exec_ext in '' $ac_executable_extensions; do
19736  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19737    ac_cv_prog_WINE="$ac_prog"
19738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19739    break 2
19740  fi
19741done
19742  done
19743IFS=$as_save_IFS
19744
19745fi
19746fi
19747WINE=$ac_cv_prog_WINE
19748if test -n "$WINE"; then
19749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINE" >&5
19750$as_echo "$WINE" >&6; }
19751else
19752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19753$as_echo "no" >&6; }
19754fi
19755
19756
19757  test -n "$WINE" && break
19758done
19759
19760for ac_prog in gawk mawk nawk awk
19761do
19762  # Extract the first word of "$ac_prog", so it can be a program name with args.
19763set dummy $ac_prog; ac_word=$2
19764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19765$as_echo_n "checking for $ac_word... " >&6; }
19766if ${ac_cv_prog_AWK+:} false; then :
19767  $as_echo_n "(cached) " >&6
19768else
19769  if test -n "$AWK"; then
19770  ac_cv_prog_AWK="$AWK" # Let the user override the test.
19771else
19772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19773for as_dir in $PATH
19774do
19775  IFS=$as_save_IFS
19776  test -z "$as_dir" && as_dir=.
19777    for ac_exec_ext in '' $ac_executable_extensions; do
19778  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19779    ac_cv_prog_AWK="$ac_prog"
19780    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19781    break 2
19782  fi
19783done
19784  done
19785IFS=$as_save_IFS
19786
19787fi
19788fi
19789AWK=$ac_cv_prog_AWK
19790if test -n "$AWK"; then
19791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
19792$as_echo "$AWK" >&6; }
19793else
19794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19795$as_echo "no" >&6; }
19796fi
19797
19798
19799  test -n "$AWK" && break
19800done
19801
19802
19803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
19804$as_echo_n "checking whether ln -s works... " >&6; }
19805LN_S=$as_ln_s
19806if test "$LN_S" = "ln -s"; then
19807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19808$as_echo "yes" >&6; }
19809else
19810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
19811$as_echo "no, using $LN_S" >&6; }
19812fi
19813
19814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19815$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
19816set x ${MAKE-make}
19817ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
19818if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
19819  $as_echo_n "(cached) " >&6
19820else
19821  cat >conftest.make <<\_ACEOF
19822SHELL = /bin/sh
19823all:
19824	@echo '@@@%%%=$(MAKE)=@@@%%%'
19825_ACEOF
19826# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
19827case `${MAKE-make} -f conftest.make 2>/dev/null` in
19828  *@@@%%%=?*=@@@%%%*)
19829    eval ac_cv_prog_make_${ac_make}_set=yes;;
19830  *)
19831    eval ac_cv_prog_make_${ac_make}_set=no;;
19832esac
19833rm -f conftest.make
19834fi
19835if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
19836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19837$as_echo "yes" >&6; }
19838  SET_MAKE=
19839else
19840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19841$as_echo "no" >&6; }
19842  SET_MAKE="MAKE=${MAKE-make}"
19843fi
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855    if test -z "$MEMCACHED_BINARY"; then :
19856
19857        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcached executable path has been provided" >&5
19858$as_echo_n "checking whether memcached executable path has been provided... " >&6; }
19859
19860# Check whether --with-memcached was given.
19861if test "${with_memcached+set}" = set; then :
19862  withval=$with_memcached;
19863            if test "$withval" != yes && test "$withval" != no; then :
19864
19865                MEMCACHED_BINARY="$withval"
19866                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMCACHED_BINARY" >&5
19867$as_echo "$MEMCACHED_BINARY" >&6; }
19868
19869else
19870
19871                MEMCACHED_BINARY=""
19872                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19873$as_echo "no" >&6; }
19874                if test "$withval" != no; then :
19875
19876                  # Extract the first word of "memcached", so it can be a program name with args.
19877set dummy memcached; ac_word=$2
19878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19879$as_echo_n "checking for $ac_word... " >&6; }
19880if ${ac_cv_path_MEMCACHED_BINARY+:} false; then :
19881  $as_echo_n "(cached) " >&6
19882else
19883  case $MEMCACHED_BINARY in
19884  [\\/]* | ?:[\\/]*)
19885  ac_cv_path_MEMCACHED_BINARY="$MEMCACHED_BINARY" # Let the user override the test with a path.
19886  ;;
19887  *)
19888  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19889for as_dir in $PATH
19890do
19891  IFS=$as_save_IFS
19892  test -z "$as_dir" && as_dir=.
19893    for ac_exec_ext in '' $ac_executable_extensions; do
19894  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19895    ac_cv_path_MEMCACHED_BINARY="$as_dir/$ac_word$ac_exec_ext"
19896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19897    break 2
19898  fi
19899done
19900  done
19901IFS=$as_save_IFS
19902
19903  test -z "$ac_cv_path_MEMCACHED_BINARY" && ac_cv_path_MEMCACHED_BINARY="unknown"
19904  ;;
19905esac
19906fi
19907MEMCACHED_BINARY=$ac_cv_path_MEMCACHED_BINARY
19908if test -n "$MEMCACHED_BINARY"; then
19909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMCACHED_BINARY" >&5
19910$as_echo "$MEMCACHED_BINARY" >&6; }
19911else
19912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19913$as_echo "no" >&6; }
19914fi
19915
19916
19917
19918fi
19919
19920fi
19921
19922else
19923
19924            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19925$as_echo "no" >&6; }
19926            # Extract the first word of "memcached", so it can be a program name with args.
19927set dummy memcached; ac_word=$2
19928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19929$as_echo_n "checking for $ac_word... " >&6; }
19930if ${ac_cv_path_MEMCACHED_BINARY+:} false; then :
19931  $as_echo_n "(cached) " >&6
19932else
19933  case $MEMCACHED_BINARY in
19934  [\\/]* | ?:[\\/]*)
19935  ac_cv_path_MEMCACHED_BINARY="$MEMCACHED_BINARY" # Let the user override the test with a path.
19936  ;;
19937  *)
19938  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19939for as_dir in $PATH
19940do
19941  IFS=$as_save_IFS
19942  test -z "$as_dir" && as_dir=.
19943    for ac_exec_ext in '' $ac_executable_extensions; do
19944  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19945    ac_cv_path_MEMCACHED_BINARY="$as_dir/$ac_word$ac_exec_ext"
19946    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19947    break 2
19948  fi
19949done
19950  done
19951IFS=$as_save_IFS
19952
19953  test -z "$ac_cv_path_MEMCACHED_BINARY" && ac_cv_path_MEMCACHED_BINARY="unknown"
19954  ;;
19955esac
19956fi
19957MEMCACHED_BINARY=$ac_cv_path_MEMCACHED_BINARY
19958if test -n "$MEMCACHED_BINARY"; then
19959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMCACHED_BINARY" >&5
19960$as_echo "$MEMCACHED_BINARY" >&6; }
19961else
19962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19963$as_echo "no" >&6; }
19964fi
19965
19966
19967
19968fi
19969
19970
19971fi
19972
19973
19974
19975
19976
19977
19978         ax_memcached_success=
19979         if test x"$MEMCACHED_BINARY" != xunknown; then :
19980  if test -x "$MEMCACHED_BINARY"; then :
19981  ax_memcached_version=`$MEMCACHED_BINARY -h | sed 1q | awk '{print \$ 2 }' | sed 's|\-a-z0-9*$||' | awk -F. '{printf "%d.%d.%d", $1, $2, $3}'`
19982                      if test -n "$ax_memcached_version"; then :
19983  ax_memcached_success='ok'
19984                            { $as_echo "$as_me:${as_lineno-$LINENO}: result: memcached version \"$ax_memcached_version\"" >&5
19985$as_echo "memcached version \"$ax_memcached_version\"" >&6; }
19986
19987cat >>confdefs.h <<_ACEOF
19988#define MEMCACHED_VERSION "$ax_memcached_version"
19989_ACEOF
19990
19991fi
19992
19993fi
19994
19995fi
19996
19997         if test -n "$ax_memcached_success"; then :
19998
19999$as_echo "#define HAVE_MEMCACHED_BINARY 1" >>confdefs.h
20000
20001
20002cat >>confdefs.h <<_ACEOF
20003#define MEMCACHED_BINARY "$MEMCACHED_BINARY"
20004_ACEOF
20005
20006
20007else
20008
20009$as_echo "#define HAVE_MEMCACHED_BINARY 0" >>confdefs.h
20010
20011               MEMCACHED_BINARY=
20012
20013fi
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025    if test -z "$SPHINXBUILD"; then :
20026
20027        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sphinx-build executable path has been provided" >&5
20028$as_echo_n "checking whether sphinx-build executable path has been provided... " >&6; }
20029
20030# Check whether --with-sphinx-build was given.
20031if test "${with_sphinx_build+set}" = set; then :
20032  withval=$with_sphinx_build;
20033            if test "$withval" != yes && test "$withval" != no; then :
20034
20035                SPHINXBUILD="$withval"
20036                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPHINXBUILD" >&5
20037$as_echo "$SPHINXBUILD" >&6; }
20038
20039else
20040
20041                SPHINXBUILD=""
20042                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20043$as_echo "no" >&6; }
20044                if test "$withval" != no; then :
20045
20046                  # Extract the first word of "sphinx-build", so it can be a program name with args.
20047set dummy sphinx-build; ac_word=$2
20048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20049$as_echo_n "checking for $ac_word... " >&6; }
20050if ${ac_cv_path_SPHINXBUILD+:} false; then :
20051  $as_echo_n "(cached) " >&6
20052else
20053  case $SPHINXBUILD in
20054  [\\/]* | ?:[\\/]*)
20055  ac_cv_path_SPHINXBUILD="$SPHINXBUILD" # Let the user override the test with a path.
20056  ;;
20057  *)
20058  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20059for as_dir in $PATH
20060do
20061  IFS=$as_save_IFS
20062  test -z "$as_dir" && as_dir=.
20063    for ac_exec_ext in '' $ac_executable_extensions; do
20064  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20065    ac_cv_path_SPHINXBUILD="$as_dir/$ac_word$ac_exec_ext"
20066    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20067    break 2
20068  fi
20069done
20070  done
20071IFS=$as_save_IFS
20072
20073  test -z "$ac_cv_path_SPHINXBUILD" && ac_cv_path_SPHINXBUILD=":"
20074  ;;
20075esac
20076fi
20077SPHINXBUILD=$ac_cv_path_SPHINXBUILD
20078if test -n "$SPHINXBUILD"; then
20079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPHINXBUILD" >&5
20080$as_echo "$SPHINXBUILD" >&6; }
20081else
20082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20083$as_echo "no" >&6; }
20084fi
20085
20086
20087
20088fi
20089
20090fi
20091
20092else
20093
20094            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20095$as_echo "no" >&6; }
20096            # Extract the first word of "sphinx-build", so it can be a program name with args.
20097set dummy sphinx-build; ac_word=$2
20098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20099$as_echo_n "checking for $ac_word... " >&6; }
20100if ${ac_cv_path_SPHINXBUILD+:} false; then :
20101  $as_echo_n "(cached) " >&6
20102else
20103  case $SPHINXBUILD in
20104  [\\/]* | ?:[\\/]*)
20105  ac_cv_path_SPHINXBUILD="$SPHINXBUILD" # Let the user override the test with a path.
20106  ;;
20107  *)
20108  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20109for as_dir in $PATH
20110do
20111  IFS=$as_save_IFS
20112  test -z "$as_dir" && as_dir=.
20113    for ac_exec_ext in '' $ac_executable_extensions; do
20114  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20115    ac_cv_path_SPHINXBUILD="$as_dir/$ac_word$ac_exec_ext"
20116    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20117    break 2
20118  fi
20119done
20120  done
20121IFS=$as_save_IFS
20122
20123  test -z "$ac_cv_path_SPHINXBUILD" && ac_cv_path_SPHINXBUILD=":"
20124  ;;
20125esac
20126fi
20127SPHINXBUILD=$ac_cv_path_SPHINXBUILD
20128if test -n "$SPHINXBUILD"; then
20129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPHINXBUILD" >&5
20130$as_echo "$SPHINXBUILD" >&6; }
20131else
20132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20133$as_echo "no" >&6; }
20134fi
20135
20136
20137
20138fi
20139
20140
20141fi
20142
20143
20144
20145
20146
20147
20148    if test x"SPHINXBUILD" = x":"; then :
20149  SPHINXBUILD=
20150else
20151  if test -x "$SPHINXBUILD"; then :
20152  { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking to see if $SPHINXBUILD is recent" >&5
20153$as_echo_n "checking Checking to see if $SPHINXBUILD is recent... " >&6; }
20154        junk=`$SPHINXBUILD &> version_file`
20155        ax_sphinx_build_version=`head -1 version_file`
20156        rm version_file
20157        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPHINXBUILD is version \"$ax_sphinx_build_version\"" >&5
20158$as_echo "$SPHINXBUILD is version \"$ax_sphinx_build_version\"" >&6; }
20159        $SPHINXBUILD -Q -C -b man -d conftest.d . . >/dev/null 2>&1
20160        if test $? -eq 0; then :
20161
20162else
20163  SPHINXBUILD=
20164fi
20165        rm -rf conftest.d
20166
20167fi
20168
20169fi
20170
20171    if test -n "${SPHINXBUILD}"; then :
20172
20173      :
20174else
20175  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sphinx-build version 1.0 or greater is required to build man pages" >&5
20176$as_echo "$as_me: WARNING: sphinx-build version 1.0 or greater is required to build man pages" >&2;}
20177fi
20178
20179
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189    if test -z "$LCOV"; then :
20190
20191        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lcov executable path has been provided" >&5
20192$as_echo_n "checking whether lcov executable path has been provided... " >&6; }
20193
20194# Check whether --with-lcov was given.
20195if test "${with_lcov+set}" = set; then :
20196  withval=$with_lcov;
20197            if test "$withval" != yes && test "$withval" != no; then :
20198
20199                LCOV="$withval"
20200                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
20201$as_echo "$LCOV" >&6; }
20202
20203else
20204
20205                LCOV=""
20206                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20207$as_echo "no" >&6; }
20208                if test "$withval" != no; then :
20209
20210                  # Extract the first word of "lcov", so it can be a program name with args.
20211set dummy lcov; ac_word=$2
20212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20213$as_echo_n "checking for $ac_word... " >&6; }
20214if ${ac_cv_path_LCOV+:} false; then :
20215  $as_echo_n "(cached) " >&6
20216else
20217  case $LCOV in
20218  [\\/]* | ?:[\\/]*)
20219  ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
20220  ;;
20221  *)
20222  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20223for as_dir in $PATH
20224do
20225  IFS=$as_save_IFS
20226  test -z "$as_dir" && as_dir=.
20227    for ac_exec_ext in '' $ac_executable_extensions; do
20228  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20229    ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
20230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20231    break 2
20232  fi
20233done
20234  done
20235IFS=$as_save_IFS
20236
20237  ;;
20238esac
20239fi
20240LCOV=$ac_cv_path_LCOV
20241if test -n "$LCOV"; then
20242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
20243$as_echo "$LCOV" >&6; }
20244else
20245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20246$as_echo "no" >&6; }
20247fi
20248
20249
20250
20251fi
20252
20253fi
20254
20255else
20256
20257            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20258$as_echo "no" >&6; }
20259            # Extract the first word of "lcov", so it can be a program name with args.
20260set dummy lcov; ac_word=$2
20261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20262$as_echo_n "checking for $ac_word... " >&6; }
20263if ${ac_cv_path_LCOV+:} false; then :
20264  $as_echo_n "(cached) " >&6
20265else
20266  case $LCOV in
20267  [\\/]* | ?:[\\/]*)
20268  ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
20269  ;;
20270  *)
20271  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20272for as_dir in $PATH
20273do
20274  IFS=$as_save_IFS
20275  test -z "$as_dir" && as_dir=.
20276    for ac_exec_ext in '' $ac_executable_extensions; do
20277  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20278    ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
20279    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20280    break 2
20281  fi
20282done
20283  done
20284IFS=$as_save_IFS
20285
20286  ;;
20287esac
20288fi
20289LCOV=$ac_cv_path_LCOV
20290if test -n "$LCOV"; then
20291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
20292$as_echo "$LCOV" >&6; }
20293else
20294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20295$as_echo "no" >&6; }
20296fi
20297
20298
20299
20300fi
20301
20302
20303fi
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320    if test -z "$LCOV_GENHTML"; then :
20321
20322        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether genhtml executable path has been provided" >&5
20323$as_echo_n "checking whether genhtml executable path has been provided... " >&6; }
20324
20325# Check whether --with-genhtml was given.
20326if test "${with_genhtml+set}" = set; then :
20327  withval=$with_genhtml;
20328            if test "$withval" != yes && test "$withval" != no; then :
20329
20330                LCOV_GENHTML="$withval"
20331                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV_GENHTML" >&5
20332$as_echo "$LCOV_GENHTML" >&6; }
20333
20334else
20335
20336                LCOV_GENHTML=""
20337                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20338$as_echo "no" >&6; }
20339                if test "$withval" != no; then :
20340
20341                  # Extract the first word of "genhtml", so it can be a program name with args.
20342set dummy genhtml; ac_word=$2
20343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20344$as_echo_n "checking for $ac_word... " >&6; }
20345if ${ac_cv_path_LCOV_GENHTML+:} false; then :
20346  $as_echo_n "(cached) " >&6
20347else
20348  case $LCOV_GENHTML in
20349  [\\/]* | ?:[\\/]*)
20350  ac_cv_path_LCOV_GENHTML="$LCOV_GENHTML" # Let the user override the test with a path.
20351  ;;
20352  *)
20353  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20354for as_dir in $PATH
20355do
20356  IFS=$as_save_IFS
20357  test -z "$as_dir" && as_dir=.
20358    for ac_exec_ext in '' $ac_executable_extensions; do
20359  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20360    ac_cv_path_LCOV_GENHTML="$as_dir/$ac_word$ac_exec_ext"
20361    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20362    break 2
20363  fi
20364done
20365  done
20366IFS=$as_save_IFS
20367
20368  ;;
20369esac
20370fi
20371LCOV_GENHTML=$ac_cv_path_LCOV_GENHTML
20372if test -n "$LCOV_GENHTML"; then
20373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV_GENHTML" >&5
20374$as_echo "$LCOV_GENHTML" >&6; }
20375else
20376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20377$as_echo "no" >&6; }
20378fi
20379
20380
20381
20382fi
20383
20384fi
20385
20386else
20387
20388            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20389$as_echo "no" >&6; }
20390            # Extract the first word of "genhtml", so it can be a program name with args.
20391set dummy genhtml; ac_word=$2
20392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20393$as_echo_n "checking for $ac_word... " >&6; }
20394if ${ac_cv_path_LCOV_GENHTML+:} false; then :
20395  $as_echo_n "(cached) " >&6
20396else
20397  case $LCOV_GENHTML in
20398  [\\/]* | ?:[\\/]*)
20399  ac_cv_path_LCOV_GENHTML="$LCOV_GENHTML" # Let the user override the test with a path.
20400  ;;
20401  *)
20402  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20403for as_dir in $PATH
20404do
20405  IFS=$as_save_IFS
20406  test -z "$as_dir" && as_dir=.
20407    for ac_exec_ext in '' $ac_executable_extensions; do
20408  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20409    ac_cv_path_LCOV_GENHTML="$as_dir/$ac_word$ac_exec_ext"
20410    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20411    break 2
20412  fi
20413done
20414  done
20415IFS=$as_save_IFS
20416
20417  ;;
20418esac
20419fi
20420LCOV_GENHTML=$ac_cv_path_LCOV_GENHTML
20421if test -n "$LCOV_GENHTML"; then
20422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV_GENHTML" >&5
20423$as_echo "$LCOV_GENHTML" >&6; }
20424else
20425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20426$as_echo "no" >&6; }
20427fi
20428
20429
20430
20431fi
20432
20433
20434fi
20435
20436
20437
20438
20439
20440
20441
20442# Checks for header files.
20443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20444$as_echo_n "checking for ANSI C header files... " >&6; }
20445if ${ac_cv_header_stdc+:} false; then :
20446  $as_echo_n "(cached) " >&6
20447else
20448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20449/* end confdefs.h.  */
20450#include <stdlib.h>
20451#include <stdarg.h>
20452#include <string.h>
20453#include <float.h>
20454
20455int
20456main ()
20457{
20458
20459  ;
20460  return 0;
20461}
20462_ACEOF
20463if ac_fn_c_try_compile "$LINENO"; then :
20464  ac_cv_header_stdc=yes
20465else
20466  ac_cv_header_stdc=no
20467fi
20468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20469
20470if test $ac_cv_header_stdc = yes; then
20471  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20473/* end confdefs.h.  */
20474#include <string.h>
20475
20476_ACEOF
20477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20478  $EGREP "memchr" >/dev/null 2>&1; then :
20479
20480else
20481  ac_cv_header_stdc=no
20482fi
20483rm -f conftest*
20484
20485fi
20486
20487if test $ac_cv_header_stdc = yes; then
20488  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20490/* end confdefs.h.  */
20491#include <stdlib.h>
20492
20493_ACEOF
20494if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20495  $EGREP "free" >/dev/null 2>&1; then :
20496
20497else
20498  ac_cv_header_stdc=no
20499fi
20500rm -f conftest*
20501
20502fi
20503
20504if test $ac_cv_header_stdc = yes; then
20505  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20506  if test "$cross_compiling" = yes; then :
20507  :
20508else
20509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20510/* end confdefs.h.  */
20511#include <ctype.h>
20512#include <stdlib.h>
20513#if ((' ' & 0x0FF) == 0x020)
20514# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20515# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20516#else
20517# define ISLOWER(c) \
20518		   (('a' <= (c) && (c) <= 'i') \
20519		     || ('j' <= (c) && (c) <= 'r') \
20520		     || ('s' <= (c) && (c) <= 'z'))
20521# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20522#endif
20523
20524#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20525int
20526main ()
20527{
20528  int i;
20529  for (i = 0; i < 256; i++)
20530    if (XOR (islower (i), ISLOWER (i))
20531	|| toupper (i) != TOUPPER (i))
20532      return 2;
20533  return 0;
20534}
20535_ACEOF
20536if ac_fn_c_try_run "$LINENO"; then :
20537
20538else
20539  ac_cv_header_stdc=no
20540fi
20541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20542  conftest.$ac_objext conftest.beam conftest.$ac_ext
20543fi
20544
20545fi
20546fi
20547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20548$as_echo "$ac_cv_header_stdc" >&6; }
20549if test $ac_cv_header_stdc = yes; then
20550
20551$as_echo "#define STDC_HEADERS 1" >>confdefs.h
20552
20553fi
20554
20555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
20556$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
20557if ${ac_cv_header_sys_wait_h+:} false; then :
20558  $as_echo_n "(cached) " >&6
20559else
20560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20561/* end confdefs.h.  */
20562#include <sys/types.h>
20563#include <sys/wait.h>
20564#ifndef WEXITSTATUS
20565# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20566#endif
20567#ifndef WIFEXITED
20568# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20569#endif
20570
20571int
20572main ()
20573{
20574  int s;
20575  wait (&s);
20576  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20577  ;
20578  return 0;
20579}
20580_ACEOF
20581if ac_fn_c_try_compile "$LINENO"; then :
20582  ac_cv_header_sys_wait_h=yes
20583else
20584  ac_cv_header_sys_wait_h=no
20585fi
20586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20587fi
20588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
20589$as_echo "$ac_cv_header_sys_wait_h" >&6; }
20590if test $ac_cv_header_sys_wait_h = yes; then
20591
20592$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
20593
20594fi
20595
20596
20597
20598
20599  for ac_header in $ac_header_list
20600do :
20601  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20602ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20603"
20604if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20605  cat >>confdefs.h <<_ACEOF
20606#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20607_ACEOF
20608
20609fi
20610
20611done
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719 if test "x$ac_cv_header_winsock2_h" = "xyes"; then
20720  BUILD_WIN32_WRAPPERS_TRUE=
20721  BUILD_WIN32_WRAPPERS_FALSE='#'
20722else
20723  BUILD_WIN32_WRAPPERS_TRUE='#'
20724  BUILD_WIN32_WRAPPERS_FALSE=
20725fi
20726
20727if test "x$ac_cv_header_winsock2_h" = "xyes"; then :
20728  AM_LDFLAGS="$AM_LDFLAGS -lws2_32"
20729       AM_CFLAGS="$AM_CFLAGS $NO_WERROR"
20730       AM_CXXFLAGS="$AM_CXXFLAGS $NO_WERROR"
20731
20732fi
20733
20734# Checks for typedefs, structures, and compiler characteristics.
20735ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20736if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20737
20738cat >>confdefs.h <<_ACEOF
20739#define HAVE_PTRDIFF_T 1
20740_ACEOF
20741
20742
20743fi
20744
20745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20746$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20747if ${ac_cv_c_const+:} false; then :
20748  $as_echo_n "(cached) " >&6
20749else
20750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20751/* end confdefs.h.  */
20752
20753int
20754main ()
20755{
20756
20757#ifndef __cplusplus
20758  /* Ultrix mips cc rejects this sort of thing.  */
20759  typedef int charset[2];
20760  const charset cs = { 0, 0 };
20761  /* SunOS 4.1.1 cc rejects this.  */
20762  char const *const *pcpcc;
20763  char **ppc;
20764  /* NEC SVR4.0.2 mips cc rejects this.  */
20765  struct point {int x, y;};
20766  static struct point const zero = {0,0};
20767  /* AIX XL C 1.02.0.0 rejects this.
20768     It does not let you subtract one const X* pointer from another in
20769     an arm of an if-expression whose if-part is not a constant
20770     expression */
20771  const char *g = "string";
20772  pcpcc = &g + (g ? g-g : 0);
20773  /* HPUX 7.0 cc rejects these. */
20774  ++pcpcc;
20775  ppc = (char**) pcpcc;
20776  pcpcc = (char const *const *) ppc;
20777  { /* SCO 3.2v4 cc rejects this sort of thing.  */
20778    char tx;
20779    char *t = &tx;
20780    char const *s = 0 ? (char *) 0 : (char const *) 0;
20781
20782    *t++ = 0;
20783    if (s) return 0;
20784  }
20785  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20786    int x[] = {25, 17};
20787    const int *foo = &x[0];
20788    ++foo;
20789  }
20790  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20791    typedef const int *iptr;
20792    iptr p = 0;
20793    ++p;
20794  }
20795  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20796       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20797    struct s { int j; const int *ap[3]; } bx;
20798    struct s *b = &bx; b->j = 5;
20799  }
20800  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20801    const int foo = 10;
20802    if (!foo) return 0;
20803  }
20804  return !cs[0] && !zero.x;
20805#endif
20806
20807  ;
20808  return 0;
20809}
20810_ACEOF
20811if ac_fn_c_try_compile "$LINENO"; then :
20812  ac_cv_c_const=yes
20813else
20814  ac_cv_c_const=no
20815fi
20816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20817fi
20818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20819$as_echo "$ac_cv_c_const" >&6; }
20820if test $ac_cv_c_const = no; then
20821
20822$as_echo "#define const /**/" >>confdefs.h
20823
20824fi
20825
20826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
20827$as_echo_n "checking for inline... " >&6; }
20828if ${ac_cv_c_inline+:} false; then :
20829  $as_echo_n "(cached) " >&6
20830else
20831  ac_cv_c_inline=no
20832for ac_kw in inline __inline__ __inline; do
20833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20834/* end confdefs.h.  */
20835#ifndef __cplusplus
20836typedef int foo_t;
20837static $ac_kw foo_t static_foo () {return 0; }
20838$ac_kw foo_t foo () {return 0; }
20839#endif
20840
20841_ACEOF
20842if ac_fn_c_try_compile "$LINENO"; then :
20843  ac_cv_c_inline=$ac_kw
20844fi
20845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20846  test "$ac_cv_c_inline" != no && break
20847done
20848
20849fi
20850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
20851$as_echo "$ac_cv_c_inline" >&6; }
20852
20853case $ac_cv_c_inline in
20854  inline | yes) ;;
20855  *)
20856    case $ac_cv_c_inline in
20857      no) ac_val=;;
20858      *) ac_val=$ac_cv_c_inline;;
20859    esac
20860    cat >>confdefs.h <<_ACEOF
20861#ifndef __cplusplus
20862#define inline $ac_val
20863#endif
20864_ACEOF
20865    ;;
20866esac
20867
20868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
20869$as_echo_n "checking for working volatile... " >&6; }
20870if ${ac_cv_c_volatile+:} false; then :
20871  $as_echo_n "(cached) " >&6
20872else
20873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20874/* end confdefs.h.  */
20875
20876int
20877main ()
20878{
20879
20880volatile int x;
20881int * volatile y = (int *) 0;
20882return !x && !y;
20883  ;
20884  return 0;
20885}
20886_ACEOF
20887if ac_fn_c_try_compile "$LINENO"; then :
20888  ac_cv_c_volatile=yes
20889else
20890  ac_cv_c_volatile=no
20891fi
20892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20893fi
20894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
20895$as_echo "$ac_cv_c_volatile" >&6; }
20896if test $ac_cv_c_volatile = no; then
20897
20898$as_echo "#define volatile /**/" >>confdefs.h
20899
20900fi
20901
20902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20903$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20904if ${ac_cv_header_stdbool_h+:} false; then :
20905  $as_echo_n "(cached) " >&6
20906else
20907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20908/* end confdefs.h.  */
20909
20910             #include <stdbool.h>
20911             #ifndef bool
20912              "error: bool is not defined"
20913             #endif
20914             #ifndef false
20915              "error: false is not defined"
20916             #endif
20917             #if false
20918              "error: false is not 0"
20919             #endif
20920             #ifndef true
20921              "error: true is not defined"
20922             #endif
20923             #if true != 1
20924              "error: true is not 1"
20925             #endif
20926             #ifndef __bool_true_false_are_defined
20927              "error: __bool_true_false_are_defined is not defined"
20928             #endif
20929
20930             struct s { _Bool s: 1; _Bool t; } s;
20931
20932             char a[true == 1 ? 1 : -1];
20933             char b[false == 0 ? 1 : -1];
20934             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20935             char d[(bool) 0.5 == true ? 1 : -1];
20936             /* See body of main program for 'e'.  */
20937             char f[(_Bool) 0.0 == false ? 1 : -1];
20938             char g[true];
20939             char h[sizeof (_Bool)];
20940             char i[sizeof s.t];
20941             enum { j = false, k = true, l = false * true, m = true * 256 };
20942             /* The following fails for
20943                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20944             _Bool n[m];
20945             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20946             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20947             /* Catch a bug in an HP-UX C compiler.  See
20948                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20949                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20950              */
20951             _Bool q = true;
20952             _Bool *pq = &q;
20953
20954int
20955main ()
20956{
20957
20958             bool e = &s;
20959             *pq |= q;
20960             *pq |= ! q;
20961             /* Refer to every declared value, to avoid compiler optimizations.  */
20962             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20963                     + !m + !n + !o + !p + !q + !pq);
20964
20965  ;
20966  return 0;
20967}
20968_ACEOF
20969if ac_fn_c_try_compile "$LINENO"; then :
20970  ac_cv_header_stdbool_h=yes
20971else
20972  ac_cv_header_stdbool_h=no
20973fi
20974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20975fi
20976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20977$as_echo "$ac_cv_header_stdbool_h" >&6; }
20978   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20979if test "x$ac_cv_type__Bool" = xyes; then :
20980
20981cat >>confdefs.h <<_ACEOF
20982#define HAVE__BOOL 1
20983_ACEOF
20984
20985
20986fi
20987
20988
20989if test $ac_cv_header_stdbool_h = yes; then
20990
20991$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
20992
20993fi
20994
20995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20996$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20997if ${ac_cv_header_time+:} false; then :
20998  $as_echo_n "(cached) " >&6
20999else
21000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21001/* end confdefs.h.  */
21002#include <sys/types.h>
21003#include <sys/time.h>
21004#include <time.h>
21005
21006int
21007main ()
21008{
21009if ((struct tm *) 0)
21010return 0;
21011  ;
21012  return 0;
21013}
21014_ACEOF
21015if ac_fn_c_try_compile "$LINENO"; then :
21016  ac_cv_header_time=yes
21017else
21018  ac_cv_header_time=no
21019fi
21020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21021fi
21022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21023$as_echo "$ac_cv_header_time" >&6; }
21024if test $ac_cv_header_time = yes; then
21025
21026$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21027
21028fi
21029
21030ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
21031case $ac_cv_c_int32_t in #(
21032  no|yes) ;; #(
21033  *)
21034
21035cat >>confdefs.h <<_ACEOF
21036#define int32_t $ac_cv_c_int32_t
21037_ACEOF
21038;;
21039esac
21040
21041ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
21042case $ac_cv_c_int64_t in #(
21043  no|yes) ;; #(
21044  *)
21045
21046cat >>confdefs.h <<_ACEOF
21047#define int64_t $ac_cv_c_int64_t
21048_ACEOF
21049;;
21050esac
21051
21052ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21053if test "x$ac_cv_type_off_t" = xyes; then :
21054
21055else
21056
21057cat >>confdefs.h <<_ACEOF
21058#define off_t long int
21059_ACEOF
21060
21061fi
21062
21063ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21064if test "x$ac_cv_type_pid_t" = xyes; then :
21065
21066else
21067
21068cat >>confdefs.h <<_ACEOF
21069#define pid_t int
21070_ACEOF
21071
21072fi
21073
21074ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21075if test "x$ac_cv_type_size_t" = xyes; then :
21076
21077else
21078
21079cat >>confdefs.h <<_ACEOF
21080#define size_t unsigned int
21081_ACEOF
21082
21083fi
21084
21085ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21086if test "x$ac_cv_type_ssize_t" = xyes; then :
21087
21088else
21089
21090cat >>confdefs.h <<_ACEOF
21091#define ssize_t int
21092_ACEOF
21093
21094fi
21095
21096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
21097$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
21098if ${ac_cv_type_uid_t+:} false; then :
21099  $as_echo_n "(cached) " >&6
21100else
21101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21102/* end confdefs.h.  */
21103#include <sys/types.h>
21104
21105_ACEOF
21106if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21107  $EGREP "uid_t" >/dev/null 2>&1; then :
21108  ac_cv_type_uid_t=yes
21109else
21110  ac_cv_type_uid_t=no
21111fi
21112rm -f conftest*
21113
21114fi
21115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
21116$as_echo "$ac_cv_type_uid_t" >&6; }
21117if test $ac_cv_type_uid_t = no; then
21118
21119$as_echo "#define uid_t int" >>confdefs.h
21120
21121
21122$as_echo "#define gid_t int" >>confdefs.h
21123
21124fi
21125
21126ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
21127case $ac_cv_c_uint16_t in #(
21128  no|yes) ;; #(
21129  *)
21130
21131
21132cat >>confdefs.h <<_ACEOF
21133#define uint16_t $ac_cv_c_uint16_t
21134_ACEOF
21135;;
21136  esac
21137
21138ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
21139case $ac_cv_c_uint32_t in #(
21140  no|yes) ;; #(
21141  *)
21142
21143$as_echo "#define _UINT32_T 1" >>confdefs.h
21144
21145
21146cat >>confdefs.h <<_ACEOF
21147#define uint32_t $ac_cv_c_uint32_t
21148_ACEOF
21149;;
21150  esac
21151
21152ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
21153case $ac_cv_c_uint64_t in #(
21154  no|yes) ;; #(
21155  *)
21156
21157$as_echo "#define _UINT64_T 1" >>confdefs.h
21158
21159
21160cat >>confdefs.h <<_ACEOF
21161#define uint64_t $ac_cv_c_uint64_t
21162_ACEOF
21163;;
21164  esac
21165
21166ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
21167case $ac_cv_c_uint8_t in #(
21168  no|yes) ;; #(
21169  *)
21170
21171$as_echo "#define _UINT8_T 1" >>confdefs.h
21172
21173
21174cat >>confdefs.h <<_ACEOF
21175#define uint8_t $ac_cv_c_uint8_t
21176_ACEOF
21177;;
21178  esac
21179
21180
21181# Checks for library functions.
21182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
21183$as_echo_n "checking for error_at_line... " >&6; }
21184if ${ac_cv_lib_error_at_line+:} false; then :
21185  $as_echo_n "(cached) " >&6
21186else
21187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21188/* end confdefs.h.  */
21189#include <error.h>
21190int
21191main ()
21192{
21193error_at_line (0, 0, "", 0, "an error occurred");
21194  ;
21195  return 0;
21196}
21197_ACEOF
21198if ac_fn_c_try_link "$LINENO"; then :
21199  ac_cv_lib_error_at_line=yes
21200else
21201  ac_cv_lib_error_at_line=no
21202fi
21203rm -f core conftest.err conftest.$ac_objext \
21204    conftest$ac_exeext conftest.$ac_ext
21205fi
21206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
21207$as_echo "$ac_cv_lib_error_at_line" >&6; }
21208if test $ac_cv_lib_error_at_line = no; then
21209  case " $LIBOBJS " in
21210  *" error.$ac_objext "* ) ;;
21211  *) LIBOBJS="$LIBOBJS error.$ac_objext"
21212 ;;
21213esac
21214
21215fi
21216
21217for ac_header in vfork.h
21218do :
21219  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21220if test "x$ac_cv_header_vfork_h" = xyes; then :
21221  cat >>confdefs.h <<_ACEOF
21222#define HAVE_VFORK_H 1
21223_ACEOF
21224
21225fi
21226
21227done
21228
21229for ac_func in fork vfork
21230do :
21231  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21232ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21233if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21234  cat >>confdefs.h <<_ACEOF
21235#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21236_ACEOF
21237
21238fi
21239done
21240
21241if test "x$ac_cv_func_fork" = xyes; then
21242  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
21243$as_echo_n "checking for working fork... " >&6; }
21244if ${ac_cv_func_fork_works+:} false; then :
21245  $as_echo_n "(cached) " >&6
21246else
21247  if test "$cross_compiling" = yes; then :
21248  ac_cv_func_fork_works=cross
21249else
21250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21251/* end confdefs.h.  */
21252$ac_includes_default
21253int
21254main ()
21255{
21256
21257	  /* By Ruediger Kuhlmann. */
21258	  return fork () < 0;
21259
21260  ;
21261  return 0;
21262}
21263_ACEOF
21264if ac_fn_c_try_run "$LINENO"; then :
21265  ac_cv_func_fork_works=yes
21266else
21267  ac_cv_func_fork_works=no
21268fi
21269rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21270  conftest.$ac_objext conftest.beam conftest.$ac_ext
21271fi
21272
21273fi
21274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
21275$as_echo "$ac_cv_func_fork_works" >&6; }
21276
21277else
21278  ac_cv_func_fork_works=$ac_cv_func_fork
21279fi
21280if test "x$ac_cv_func_fork_works" = xcross; then
21281  case $host in
21282    *-*-amigaos* | *-*-msdosdjgpp*)
21283      # Override, as these systems have only a dummy fork() stub
21284      ac_cv_func_fork_works=no
21285      ;;
21286    *)
21287      ac_cv_func_fork_works=yes
21288      ;;
21289  esac
21290  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21291$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21292fi
21293ac_cv_func_vfork_works=$ac_cv_func_vfork
21294if test "x$ac_cv_func_vfork" = xyes; then
21295  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
21296$as_echo_n "checking for working vfork... " >&6; }
21297if ${ac_cv_func_vfork_works+:} false; then :
21298  $as_echo_n "(cached) " >&6
21299else
21300  if test "$cross_compiling" = yes; then :
21301  ac_cv_func_vfork_works=cross
21302else
21303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21304/* end confdefs.h.  */
21305/* Thanks to Paul Eggert for this test.  */
21306$ac_includes_default
21307#include <sys/wait.h>
21308#ifdef HAVE_VFORK_H
21309# include <vfork.h>
21310#endif
21311/* On some sparc systems, changes by the child to local and incoming
21312   argument registers are propagated back to the parent.  The compiler
21313   is told about this with #include <vfork.h>, but some compilers
21314   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
21315   static variable whose address is put into a register that is
21316   clobbered by the vfork.  */
21317static void
21318#ifdef __cplusplus
21319sparc_address_test (int arg)
21320# else
21321sparc_address_test (arg) int arg;
21322#endif
21323{
21324  static pid_t child;
21325  if (!child) {
21326    child = vfork ();
21327    if (child < 0) {
21328      perror ("vfork");
21329      _exit(2);
21330    }
21331    if (!child) {
21332      arg = getpid();
21333      write(-1, "", 0);
21334      _exit (arg);
21335    }
21336  }
21337}
21338
21339int
21340main ()
21341{
21342  pid_t parent = getpid ();
21343  pid_t child;
21344
21345  sparc_address_test (0);
21346
21347  child = vfork ();
21348
21349  if (child == 0) {
21350    /* Here is another test for sparc vfork register problems.  This
21351       test uses lots of local variables, at least as many local
21352       variables as main has allocated so far including compiler
21353       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
21354       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
21355       reuse the register of parent for one of the local variables,
21356       since it will think that parent can't possibly be used any more
21357       in this routine.  Assigning to the local variable will thus
21358       munge parent in the parent process.  */
21359    pid_t
21360      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21361      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21362    /* Convince the compiler that p..p7 are live; otherwise, it might
21363       use the same hardware register for all 8 local variables.  */
21364    if (p != p1 || p != p2 || p != p3 || p != p4
21365	|| p != p5 || p != p6 || p != p7)
21366      _exit(1);
21367
21368    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21369       from child file descriptors.  If the child closes a descriptor
21370       before it execs or exits, this munges the parent's descriptor
21371       as well.  Test for this by closing stdout in the child.  */
21372    _exit(close(fileno(stdout)) != 0);
21373  } else {
21374    int status;
21375    struct stat st;
21376
21377    while (wait(&status) != child)
21378      ;
21379    return (
21380	 /* Was there some problem with vforking?  */
21381	 child < 0
21382
21383	 /* Did the child fail?  (This shouldn't happen.)  */
21384	 || status
21385
21386	 /* Did the vfork/compiler bug occur?  */
21387	 || parent != getpid()
21388
21389	 /* Did the file descriptor bug occur?  */
21390	 || fstat(fileno(stdout), &st) != 0
21391	 );
21392  }
21393}
21394_ACEOF
21395if ac_fn_c_try_run "$LINENO"; then :
21396  ac_cv_func_vfork_works=yes
21397else
21398  ac_cv_func_vfork_works=no
21399fi
21400rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21401  conftest.$ac_objext conftest.beam conftest.$ac_ext
21402fi
21403
21404fi
21405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
21406$as_echo "$ac_cv_func_vfork_works" >&6; }
21407
21408fi;
21409if test "x$ac_cv_func_fork_works" = xcross; then
21410  ac_cv_func_vfork_works=$ac_cv_func_vfork
21411  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21412$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21413fi
21414
21415if test "x$ac_cv_func_vfork_works" = xyes; then
21416
21417$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21418
21419else
21420
21421$as_echo "#define vfork fork" >>confdefs.h
21422
21423fi
21424if test "x$ac_cv_func_fork_works" = xyes; then
21425
21426$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
21427
21428fi
21429
21430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
21431$as_echo_n "checking for working memcmp... " >&6; }
21432if ${ac_cv_func_memcmp_working+:} false; then :
21433  $as_echo_n "(cached) " >&6
21434else
21435  if test "$cross_compiling" = yes; then :
21436  ac_cv_func_memcmp_working=no
21437else
21438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21439/* end confdefs.h.  */
21440$ac_includes_default
21441int
21442main ()
21443{
21444
21445  /* Some versions of memcmp are not 8-bit clean.  */
21446  char c0 = '\100', c1 = '\200', c2 = '\201';
21447  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21448    return 1;
21449
21450  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21451     or more and with at least one buffer not starting on a 4-byte boundary.
21452     William Lewis provided this test program.   */
21453  {
21454    char foo[21];
21455    char bar[21];
21456    int i;
21457    for (i = 0; i < 4; i++)
21458      {
21459	char *a = foo + i;
21460	char *b = bar + i;
21461	strcpy (a, "--------01111111");
21462	strcpy (b, "--------10000000");
21463	if (memcmp (a, b, 16) >= 0)
21464	  return 1;
21465      }
21466    return 0;
21467  }
21468
21469  ;
21470  return 0;
21471}
21472_ACEOF
21473if ac_fn_c_try_run "$LINENO"; then :
21474  ac_cv_func_memcmp_working=yes
21475else
21476  ac_cv_func_memcmp_working=no
21477fi
21478rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21479  conftest.$ac_objext conftest.beam conftest.$ac_ext
21480fi
21481
21482fi
21483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
21484$as_echo "$ac_cv_func_memcmp_working" >&6; }
21485test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
21486  *" memcmp.$ac_objext "* ) ;;
21487  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21488 ;;
21489esac
21490
21491
21492ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
21493if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
21494  ac_have_decl=1
21495else
21496  ac_have_decl=0
21497fi
21498
21499cat >>confdefs.h <<_ACEOF
21500#define HAVE_DECL_STRERROR_R $ac_have_decl
21501_ACEOF
21502
21503for ac_func in strerror_r
21504do :
21505  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
21506if test "x$ac_cv_func_strerror_r" = xyes; then :
21507  cat >>confdefs.h <<_ACEOF
21508#define HAVE_STRERROR_R 1
21509_ACEOF
21510
21511fi
21512done
21513
21514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
21515$as_echo_n "checking whether strerror_r returns char *... " >&6; }
21516if ${ac_cv_func_strerror_r_char_p+:} false; then :
21517  $as_echo_n "(cached) " >&6
21518else
21519
21520    ac_cv_func_strerror_r_char_p=no
21521    if test $ac_cv_have_decl_strerror_r = yes; then
21522      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21523/* end confdefs.h.  */
21524$ac_includes_default
21525int
21526main ()
21527{
21528
21529	  char buf[100];
21530	  char x = *strerror_r (0, buf, sizeof buf);
21531	  char *p = strerror_r (0, buf, sizeof buf);
21532	  return !p || x;
21533
21534  ;
21535  return 0;
21536}
21537_ACEOF
21538if ac_fn_c_try_compile "$LINENO"; then :
21539  ac_cv_func_strerror_r_char_p=yes
21540fi
21541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21542    else
21543      # strerror_r is not declared.  Choose between
21544      # systems that have relatively inaccessible declarations for the
21545      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
21546      # former has a strerror_r that returns char*, while the latter
21547      # has a strerror_r that returns `int'.
21548      # This test should segfault on the DEC system.
21549      if test "$cross_compiling" = yes; then :
21550  :
21551else
21552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21553/* end confdefs.h.  */
21554$ac_includes_default
21555	extern char *strerror_r ();
21556int
21557main ()
21558{
21559char buf[100];
21560	  char x = *strerror_r (0, buf, sizeof buf);
21561	  return ! isalpha (x);
21562  ;
21563  return 0;
21564}
21565_ACEOF
21566if ac_fn_c_try_run "$LINENO"; then :
21567  ac_cv_func_strerror_r_char_p=yes
21568fi
21569rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21570  conftest.$ac_objext conftest.beam conftest.$ac_ext
21571fi
21572
21573    fi
21574
21575fi
21576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
21577$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
21578if test $ac_cv_func_strerror_r_char_p = yes; then
21579
21580$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
21581
21582fi
21583
21584for ac_func in vprintf
21585do :
21586  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
21587if test "x$ac_cv_func_vprintf" = xyes; then :
21588  cat >>confdefs.h <<_ACEOF
21589#define HAVE_VPRINTF 1
21590_ACEOF
21591
21592ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
21593if test "x$ac_cv_func__doprnt" = xyes; then :
21594
21595$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
21596
21597fi
21598
21599fi
21600done
21601
21602
21603# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21604# for constant arguments.  Useless!
21605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
21606$as_echo_n "checking for working alloca.h... " >&6; }
21607if ${ac_cv_working_alloca_h+:} false; then :
21608  $as_echo_n "(cached) " >&6
21609else
21610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21611/* end confdefs.h.  */
21612#include <alloca.h>
21613int
21614main ()
21615{
21616char *p = (char *) alloca (2 * sizeof (int));
21617			  if (p) return 0;
21618  ;
21619  return 0;
21620}
21621_ACEOF
21622if ac_fn_c_try_link "$LINENO"; then :
21623  ac_cv_working_alloca_h=yes
21624else
21625  ac_cv_working_alloca_h=no
21626fi
21627rm -f core conftest.err conftest.$ac_objext \
21628    conftest$ac_exeext conftest.$ac_ext
21629fi
21630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
21631$as_echo "$ac_cv_working_alloca_h" >&6; }
21632if test $ac_cv_working_alloca_h = yes; then
21633
21634$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
21635
21636fi
21637
21638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
21639$as_echo_n "checking for alloca... " >&6; }
21640if ${ac_cv_func_alloca_works+:} false; then :
21641  $as_echo_n "(cached) " >&6
21642else
21643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21644/* end confdefs.h.  */
21645#ifdef __GNUC__
21646# define alloca __builtin_alloca
21647#else
21648# ifdef _MSC_VER
21649#  include <malloc.h>
21650#  define alloca _alloca
21651# else
21652#  ifdef HAVE_ALLOCA_H
21653#   include <alloca.h>
21654#  else
21655#   ifdef _AIX
21656 #pragma alloca
21657#   else
21658#    ifndef alloca /* predefined by HP cc +Olibcalls */
21659void *alloca (size_t);
21660#    endif
21661#   endif
21662#  endif
21663# endif
21664#endif
21665
21666int
21667main ()
21668{
21669char *p = (char *) alloca (1);
21670				    if (p) return 0;
21671  ;
21672  return 0;
21673}
21674_ACEOF
21675if ac_fn_c_try_link "$LINENO"; then :
21676  ac_cv_func_alloca_works=yes
21677else
21678  ac_cv_func_alloca_works=no
21679fi
21680rm -f core conftest.err conftest.$ac_objext \
21681    conftest$ac_exeext conftest.$ac_ext
21682fi
21683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
21684$as_echo "$ac_cv_func_alloca_works" >&6; }
21685
21686if test $ac_cv_func_alloca_works = yes; then
21687
21688$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21689
21690else
21691  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21692# that cause trouble.  Some versions do not even contain alloca or
21693# contain a buggy version.  If you still want to use their alloca,
21694# use ar to extract alloca.o from them instead of compiling alloca.c.
21695
21696ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21697
21698$as_echo "#define C_ALLOCA 1" >>confdefs.h
21699
21700
21701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
21702$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
21703if ${ac_cv_os_cray+:} false; then :
21704  $as_echo_n "(cached) " >&6
21705else
21706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21707/* end confdefs.h.  */
21708#if defined CRAY && ! defined CRAY2
21709webecray
21710#else
21711wenotbecray
21712#endif
21713
21714_ACEOF
21715if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21716  $EGREP "webecray" >/dev/null 2>&1; then :
21717  ac_cv_os_cray=yes
21718else
21719  ac_cv_os_cray=no
21720fi
21721rm -f conftest*
21722
21723fi
21724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
21725$as_echo "$ac_cv_os_cray" >&6; }
21726if test $ac_cv_os_cray = yes; then
21727  for ac_func in _getb67 GETB67 getb67; do
21728    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21729ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21730if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21731
21732cat >>confdefs.h <<_ACEOF
21733#define CRAY_STACKSEG_END $ac_func
21734_ACEOF
21735
21736    break
21737fi
21738
21739  done
21740fi
21741
21742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
21743$as_echo_n "checking stack direction for C alloca... " >&6; }
21744if ${ac_cv_c_stack_direction+:} false; then :
21745  $as_echo_n "(cached) " >&6
21746else
21747  if test "$cross_compiling" = yes; then :
21748  ac_cv_c_stack_direction=0
21749else
21750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21751/* end confdefs.h.  */
21752$ac_includes_default
21753int
21754find_stack_direction (int *addr, int depth)
21755{
21756  int dir, dummy = 0;
21757  if (! addr)
21758    addr = &dummy;
21759  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
21760  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
21761  return dir + dummy;
21762}
21763
21764int
21765main (int argc, char **argv)
21766{
21767  return find_stack_direction (0, argc + !argv + 20) < 0;
21768}
21769_ACEOF
21770if ac_fn_c_try_run "$LINENO"; then :
21771  ac_cv_c_stack_direction=1
21772else
21773  ac_cv_c_stack_direction=-1
21774fi
21775rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21776  conftest.$ac_objext conftest.beam conftest.$ac_ext
21777fi
21778
21779fi
21780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
21781$as_echo "$ac_cv_c_stack_direction" >&6; }
21782cat >>confdefs.h <<_ACEOF
21783#define STACK_DIRECTION $ac_cv_c_stack_direction
21784_ACEOF
21785
21786
21787fi
21788
21789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
21790$as_echo_n "checking for mbstate_t... " >&6; }
21791if ${ac_cv_type_mbstate_t+:} false; then :
21792  $as_echo_n "(cached) " >&6
21793else
21794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21795/* end confdefs.h.  */
21796$ac_includes_default
21797#	    include <wchar.h>
21798int
21799main ()
21800{
21801mbstate_t x; return sizeof x;
21802  ;
21803  return 0;
21804}
21805_ACEOF
21806if ac_fn_c_try_compile "$LINENO"; then :
21807  ac_cv_type_mbstate_t=yes
21808else
21809  ac_cv_type_mbstate_t=no
21810fi
21811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21812fi
21813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
21814$as_echo "$ac_cv_type_mbstate_t" >&6; }
21815   if test $ac_cv_type_mbstate_t = yes; then
21816
21817$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
21818
21819   else
21820
21821$as_echo "#define mbstate_t int" >>confdefs.h
21822
21823   fi
21824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5
21825$as_echo_n "checking for working POSIX fnmatch... " >&6; }
21826if ${ac_cv_func_fnmatch_works+:} false; then :
21827  $as_echo_n "(cached) " >&6
21828else
21829  # Some versions of Solaris, SCO, and the GNU C Library
21830   # have a broken or incompatible fnmatch.
21831   # So we run a test program.  If we are cross-compiling, take no chance.
21832   # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
21833   if test "$cross_compiling" = yes; then :
21834  ac_cv_func_fnmatch_works=cross
21835else
21836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21837/* end confdefs.h.  */
21838#include <fnmatch.h>
21839#	   define y(a, b, c) (fnmatch (a, b, c) == 0)
21840#	   define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
21841
21842int
21843main ()
21844{
21845return
21846	   (!(y ("a*", "abc", 0)
21847	      && n ("d*/*1", "d/s/1", FNM_PATHNAME)
21848	      && y ("a\\\\bc", "abc", 0)
21849	      && n ("a\\\\bc", "abc", FNM_NOESCAPE)
21850	      && y ("*x", ".x", 0)
21851	      && n ("*x", ".x", FNM_PERIOD)
21852	      && 1));
21853  ;
21854  return 0;
21855}
21856_ACEOF
21857if ac_fn_c_try_run "$LINENO"; then :
21858  ac_cv_func_fnmatch_works=yes
21859else
21860  ac_cv_func_fnmatch_works=no
21861fi
21862rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21863  conftest.$ac_objext conftest.beam conftest.$ac_ext
21864fi
21865
21866fi
21867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5
21868$as_echo "$ac_cv_func_fnmatch_works" >&6; }
21869if test $ac_cv_func_fnmatch_works = yes; then :
21870  rm -f "$ac_config_libobj_dir/fnmatch.h"
21871else
21872  ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
21873if test "x$ac_cv_have_decl_getenv" = xyes; then :
21874  ac_have_decl=1
21875else
21876  ac_have_decl=0
21877fi
21878
21879cat >>confdefs.h <<_ACEOF
21880#define HAVE_DECL_GETENV $ac_have_decl
21881_ACEOF
21882
21883for ac_func in btowc mbsrtowcs mempcpy wmempcpy
21884do :
21885  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21886ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21887if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21888  cat >>confdefs.h <<_ACEOF
21889#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21890_ACEOF
21891
21892fi
21893done
21894
21895for ac_header in wchar.h wctype.h
21896do :
21897  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21898ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21899if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21900  cat >>confdefs.h <<_ACEOF
21901#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21902_ACEOF
21903
21904fi
21905
21906done
21907
21908case " $LIBOBJS " in
21909  *" fnmatch.$ac_objext "* ) ;;
21910  *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
21911 ;;
21912esac
21913
21914ac_config_links="$ac_config_links $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h"
21915
21916
21917$as_echo "#define fnmatch rpl_fnmatch" >>confdefs.h
21918
21919
21920fi
21921
21922
21923for ac_func in accept4
21924do :
21925  ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
21926if test "x$ac_cv_func_accept4" = xyes; then :
21927  cat >>confdefs.h <<_ACEOF
21928#define HAVE_ACCEPT4 1
21929_ACEOF
21930
21931fi
21932done
21933
21934for ac_func in dup2
21935do :
21936  ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
21937if test "x$ac_cv_func_dup2" = xyes; then :
21938  cat >>confdefs.h <<_ACEOF
21939#define HAVE_DUP2 1
21940_ACEOF
21941
21942fi
21943done
21944
21945for ac_func in gettimeofday
21946do :
21947  ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
21948if test "x$ac_cv_func_gettimeofday" = xyes; then :
21949  cat >>confdefs.h <<_ACEOF
21950#define HAVE_GETTIMEOFDAY 1
21951_ACEOF
21952
21953fi
21954done
21955
21956for ac_func in memchr
21957do :
21958  ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
21959if test "x$ac_cv_func_memchr" = xyes; then :
21960  cat >>confdefs.h <<_ACEOF
21961#define HAVE_MEMCHR 1
21962_ACEOF
21963
21964fi
21965done
21966
21967for ac_func in memmove
21968do :
21969  ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
21970if test "x$ac_cv_func_memmove" = xyes; then :
21971  cat >>confdefs.h <<_ACEOF
21972#define HAVE_MEMMOVE 1
21973_ACEOF
21974
21975fi
21976done
21977
21978for ac_func in memset
21979do :
21980  ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
21981if test "x$ac_cv_func_memset" = xyes; then :
21982  cat >>confdefs.h <<_ACEOF
21983#define HAVE_MEMSET 1
21984_ACEOF
21985
21986fi
21987done
21988
21989for ac_func in pipe
21990do :
21991  ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe"
21992if test "x$ac_cv_func_pipe" = xyes; then :
21993  cat >>confdefs.h <<_ACEOF
21994#define HAVE_PIPE 1
21995_ACEOF
21996
21997fi
21998done
21999
22000for ac_func in pipe2
22001do :
22002  ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2"
22003if test "x$ac_cv_func_pipe2" = xyes; then :
22004  cat >>confdefs.h <<_ACEOF
22005#define HAVE_PIPE2 1
22006_ACEOF
22007
22008fi
22009done
22010
22011for ac_func in select
22012do :
22013  ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
22014if test "x$ac_cv_func_select" = xyes; then :
22015  cat >>confdefs.h <<_ACEOF
22016#define HAVE_SELECT 1
22017_ACEOF
22018
22019fi
22020done
22021
22022for ac_func in setenv
22023do :
22024  ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
22025if test "x$ac_cv_func_setenv" = xyes; then :
22026  cat >>confdefs.h <<_ACEOF
22027#define HAVE_SETENV 1
22028_ACEOF
22029
22030fi
22031done
22032
22033for ac_func in socket
22034do :
22035  ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22036if test "x$ac_cv_func_socket" = xyes; then :
22037  cat >>confdefs.h <<_ACEOF
22038#define HAVE_SOCKET 1
22039_ACEOF
22040
22041fi
22042done
22043
22044for ac_func in strcasecmp
22045do :
22046  ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
22047if test "x$ac_cv_func_strcasecmp" = xyes; then :
22048  cat >>confdefs.h <<_ACEOF
22049#define HAVE_STRCASECMP 1
22050_ACEOF
22051
22052fi
22053done
22054
22055for ac_func in strdup
22056do :
22057  ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
22058if test "x$ac_cv_func_strdup" = xyes; then :
22059  cat >>confdefs.h <<_ACEOF
22060#define HAVE_STRDUP 1
22061_ACEOF
22062
22063fi
22064done
22065
22066for ac_func in strerror
22067do :
22068  ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
22069if test "x$ac_cv_func_strerror" = xyes; then :
22070  cat >>confdefs.h <<_ACEOF
22071#define HAVE_STRERROR 1
22072_ACEOF
22073
22074fi
22075done
22076
22077for ac_func in strncasecmp
22078do :
22079  ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
22080if test "x$ac_cv_func_strncasecmp" = xyes; then :
22081  cat >>confdefs.h <<_ACEOF
22082#define HAVE_STRNCASECMP 1
22083_ACEOF
22084
22085fi
22086done
22087
22088for ac_func in strtol
22089do :
22090  ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
22091if test "x$ac_cv_func_strtol" = xyes; then :
22092  cat >>confdefs.h <<_ACEOF
22093#define HAVE_STRTOL 1
22094_ACEOF
22095
22096fi
22097done
22098
22099for ac_func in strtoul
22100do :
22101  ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
22102if test "x$ac_cv_func_strtoul" = xyes; then :
22103  cat >>confdefs.h <<_ACEOF
22104#define HAVE_STRTOUL 1
22105_ACEOF
22106
22107fi
22108done
22109
22110for ac_func in uname
22111do :
22112  ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
22113if test "x$ac_cv_func_uname" = xyes; then :
22114  cat >>confdefs.h <<_ACEOF
22115#define HAVE_UNAME 1
22116_ACEOF
22117
22118fi
22119done
22120
22121for ac_func in atexit
22122do :
22123  ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
22124if test "x$ac_cv_func_atexit" = xyes; then :
22125  cat >>confdefs.h <<_ACEOF
22126#define HAVE_ATEXIT 1
22127_ACEOF
22128
22129fi
22130done
22131
22132for ac_func in clock_gettime
22133do :
22134  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
22135if test "x$ac_cv_func_clock_gettime" = xyes; then :
22136  cat >>confdefs.h <<_ACEOF
22137#define HAVE_CLOCK_GETTIME 1
22138_ACEOF
22139
22140fi
22141done
22142
22143for ac_func in getcwd
22144do :
22145  ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
22146if test "x$ac_cv_func_getcwd" = xyes; then :
22147  cat >>confdefs.h <<_ACEOF
22148#define HAVE_GETCWD 1
22149_ACEOF
22150
22151fi
22152done
22153
22154for ac_func in strstr
22155do :
22156  ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
22157if test "x$ac_cv_func_strstr" = xyes; then :
22158  cat >>confdefs.h <<_ACEOF
22159#define HAVE_STRSTR 1
22160_ACEOF
22161
22162fi
22163done
22164
22165ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
22166if test "x$ac_cv_func_setsockopt" = xyes; then :
22167
22168else
22169  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
22170$as_echo_n "checking for setsockopt in -lsocket... " >&6; }
22171if ${ac_cv_lib_socket_setsockopt+:} false; then :
22172  $as_echo_n "(cached) " >&6
22173else
22174  ac_check_lib_save_LIBS=$LIBS
22175LIBS="-lsocket  $LIBS"
22176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22177/* end confdefs.h.  */
22178
22179/* Override any GCC internal prototype to avoid an error.
22180   Use char because int might match the return type of a GCC
22181   builtin and then its argument prototype would still apply.  */
22182#ifdef __cplusplus
22183extern "C"
22184#endif
22185char setsockopt ();
22186int
22187main ()
22188{
22189return setsockopt ();
22190  ;
22191  return 0;
22192}
22193_ACEOF
22194if ac_fn_c_try_link "$LINENO"; then :
22195  ac_cv_lib_socket_setsockopt=yes
22196else
22197  ac_cv_lib_socket_setsockopt=no
22198fi
22199rm -f core conftest.err conftest.$ac_objext \
22200    conftest$ac_exeext conftest.$ac_ext
22201LIBS=$ac_check_lib_save_LIBS
22202fi
22203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
22204$as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
22205if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
22206  cat >>confdefs.h <<_ACEOF
22207#define HAVE_LIBSOCKET 1
22208_ACEOF
22209
22210  LIBS="-lsocket $LIBS"
22211
22212fi
22213
22214fi
22215
22216ac_fn_c_check_func "$LINENO" "bind" "ac_cv_func_bind"
22217if test "x$ac_cv_func_bind" = xyes; then :
22218
22219else
22220  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lbind" >&5
22221$as_echo_n "checking for bind in -lbind... " >&6; }
22222if ${ac_cv_lib_bind_bind+:} false; then :
22223  $as_echo_n "(cached) " >&6
22224else
22225  ac_check_lib_save_LIBS=$LIBS
22226LIBS="-lbind  $LIBS"
22227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22228/* end confdefs.h.  */
22229
22230/* Override any GCC internal prototype to avoid an error.
22231   Use char because int might match the return type of a GCC
22232   builtin and then its argument prototype would still apply.  */
22233#ifdef __cplusplus
22234extern "C"
22235#endif
22236char bind ();
22237int
22238main ()
22239{
22240return bind ();
22241  ;
22242  return 0;
22243}
22244_ACEOF
22245if ac_fn_c_try_link "$LINENO"; then :
22246  ac_cv_lib_bind_bind=yes
22247else
22248  ac_cv_lib_bind_bind=no
22249fi
22250rm -f core conftest.err conftest.$ac_objext \
22251    conftest$ac_exeext conftest.$ac_ext
22252LIBS=$ac_check_lib_save_LIBS
22253fi
22254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_bind" >&5
22255$as_echo "$ac_cv_lib_bind_bind" >&6; }
22256if test "x$ac_cv_lib_bind_bind" = xyes; then :
22257  cat >>confdefs.h <<_ACEOF
22258#define HAVE_LIBBIND 1
22259_ACEOF
22260
22261  LIBS="-lbind $LIBS"
22262
22263fi
22264
22265fi
22266
22267
22268
22269# Check for the ability to call dlopen (used in libhostile)
22270if test "x$enable_shared" = xyes; then :
22271
22272
22273
22274    if ${ax_cv_have_DL+:} false; then :
22275  $as_echo_n "(cached) " >&6
22276else
22277
22278  CPPFLAGS_save="${CPPFLAGS}"
22279  CFLAGS_save="${CFLAGS}"
22280  CXXFLAGS_save="${CXXFLAGS}"
22281  OBJCFLAGS_save="${OBJCFLAGS}"
22282  LDFLAGS_save="${LDFLAGS}"
22283  LIBS_save="${LIBS}"
22284
22285
22286      if test "x$DL_CPPFLAGS" != "x"; then :
22287  CPPFLAGS="$CPPFLAGS $DL_CPPFLAGS"
22288fi
22289
22290      if test "x$DL_LDFLAGS" != "x"; then :
22291  LDFLAGS="$LDFLAGS $DL_LDFLAGS"
22292fi
22293
22294      ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
22295if test "x$ac_cv_header_dlfcn_h" = xyes; then :
22296
22297        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
22298$as_echo_n "checking for main in -ldl... " >&6; }
22299if ${ac_cv_lib_dl_main+:} false; then :
22300  $as_echo_n "(cached) " >&6
22301else
22302  ac_check_lib_save_LIBS=$LIBS
22303LIBS="-ldl  $LIBS"
22304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22305/* end confdefs.h.  */
22306
22307
22308int
22309main ()
22310{
22311return main ();
22312  ;
22313  return 0;
22314}
22315_ACEOF
22316if ac_fn_c_try_link "$LINENO"; then :
22317  ac_cv_lib_dl_main=yes
22318else
22319  ac_cv_lib_dl_main=no
22320fi
22321rm -f core conftest.err conftest.$ac_objext \
22322    conftest$ac_exeext conftest.$ac_ext
22323LIBS=$ac_check_lib_save_LIBS
22324fi
22325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
22326$as_echo "$ac_cv_lib_dl_main" >&6; }
22327if test "x$ac_cv_lib_dl_main" = xyes; then :
22328  ax_cv_have_DL=yes
22329else
22330  ax_cv_have_DL=no
22331fi
22332
22333
22334else
22335  ax_cv_have_DL=no
22336fi
22337
22338
22339
22340
22341  CPPFLAGS="${CPPFLAGS_save}"
22342  CFLAGS="${CFLAGS_save}"
22343  CXXFLAGS="${CXXFLAGS_save}"
22344  OBJCFLAGS="${OBJCFLAGS_save}"
22345  LDFLAGS="${LDFLAGS_save}"
22346  LIBS="${LIBS_save}"
22347
22348
22349fi
22350
22351
22352    if test "$ax_cv_have_DL" = "yes"; then :
22353
22354$as_echo "#define HAVE_DL 1" >>confdefs.h
22355
22356
22357
22358        DL_LIB=-ldl
22359
22360
22361$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
22362
22363        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22364$as_echo_n "checking for dlopen in -ldl... " >&6; }
22365if ${ac_cv_lib_dl_dlopen+:} false; then :
22366  $as_echo_n "(cached) " >&6
22367else
22368  ac_check_lib_save_LIBS=$LIBS
22369LIBS="-ldl  $LIBS"
22370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22371/* end confdefs.h.  */
22372
22373/* Override any GCC internal prototype to avoid an error.
22374   Use char because int might match the return type of a GCC
22375   builtin and then its argument prototype would still apply.  */
22376#ifdef __cplusplus
22377extern "C"
22378#endif
22379char dlopen ();
22380int
22381main ()
22382{
22383return dlopen ();
22384  ;
22385  return 0;
22386}
22387_ACEOF
22388if ac_fn_c_try_link "$LINENO"; then :
22389  ac_cv_lib_dl_dlopen=yes
22390else
22391  ac_cv_lib_dl_dlopen=no
22392fi
22393rm -f core conftest.err conftest.$ac_objext \
22394    conftest$ac_exeext conftest.$ac_ext
22395LIBS=$ac_check_lib_save_LIBS
22396fi
22397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22398$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22399if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
22400
22401$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22402
22403fi
22404
22405        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
22406$as_echo_n "checking for dladdr in -ldl... " >&6; }
22407if ${ac_cv_lib_dl_dladdr+:} false; then :
22408  $as_echo_n "(cached) " >&6
22409else
22410  ac_check_lib_save_LIBS=$LIBS
22411LIBS="-ldl  $LIBS"
22412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22413/* end confdefs.h.  */
22414
22415/* Override any GCC internal prototype to avoid an error.
22416   Use char because int might match the return type of a GCC
22417   builtin and then its argument prototype would still apply.  */
22418#ifdef __cplusplus
22419extern "C"
22420#endif
22421char dladdr ();
22422int
22423main ()
22424{
22425return dladdr ();
22426  ;
22427  return 0;
22428}
22429_ACEOF
22430if ac_fn_c_try_link "$LINENO"; then :
22431  ac_cv_lib_dl_dladdr=yes
22432else
22433  ac_cv_lib_dl_dladdr=no
22434fi
22435rm -f core conftest.err conftest.$ac_objext \
22436    conftest$ac_exeext conftest.$ac_ext
22437LIBS=$ac_check_lib_save_LIBS
22438fi
22439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
22440$as_echo "$ac_cv_lib_dl_dladdr" >&6; }
22441if test "x$ac_cv_lib_dl_dladdr" = xyes; then :
22442
22443$as_echo "#define HAVE_DLADDR 1" >>confdefs.h
22444
22445fi
22446
22447else
22448  :
22449fi
22450
22451fi
22452
22453
22454# Check for -lrt
22455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22456$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22457if ${ac_cv_lib_rt_clock_gettime+:} false; then :
22458  $as_echo_n "(cached) " >&6
22459else
22460  ac_check_lib_save_LIBS=$LIBS
22461LIBS="-lrt  $LIBS"
22462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22463/* end confdefs.h.  */
22464
22465/* Override any GCC internal prototype to avoid an error.
22466   Use char because int might match the return type of a GCC
22467   builtin and then its argument prototype would still apply.  */
22468#ifdef __cplusplus
22469extern "C"
22470#endif
22471char clock_gettime ();
22472int
22473main ()
22474{
22475return clock_gettime ();
22476  ;
22477  return 0;
22478}
22479_ACEOF
22480if ac_fn_c_try_link "$LINENO"; then :
22481  ac_cv_lib_rt_clock_gettime=yes
22482else
22483  ac_cv_lib_rt_clock_gettime=no
22484fi
22485rm -f core conftest.err conftest.$ac_objext \
22486    conftest$ac_exeext conftest.$ac_ext
22487LIBS=$ac_check_lib_save_LIBS
22488fi
22489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22490$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22491if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
22492  RT_LIB=-lrt
22493
22494
22495$as_echo "#define HAVE_LIBRT 1" >>confdefs.h
22496
22497
22498fi
22499
22500
22501# Check for -lm
22502LIBM=
22503case $host in
22504*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
22505  # These system don't have libm, or don't need it
22506  ;;
22507*-ncr-sysv4.3*)
22508  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
22509$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
22510if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
22511  $as_echo_n "(cached) " >&6
22512else
22513  ac_check_lib_save_LIBS=$LIBS
22514LIBS="-lmw  $LIBS"
22515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22516/* end confdefs.h.  */
22517
22518/* Override any GCC internal prototype to avoid an error.
22519   Use char because int might match the return type of a GCC
22520   builtin and then its argument prototype would still apply.  */
22521#ifdef __cplusplus
22522extern "C"
22523#endif
22524char _mwvalidcheckl ();
22525int
22526main ()
22527{
22528return _mwvalidcheckl ();
22529  ;
22530  return 0;
22531}
22532_ACEOF
22533if ac_fn_c_try_link "$LINENO"; then :
22534  ac_cv_lib_mw__mwvalidcheckl=yes
22535else
22536  ac_cv_lib_mw__mwvalidcheckl=no
22537fi
22538rm -f core conftest.err conftest.$ac_objext \
22539    conftest$ac_exeext conftest.$ac_ext
22540LIBS=$ac_check_lib_save_LIBS
22541fi
22542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
22543$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
22544if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
22545  LIBM="-lmw"
22546fi
22547
22548  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
22549$as_echo_n "checking for cos in -lm... " >&6; }
22550if ${ac_cv_lib_m_cos+:} false; then :
22551  $as_echo_n "(cached) " >&6
22552else
22553  ac_check_lib_save_LIBS=$LIBS
22554LIBS="-lm  $LIBS"
22555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22556/* end confdefs.h.  */
22557
22558/* Override any GCC internal prototype to avoid an error.
22559   Use char because int might match the return type of a GCC
22560   builtin and then its argument prototype would still apply.  */
22561#ifdef __cplusplus
22562extern "C"
22563#endif
22564char cos ();
22565int
22566main ()
22567{
22568return cos ();
22569  ;
22570  return 0;
22571}
22572_ACEOF
22573if ac_fn_c_try_link "$LINENO"; then :
22574  ac_cv_lib_m_cos=yes
22575else
22576  ac_cv_lib_m_cos=no
22577fi
22578rm -f core conftest.err conftest.$ac_objext \
22579    conftest$ac_exeext conftest.$ac_ext
22580LIBS=$ac_check_lib_save_LIBS
22581fi
22582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
22583$as_echo "$ac_cv_lib_m_cos" >&6; }
22584if test "x$ac_cv_lib_m_cos" = xyes; then :
22585  LIBM="$LIBM -lm"
22586fi
22587
22588  ;;
22589*)
22590  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
22591$as_echo_n "checking for cos in -lm... " >&6; }
22592if ${ac_cv_lib_m_cos+:} false; then :
22593  $as_echo_n "(cached) " >&6
22594else
22595  ac_check_lib_save_LIBS=$LIBS
22596LIBS="-lm  $LIBS"
22597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22598/* end confdefs.h.  */
22599
22600/* Override any GCC internal prototype to avoid an error.
22601   Use char because int might match the return type of a GCC
22602   builtin and then its argument prototype would still apply.  */
22603#ifdef __cplusplus
22604extern "C"
22605#endif
22606char cos ();
22607int
22608main ()
22609{
22610return cos ();
22611  ;
22612  return 0;
22613}
22614_ACEOF
22615if ac_fn_c_try_link "$LINENO"; then :
22616  ac_cv_lib_m_cos=yes
22617else
22618  ac_cv_lib_m_cos=no
22619fi
22620rm -f core conftest.err conftest.$ac_objext \
22621    conftest$ac_exeext conftest.$ac_ext
22622LIBS=$ac_check_lib_save_LIBS
22623fi
22624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
22625$as_echo "$ac_cv_lib_m_cos" >&6; }
22626if test "x$ac_cv_lib_m_cos" = xyes; then :
22627  LIBM="-lm"
22628fi
22629
22630  ;;
22631esac
22632
22633
22634
22635# Check for CyaSSL
22636
22637
22638
22639    if ${ax_cv_have_CYASSL+:} false; then :
22640  $as_echo_n "(cached) " >&6
22641else
22642
22643  CPPFLAGS_save="${CPPFLAGS}"
22644  CFLAGS_save="${CFLAGS}"
22645  CXXFLAGS_save="${CXXFLAGS}"
22646  OBJCFLAGS_save="${OBJCFLAGS}"
22647  LDFLAGS_save="${LDFLAGS}"
22648  LIBS_save="${LIBS}"
22649
22650
22651      if test "x$CYASSL_CPPFLAGS" != "x"; then :
22652  CPPFLAGS="$CPPFLAGS $CYASSL_CPPFLAGS"
22653fi
22654
22655      if test "x$CYASSL_LDFLAGS" != "x"; then :
22656  LDFLAGS="$LDFLAGS $CYASSL_LDFLAGS"
22657fi
22658
22659      ac_fn_c_check_header_mongrel "$LINENO" "cyassl/ssl.h" "ac_cv_header_cyassl_ssl_h" "$ac_includes_default"
22660if test "x$ac_cv_header_cyassl_ssl_h" = xyes; then :
22661
22662        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcyassl" >&5
22663$as_echo_n "checking for main in -lcyassl... " >&6; }
22664if ${ac_cv_lib_cyassl_main+:} false; then :
22665  $as_echo_n "(cached) " >&6
22666else
22667  ac_check_lib_save_LIBS=$LIBS
22668LIBS="-lcyassl  $LIBS"
22669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22670/* end confdefs.h.  */
22671
22672
22673int
22674main ()
22675{
22676return main ();
22677  ;
22678  return 0;
22679}
22680_ACEOF
22681if ac_fn_c_try_link "$LINENO"; then :
22682  ac_cv_lib_cyassl_main=yes
22683else
22684  ac_cv_lib_cyassl_main=no
22685fi
22686rm -f core conftest.err conftest.$ac_objext \
22687    conftest$ac_exeext conftest.$ac_ext
22688LIBS=$ac_check_lib_save_LIBS
22689fi
22690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_main" >&5
22691$as_echo "$ac_cv_lib_cyassl_main" >&6; }
22692if test "x$ac_cv_lib_cyassl_main" = xyes; then :
22693  ax_cv_have_CYASSL=yes
22694else
22695  ax_cv_have_CYASSL=no
22696fi
22697
22698
22699else
22700  ax_cv_have_CYASSL=no
22701fi
22702
22703
22704
22705
22706  CPPFLAGS="${CPPFLAGS_save}"
22707  CFLAGS="${CFLAGS_save}"
22708  CXXFLAGS="${CXXFLAGS_save}"
22709  OBJCFLAGS="${OBJCFLAGS_save}"
22710  LDFLAGS="${LDFLAGS_save}"
22711  LIBS="${LIBS_save}"
22712
22713
22714fi
22715
22716
22717    if test "$ax_cv_have_CYASSL" = "yes"; then :
22718
22719$as_echo "#define HAVE_CYASSL 1" >>confdefs.h
22720
22721
22722
22723        CYASSL_LIB=-lcyassl
22724
22725        :
22726else
22727  :
22728fi
22729
22730
22731    ac_fn_c_check_header_mongrel "$LINENO" "libmemcached-1.0/memcached.h" "ac_cv_header_libmemcached_1_0_memcached_h" "$ac_includes_default"
22732if test "x$ac_cv_header_libmemcached_1_0_memcached_h" = xyes; then :
22733
22734      { $as_echo "$as_me:${as_lineno-$LINENO}: checking check for -lmemcached" >&5
22735$as_echo_n "checking check for -lmemcached... " >&6; }
22736if ${ax_cv_libmemcached+:} false; then :
22737  $as_echo_n "(cached) " >&6
22738else
22739
22740        ac_ext=c
22741ac_cpp='$CPP $CPPFLAGS'
22742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22744ac_compiler_gnu=$ac_cv_c_compiler_gnu
22745
22746
22747  CPPFLAGS_save="${CPPFLAGS}"
22748  CFLAGS_save="${CFLAGS}"
22749  CXXFLAGS_save="${CXXFLAGS}"
22750  OBJCFLAGS_save="${OBJCFLAGS}"
22751  LDFLAGS_save="${LDFLAGS}"
22752  LIBS_save="${LIBS}"
22753
22754        LIBS="-lmemcached $LIBS"
22755        if test "$cross_compiling" = yes; then :
22756  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: test program execution failed" >&5
22757$as_echo "$as_me: WARNING: test program execution failed" >&2;}
22758else
22759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22760/* end confdefs.h.  */
22761
22762          #include <libmemcached-1.0/memcached.h>
22763int
22764main ()
22765{
22766
22767            memcached_st *memc;
22768            memc= memcached(NULL, 0);
22769            memcached_free(memc);
22770
22771  ;
22772  return 0;
22773}
22774_ACEOF
22775if ac_fn_c_try_run "$LINENO"; then :
22776  ax_cv_libmemcached=yes
22777else
22778  ax_cv_libmemcached=no
22779fi
22780rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22781  conftest.$ac_objext conftest.beam conftest.$ac_ext
22782fi
22783
22784        ac_ext=c
22785ac_cpp='$CPP $CPPFLAGS'
22786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22788ac_compiler_gnu=$ac_cv_c_compiler_gnu
22789
22790
22791  CPPFLAGS="${CPPFLAGS_save}"
22792  CFLAGS="${CFLAGS_save}"
22793  CXXFLAGS="${CXXFLAGS_save}"
22794  OBJCFLAGS="${OBJCFLAGS_save}"
22795  LDFLAGS="${LDFLAGS_save}"
22796  LIBS="${LIBS_save}"
22797
22798
22799fi
22800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_libmemcached" >&5
22801$as_echo "$ax_cv_libmemcached" >&6; }
22802
22803fi
22804
22805
22806
22807  if test "x$ax_cv_libmemcached" = "xyes"; then :
22808
22809
22810$as_echo "#define HAVE_LIBMEMCACHED_MEMCACHED_H 1" >>confdefs.h
22811
22812
22813else
22814
22815
22816$as_echo "#define HAVE_LIBMEMCACHED_MEMCACHED_H 0" >>confdefs.h
22817
22818
22819fi
22820
22821
22822
22823      if test "$ax_cv_libmemcached" = yes; then :
22824
22825        ac_fn_c_check_header_mongrel "$LINENO" "libmemcachedutil-1.0/util.h" "ac_cv_header_libmemcachedutil_1_0_util_h" "$ac_includes_default"
22826if test "x$ac_cv_header_libmemcachedutil_1_0_util_h" = xyes; then :
22827
22828          { $as_echo "$as_me:${as_lineno-$LINENO}: checking check for -lmemcachedutil" >&5
22829$as_echo_n "checking check for -lmemcachedutil... " >&6; }
22830if ${ax_cv_libmemcached_util+:} false; then :
22831  $as_echo_n "(cached) " >&6
22832else
22833
22834
22835  CPPFLAGS_save="${CPPFLAGS}"
22836  CFLAGS_save="${CFLAGS}"
22837  CXXFLAGS_save="${CXXFLAGS}"
22838  OBJCFLAGS_save="${OBJCFLAGS}"
22839  LDFLAGS_save="${LDFLAGS}"
22840  LIBS_save="${LIBS}"
22841
22842            ac_ext=c
22843ac_cpp='$CPP $CPPFLAGS'
22844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22846ac_compiler_gnu=$ac_cv_c_compiler_gnu
22847
22848            LIBS="-lmemcachedutil -lmemcached $LIBS"
22849            if test "$cross_compiling" = yes; then :
22850  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: test program execution failed" >&5
22851$as_echo "$as_me: WARNING: test program execution failed" >&2;}
22852else
22853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22854/* end confdefs.h.  */
22855
22856              #include <libmemcachedutil-1.0/util.h>
22857int
22858main ()
22859{
22860
22861                memcached_pool_st *memc_pool= memcached_pool_create(NULL, 0, 3);
22862                memcached_pool_destroy(memc_pool);
22863
22864  ;
22865  return 0;
22866}
22867_ACEOF
22868if ac_fn_c_try_run "$LINENO"; then :
22869  ax_cv_libmemcached_util=yes
22870else
22871  ax_cv_libmemcached_util=no
22872fi
22873rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22874  conftest.$ac_objext conftest.beam conftest.$ac_ext
22875fi
22876
22877            ac_ext=c
22878ac_cpp='$CPP $CPPFLAGS'
22879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22881ac_compiler_gnu=$ac_cv_c_compiler_gnu
22882
22883
22884  CPPFLAGS="${CPPFLAGS_save}"
22885  CFLAGS="${CFLAGS_save}"
22886  CXXFLAGS="${CXXFLAGS_save}"
22887  OBJCFLAGS="${OBJCFLAGS_save}"
22888  LDFLAGS="${LDFLAGS_save}"
22889  LIBS="${LIBS_save}"
22890
22891
22892fi
22893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_libmemcached_util" >&5
22894$as_echo "$ax_cv_libmemcached_util" >&6; }
22895
22896fi
22897
22898
22899
22900fi
22901
22902      if test "x$ax_cv_libmemcached_util" = "xyes"; then :
22903
22904
22905$as_echo "#define HAVE_LIBMEMCACHED_UTIL_H 1" >>confdefs.h
22906
22907
22908else
22909
22910
22911$as_echo "#define HAVE_LIBMEMCACHED_UTIL_H 0" >>confdefs.h
22912
22913
22914fi
22915
22916
22917
22918         # Check whether --enable-libmemcached was given.
22919if test "${enable_libmemcached+set}" = set; then :
22920  enableval=$enable_libmemcached; ax_enable_libmemcached="$enableval"
22921else
22922  ax_enable_libmemcached="yes"
22923fi
22924
22925
22926         if test "x$ax_cv_libmemcached" != "xyes"; then :
22927
22928               ax_enable_libmemcached="not found"
22929
22930fi
22931
22932         if test "x$ax_enable_libmemcached" = "xyes"; then :
22933
22934
22935$as_echo "#define HAVE_LIBMEMCACHED 1" >>confdefs.h
22936
22937               LIBMEMCACHED_CFLAGS=
22938
22939               LIBMEMCACHED_LIB="-lmemcached"
22940
22941               if test "x$ax_cv_libmemcached_util" = "xyes"; then :
22942
22943                     LIBMEMCACHED_UTIL_LIB="-lmemcached -lmemcachedutil"
22944
22945
22946fi
22947
22948else
22949
22950
22951$as_echo "#define HAVE_LIBMEMCACHED 0" >>confdefs.h
22952
22953
22954fi
22955          if test "x${ax_enable_libmemcached}" = "xyes"; then
22956  HAVE_LIBMEMCACHED_TRUE=
22957  HAVE_LIBMEMCACHED_FALSE='#'
22958else
22959  HAVE_LIBMEMCACHED_TRUE='#'
22960  HAVE_LIBMEMCACHED_FALSE=
22961fi
22962
22963
22964
22965
22966
22967$as_echo "#define GEARMAND_BLOBSLAP_WORKER 1" >>confdefs.h
22968
22969
22970         { $as_echo "$as_me:${as_lineno-$LINENO}: checking test for a working libevent" >&5
22971$as_echo_n "checking test for a working libevent... " >&6; }
22972if ${ax_cv_libevent+:} false; then :
22973  $as_echo_n "(cached) " >&6
22974else
22975
22976  CPPFLAGS_save="${CPPFLAGS}"
22977  CFLAGS_save="${CFLAGS}"
22978  CXXFLAGS_save="${CXXFLAGS}"
22979  OBJCFLAGS_save="${OBJCFLAGS}"
22980  LDFLAGS_save="${LDFLAGS}"
22981  LIBS_save="${LIBS}"
22982
22983           LIBS="-levent $LIBS"
22984           ac_ext=c
22985ac_cpp='$CPP $CPPFLAGS'
22986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22988ac_compiler_gnu=$ac_cv_c_compiler_gnu
22989
22990           if test "$cross_compiling" = yes; then :
22991  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: test program execution failed" >&5
22992$as_echo "$as_me: WARNING: test program execution failed" >&2;}
22993else
22994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22995/* end confdefs.h.  */
22996
22997#include <sys/types.h>
22998#include <sys/time.h>
22999#include <stdlib.h>
23000#include <event.h>
23001
23002int
23003main ()
23004{
23005
23006               struct event_base *tmp_event= event_init();
23007               event_base_free(tmp_event);
23008
23009  ;
23010  return 0;
23011}
23012_ACEOF
23013if ac_fn_c_try_run "$LINENO"; then :
23014  ax_cv_libevent=yes
23015else
23016  ax_cv_libevent=no
23017fi
23018rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23019  conftest.$ac_objext conftest.beam conftest.$ac_ext
23020fi
23021
23022           ac_ext=c
23023ac_cpp='$CPP $CPPFLAGS'
23024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23026ac_compiler_gnu=$ac_cv_c_compiler_gnu
23027
23028
23029  CPPFLAGS="${CPPFLAGS_save}"
23030  CFLAGS="${CFLAGS_save}"
23031  CXXFLAGS="${CXXFLAGS_save}"
23032  OBJCFLAGS="${OBJCFLAGS_save}"
23033  LDFLAGS="${LDFLAGS_save}"
23034  LIBS="${LIBS_save}"
23035
23036
23037fi
23038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_libevent" >&5
23039$as_echo "$ax_cv_libevent" >&6; }
23040
23041         if test "x$ax_cv_libevent" = "xyes"; then :
23042  LIBEVENT_LIB=-levent
23043
23044
23045$as_echo "#define HAVE_LIBEVENT 1" >>confdefs.h
23046
23047else
23048
23049$as_echo "#define HAVE_LIBEVENT 0" >>confdefs.h
23050
23051fi
23052
23053          if test "x$ax_cv_libevent" = "xyes"; then
23054  HAVE_LIBEVENT_TRUE=
23055  HAVE_LIBEVENT_FALSE='#'
23056else
23057  HAVE_LIBEVENT_TRUE='#'
23058  HAVE_LIBEVENT_FALSE=
23059fi
23060
23061# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23062         if test "x$ax_cv_libevent" = xyes; then :
23063
23064else
23065  as_fn_error $? "Unable to find libevent" "$LINENO" 5
23066fi
23067
23068
23069    ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
23070if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
23071
23072
23073      { $as_echo "$as_me:${as_lineno-$LINENO}: checking check to see if -luuid is needed" >&5
23074$as_echo_n "checking check to see if -luuid is needed... " >&6; }
23075if ${ax_cv_libuuid_is_required+:} false; then :
23076  $as_echo_n "(cached) " >&6
23077else
23078  ac_ext=c
23079ac_cpp='$CPP $CPPFLAGS'
23080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23082ac_compiler_gnu=$ac_cv_c_compiler_gnu
23083
23084        if test "$cross_compiling" = yes; then :
23085  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: test program execution failed" >&5
23086$as_echo "$as_me: WARNING: test program execution failed" >&2;}
23087else
23088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23089/* end confdefs.h.  */
23090#include <uuid/uuid.h>
23091int
23092main ()
23093{
23094
23095            uuid_t out;
23096            uuid_generate(out);
23097
23098  ;
23099  return 0;
23100}
23101_ACEOF
23102if ac_fn_c_try_run "$LINENO"; then :
23103  ax_cv_libuuid_is_required=no
23104else
23105  ax_cv_libuuid_is_required=yes
23106fi
23107rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23108  conftest.$ac_objext conftest.beam conftest.$ac_ext
23109fi
23110
23111        ac_ext=c
23112ac_cpp='$CPP $CPPFLAGS'
23113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23115ac_compiler_gnu=$ac_cv_c_compiler_gnu
23116
23117
23118fi
23119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_libuuid_is_required" >&5
23120$as_echo "$ax_cv_libuuid_is_required" >&6; }
23121
23122      if test "$ax_cv_libuuid_is_required" = yes; then :
23123  { $as_echo "$as_me:${as_lineno-$LINENO}: checking check to see if -luuid is needed" >&5
23124$as_echo_n "checking check to see if -luuid is needed... " >&6; }
23125if ${ax_cv_libuuid_works+:} false; then :
23126  $as_echo_n "(cached) " >&6
23127else
23128
23129  CPPFLAGS_save="${CPPFLAGS}"
23130  CFLAGS_save="${CFLAGS}"
23131  CXXFLAGS_save="${CXXFLAGS}"
23132  OBJCFLAGS_save="${OBJCFLAGS}"
23133  LDFLAGS_save="${LDFLAGS}"
23134  LIBS_save="${LIBS}"
23135
23136          LIBS="-luuid $LIBS"
23137          ac_ext=c
23138ac_cpp='$CPP $CPPFLAGS'
23139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23141ac_compiler_gnu=$ac_cv_c_compiler_gnu
23142
23143          if test "$cross_compiling" = yes; then :
23144  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: test program execution failed" >&5
23145$as_echo "$as_me: WARNING: test program execution failed" >&2;}
23146else
23147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23148/* end confdefs.h.  */
23149#include <uuid/uuid.h>
23150int
23151main ()
23152{
23153
23154              uuid_t out;
23155              uuid_generate(out);
23156
23157  ;
23158  return 0;
23159}
23160_ACEOF
23161if ac_fn_c_try_run "$LINENO"; then :
23162  ax_cv_libuuid_works=yes
23163else
23164  ax_cv_libuuid_works=no
23165fi
23166rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23167  conftest.$ac_objext conftest.beam conftest.$ac_ext
23168fi
23169
23170          ac_ext=c
23171ac_cpp='$CPP $CPPFLAGS'
23172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23174ac_compiler_gnu=$ac_cv_c_compiler_gnu
23175
23176
23177  CPPFLAGS="${CPPFLAGS_save}"
23178  CFLAGS="${CFLAGS_save}"
23179  CXXFLAGS="${CXXFLAGS_save}"
23180  OBJCFLAGS="${OBJCFLAGS_save}"
23181  LDFLAGS="${LDFLAGS_save}"
23182  LIBS="${LIBS_save}"
23183
23184fi
23185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_libuuid_works" >&5
23186$as_echo "$ax_cv_libuuid_works" >&6; }
23187
23188fi
23189
23190      if test "$ax_cv_libuuid_is_required" = yes; then :
23191  if test "$ax_cv_libuuid_works" = yes; then :
23192  ax_libuuid=yes
23193fi
23194else
23195  ax_libuuid=yes
23196fi
23197
23198else
23199  ax_libuuid=no
23200fi
23201
23202
23203
23204      if test "x$ax_libuuid" = xyes; then :
23205
23206$as_echo "#define HAVE_UUID_UUID_H 1" >>confdefs.h
23207
23208          if test "x$ax_cv_libuuid_is_required" = xyes; then :
23209   LIBUUID_LIB='-luuid'
23210fi
23211else
23212
23213$as_echo "#define HAVE_UUID_UUID_H 0" >>confdefs.h
23214
23215
23216fi
23217
23218
23219   if test "x$ax_libuuid" = xyes; then
23220  HAVE_LIBUUID_TRUE=
23221  HAVE_LIBUUID_FALSE='#'
23222else
23223  HAVE_LIBUUID_TRUE='#'
23224  HAVE_LIBUUID_FALSE=
23225fi
23226
23227
23228            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe" >&5
23229$as_echo_n "checking for uuid_generate_time_safe... " >&6; }
23230if ${ax_cv_uuid_generate_time_safe+:} false; then :
23231  $as_echo_n "(cached) " >&6
23232else
23233
23234  CPPFLAGS_save="${CPPFLAGS}"
23235  CFLAGS_save="${CFLAGS}"
23236  CXXFLAGS_save="${CXXFLAGS}"
23237  OBJCFLAGS_save="${OBJCFLAGS}"
23238  LDFLAGS_save="${LDFLAGS}"
23239  LIBS_save="${LIBS}"
23240
23241        LIBS="$LIBUUID_LIB $LIBS"
23242        ac_ext=c
23243ac_cpp='$CPP $CPPFLAGS'
23244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23246ac_compiler_gnu=$ac_cv_c_compiler_gnu
23247
23248        if test "$cross_compiling" = yes; then :
23249  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: test program execution failed" >&5
23250$as_echo "$as_me: WARNING: test program execution failed" >&2;}
23251else
23252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23253/* end confdefs.h.  */
23254
23255          #include <uuid/uuid.h>
23256int
23257main ()
23258{
23259
23260            uuid_t out;
23261            uuid_generate_time_safe(out);
23262
23263  ;
23264  return 0;
23265}
23266_ACEOF
23267if ac_fn_c_try_run "$LINENO"; then :
23268  ax_cv_uuid_generate_time_safe=yes
23269else
23270  ax_cv_uuid_generate_time_safe=no
23271fi
23272rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23273  conftest.$ac_objext conftest.beam conftest.$ac_ext
23274fi
23275
23276        ac_ext=c
23277ac_cpp='$CPP $CPPFLAGS'
23278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23280ac_compiler_gnu=$ac_cv_c_compiler_gnu
23281
23282
23283  CPPFLAGS="${CPPFLAGS_save}"
23284  CFLAGS="${CFLAGS_save}"
23285  CXXFLAGS="${CXXFLAGS_save}"
23286  OBJCFLAGS="${OBJCFLAGS_save}"
23287  LDFLAGS="${LDFLAGS_save}"
23288  LIBS="${LIBS_save}"
23289
23290
23291fi
23292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_uuid_generate_time_safe" >&5
23293$as_echo "$ax_cv_uuid_generate_time_safe" >&6; }
23294
23295      if test "$ax_cv_uuid_generate_time_safe" = yes; then :
23296
23297$as_echo "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h
23298
23299else
23300
23301$as_echo "#define HAVE_UUID_GENERATE_TIME_SAFE 0" >>confdefs.h
23302
23303fi
23304
23305
23306
23307
23308
23309      { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5
23310$as_echo_n "checking the number of available CPUs... " >&6; }
23311      CPU_COUNT="0"
23312
23313      case $host_os in #(
23314
23315        *darwin*) :
23316
23317        if test -x /usr/sbin/sysctl; then :
23318
23319          sysctl_a=`/usr/sbin/sysctl -a 2>/dev/null| grep -c hw.cpu`
23320          if test sysctl_a; then :
23321
23322            CPU_COUNT=`/usr/sbin/sysctl -n hw.ncpu`
23323
23324fi
23325
23326fi ;; #(
23327
23328        *linux*) :
23329
23330        if test "x$CPU_COUNT" = "x0" -a -e /proc/cpuinfo; then :
23331
23332          if test "x$CPU_COUNT" = "x0" -a -e /proc/cpuinfo; then :
23333
23334            CPU_COUNT=`$EGREP -c '^processor' /proc/cpuinfo`
23335
23336fi
23337
23338fi
23339         ;; #(
23340  *) :
23341     ;;
23342esac
23343
23344      if test "x$CPU_COUNT" = "x0"; then :
23345
23346        CPU_COUNT="1"
23347        { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1) " >&5
23348$as_echo "unable to detect (assuming 1) " >&6; }
23349
23350else
23351
23352        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT " >&5
23353$as_echo "$CPU_COUNT " >&6; }
23354
23355fi
23356
23357
23358AX_DOLLAR="\$"
23359AX_SRB="\\135"
23360AX_SLB="\\133"
23361AX_BS="\\\\"
23362AX_DQ="\""
23363
23364
23365{ $as_echo "$as_me:${as_lineno-$LINENO}: adding automake macro support" >&5
23366$as_echo "$as_me: adding automake macro support" >&6;}
23367AMINCLUDE="aminclude.am"
23368
23369{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $AMINCLUDE" >&5
23370$as_echo "$as_me: creating $AMINCLUDE" >&6;}
23371AMINCLUDE_TIME=`date`
23372
23373
23374printf "
23375# generated automatically by configure from AX_AUTOMAKE_MACROS
23376# on $AMINCLUDE_TIME
23377
23378" > "$AMINCLUDE"
23379
23380
23381INC_AMINCLUDE="include \$(top_builddir)/$AMINCLUDE"
23382
23383
23384
23385
23386
23387    # Check whether --enable-jobserver was given.
23388if test "${enable_jobserver+set}" = set; then :
23389  enableval=$enable_jobserver;
23390else
23391  enable_jobserver=yes
23392fi
23393
23394    if test "x$enable_jobserver" = "xyes"; then
23395        enable_jobserver=$CPU_COUNT
23396        ((enable_jobserver++))
23397    fi
23398
23399    if test "x$enable_jobserver" != "xno"; then
23400        { $as_echo "$as_me:${as_lineno-$LINENO}: added jobserver support to make for $enable_jobserver jobs" >&5
23401$as_echo "$as_me: added jobserver support to make for $enable_jobserver jobs" >&6;}
23402
23403
23404
23405
23406printf "AM_MAKEFLAGS += -j$enable_jobserver " >> "$AMINCLUDE"
23407
23408
23409    fi
23410
23411
23412if test "x${TARGET_LINUX}" = "xtrue"; then :
23413
23414$as_echo "#define BUILD_LIBHOSTILE 1" >>confdefs.h
23415
23416else
23417
23418$as_echo "#define BUILD_LIBHOSTILE 0" >>confdefs.h
23419
23420fi
23421 if test "x${TARGET_LINUX}" = "xtrue"; then
23422  TARGET_HOSTILE_TRUE=
23423  TARGET_HOSTILE_FALSE='#'
23424else
23425  TARGET_HOSTILE_TRUE='#'
23426  TARGET_HOSTILE_FALSE=
23427fi
23428
23429
23430
23431
23432ac_ext=c
23433ac_cpp='$CPP $CPPFLAGS'
23434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23436ac_compiler_gnu=$ac_cv_c_compiler_gnu
23437
23438ax_pthread_ok=no
23439
23440# We used to check for pthread.h first, but this fails if pthread.h
23441# requires special compiler flags (e.g. on True64 or Sequent).
23442# It gets checked for in the link test anyway.
23443
23444# First of all, check if the user has set any of the PTHREAD_LIBS,
23445# etcetera environment variables, and if threads linking works using
23446# them:
23447if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
23448        save_CFLAGS="$CFLAGS"
23449        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23450        save_LIBS="$LIBS"
23451        LIBS="$PTHREAD_LIBS $LIBS"
23452        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
23453$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
23454        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23455/* end confdefs.h.  */
23456
23457/* Override any GCC internal prototype to avoid an error.
23458   Use char because int might match the return type of a GCC
23459   builtin and then its argument prototype would still apply.  */
23460#ifdef __cplusplus
23461extern "C"
23462#endif
23463char pthread_join ();
23464int
23465main ()
23466{
23467return pthread_join ();
23468  ;
23469  return 0;
23470}
23471_ACEOF
23472if ac_fn_c_try_link "$LINENO"; then :
23473  ax_pthread_ok=yes
23474fi
23475rm -f core conftest.err conftest.$ac_objext \
23476    conftest$ac_exeext conftest.$ac_ext
23477        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
23478$as_echo "$ax_pthread_ok" >&6; }
23479        if test x"$ax_pthread_ok" = xno; then
23480                PTHREAD_LIBS=""
23481                PTHREAD_CFLAGS=""
23482        fi
23483        LIBS="$save_LIBS"
23484        CFLAGS="$save_CFLAGS"
23485fi
23486
23487# We must check for the threads library under a number of different
23488# names; the ordering is very important because some systems
23489# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
23490# libraries is broken (non-POSIX).
23491
23492# Create a list of thread flags to try.  Items starting with a "-" are
23493# C compiler flags, and other items are library names, except for "none"
23494# which indicates that we try without any flags at all, and "pthread-config"
23495# which is a program returning the flags for the Pth emulation library.
23496
23497ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
23498
23499# The ordering *is* (sometimes) important.  Some notes on the
23500# individual items follow:
23501
23502# pthreads: AIX (must check this before -lpthread)
23503# none: in case threads are in libc; should be tried before -Kthread and
23504#       other compiler flags to prevent continual compiler warnings
23505# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
23506# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
23507# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
23508# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
23509# -pthreads: Solaris/gcc
23510# -mthreads: Mingw32/gcc, Lynx/gcc
23511# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
23512#      doesn't hurt to check since this sometimes defines pthreads too;
23513#      also defines -D_REENTRANT)
23514#      ... -mt is also the pthreads flag for HP/aCC
23515# pthread: Linux, etcetera
23516# --thread-safe: KAI C++
23517# pthread-config: use pthread-config program (for GNU Pth library)
23518
23519case ${host_os} in
23520        solaris*)
23521
23522        # On Solaris (at least, for some versions), libc contains stubbed
23523        # (non-functional) versions of the pthreads routines, so link-based
23524        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
23525        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
23526        # a function called by this macro, so we could check for that, but
23527        # who knows whether they'll stub that too in a future libc.)  So,
23528        # we'll just look for -pthreads and -lpthread first:
23529
23530        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
23531        ;;
23532
23533        darwin12*)
23534        ax_pthread_flags="$ax_pthread_flags"
23535        ;;
23536
23537        darwin*)
23538        ax_pthread_flags="-pthread $ax_pthread_flags"
23539        ;;
23540esac
23541
23542if test x"$ax_pthread_ok" = xno; then
23543for flag in $ax_pthread_flags; do
23544
23545        case $flag in
23546                none)
23547                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
23548$as_echo_n "checking whether pthreads work without any flags... " >&6; }
23549                ;;
23550
23551                -*)
23552                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
23553$as_echo_n "checking whether pthreads work with $flag... " >&6; }
23554                PTHREAD_CFLAGS="$flag"
23555                ;;
23556
23557                pthread-config)
23558                # Extract the first word of "pthread-config", so it can be a program name with args.
23559set dummy pthread-config; ac_word=$2
23560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23561$as_echo_n "checking for $ac_word... " >&6; }
23562if ${ac_cv_prog_ax_pthread_config+:} false; then :
23563  $as_echo_n "(cached) " >&6
23564else
23565  if test -n "$ax_pthread_config"; then
23566  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
23567else
23568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23569for as_dir in $PATH
23570do
23571  IFS=$as_save_IFS
23572  test -z "$as_dir" && as_dir=.
23573    for ac_exec_ext in '' $ac_executable_extensions; do
23574  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23575    ac_cv_prog_ax_pthread_config="yes"
23576    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23577    break 2
23578  fi
23579done
23580  done
23581IFS=$as_save_IFS
23582
23583  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
23584fi
23585fi
23586ax_pthread_config=$ac_cv_prog_ax_pthread_config
23587if test -n "$ax_pthread_config"; then
23588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
23589$as_echo "$ax_pthread_config" >&6; }
23590else
23591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23592$as_echo "no" >&6; }
23593fi
23594
23595
23596                if test x"$ax_pthread_config" = xno; then continue; fi
23597                PTHREAD_CFLAGS="`pthread-config --cflags`"
23598                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
23599                ;;
23600
23601                *)
23602                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
23603$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
23604                PTHREAD_LIBS="-l$flag"
23605                ;;
23606        esac
23607
23608        save_LIBS="$LIBS"
23609        save_CFLAGS="$CFLAGS"
23610        LIBS="$PTHREAD_LIBS $LIBS"
23611        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23612
23613        # Check for various functions.  We must include pthread.h,
23614        # since some functions may be macros.  (On the Sequent, we
23615        # need a special flag -Kthread to make this header compile.)
23616        # We check for pthread_join because it is in -lpthread on IRIX
23617        # while pthread_create is in libc.  We check for pthread_attr_init
23618        # due to DEC craziness with -lpthreads.  We check for
23619        # pthread_cleanup_push because it is one of the few pthread
23620        # functions on Solaris that doesn't have a non-functional libc stub.
23621        # We try pthread_create on general principles.
23622        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23623/* end confdefs.h.  */
23624#include <pthread.h>
23625                        static void routine(void *a) { a = 0; }
23626                        static void *start_routine(void *a) { return a; }
23627int
23628main ()
23629{
23630pthread_t th; pthread_attr_t attr;
23631                        pthread_create(&th, 0, start_routine, 0);
23632                        pthread_join(th, 0);
23633                        pthread_attr_init(&attr);
23634                        pthread_cleanup_push(routine, 0);
23635                        pthread_cleanup_pop(0) /* ; */
23636  ;
23637  return 0;
23638}
23639_ACEOF
23640if ac_fn_c_try_link "$LINENO"; then :
23641  ax_pthread_ok=yes
23642fi
23643rm -f core conftest.err conftest.$ac_objext \
23644    conftest$ac_exeext conftest.$ac_ext
23645
23646        LIBS="$save_LIBS"
23647        CFLAGS="$save_CFLAGS"
23648
23649        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
23650$as_echo "$ax_pthread_ok" >&6; }
23651        if test "x$ax_pthread_ok" = xyes; then
23652                break;
23653        fi
23654
23655        PTHREAD_LIBS=""
23656        PTHREAD_CFLAGS=""
23657done
23658fi
23659
23660# Various other checks:
23661if test "x$ax_pthread_ok" = xyes; then
23662        save_LIBS="$LIBS"
23663        LIBS="$PTHREAD_LIBS $LIBS"
23664        save_CFLAGS="$CFLAGS"
23665        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23666
23667        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
23668        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
23669$as_echo_n "checking for joinable pthread attribute... " >&6; }
23670        attr_name=unknown
23671        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
23672            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23673/* end confdefs.h.  */
23674#include <pthread.h>
23675int
23676main ()
23677{
23678int attr = $attr; return attr /* ; */
23679  ;
23680  return 0;
23681}
23682_ACEOF
23683if ac_fn_c_try_link "$LINENO"; then :
23684  attr_name=$attr; break
23685fi
23686rm -f core conftest.err conftest.$ac_objext \
23687    conftest$ac_exeext conftest.$ac_ext
23688        done
23689        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
23690$as_echo "$attr_name" >&6; }
23691        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
23692
23693cat >>confdefs.h <<_ACEOF
23694#define PTHREAD_CREATE_JOINABLE $attr_name
23695_ACEOF
23696
23697        fi
23698
23699        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
23700$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
23701        flag=no
23702        case ${host_os} in
23703            aix* | freebsd* | dragonfly*| darwin*) flag="-D_THREAD_SAFE";;
23704            osf* | hpux*) flag="-D_REENTRANT";;
23705            solaris*)
23706            if test "$GCC" = "yes"; then
23707                flag="-D_REENTRANT"
23708            else
23709                flag="-mt -D_REENTRANT"
23710            fi
23711            ;;
23712        esac
23713        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
23714$as_echo "${flag}" >&6; }
23715        if test "x$flag" != xno; then
23716            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23717        fi
23718
23719        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
23720$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
23721if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
23722  $as_echo_n "(cached) " >&6
23723else
23724
23725                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23726/* end confdefs.h.  */
23727
23728                    #include <pthread.h>
23729int
23730main ()
23731{
23732int i = PTHREAD_PRIO_INHERIT;
23733  ;
23734  return 0;
23735}
23736_ACEOF
23737if ac_fn_c_try_link "$LINENO"; then :
23738  ax_cv_PTHREAD_PRIO_INHERIT=yes
23739else
23740  ax_cv_PTHREAD_PRIO_INHERIT=no
23741fi
23742rm -f core conftest.err conftest.$ac_objext \
23743    conftest$ac_exeext conftest.$ac_ext
23744
23745fi
23746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
23747$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
23748        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
23749
23750$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
23751
23752fi
23753
23754        LIBS="$save_LIBS"
23755        CFLAGS="$save_CFLAGS"
23756
23757        # More AIX lossage: must compile with xlc_r or cc_r
23758        if test x"$GCC" != xyes; then
23759          for ac_prog in xlc_r cc_r
23760do
23761  # Extract the first word of "$ac_prog", so it can be a program name with args.
23762set dummy $ac_prog; ac_word=$2
23763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23764$as_echo_n "checking for $ac_word... " >&6; }
23765if ${ac_cv_prog_PTHREAD_CC+:} false; then :
23766  $as_echo_n "(cached) " >&6
23767else
23768  if test -n "$PTHREAD_CC"; then
23769  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23770else
23771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23772for as_dir in $PATH
23773do
23774  IFS=$as_save_IFS
23775  test -z "$as_dir" && as_dir=.
23776    for ac_exec_ext in '' $ac_executable_extensions; do
23777  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23778    ac_cv_prog_PTHREAD_CC="$ac_prog"
23779    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23780    break 2
23781  fi
23782done
23783  done
23784IFS=$as_save_IFS
23785
23786fi
23787fi
23788PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23789if test -n "$PTHREAD_CC"; then
23790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
23791$as_echo "$PTHREAD_CC" >&6; }
23792else
23793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23794$as_echo "no" >&6; }
23795fi
23796
23797
23798  test -n "$PTHREAD_CC" && break
23799done
23800test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
23801
23802        else
23803          PTHREAD_CC=$CC
23804        fi
23805else
23806        PTHREAD_CC="$CC"
23807fi
23808
23809
23810
23811
23812
23813# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23814if test x"$ax_pthread_ok" = xyes; then
23815
23816$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
23817
23818        :
23819else
23820        ax_pthread_ok=no
23821        as_fn_error $? "could not find libpthread" "$LINENO" 5
23822fi
23823ac_ext=c
23824ac_cpp='$CPP $CPPFLAGS'
23825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23827ac_compiler_gnu=$ac_cv_c_compiler_gnu
23828
23829
23830
23831    { $as_echo "$as_me:${as_lineno-$LINENO}: checking check for pthread_timedjoin_np" >&5
23832$as_echo_n "checking check for pthread_timedjoin_np... " >&6; }
23833if ${ax_cv_pthread_timedjoin_np+:} false; then :
23834  $as_echo_n "(cached) " >&6
23835else
23836
23837  CPPFLAGS_save="${CPPFLAGS}"
23838  CFLAGS_save="${CFLAGS}"
23839  CXXFLAGS_save="${CXXFLAGS}"
23840  OBJCFLAGS_save="${OBJCFLAGS}"
23841  LDFLAGS_save="${LDFLAGS}"
23842  LIBS_save="${LIBS}"
23843
23844      CFLAGS="$PTHREAD_CFLAGS"
23845      LIBS="$PTHREAD_LIBS"
23846      ac_ext=c
23847ac_cpp='$CPP $CPPFLAGS'
23848ac_compile='$CC -c $CFLAGS $CPPFLAGS -Werror conftest.$ac_ext >&5'
23849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS -Werror $LDFLAGS conftest.$ac_ext $LIBS >&5'
23850ac_compiler_gnu=$ac_cv_c_compiler_gnu
23851
23852      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23853/* end confdefs.h.  */
23854
23855#include <pthread.h>
23856#include <stdlib.h>
23857
23858int
23859main ()
23860{
23861
23862          pthread_t thread;
23863          pthread_timedjoin_np(thread, NULL, NULL);
23864
23865  ;
23866  return 0;
23867}
23868_ACEOF
23869if ac_fn_c_try_link "$LINENO"; then :
23870  ax_cv_pthread_timedjoin_np=yes
23871fi
23872rm -f core conftest.err conftest.$ac_objext \
23873    conftest$ac_exeext conftest.$ac_ext
23874
23875      ac_ext=c
23876ac_cpp='$CPP $CPPFLAGS'
23877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23879ac_compiler_gnu=$ac_cv_c_compiler_gnu
23880
23881
23882  CPPFLAGS="${CPPFLAGS_save}"
23883  CFLAGS="${CFLAGS_save}"
23884  CXXFLAGS="${CXXFLAGS_save}"
23885  OBJCFLAGS="${OBJCFLAGS_save}"
23886  LDFLAGS="${LDFLAGS_save}"
23887  LIBS="${LIBS_save}"
23888
23889
23890fi
23891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_pthread_timedjoin_np" >&5
23892$as_echo "$ax_cv_pthread_timedjoin_np" >&6; }
23893
23894    if test "$ax_cv_pthread_timedjoin_np" = yes; then :
23895
23896$as_echo "#define HAVE_PTHREAD_TIMEDJOIN_NP 1" >>confdefs.h
23897
23898else
23899
23900$as_echo "#define HAVE_PTHREAD_TIMEDJOIN_NP 0" >>confdefs.h
23901
23902fi
23903
23904
23905     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23906$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23907if ${ac_cv_c_bigendian+:} false; then :
23908  $as_echo_n "(cached) " >&6
23909else
23910  ac_cv_c_bigendian=unknown
23911    # See if we're dealing with a universal compiler.
23912    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23913/* end confdefs.h.  */
23914#ifndef __APPLE_CC__
23915	       not a universal capable compiler
23916	     #endif
23917	     typedef int dummy;
23918
23919_ACEOF
23920if ac_fn_c_try_compile "$LINENO"; then :
23921
23922	# Check for potential -arch flags.  It is not universal unless
23923	# there are at least two -arch flags with different values.
23924	ac_arch=
23925	ac_prev=
23926	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23927	 if test -n "$ac_prev"; then
23928	   case $ac_word in
23929	     i?86 | x86_64 | ppc | ppc64)
23930	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23931		 ac_arch=$ac_word
23932	       else
23933		 ac_cv_c_bigendian=universal
23934		 break
23935	       fi
23936	       ;;
23937	   esac
23938	   ac_prev=
23939	 elif test "x$ac_word" = "x-arch"; then
23940	   ac_prev=arch
23941	 fi
23942       done
23943fi
23944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23945    if test $ac_cv_c_bigendian = unknown; then
23946      # See if sys/param.h defines the BYTE_ORDER macro.
23947      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23948/* end confdefs.h.  */
23949#include <sys/types.h>
23950	     #include <sys/param.h>
23951
23952int
23953main ()
23954{
23955#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23956		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23957		     && LITTLE_ENDIAN)
23958	      bogus endian macros
23959	     #endif
23960
23961  ;
23962  return 0;
23963}
23964_ACEOF
23965if ac_fn_c_try_compile "$LINENO"; then :
23966  # It does; now see whether it defined to BIG_ENDIAN or not.
23967	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23968/* end confdefs.h.  */
23969#include <sys/types.h>
23970		#include <sys/param.h>
23971
23972int
23973main ()
23974{
23975#if BYTE_ORDER != BIG_ENDIAN
23976		 not big endian
23977		#endif
23978
23979  ;
23980  return 0;
23981}
23982_ACEOF
23983if ac_fn_c_try_compile "$LINENO"; then :
23984  ac_cv_c_bigendian=yes
23985else
23986  ac_cv_c_bigendian=no
23987fi
23988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23989fi
23990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23991    fi
23992    if test $ac_cv_c_bigendian = unknown; then
23993      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23994      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23995/* end confdefs.h.  */
23996#include <limits.h>
23997
23998int
23999main ()
24000{
24001#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
24002	      bogus endian macros
24003	     #endif
24004
24005  ;
24006  return 0;
24007}
24008_ACEOF
24009if ac_fn_c_try_compile "$LINENO"; then :
24010  # It does; now see whether it defined to _BIG_ENDIAN or not.
24011	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24012/* end confdefs.h.  */
24013#include <limits.h>
24014
24015int
24016main ()
24017{
24018#ifndef _BIG_ENDIAN
24019		 not big endian
24020		#endif
24021
24022  ;
24023  return 0;
24024}
24025_ACEOF
24026if ac_fn_c_try_compile "$LINENO"; then :
24027  ac_cv_c_bigendian=yes
24028else
24029  ac_cv_c_bigendian=no
24030fi
24031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24032fi
24033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24034    fi
24035    if test $ac_cv_c_bigendian = unknown; then
24036      # Compile a test program.
24037      if test "$cross_compiling" = yes; then :
24038  # Try to guess by grepping values from an object file.
24039	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24040/* end confdefs.h.  */
24041short int ascii_mm[] =
24042		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24043		short int ascii_ii[] =
24044		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24045		int use_ascii (int i) {
24046		  return ascii_mm[i] + ascii_ii[i];
24047		}
24048		short int ebcdic_ii[] =
24049		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24050		short int ebcdic_mm[] =
24051		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24052		int use_ebcdic (int i) {
24053		  return ebcdic_mm[i] + ebcdic_ii[i];
24054		}
24055		extern int foo;
24056
24057int
24058main ()
24059{
24060return use_ascii (foo) == use_ebcdic (foo);
24061  ;
24062  return 0;
24063}
24064_ACEOF
24065if ac_fn_c_try_compile "$LINENO"; then :
24066  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
24067	      ac_cv_c_bigendian=yes
24068	    fi
24069	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24070	      if test "$ac_cv_c_bigendian" = unknown; then
24071		ac_cv_c_bigendian=no
24072	      else
24073		# finding both strings is unlikely to happen, but who knows?
24074		ac_cv_c_bigendian=unknown
24075	      fi
24076	    fi
24077fi
24078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24079else
24080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24081/* end confdefs.h.  */
24082$ac_includes_default
24083int
24084main ()
24085{
24086
24087	     /* Are we little or big endian?  From Harbison&Steele.  */
24088	     union
24089	     {
24090	       long int l;
24091	       char c[sizeof (long int)];
24092	     } u;
24093	     u.l = 1;
24094	     return u.c[sizeof (long int) - 1] == 1;
24095
24096  ;
24097  return 0;
24098}
24099_ACEOF
24100if ac_fn_c_try_run "$LINENO"; then :
24101  ac_cv_c_bigendian=no
24102else
24103  ac_cv_c_bigendian=yes
24104fi
24105rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24106  conftest.$ac_objext conftest.beam conftest.$ac_ext
24107fi
24108
24109    fi
24110fi
24111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
24112$as_echo "$ac_cv_c_bigendian" >&6; }
24113 case $ac_cv_c_bigendian in #(
24114   yes)
24115
24116
24117$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
24118
24119
24120$as_echo "#define ENDIAN_BIG 1" >>confdefs.h
24121
24122
24123$as_echo "#define ENDIAN_LITTLE 0" >>confdefs.h
24124;; #(
24125   no)
24126
24127       ;; #(
24128   universal)
24129
24130      as_fn_error $? "unable to determine endian" "$LINENO" 5
24131
24132     ;; #(
24133   *)
24134
24135
24136$as_echo "#define WORDS_BIGENDIAN 0" >>confdefs.h
24137
24138
24139$as_echo "#define ENDIAN_BIG 0" >>confdefs.h
24140
24141
24142$as_echo "#define ENDIAN_LITTLE 1" >>confdefs.h
24143
24144       ;;
24145 esac
24146
24147
24148
24149    string_version_LIBGEARMAN=`echo $VERSION | sed 's|\-a-z0-9*$||' | awk -F. '{printf "%d.%d.%d", $1, $2, $3}'`
24150    hex_version_LIBGEARMAN=`echo $VERSION | sed 's|\-a-z0-9*$||' | awk -F. '{printf "0x%0.2d%0.3d%0.3d", $1, $2, $3}'`
24151
24152    LIBGEARMAN_VERSION_STRING="$string_version_LIBGEARMAN"
24153
24154    LIBGEARMAN_VERSION_HEX="$hex_version_LIBGEARMAN"
24155
24156
24157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if all warnings into errors" >&5
24158$as_echo_n "checking if all warnings into errors... " >&6; }
24159if ${ac_cv_warnings_as_errors+:} false; then :
24160  $as_echo_n "(cached) " >&6
24161else
24162  if test "x$ac_cv_vcs_checkout" = xyes; then :
24163  ac_cv_warnings_as_errors=yes
24164else
24165  ac_cv_warnings_as_errors=no
24166fi
24167
24168fi
24169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_warnings_as_errors" >&5
24170$as_echo "$ac_cv_warnings_as_errors" >&6; }
24171
24172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
24173$as_echo_n "checking for C compiler vendor... " >&6; }
24174if ${ax_cv_c_compiler_vendor+:} false; then :
24175  $as_echo_n "(cached) " >&6
24176else
24177  # note: don't check for gcc first since some other compilers define __GNUC__
24178  vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
24179           ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
24180           pathscale: __PATHCC__,__PATHSCALE__
24181           clang:     __clang__
24182           gnu:       __GNUC__
24183           sun:       __SUNPRO_C,__SUNPRO_CC
24184           hp:        __HP_cc,__HP_aCC
24185           dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
24186           borland:   __BORLANDC__,__TURBOC__
24187           comeau:    __COMO__
24188           cray:      _CRAYC
24189           kai:       __KCC
24190           lcc:       __LCC__
24191           sgi:       __sgi,sgi
24192           microsoft: _MSC_VER
24193           metrowerks: __MWERKS__
24194           watcom:    __WATCOMC__
24195           portland:  __PGI
24196           unknown:   UNKNOWN"
24197  for ventest in $vendors; do
24198    case $ventest in
24199      *:) vendor=$ventest; continue ;;
24200      *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
24201    esac
24202    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24203/* end confdefs.h.  */
24204
24205int
24206main ()
24207{
24208
24209      #if !($vencpp)
24210        thisisanerror;
24211      #endif
24212
24213  ;
24214  return 0;
24215}
24216_ACEOF
24217if ac_fn_c_try_compile "$LINENO"; then :
24218  break
24219fi
24220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24221  done
24222  ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
24223
24224fi
24225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
24226$as_echo "$ax_cv_c_compiler_vendor" >&6; }
24227
24228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking C Compiler version" >&5
24229$as_echo_n "checking C Compiler version... " >&6; }
24230
24231    case "$ax_cv_c_compiler_vendor" in #(
24232  sun) :
24233    ax_c_compiler_version=`$CC -V 2>&1 | sed 1q` ;; #(
24234  intel) :
24235    ax_c_compiler_version=`$CC --version 2>&1 | sed 1q` ;; #(
24236  clang) :
24237    ax_c_compiler_version=`$CC --version 2>&1 | sed 1q` ;; #(
24238  gnu) :
24239    ax_c_compiler_version=`$CC --version | sed 1q` ;; #(
24240  mingw) :
24241    ax_c_compiler_version=`$CC --version | sed 1q` ;; #(
24242  *) :
24243    ax_c_compiler_version="unknown: $ax_cv_c_compiler_vendor" ;;
24244esac
24245
24246    { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$ax_c_compiler_version\"" >&5
24247$as_echo "\"$ax_c_compiler_version\"" >&6; }
24248    CC_VERSION_VENDOR="$ax_cv_c_compiler_vendor"
24249
24250    CC_VERSION="$ax_c_compiler_version"
24251
24252
24253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ Compiler version" >&5
24254$as_echo_n "checking C++ Compiler version... " >&6; }
24255
24256    case "$ax_cv_c_compiler_vendor" in #(
24257  sun) :
24258    ax_cxx_compiler_version=`$CXX -V 2>&1 | sed 1q` ;; #(
24259  intel) :
24260    ax_cxx_compiler_version=`$CXX --version 2>&1 | sed 1q` ;; #(
24261  clang) :
24262    ax_cxx_compiler_version=`$CXX --version 2>&1 | sed 1q` ;; #(
24263  gnu) :
24264    ax_cxx_compiler_version=`$CXX --version | sed 1q` ;; #(
24265  mingw) :
24266    ax_cxx_compiler_version=`$CXX --version | sed 1q` ;; #(
24267  *) :
24268    ax_cxx_compiler_version="unknown: $ax_cv_c_compiler_vendor" ;;
24269esac
24270
24271    { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$ax_cxx_compiler_version\"" >&5
24272$as_echo "\"$ax_cxx_compiler_version\"" >&6; }
24273    CXX_VERSION_VENDOR="$ax_cv_c_compiler_vendor"
24274
24275    CXX_VERSION="$ax_cxx_compiler_version"
24276
24277
24278
24279
24280    { $as_echo "$as_me:${as_lineno-$LINENO}: checking MINGW" >&5
24281$as_echo_n "checking MINGW... " >&6; }
24282    ac_fn_c_check_decl "$LINENO" "__MINGW32__" "ac_cv_have_decl___MINGW32__" "$ac_includes_default"
24283if test "x$ac_cv_have_decl___MINGW32__" = xyes; then :
24284  MINGW=yes
24285      ax_c_compiler_version_vendor=mingw
24286else
24287  MINGW=no
24288fi
24289
24290    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MINGW" >&5
24291$as_echo "$MINGW" >&6; }
24292
24293
24294
24295    if test "x$GCC" = xyes; then :
24296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24297/* end confdefs.h.  */
24298
24299#if !defined(__GNUC__) || (__GNUC__ < 4) || ((__GNUC__ >= 4) && (__GNUC_MINOR__ < 7))
24300# error GCC is Too Old!
24301#endif
24302
24303int
24304main ()
24305{
24306
24307  ;
24308  return 0;
24309}
24310_ACEOF
24311if ac_fn_c_try_compile "$LINENO"; then :
24312  ac_c_gcc_recent=yes
24313else
24314  ac_c_gcc_recent=no
24315fi
24316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24317
24318fi
24319
24320
24321
24322  CFLAG_VISIBILITY=
24323  HAVE_VISIBILITY=0
24324  if test -n "$GCC"; then
24325                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
24326$as_echo_n "checking whether the -Werror option is usable... " >&6; }
24327    if ${gl_cv_cc_vis_werror+:} false; then :
24328  $as_echo_n "(cached) " >&6
24329else
24330
24331      gl_save_CFLAGS="$CFLAGS"
24332      CFLAGS="$CFLAGS -Werror"
24333      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24334/* end confdefs.h.  */
24335
24336int
24337main ()
24338{
24339
24340  ;
24341  return 0;
24342}
24343_ACEOF
24344if ac_fn_c_try_compile "$LINENO"; then :
24345  gl_cv_cc_vis_werror=yes
24346else
24347  gl_cv_cc_vis_werror=no
24348fi
24349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24350      CFLAGS="$gl_save_CFLAGS"
24351fi
24352
24353    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
24354$as_echo "$gl_cv_cc_vis_werror" >&6; }
24355        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
24356$as_echo_n "checking for simple visibility declarations... " >&6; }
24357    if ${gl_cv_cc_visibility+:} false; then :
24358  $as_echo_n "(cached) " >&6
24359else
24360
24361      gl_save_CFLAGS="$CFLAGS"
24362      CFLAGS="$CFLAGS -fvisibility=hidden"
24363                                    if test $gl_cv_cc_vis_werror = yes; then
24364        CFLAGS="$CFLAGS -Werror"
24365      fi
24366      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24367/* end confdefs.h.  */
24368extern __attribute__((__visibility__("hidden"))) int hiddenvar;
24369             extern __attribute__((__visibility__("default"))) int exportedvar;
24370             extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
24371             extern __attribute__((__visibility__("default"))) int exportedfunc (void);
24372             void dummyfunc (void) {}
24373
24374int
24375main ()
24376{
24377
24378  ;
24379  return 0;
24380}
24381_ACEOF
24382if ac_fn_c_try_compile "$LINENO"; then :
24383  gl_cv_cc_visibility=yes
24384else
24385  gl_cv_cc_visibility=no
24386fi
24387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24388      CFLAGS="$gl_save_CFLAGS"
24389fi
24390
24391    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
24392$as_echo "$gl_cv_cc_visibility" >&6; }
24393    if test $gl_cv_cc_visibility = yes; then
24394      CFLAG_VISIBILITY="-fvisibility=hidden"
24395      HAVE_VISIBILITY=1
24396    fi
24397  fi
24398
24399
24400
24401cat >>confdefs.h <<_ACEOF
24402#define HAVE_VISIBILITY $HAVE_VISIBILITY
24403_ACEOF
24404
24405
24406if test "$CC" != "clang"; then :
24407
24408
24409
24410for flag in -z relro -z now; do
24411  as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_-Werror_$flag" | $as_tr_sh`
24412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
24413$as_echo_n "checking whether the linker accepts $flag... " >&6; }
24414if eval \${$as_CACHEVAR+:} false; then :
24415  $as_echo_n "(cached) " >&6
24416else
24417
24418  ax_check_save_flags=$LDFLAGS
24419  LDFLAGS="$LDFLAGS -Werror $flag"
24420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24421/* end confdefs.h.  */
24422
24423int
24424main ()
24425{
24426
24427  ;
24428  return 0;
24429}
24430_ACEOF
24431if ac_fn_c_try_link "$LINENO"; then :
24432  eval "$as_CACHEVAR=yes"
24433else
24434  eval "$as_CACHEVAR=no"
24435fi
24436rm -f core conftest.err conftest.$ac_objext \
24437    conftest$ac_exeext conftest.$ac_ext
24438  LDFLAGS=$ax_check_save_flags
24439fi
24440eval ac_res=\$$as_CACHEVAR
24441	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24442$as_echo "$ac_res" >&6; }
24443if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24444  if ${LDFLAGS+:} false; then :
24445  case " $LDFLAGS " in
24446    *" $flag "*)
24447      { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains \$flag"; } >&5
24448  (: LDFLAGS already contains $flag) 2>&5
24449  ac_status=$?
24450  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24451  test $ac_status = 0; }
24452      ;;
24453    *)
24454      { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS \$flag\""; } >&5
24455  (: LDFLAGS="$LDFLAGS $flag") 2>&5
24456  ac_status=$?
24457  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24458  test $ac_status = 0; }
24459      LDFLAGS="$LDFLAGS $flag"
24460      ;;
24461   esac
24462else
24463  LDFLAGS="$flag"
24464fi
24465
24466else
24467  :
24468fi
24469
24470done
24471
24472
24473          if test "x$ac_cv_warnings_as_errors" = xyes; then :
24474
24475
24476for flag in -Werror; do
24477  as_CACHEVAR=`$as_echo "ax_cv_check_ldflags__$flag" | $as_tr_sh`
24478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
24479$as_echo_n "checking whether the linker accepts $flag... " >&6; }
24480if eval \${$as_CACHEVAR+:} false; then :
24481  $as_echo_n "(cached) " >&6
24482else
24483
24484  ax_check_save_flags=$LDFLAGS
24485  LDFLAGS="$LDFLAGS  $flag"
24486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24487/* end confdefs.h.  */
24488
24489int
24490main ()
24491{
24492
24493  ;
24494  return 0;
24495}
24496_ACEOF
24497if ac_fn_c_try_link "$LINENO"; then :
24498  eval "$as_CACHEVAR=yes"
24499else
24500  eval "$as_CACHEVAR=no"
24501fi
24502rm -f core conftest.err conftest.$ac_objext \
24503    conftest$ac_exeext conftest.$ac_ext
24504  LDFLAGS=$ax_check_save_flags
24505fi
24506eval ac_res=\$$as_CACHEVAR
24507	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24508$as_echo "$ac_res" >&6; }
24509if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24510  if ${LDFLAGS+:} false; then :
24511  case " $LDFLAGS " in
24512    *" $flag "*)
24513      { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains \$flag"; } >&5
24514  (: LDFLAGS already contains $flag) 2>&5
24515  ac_status=$?
24516  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24517  test $ac_status = 0; }
24518      ;;
24519    *)
24520      { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS \$flag\""; } >&5
24521  (: LDFLAGS="$LDFLAGS $flag") 2>&5
24522  ac_status=$?
24523  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24524  test $ac_status = 0; }
24525      LDFLAGS="$LDFLAGS $flag"
24526      ;;
24527   esac
24528else
24529  LDFLAGS="$flag"
24530fi
24531
24532else
24533  :
24534fi
24535
24536done
24537
24538fi
24539          if test "x$ac_cv_vcs_checkout" = xyes; then :
24540
24541
24542
24543for flag in -rdynamic; do
24544  as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_-Werror_$flag" | $as_tr_sh`
24545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
24546$as_echo_n "checking whether the linker accepts $flag... " >&6; }
24547if eval \${$as_CACHEVAR+:} false; then :
24548  $as_echo_n "(cached) " >&6
24549else
24550
24551  ax_check_save_flags=$LDFLAGS
24552  LDFLAGS="$LDFLAGS -Werror $flag"
24553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24554/* end confdefs.h.  */
24555
24556int
24557main ()
24558{
24559
24560  ;
24561  return 0;
24562}
24563_ACEOF
24564if ac_fn_c_try_link "$LINENO"; then :
24565  eval "$as_CACHEVAR=yes"
24566else
24567  eval "$as_CACHEVAR=no"
24568fi
24569rm -f core conftest.err conftest.$ac_objext \
24570    conftest$ac_exeext conftest.$ac_ext
24571  LDFLAGS=$ax_check_save_flags
24572fi
24573eval ac_res=\$$as_CACHEVAR
24574	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24575$as_echo "$ac_res" >&6; }
24576if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24577  if ${LDFLAGS+:} false; then :
24578  case " $LDFLAGS " in
24579    *" $flag "*)
24580      { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains \$flag"; } >&5
24581  (: LDFLAGS already contains $flag) 2>&5
24582  ac_status=$?
24583  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24584  test $ac_status = 0; }
24585      ;;
24586    *)
24587      { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS \$flag\""; } >&5
24588  (: LDFLAGS="$LDFLAGS $flag") 2>&5
24589  ac_status=$?
24590  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24591  test $ac_status = 0; }
24592      LDFLAGS="$LDFLAGS $flag"
24593      ;;
24594   esac
24595else
24596  LDFLAGS="$flag"
24597fi
24598
24599else
24600  :
24601fi
24602
24603done
24604
24605
24606fi
24607
24608fi
24609
24610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts " >&5
24611$as_echo_n "checking whether C compiler accepts ... " >&6; }
24612if ${ax_cv_check_cflags__+:} false; then :
24613  $as_echo_n "(cached) " >&6
24614else
24615
24616  ax_check_save_flags=$CFLAGS
24617  CFLAGS="$CFLAGS  "
24618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24619/* end confdefs.h.  */
24620
24621int
24622main ()
24623{
24624
24625  ;
24626  return 0;
24627}
24628_ACEOF
24629if ac_fn_c_try_compile "$LINENO"; then :
24630  ax_cv_check_cflags__=yes
24631else
24632  ax_cv_check_cflags__=no
24633fi
24634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24635  CFLAGS=$ax_check_save_flags
24636fi
24637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__" >&5
24638$as_echo "$ax_cv_check_cflags__" >&6; }
24639if test x"$ax_cv_check_cflags__" = xyes; then :
24640  :
24641else
24642  :
24643fi
24644
24645
24646
24647for flag in ; do
24648  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
24649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24650$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24651if eval \${$as_CACHEVAR+:} false; then :
24652  $as_echo_n "(cached) " >&6
24653else
24654
24655  ax_check_save_flags=$CFLAGS
24656  CFLAGS="$CFLAGS  $flag"
24657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24658/* end confdefs.h.  */
24659
24660int
24661main ()
24662{
24663
24664  ;
24665  return 0;
24666}
24667_ACEOF
24668if ac_fn_c_try_compile "$LINENO"; then :
24669  eval "$as_CACHEVAR=yes"
24670else
24671  eval "$as_CACHEVAR=no"
24672fi
24673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24674  CFLAGS=$ax_check_save_flags
24675fi
24676eval ac_res=\$$as_CACHEVAR
24677	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24678$as_echo "$ac_res" >&6; }
24679if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24680  if ${CFLAGS+:} false; then :
24681  case " $CFLAGS " in
24682    *" $flag "*)
24683      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24684  (: CFLAGS already contains $flag) 2>&5
24685  ac_status=$?
24686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24687  test $ac_status = 0; }
24688      ;;
24689    *)
24690      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24691  (: CFLAGS="$CFLAGS $flag") 2>&5
24692  ac_status=$?
24693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24694  test $ac_status = 0; }
24695      CFLAGS="$CFLAGS $flag"
24696      ;;
24697   esac
24698else
24699  CFLAGS="$flag"
24700fi
24701
24702else
24703  :
24704fi
24705
24706done
24707
24708ac_ext=c
24709ac_cpp='$CPP $CPPFLAGS'
24710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24712ac_compiler_gnu=$ac_cv_c_compiler_gnu
24713
24714         if test "x$ax_enable_debug" = xyes; then :
24715  CFLAGS=''
24716
24717
24718
24719for flag in -H; do
24720  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
24721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24722$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24723if eval \${$as_CACHEVAR+:} false; then :
24724  $as_echo_n "(cached) " >&6
24725else
24726
24727  ax_check_save_flags=$CFLAGS
24728  CFLAGS="$CFLAGS -Werror $flag"
24729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24730/* end confdefs.h.  */
24731
24732int
24733main ()
24734{
24735
24736  ;
24737  return 0;
24738}
24739_ACEOF
24740if ac_fn_c_try_compile "$LINENO"; then :
24741  eval "$as_CACHEVAR=yes"
24742else
24743  eval "$as_CACHEVAR=no"
24744fi
24745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24746  CFLAGS=$ax_check_save_flags
24747fi
24748eval ac_res=\$$as_CACHEVAR
24749	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24750$as_echo "$ac_res" >&6; }
24751if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24752  if ${CFLAGS+:} false; then :
24753  case " $CFLAGS " in
24754    *" $flag "*)
24755      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24756  (: CFLAGS already contains $flag) 2>&5
24757  ac_status=$?
24758  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24759  test $ac_status = 0; }
24760      ;;
24761    *)
24762      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24763  (: CFLAGS="$CFLAGS $flag") 2>&5
24764  ac_status=$?
24765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24766  test $ac_status = 0; }
24767      CFLAGS="$CFLAGS $flag"
24768      ;;
24769   esac
24770else
24771  CFLAGS="$flag"
24772fi
24773
24774else
24775  :
24776fi
24777
24778done
24779
24780
24781
24782
24783
24784for flag in -ggdb; do
24785  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
24786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24787$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24788if eval \${$as_CACHEVAR+:} false; then :
24789  $as_echo_n "(cached) " >&6
24790else
24791
24792  ax_check_save_flags=$CFLAGS
24793  CFLAGS="$CFLAGS -Werror $flag"
24794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24795/* end confdefs.h.  */
24796
24797int
24798main ()
24799{
24800
24801  ;
24802  return 0;
24803}
24804_ACEOF
24805if ac_fn_c_try_compile "$LINENO"; then :
24806  eval "$as_CACHEVAR=yes"
24807else
24808  eval "$as_CACHEVAR=no"
24809fi
24810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24811  CFLAGS=$ax_check_save_flags
24812fi
24813eval ac_res=\$$as_CACHEVAR
24814	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24815$as_echo "$ac_res" >&6; }
24816if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24817  if ${CFLAGS+:} false; then :
24818  case " $CFLAGS " in
24819    *" $flag "*)
24820      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24821  (: CFLAGS already contains $flag) 2>&5
24822  ac_status=$?
24823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24824  test $ac_status = 0; }
24825      ;;
24826    *)
24827      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24828  (: CFLAGS="$CFLAGS $flag") 2>&5
24829  ac_status=$?
24830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24831  test $ac_status = 0; }
24832      CFLAGS="$CFLAGS $flag"
24833      ;;
24834   esac
24835else
24836  CFLAGS="$flag"
24837fi
24838
24839else
24840  :
24841fi
24842
24843done
24844
24845
24846
24847
24848
24849for flag in -g; do
24850  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
24851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24852$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24853if eval \${$as_CACHEVAR+:} false; then :
24854  $as_echo_n "(cached) " >&6
24855else
24856
24857  ax_check_save_flags=$CFLAGS
24858  CFLAGS="$CFLAGS -Werror $flag"
24859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24860/* end confdefs.h.  */
24861
24862int
24863main ()
24864{
24865
24866  ;
24867  return 0;
24868}
24869_ACEOF
24870if ac_fn_c_try_compile "$LINENO"; then :
24871  eval "$as_CACHEVAR=yes"
24872else
24873  eval "$as_CACHEVAR=no"
24874fi
24875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24876  CFLAGS=$ax_check_save_flags
24877fi
24878eval ac_res=\$$as_CACHEVAR
24879	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24880$as_echo "$ac_res" >&6; }
24881if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24882  if ${CFLAGS+:} false; then :
24883  case " $CFLAGS " in
24884    *" $flag "*)
24885      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24886  (: CFLAGS already contains $flag) 2>&5
24887  ac_status=$?
24888  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24889  test $ac_status = 0; }
24890      ;;
24891    *)
24892      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24893  (: CFLAGS="$CFLAGS $flag") 2>&5
24894  ac_status=$?
24895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24896  test $ac_status = 0; }
24897      CFLAGS="$CFLAGS $flag"
24898      ;;
24899   esac
24900else
24901  CFLAGS="$flag"
24902fi
24903
24904else
24905  :
24906fi
24907
24908done
24909
24910
24911
24912
24913
24914for flag in -O0; do
24915  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
24916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24917$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24918if eval \${$as_CACHEVAR+:} false; then :
24919  $as_echo_n "(cached) " >&6
24920else
24921
24922  ax_check_save_flags=$CFLAGS
24923  CFLAGS="$CFLAGS -Werror $flag"
24924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24925/* end confdefs.h.  */
24926
24927int
24928main ()
24929{
24930
24931  ;
24932  return 0;
24933}
24934_ACEOF
24935if ac_fn_c_try_compile "$LINENO"; then :
24936  eval "$as_CACHEVAR=yes"
24937else
24938  eval "$as_CACHEVAR=no"
24939fi
24940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24941  CFLAGS=$ax_check_save_flags
24942fi
24943eval ac_res=\$$as_CACHEVAR
24944	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24945$as_echo "$ac_res" >&6; }
24946if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24947  if ${CFLAGS+:} false; then :
24948  case " $CFLAGS " in
24949    *" $flag "*)
24950      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24951  (: CFLAGS already contains $flag) 2>&5
24952  ac_status=$?
24953  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24954  test $ac_status = 0; }
24955      ;;
24956    *)
24957      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24958  (: CFLAGS="$CFLAGS $flag") 2>&5
24959  ac_status=$?
24960  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24961  test $ac_status = 0; }
24962      CFLAGS="$CFLAGS $flag"
24963      ;;
24964   esac
24965else
24966  CFLAGS="$flag"
24967fi
24968
24969else
24970  :
24971fi
24972
24973done
24974
24975         ,
24976
24977
24978
24979for flag in -fno-omit-frame-pointer; do
24980  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
24981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24982$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24983if eval \${$as_CACHEVAR+:} false; then :
24984  $as_echo_n "(cached) " >&6
24985else
24986
24987  ax_check_save_flags=$CFLAGS
24988  CFLAGS="$CFLAGS -Werror $flag"
24989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24990/* end confdefs.h.  */
24991
24992int
24993main ()
24994{
24995
24996  ;
24997  return 0;
24998}
24999_ACEOF
25000if ac_fn_c_try_compile "$LINENO"; then :
25001  eval "$as_CACHEVAR=yes"
25002else
25003  eval "$as_CACHEVAR=no"
25004fi
25005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25006  CFLAGS=$ax_check_save_flags
25007fi
25008eval ac_res=\$$as_CACHEVAR
25009	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25010$as_echo "$ac_res" >&6; }
25011if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
25012  if ${CFLAGS+:} false; then :
25013  case " $CFLAGS " in
25014    *" $flag "*)
25015      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
25016  (: CFLAGS already contains $flag) 2>&5
25017  ac_status=$?
25018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25019  test $ac_status = 0; }
25020      ;;
25021    *)
25022      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
25023  (: CFLAGS="$CFLAGS $flag") 2>&5
25024  ac_status=$?
25025  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25026  test $ac_status = 0; }
25027      CFLAGS="$CFLAGS $flag"
25028      ;;
25029   esac
25030else
25031  CFLAGS="$flag"
25032fi
25033
25034else
25035  :
25036fi
25037
25038done
25039
25040
25041
25042else
25043
25044
25045
25046
25047for flag in -g; do
25048  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
25049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
25050$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
25051if eval \${$as_CACHEVAR+:} false; then :
25052  $as_echo_n "(cached) " >&6
25053else
25054
25055  ax_check_save_flags=$CFLAGS
25056  CFLAGS="$CFLAGS -Werror $flag"
25057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25058/* end confdefs.h.  */
25059
25060int
25061main ()
25062{
25063
25064  ;
25065  return 0;
25066}
25067_ACEOF
25068if ac_fn_c_try_compile "$LINENO"; then :
25069  eval "$as_CACHEVAR=yes"
25070else
25071  eval "$as_CACHEVAR=no"
25072fi
25073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25074  CFLAGS=$ax_check_save_flags
25075fi
25076eval ac_res=\$$as_CACHEVAR
25077	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25078$as_echo "$ac_res" >&6; }
25079if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
25080  if ${CFLAGS+:} false; then :
25081  case " $CFLAGS " in
25082    *" $flag "*)
25083      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
25084  (: CFLAGS already contains $flag) 2>&5
25085  ac_status=$?
25086  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25087  test $ac_status = 0; }
25088      ;;
25089    *)
25090      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
25091  (: CFLAGS="$CFLAGS $flag") 2>&5
25092  ac_status=$?
25093  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25094  test $ac_status = 0; }
25095      CFLAGS="$CFLAGS $flag"
25096      ;;
25097   esac
25098else
25099  CFLAGS="$flag"
25100fi
25101
25102else
25103  :
25104fi
25105
25106done
25107
25108
25109
25110
25111
25112for flag in -O2; do
25113  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
25114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
25115$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
25116if eval \${$as_CACHEVAR+:} false; then :
25117  $as_echo_n "(cached) " >&6
25118else
25119
25120  ax_check_save_flags=$CFLAGS
25121  CFLAGS="$CFLAGS -Werror $flag"
25122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25123/* end confdefs.h.  */
25124
25125int
25126main ()
25127{
25128
25129  ;
25130  return 0;
25131}
25132_ACEOF
25133if ac_fn_c_try_compile "$LINENO"; then :
25134  eval "$as_CACHEVAR=yes"
25135else
25136  eval "$as_CACHEVAR=no"
25137fi
25138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25139  CFLAGS=$ax_check_save_flags
25140fi
25141eval ac_res=\$$as_CACHEVAR
25142	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25143$as_echo "$ac_res" >&6; }
25144if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
25145  if ${CFLAGS+:} false; then :
25146  case " $CFLAGS " in
25147    *" $flag "*)
25148      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
25149  (: CFLAGS already contains $flag) 2>&5
25150  ac_status=$?
25151  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25152  test $ac_status = 0; }
25153      ;;
25154    *)
25155      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
25156  (: CFLAGS="$CFLAGS $flag") 2>&5
25157  ac_status=$?
25158  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25159  test $ac_status = 0; }
25160      CFLAGS="$CFLAGS $flag"
25161      ;;
25162   esac
25163else
25164  CFLAGS="$flag"
25165fi
25166
25167else
25168  :
25169fi
25170
25171done
25172
25173
25174
25175fi
25176
25177         if test "x$ac_cv_vcs_checkout" = xyes; then :
25178
25179
25180
25181for flag in -fstack-check; do
25182  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
25183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
25184$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
25185if eval \${$as_CACHEVAR+:} false; then :
25186  $as_echo_n "(cached) " >&6
25187else
25188
25189  ax_check_save_flags=$CFLAGS
25190  CFLAGS="$CFLAGS -Werror $flag"
25191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25192/* end confdefs.h.  */
25193
25194int
25195main ()
25196{
25197
25198  ;
25199  return 0;
25200}
25201_ACEOF
25202if ac_fn_c_try_compile "$LINENO"; then :
25203  eval "$as_CACHEVAR=yes"
25204else
25205  eval "$as_CACHEVAR=no"
25206fi
25207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25208  CFLAGS=$ax_check_save_flags
25209fi
25210eval ac_res=\$$as_CACHEVAR
25211	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25212$as_echo "$ac_res" >&6; }
25213if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
25214  if ${CFLAGS+:} false; then :
25215  case " $CFLAGS " in
25216    *" $flag "*)
25217      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
25218  (: CFLAGS already contains $flag) 2>&5
25219  ac_status=$?
25220  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25221  test $ac_status = 0; }
25222      ;;
25223    *)
25224      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
25225  (: CFLAGS="$CFLAGS $flag") 2>&5
25226  ac_status=$?
25227  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25228  test $ac_status = 0; }
25229      CFLAGS="$CFLAGS $flag"
25230      ;;
25231   esac
25232else
25233  CFLAGS="$flag"
25234fi
25235
25236else
25237  :
25238fi
25239
25240done
25241
25242
25243
25244
25245
25246for flag in -Wpragmas; do
25247  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
25248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
25249$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
25250if eval \${$as_CACHEVAR+:} false; then :
25251  $as_echo_n "(cached) " >&6
25252else
25253
25254  ax_check_save_flags=$CFLAGS
25255  CFLAGS="$CFLAGS -Werror $flag"
25256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25257/* end confdefs.h.  */
25258
25259int
25260main ()
25261{
25262
25263  ;
25264  return 0;
25265}
25266_ACEOF
25267if ac_fn_c_try_compile "$LINENO"; then :
25268  eval "$as_CACHEVAR=yes"
25269else
25270  eval "$as_CACHEVAR=no"
25271fi
25272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25273  CFLAGS=$ax_check_save_flags
25274fi
25275eval ac_res=\$$as_CACHEVAR
25276	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25277$as_echo "$ac_res" >&6; }
25278if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
25279  if ${CFLAGS+:} false; then :
25280  case " $CFLAGS " in
25281    *" $flag "*)
25282      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
25283  (: CFLAGS already contains $flag) 2>&5
25284  ac_status=$?
25285  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25286  test $ac_status = 0; }
25287      ;;
25288    *)
25289      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
25290  (: CFLAGS="$CFLAGS $flag") 2>&5
25291  ac_status=$?
25292  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25293  test $ac_status = 0; }
25294      CFLAGS="$CFLAGS $flag"
25295      ;;
25296   esac
25297else
25298  CFLAGS="$flag"
25299fi
25300
25301else
25302  :
25303fi
25304
25305done
25306
25307
25308
25309
25310
25311for flag in -Wunknown-pragmas; do
25312  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
25313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
25314$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
25315if eval \${$as_CACHEVAR+:} false; then :
25316  $as_echo_n "(cached) " >&6
25317else
25318
25319  ax_check_save_flags=$CFLAGS
25320  CFLAGS="$CFLAGS -Werror $flag"
25321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25322/* end confdefs.h.  */
25323
25324int
25325main ()
25326{
25327
25328  ;
25329  return 0;
25330}
25331_ACEOF
25332if ac_fn_c_try_compile "$LINENO"; then :
25333  eval "$as_CACHEVAR=yes"
25334else
25335  eval "$as_CACHEVAR=no"
25336fi
25337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25338  CFLAGS=$ax_check_save_flags
25339fi
25340eval ac_res=\$$as_CACHEVAR
25341	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25342$as_echo "$ac_res" >&6; }
25343if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
25344  if ${CFLAGS+:} false; then :
25345  case " $CFLAGS " in
25346    *" $flag "*)
25347      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
25348  (: CFLAGS already contains $flag) 2>&5
25349  ac_status=$?
25350  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25351  test $ac_status = 0; }
25352      ;;
25353    *)
25354      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
25355  (: CFLAGS="$CFLAGS $flag") 2>&5
25356  ac_status=$?
25357  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25358  test $ac_status = 0; }
25359      CFLAGS="$CFLAGS $flag"
25360      ;;
25361   esac
25362else
25363  CFLAGS="$flag"
25364fi
25365
25366else
25367  :
25368fi
25369
25370done
25371
25372
25373else
25374
25375
25376
25377for flag in -Wno-unknown-pragmas; do
25378  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
25379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
25380$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
25381if eval \${$as_CACHEVAR+:} false; then :
25382  $as_echo_n "(cached) " >&6
25383else
25384
25385  ax_check_save_flags=$CFLAGS
25386  CFLAGS="$CFLAGS -Werror $flag"
25387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25388/* end confdefs.h.  */
25389
25390int
25391main ()
25392{
25393
25394  ;
25395  return 0;
25396}
25397_ACEOF
25398if ac_fn_c_try_compile "$LINENO"; then :
25399  eval "$as_CACHEVAR=yes"
25400else
25401  eval "$as_CACHEVAR=no"
25402fi
25403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25404  CFLAGS=$ax_check_save_flags
25405fi
25406eval ac_res=\$$as_CACHEVAR
25407	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25408$as_echo "$ac_res" >&6; }
25409if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
25410  if ${CFLAGS+:} false; then :
25411  case " $CFLAGS " in
25412    *" $flag "*)
25413      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
25414  (: CFLAGS already contains $flag) 2>&5
25415  ac_status=$?
25416  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25417  test $ac_status = 0; }
25418      ;;
25419    *)
25420      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
25421  (: CFLAGS="$CFLAGS $flag") 2>&5
25422  ac_status=$?
25423  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25424  test $ac_status = 0; }
25425      CFLAGS="$CFLAGS $flag"
25426      ;;
25427   esac
25428else
25429  CFLAGS="$flag"
25430fi
25431
25432else
25433  :
25434fi
25435
25436done
25437
25438
25439
25440
25441
25442for flag in -Wno-pragmas; do
25443  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
25444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
25445$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
25446if eval \${$as_CACHEVAR+:} false; then :
25447  $as_echo_n "(cached) " >&6
25448else
25449
25450  ax_check_save_flags=$CFLAGS
25451  CFLAGS="$CFLAGS -Werror $flag"
25452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25453/* end confdefs.h.  */
25454
25455int
25456main ()
25457{
25458
25459  ;
25460  return 0;
25461}
25462_ACEOF
25463if ac_fn_c_try_compile "$LINENO"; then :
25464  eval "$as_CACHEVAR=yes"
25465else
25466  eval "$as_CACHEVAR=no"
25467fi
25468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25469  CFLAGS=$ax_check_save_flags
25470fi
25471eval ac_res=\$$as_CACHEVAR
25472	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25473$as_echo "$ac_res" >&6; }
25474if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
25475  if ${CFLAGS+:} false; then :
25476  case " $CFLAGS " in
25477    *" $flag "*)
25478      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
25479  (: CFLAGS already contains $flag) 2>&5
25480  ac_status=$?
25481  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25482  test $ac_status = 0; }
25483      ;;
25484    *)
25485      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
25486  (: CFLAGS="$CFLAGS $flag") 2>&5
25487  ac_status=$?
25488  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25489  test $ac_status = 0; }
25490      CFLAGS="$CFLAGS $flag"
25491      ;;
25492   esac
25493else
25494  CFLAGS="$flag"
25495fi
25496
25497else
25498  :
25499fi
25500
25501done
25502
25503
25504fi
25505
25506         if test "$CC" = "clang"; then :
25507
25508
25509
25510for flag in -Qunused-arguments; do
25511  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
25512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
25513$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
25514if eval \${$as_CACHEVAR+:} false; then :
25515  $as_echo_n "(cached) " >&6
25516else
25517
25518  ax_check_save_flags=$CFLAGS
25519  CFLAGS="$CFLAGS -Werror $flag"
25520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25521/* end confdefs.h.  */
25522
25523int
25524main ()
25525{
25526
25527  ;
25528  return 0;
25529}
25530_ACEOF
25531if ac_fn_c_try_compile "$LINENO"; then :
25532  eval "$as_CACHEVAR=yes"
25533else
25534  eval "$as_CACHEVAR=no"
25535fi
25536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25537  CFLAGS=$ax_check_save_flags
25538fi
25539eval ac_res=\$$as_CACHEVAR
25540	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25541$as_echo "$ac_res" >&6; }
25542if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
25543  if ${CFLAGS+:} false; then :
25544  case " $CFLAGS " in
25545    *" $flag "*)
25546      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
25547  (: CFLAGS already contains $flag) 2>&5
25548  ac_status=$?
25549  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25550  test $ac_status = 0; }
25551      ;;
25552    *)
25553      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
25554  (: CFLAGS="$CFLAGS $flag") 2>&5
25555  ac_status=$?
25556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25557  test $ac_status = 0; }
25558      CFLAGS="$CFLAGS $flag"
25559      ;;
25560   esac
25561else
25562  CFLAGS="$flag"
25563fi
25564
25565else
25566  :
25567fi
25568
25569done
25570
25571
25572fi
25573
25574
25575
25576
25577for flag in -Wall; do
25578  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
25579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
25580$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
25581if eval \${$as_CACHEVAR+:} false; then :
25582  $as_echo_n "(cached) " >&6
25583else
25584
25585  ax_check_save_flags=$CFLAGS
25586  CFLAGS="$CFLAGS -Werror $flag"
25587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25588/* end confdefs.h.  */
25589
25590int
25591main ()
25592{
25593
25594  ;
25595  return 0;
25596}
25597_ACEOF
25598if ac_fn_c_try_compile "$LINENO"; then :
25599  eval "$as_CACHEVAR=yes"
25600else
25601  eval "$as_CACHEVAR=no"
25602fi
25603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25604  CFLAGS=$ax_check_save_flags
25605fi
25606eval ac_res=\$$as_CACHEVAR
25607	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25608$as_echo "$ac_res" >&6; }
25609if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
25610  if ${CFLAGS+:} false; then :
25611  case " $CFLAGS " in
25612    *" $flag "*)
25613      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
25614  (: CFLAGS already contains $flag) 2>&5
25615  ac_status=$?
25616  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25617  test $ac_status = 0; }
25618      ;;
25619    *)
25620      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
25621  (: CFLAGS="$CFLAGS $flag") 2>&5
25622  ac_status=$?
25623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25624  test $ac_status = 0; }
25625      CFLAGS="$CFLAGS $flag"
25626      ;;
25627   esac
25628else
25629  CFLAGS="$flag"
25630fi
25631
25632else
25633  :
25634fi
25635
25636done
25637
25638
25639
25640
25641
25642for flag in -Wextra; do
25643  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
25644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
25645$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
25646if eval \${$as_CACHEVAR+:} false; then :
25647  $as_echo_n "(cached) " >&6
25648else
25649
25650  ax_check_save_flags=$CFLAGS
25651  CFLAGS="$CFLAGS -Werror $flag"
25652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25653/* end confdefs.h.  */
25654
25655int
25656main ()
25657{
25658
25659  ;
25660  return 0;
25661}
25662_ACEOF
25663if ac_fn_c_try_compile "$LINENO"; then :
25664  eval "$as_CACHEVAR=yes"
25665else
25666  eval "$as_CACHEVAR=no"
25667fi
25668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25669  CFLAGS=$ax_check_save_flags
25670fi
25671eval ac_res=\$$as_CACHEVAR
25672	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25673$as_echo "$ac_res" >&6; }
25674if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
25675  if ${CFLAGS+:} false; then :
25676  case " $CFLAGS " in
25677    *" $flag "*)
25678      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
25679  (: CFLAGS already contains $flag) 2>&5
25680  ac_status=$?
25681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25682  test $ac_status = 0; }
25683      ;;
25684    *)
25685      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
25686  (: CFLAGS="$CFLAGS $flag") 2>&5
25687  ac_status=$?
25688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25689  test $ac_status = 0; }
25690      CFLAGS="$CFLAGS $flag"
25691      ;;
25692   esac
25693else
25694  CFLAGS="$flag"
25695fi
25696
25697else
25698  :
25699fi
25700
25701done
25702
25703
25704
25705
25706
25707for flag in -Weverything; do
25708  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
25709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
25710$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
25711if eval \${$as_CACHEVAR+:} false; then :
25712  $as_echo_n "(cached) " >&6
25713else
25714
25715  ax_check_save_flags=$CFLAGS
25716  CFLAGS="$CFLAGS -Werror $flag"
25717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25718/* end confdefs.h.  */
25719
25720int
25721main ()
25722{
25723
25724  ;
25725  return 0;
25726}
25727_ACEOF
25728if ac_fn_c_try_compile "$LINENO"; then :
25729  eval "$as_CACHEVAR=yes"
25730else
25731  eval "$as_CACHEVAR=no"
25732fi
25733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25734  CFLAGS=$ax_check_save_flags
25735fi
25736eval ac_res=\$$as_CACHEVAR
25737	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25738$as_echo "$ac_res" >&6; }
25739if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
25740  if ${CFLAGS+:} false; then :
25741  case " $CFLAGS " in
25742    *" $flag "*)
25743      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
25744  (: CFLAGS already contains $flag) 2>&5
25745  ac_status=$?
25746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25747  test $ac_status = 0; }
25748      ;;
25749    *)
25750      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
25751  (: CFLAGS="$CFLAGS $flag") 2>&5
25752  ac_status=$?
25753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25754  test $ac_status = 0; }
25755      CFLAGS="$CFLAGS $flag"
25756      ;;
25757   esac
25758else
25759  CFLAGS="$flag"
25760fi
25761
25762else
25763  :
25764fi
25765
25766done
25767
25768
25769
25770
25771
25772for flag in -Wthis-test-should-fail; do
25773  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
25774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
25775$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
25776if eval \${$as_CACHEVAR+:} false; then :
25777  $as_echo_n "(cached) " >&6
25778else
25779
25780  ax_check_save_flags=$CFLAGS
25781  CFLAGS="$CFLAGS -Werror $flag"
25782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25783/* end confdefs.h.  */
25784
25785int
25786main ()
25787{
25788
25789  ;
25790  return 0;
25791}
25792_ACEOF
25793if ac_fn_c_try_compile "$LINENO"; then :
25794  eval "$as_CACHEVAR=yes"
25795else
25796  eval "$as_CACHEVAR=no"
25797fi
25798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25799  CFLAGS=$ax_check_save_flags
25800fi
25801eval ac_res=\$$as_CACHEVAR
25802	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25803$as_echo "$ac_res" >&6; }
25804if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
25805  if ${CFLAGS+:} false; then :
25806  case " $CFLAGS " in
25807    *" $flag "*)
25808      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
25809  (: CFLAGS already contains $flag) 2>&5
25810  ac_status=$?
25811  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25812  test $ac_status = 0; }
25813      ;;
25814    *)
25815      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
25816  (: CFLAGS="$CFLAGS $flag") 2>&5
25817  ac_status=$?
25818  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25819  test $ac_status = 0; }
25820      CFLAGS="$CFLAGS $flag"
25821      ;;
25822   esac
25823else
25824  CFLAGS="$flag"
25825fi
25826
25827else
25828  :
25829fi
25830
25831done
25832
25833
25834# Anything below this comment please keep sorted.
25835# _APPEND_COMPILE_FLAGS_ERROR([-Wmissing-format-attribute])
25836
25837
25838
25839for flag in -Wunsuffixed-float-constants; do
25840  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
25841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
25842$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
25843if eval \${$as_CACHEVAR+:} false; then :
25844  $as_echo_n "(cached) " >&6
25845else
25846
25847  ax_check_save_flags=$CFLAGS
25848  CFLAGS="$CFLAGS -Werror $flag"
25849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25850/* end confdefs.h.  */
25851
25852int
25853main ()
25854{
25855
25856  ;
25857  return 0;
25858}
25859_ACEOF
25860if ac_fn_c_try_compile "$LINENO"; then :
25861  eval "$as_CACHEVAR=yes"
25862else
25863  eval "$as_CACHEVAR=no"
25864fi
25865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25866  CFLAGS=$ax_check_save_flags
25867fi
25868eval ac_res=\$$as_CACHEVAR
25869	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25870$as_echo "$ac_res" >&6; }
25871if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
25872  if ${CFLAGS+:} false; then :
25873  case " $CFLAGS " in
25874    *" $flag "*)
25875      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
25876  (: CFLAGS already contains $flag) 2>&5
25877  ac_status=$?
25878  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25879  test $ac_status = 0; }
25880      ;;
25881    *)
25882      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
25883  (: CFLAGS="$CFLAGS $flag") 2>&5
25884  ac_status=$?
25885  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25886  test $ac_status = 0; }
25887      CFLAGS="$CFLAGS $flag"
25888      ;;
25889   esac
25890else
25891  CFLAGS="$flag"
25892fi
25893
25894else
25895  :
25896fi
25897
25898done
25899
25900
25901
25902
25903
25904for flag in -Wjump-misses-init; do
25905  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
25906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
25907$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
25908if eval \${$as_CACHEVAR+:} false; then :
25909  $as_echo_n "(cached) " >&6
25910else
25911
25912  ax_check_save_flags=$CFLAGS
25913  CFLAGS="$CFLAGS -Werror $flag"
25914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25915/* end confdefs.h.  */
25916
25917int
25918main ()
25919{
25920
25921  ;
25922  return 0;
25923}
25924_ACEOF
25925if ac_fn_c_try_compile "$LINENO"; then :
25926  eval "$as_CACHEVAR=yes"
25927else
25928  eval "$as_CACHEVAR=no"
25929fi
25930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25931  CFLAGS=$ax_check_save_flags
25932fi
25933eval ac_res=\$$as_CACHEVAR
25934	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25935$as_echo "$ac_res" >&6; }
25936if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
25937  if ${CFLAGS+:} false; then :
25938  case " $CFLAGS " in
25939    *" $flag "*)
25940      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
25941  (: CFLAGS already contains $flag) 2>&5
25942  ac_status=$?
25943  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25944  test $ac_status = 0; }
25945      ;;
25946    *)
25947      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
25948  (: CFLAGS="$CFLAGS $flag") 2>&5
25949  ac_status=$?
25950  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25951  test $ac_status = 0; }
25952      CFLAGS="$CFLAGS $flag"
25953      ;;
25954   esac
25955else
25956  CFLAGS="$flag"
25957fi
25958
25959else
25960  :
25961fi
25962
25963done
25964
25965
25966
25967
25968
25969for flag in -Wno-attributes; do
25970  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
25971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
25972$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
25973if eval \${$as_CACHEVAR+:} false; then :
25974  $as_echo_n "(cached) " >&6
25975else
25976
25977  ax_check_save_flags=$CFLAGS
25978  CFLAGS="$CFLAGS -Werror $flag"
25979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25980/* end confdefs.h.  */
25981
25982int
25983main ()
25984{
25985
25986  ;
25987  return 0;
25988}
25989_ACEOF
25990if ac_fn_c_try_compile "$LINENO"; then :
25991  eval "$as_CACHEVAR=yes"
25992else
25993  eval "$as_CACHEVAR=no"
25994fi
25995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25996  CFLAGS=$ax_check_save_flags
25997fi
25998eval ac_res=\$$as_CACHEVAR
25999	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26000$as_echo "$ac_res" >&6; }
26001if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
26002  if ${CFLAGS+:} false; then :
26003  case " $CFLAGS " in
26004    *" $flag "*)
26005      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
26006  (: CFLAGS already contains $flag) 2>&5
26007  ac_status=$?
26008  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26009  test $ac_status = 0; }
26010      ;;
26011    *)
26012      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
26013  (: CFLAGS="$CFLAGS $flag") 2>&5
26014  ac_status=$?
26015  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26016  test $ac_status = 0; }
26017      CFLAGS="$CFLAGS $flag"
26018      ;;
26019   esac
26020else
26021  CFLAGS="$flag"
26022fi
26023
26024else
26025  :
26026fi
26027
26028done
26029
26030
26031
26032
26033
26034for flag in -Waddress; do
26035  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
26036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
26037$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
26038if eval \${$as_CACHEVAR+:} false; then :
26039  $as_echo_n "(cached) " >&6
26040else
26041
26042  ax_check_save_flags=$CFLAGS
26043  CFLAGS="$CFLAGS -Werror $flag"
26044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26045/* end confdefs.h.  */
26046
26047int
26048main ()
26049{
26050
26051  ;
26052  return 0;
26053}
26054_ACEOF
26055if ac_fn_c_try_compile "$LINENO"; then :
26056  eval "$as_CACHEVAR=yes"
26057else
26058  eval "$as_CACHEVAR=no"
26059fi
26060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26061  CFLAGS=$ax_check_save_flags
26062fi
26063eval ac_res=\$$as_CACHEVAR
26064	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26065$as_echo "$ac_res" >&6; }
26066if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
26067  if ${CFLAGS+:} false; then :
26068  case " $CFLAGS " in
26069    *" $flag "*)
26070      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
26071  (: CFLAGS already contains $flag) 2>&5
26072  ac_status=$?
26073  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26074  test $ac_status = 0; }
26075      ;;
26076    *)
26077      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
26078  (: CFLAGS="$CFLAGS $flag") 2>&5
26079  ac_status=$?
26080  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26081  test $ac_status = 0; }
26082      CFLAGS="$CFLAGS $flag"
26083      ;;
26084   esac
26085else
26086  CFLAGS="$flag"
26087fi
26088
26089else
26090  :
26091fi
26092
26093done
26094
26095
26096
26097
26098
26099for flag in -Wvarargs; do
26100  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
26101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
26102$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
26103if eval \${$as_CACHEVAR+:} false; then :
26104  $as_echo_n "(cached) " >&6
26105else
26106
26107  ax_check_save_flags=$CFLAGS
26108  CFLAGS="$CFLAGS -Werror $flag"
26109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26110/* end confdefs.h.  */
26111
26112int
26113main ()
26114{
26115
26116  ;
26117  return 0;
26118}
26119_ACEOF
26120if ac_fn_c_try_compile "$LINENO"; then :
26121  eval "$as_CACHEVAR=yes"
26122else
26123  eval "$as_CACHEVAR=no"
26124fi
26125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26126  CFLAGS=$ax_check_save_flags
26127fi
26128eval ac_res=\$$as_CACHEVAR
26129	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26130$as_echo "$ac_res" >&6; }
26131if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
26132  if ${CFLAGS+:} false; then :
26133  case " $CFLAGS " in
26134    *" $flag "*)
26135      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
26136  (: CFLAGS already contains $flag) 2>&5
26137  ac_status=$?
26138  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26139  test $ac_status = 0; }
26140      ;;
26141    *)
26142      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
26143  (: CFLAGS="$CFLAGS $flag") 2>&5
26144  ac_status=$?
26145  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26146  test $ac_status = 0; }
26147      CFLAGS="$CFLAGS $flag"
26148      ;;
26149   esac
26150else
26151  CFLAGS="$flag"
26152fi
26153
26154else
26155  :
26156fi
26157
26158done
26159
26160
26161
26162
26163
26164for flag in -Warray-bounds; do
26165  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
26166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
26167$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
26168if eval \${$as_CACHEVAR+:} false; then :
26169  $as_echo_n "(cached) " >&6
26170else
26171
26172  ax_check_save_flags=$CFLAGS
26173  CFLAGS="$CFLAGS -Werror $flag"
26174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26175/* end confdefs.h.  */
26176
26177int
26178main ()
26179{
26180
26181  ;
26182  return 0;
26183}
26184_ACEOF
26185if ac_fn_c_try_compile "$LINENO"; then :
26186  eval "$as_CACHEVAR=yes"
26187else
26188  eval "$as_CACHEVAR=no"
26189fi
26190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26191  CFLAGS=$ax_check_save_flags
26192fi
26193eval ac_res=\$$as_CACHEVAR
26194	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26195$as_echo "$ac_res" >&6; }
26196if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
26197  if ${CFLAGS+:} false; then :
26198  case " $CFLAGS " in
26199    *" $flag "*)
26200      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
26201  (: CFLAGS already contains $flag) 2>&5
26202  ac_status=$?
26203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26204  test $ac_status = 0; }
26205      ;;
26206    *)
26207      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
26208  (: CFLAGS="$CFLAGS $flag") 2>&5
26209  ac_status=$?
26210  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26211  test $ac_status = 0; }
26212      CFLAGS="$CFLAGS $flag"
26213      ;;
26214   esac
26215else
26216  CFLAGS="$flag"
26217fi
26218
26219else
26220  :
26221fi
26222
26223done
26224
26225
26226
26227
26228
26229for flag in -Wbad-function-cast; do
26230  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
26231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
26232$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
26233if eval \${$as_CACHEVAR+:} false; then :
26234  $as_echo_n "(cached) " >&6
26235else
26236
26237  ax_check_save_flags=$CFLAGS
26238  CFLAGS="$CFLAGS -Werror $flag"
26239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26240/* end confdefs.h.  */
26241
26242int
26243main ()
26244{
26245
26246  ;
26247  return 0;
26248}
26249_ACEOF
26250if ac_fn_c_try_compile "$LINENO"; then :
26251  eval "$as_CACHEVAR=yes"
26252else
26253  eval "$as_CACHEVAR=no"
26254fi
26255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26256  CFLAGS=$ax_check_save_flags
26257fi
26258eval ac_res=\$$as_CACHEVAR
26259	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26260$as_echo "$ac_res" >&6; }
26261if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
26262  if ${CFLAGS+:} false; then :
26263  case " $CFLAGS " in
26264    *" $flag "*)
26265      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
26266  (: CFLAGS already contains $flag) 2>&5
26267  ac_status=$?
26268  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26269  test $ac_status = 0; }
26270      ;;
26271    *)
26272      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
26273  (: CFLAGS="$CFLAGS $flag") 2>&5
26274  ac_status=$?
26275  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26276  test $ac_status = 0; }
26277      CFLAGS="$CFLAGS $flag"
26278      ;;
26279   esac
26280else
26281  CFLAGS="$flag"
26282fi
26283
26284else
26285  :
26286fi
26287
26288done
26289
26290
26291# Not in use -Wc++-compat
26292
26293
26294
26295for flag in -Wchar-subscripts; do
26296  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
26297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
26298$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
26299if eval \${$as_CACHEVAR+:} false; then :
26300  $as_echo_n "(cached) " >&6
26301else
26302
26303  ax_check_save_flags=$CFLAGS
26304  CFLAGS="$CFLAGS -Werror $flag"
26305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26306/* end confdefs.h.  */
26307
26308int
26309main ()
26310{
26311
26312  ;
26313  return 0;
26314}
26315_ACEOF
26316if ac_fn_c_try_compile "$LINENO"; then :
26317  eval "$as_CACHEVAR=yes"
26318else
26319  eval "$as_CACHEVAR=no"
26320fi
26321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26322  CFLAGS=$ax_check_save_flags
26323fi
26324eval ac_res=\$$as_CACHEVAR
26325	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26326$as_echo "$ac_res" >&6; }
26327if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
26328  if ${CFLAGS+:} false; then :
26329  case " $CFLAGS " in
26330    *" $flag "*)
26331      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
26332  (: CFLAGS already contains $flag) 2>&5
26333  ac_status=$?
26334  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26335  test $ac_status = 0; }
26336      ;;
26337    *)
26338      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
26339  (: CFLAGS="$CFLAGS $flag") 2>&5
26340  ac_status=$?
26341  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26342  test $ac_status = 0; }
26343      CFLAGS="$CFLAGS $flag"
26344      ;;
26345   esac
26346else
26347  CFLAGS="$flag"
26348fi
26349
26350else
26351  :
26352fi
26353
26354done
26355
26356
26357
26358
26359
26360for flag in -Wcomment; do
26361  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
26362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
26363$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
26364if eval \${$as_CACHEVAR+:} false; then :
26365  $as_echo_n "(cached) " >&6
26366else
26367
26368  ax_check_save_flags=$CFLAGS
26369  CFLAGS="$CFLAGS -Werror $flag"
26370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26371/* end confdefs.h.  */
26372
26373int
26374main ()
26375{
26376
26377  ;
26378  return 0;
26379}
26380_ACEOF
26381if ac_fn_c_try_compile "$LINENO"; then :
26382  eval "$as_CACHEVAR=yes"
26383else
26384  eval "$as_CACHEVAR=no"
26385fi
26386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26387  CFLAGS=$ax_check_save_flags
26388fi
26389eval ac_res=\$$as_CACHEVAR
26390	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26391$as_echo "$ac_res" >&6; }
26392if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
26393  if ${CFLAGS+:} false; then :
26394  case " $CFLAGS " in
26395    *" $flag "*)
26396      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
26397  (: CFLAGS already contains $flag) 2>&5
26398  ac_status=$?
26399  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26400  test $ac_status = 0; }
26401      ;;
26402    *)
26403      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
26404  (: CFLAGS="$CFLAGS $flag") 2>&5
26405  ac_status=$?
26406  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26407  test $ac_status = 0; }
26408      CFLAGS="$CFLAGS $flag"
26409      ;;
26410   esac
26411else
26412  CFLAGS="$flag"
26413fi
26414
26415else
26416  :
26417fi
26418
26419done
26420
26421
26422
26423
26424
26425for flag in -Wfloat-equal; do
26426  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
26427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
26428$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
26429if eval \${$as_CACHEVAR+:} false; then :
26430  $as_echo_n "(cached) " >&6
26431else
26432
26433  ax_check_save_flags=$CFLAGS
26434  CFLAGS="$CFLAGS -Werror $flag"
26435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26436/* end confdefs.h.  */
26437
26438int
26439main ()
26440{
26441
26442  ;
26443  return 0;
26444}
26445_ACEOF
26446if ac_fn_c_try_compile "$LINENO"; then :
26447  eval "$as_CACHEVAR=yes"
26448else
26449  eval "$as_CACHEVAR=no"
26450fi
26451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26452  CFLAGS=$ax_check_save_flags
26453fi
26454eval ac_res=\$$as_CACHEVAR
26455	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26456$as_echo "$ac_res" >&6; }
26457if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
26458  if ${CFLAGS+:} false; then :
26459  case " $CFLAGS " in
26460    *" $flag "*)
26461      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
26462  (: CFLAGS already contains $flag) 2>&5
26463  ac_status=$?
26464  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26465  test $ac_status = 0; }
26466      ;;
26467    *)
26468      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
26469  (: CFLAGS="$CFLAGS $flag") 2>&5
26470  ac_status=$?
26471  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26472  test $ac_status = 0; }
26473      CFLAGS="$CFLAGS $flag"
26474      ;;
26475   esac
26476else
26477  CFLAGS="$flag"
26478fi
26479
26480else
26481  :
26482fi
26483
26484done
26485
26486
26487
26488
26489
26490for flag in -Wformat-security; do
26491  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
26492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
26493$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
26494if eval \${$as_CACHEVAR+:} false; then :
26495  $as_echo_n "(cached) " >&6
26496else
26497
26498  ax_check_save_flags=$CFLAGS
26499  CFLAGS="$CFLAGS -Werror $flag"
26500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26501/* end confdefs.h.  */
26502
26503int
26504main ()
26505{
26506
26507  ;
26508  return 0;
26509}
26510_ACEOF
26511if ac_fn_c_try_compile "$LINENO"; then :
26512  eval "$as_CACHEVAR=yes"
26513else
26514  eval "$as_CACHEVAR=no"
26515fi
26516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26517  CFLAGS=$ax_check_save_flags
26518fi
26519eval ac_res=\$$as_CACHEVAR
26520	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26521$as_echo "$ac_res" >&6; }
26522if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
26523  if ${CFLAGS+:} false; then :
26524  case " $CFLAGS " in
26525    *" $flag "*)
26526      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
26527  (: CFLAGS already contains $flag) 2>&5
26528  ac_status=$?
26529  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26530  test $ac_status = 0; }
26531      ;;
26532    *)
26533      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
26534  (: CFLAGS="$CFLAGS $flag") 2>&5
26535  ac_status=$?
26536  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26537  test $ac_status = 0; }
26538      CFLAGS="$CFLAGS $flag"
26539      ;;
26540   esac
26541else
26542  CFLAGS="$flag"
26543fi
26544
26545else
26546  :
26547fi
26548
26549done
26550
26551
26552
26553
26554
26555for flag in -Wformat=2; do
26556  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
26557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
26558$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
26559if eval \${$as_CACHEVAR+:} false; then :
26560  $as_echo_n "(cached) " >&6
26561else
26562
26563  ax_check_save_flags=$CFLAGS
26564  CFLAGS="$CFLAGS -Werror $flag"
26565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26566/* end confdefs.h.  */
26567
26568int
26569main ()
26570{
26571
26572  ;
26573  return 0;
26574}
26575_ACEOF
26576if ac_fn_c_try_compile "$LINENO"; then :
26577  eval "$as_CACHEVAR=yes"
26578else
26579  eval "$as_CACHEVAR=no"
26580fi
26581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26582  CFLAGS=$ax_check_save_flags
26583fi
26584eval ac_res=\$$as_CACHEVAR
26585	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26586$as_echo "$ac_res" >&6; }
26587if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
26588  if ${CFLAGS+:} false; then :
26589  case " $CFLAGS " in
26590    *" $flag "*)
26591      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
26592  (: CFLAGS already contains $flag) 2>&5
26593  ac_status=$?
26594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26595  test $ac_status = 0; }
26596      ;;
26597    *)
26598      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
26599  (: CFLAGS="$CFLAGS $flag") 2>&5
26600  ac_status=$?
26601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26602  test $ac_status = 0; }
26603      CFLAGS="$CFLAGS $flag"
26604      ;;
26605   esac
26606else
26607  CFLAGS="$flag"
26608fi
26609
26610else
26611  :
26612fi
26613
26614done
26615
26616
26617
26618
26619
26620for flag in -Wformat-y2k; do
26621  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
26622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
26623$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
26624if eval \${$as_CACHEVAR+:} false; then :
26625  $as_echo_n "(cached) " >&6
26626else
26627
26628  ax_check_save_flags=$CFLAGS
26629  CFLAGS="$CFLAGS -Werror $flag"
26630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26631/* end confdefs.h.  */
26632
26633int
26634main ()
26635{
26636
26637  ;
26638  return 0;
26639}
26640_ACEOF
26641if ac_fn_c_try_compile "$LINENO"; then :
26642  eval "$as_CACHEVAR=yes"
26643else
26644  eval "$as_CACHEVAR=no"
26645fi
26646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26647  CFLAGS=$ax_check_save_flags
26648fi
26649eval ac_res=\$$as_CACHEVAR
26650	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26651$as_echo "$ac_res" >&6; }
26652if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
26653  if ${CFLAGS+:} false; then :
26654  case " $CFLAGS " in
26655    *" $flag "*)
26656      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
26657  (: CFLAGS already contains $flag) 2>&5
26658  ac_status=$?
26659  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26660  test $ac_status = 0; }
26661      ;;
26662    *)
26663      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
26664  (: CFLAGS="$CFLAGS $flag") 2>&5
26665  ac_status=$?
26666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26667  test $ac_status = 0; }
26668      CFLAGS="$CFLAGS $flag"
26669      ;;
26670   esac
26671else
26672  CFLAGS="$flag"
26673fi
26674
26675else
26676  :
26677fi
26678
26679done
26680
26681
26682
26683
26684
26685for flag in -Wlogical-op; do
26686  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
26687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
26688$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
26689if eval \${$as_CACHEVAR+:} false; then :
26690  $as_echo_n "(cached) " >&6
26691else
26692
26693  ax_check_save_flags=$CFLAGS
26694  CFLAGS="$CFLAGS -Werror $flag"
26695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26696/* end confdefs.h.  */
26697
26698int
26699main ()
26700{
26701
26702  ;
26703  return 0;
26704}
26705_ACEOF
26706if ac_fn_c_try_compile "$LINENO"; then :
26707  eval "$as_CACHEVAR=yes"
26708else
26709  eval "$as_CACHEVAR=no"
26710fi
26711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26712  CFLAGS=$ax_check_save_flags
26713fi
26714eval ac_res=\$$as_CACHEVAR
26715	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26716$as_echo "$ac_res" >&6; }
26717if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
26718  if ${CFLAGS+:} false; then :
26719  case " $CFLAGS " in
26720    *" $flag "*)
26721      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
26722  (: CFLAGS already contains $flag) 2>&5
26723  ac_status=$?
26724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26725  test $ac_status = 0; }
26726      ;;
26727    *)
26728      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
26729  (: CFLAGS="$CFLAGS $flag") 2>&5
26730  ac_status=$?
26731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26732  test $ac_status = 0; }
26733      CFLAGS="$CFLAGS $flag"
26734      ;;
26735   esac
26736else
26737  CFLAGS="$flag"
26738fi
26739
26740else
26741  :
26742fi
26743
26744done
26745
26746
26747
26748
26749
26750for flag in -Wmaybe-uninitialized; do
26751  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
26752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
26753$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
26754if eval \${$as_CACHEVAR+:} false; then :
26755  $as_echo_n "(cached) " >&6
26756else
26757
26758  ax_check_save_flags=$CFLAGS
26759  CFLAGS="$CFLAGS -Werror $flag"
26760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26761/* end confdefs.h.  */
26762
26763int
26764main ()
26765{
26766
26767  ;
26768  return 0;
26769}
26770_ACEOF
26771if ac_fn_c_try_compile "$LINENO"; then :
26772  eval "$as_CACHEVAR=yes"
26773else
26774  eval "$as_CACHEVAR=no"
26775fi
26776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26777  CFLAGS=$ax_check_save_flags
26778fi
26779eval ac_res=\$$as_CACHEVAR
26780	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26781$as_echo "$ac_res" >&6; }
26782if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
26783  if ${CFLAGS+:} false; then :
26784  case " $CFLAGS " in
26785    *" $flag "*)
26786      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
26787  (: CFLAGS already contains $flag) 2>&5
26788  ac_status=$?
26789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26790  test $ac_status = 0; }
26791      ;;
26792    *)
26793      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
26794  (: CFLAGS="$CFLAGS $flag") 2>&5
26795  ac_status=$?
26796  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26797  test $ac_status = 0; }
26798      CFLAGS="$CFLAGS $flag"
26799      ;;
26800   esac
26801else
26802  CFLAGS="$flag"
26803fi
26804
26805else
26806  :
26807fi
26808
26809done
26810
26811
26812
26813
26814
26815for flag in -Wmissing-field-initializers; do
26816  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
26817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
26818$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
26819if eval \${$as_CACHEVAR+:} false; then :
26820  $as_echo_n "(cached) " >&6
26821else
26822
26823  ax_check_save_flags=$CFLAGS
26824  CFLAGS="$CFLAGS -Werror $flag"
26825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26826/* end confdefs.h.  */
26827
26828int
26829main ()
26830{
26831
26832  ;
26833  return 0;
26834}
26835_ACEOF
26836if ac_fn_c_try_compile "$LINENO"; then :
26837  eval "$as_CACHEVAR=yes"
26838else
26839  eval "$as_CACHEVAR=no"
26840fi
26841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26842  CFLAGS=$ax_check_save_flags
26843fi
26844eval ac_res=\$$as_CACHEVAR
26845	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26846$as_echo "$ac_res" >&6; }
26847if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
26848  if ${CFLAGS+:} false; then :
26849  case " $CFLAGS " in
26850    *" $flag "*)
26851      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
26852  (: CFLAGS already contains $flag) 2>&5
26853  ac_status=$?
26854  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26855  test $ac_status = 0; }
26856      ;;
26857    *)
26858      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
26859  (: CFLAGS="$CFLAGS $flag") 2>&5
26860  ac_status=$?
26861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26862  test $ac_status = 0; }
26863      CFLAGS="$CFLAGS $flag"
26864      ;;
26865   esac
26866else
26867  CFLAGS="$flag"
26868fi
26869
26870else
26871  :
26872fi
26873
26874done
26875
26876
26877          if test "x$MINGW" = xyes; then :
26878
26879
26880
26881for flag in -Wno-missing-noreturn; do
26882  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
26883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
26884$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
26885if eval \${$as_CACHEVAR+:} false; then :
26886  $as_echo_n "(cached) " >&6
26887else
26888
26889  ax_check_save_flags=$CFLAGS
26890  CFLAGS="$CFLAGS -Werror $flag"
26891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26892/* end confdefs.h.  */
26893
26894int
26895main ()
26896{
26897
26898  ;
26899  return 0;
26900}
26901_ACEOF
26902if ac_fn_c_try_compile "$LINENO"; then :
26903  eval "$as_CACHEVAR=yes"
26904else
26905  eval "$as_CACHEVAR=no"
26906fi
26907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26908  CFLAGS=$ax_check_save_flags
26909fi
26910eval ac_res=\$$as_CACHEVAR
26911	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26912$as_echo "$ac_res" >&6; }
26913if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
26914  if ${CFLAGS+:} false; then :
26915  case " $CFLAGS " in
26916    *" $flag "*)
26917      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
26918  (: CFLAGS already contains $flag) 2>&5
26919  ac_status=$?
26920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26921  test $ac_status = 0; }
26922      ;;
26923    *)
26924      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
26925  (: CFLAGS="$CFLAGS $flag") 2>&5
26926  ac_status=$?
26927  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26928  test $ac_status = 0; }
26929      CFLAGS="$CFLAGS $flag"
26930      ;;
26931   esac
26932else
26933  CFLAGS="$flag"
26934fi
26935
26936else
26937  :
26938fi
26939
26940done
26941
26942
26943else
26944
26945
26946
26947for flag in -Wmissing-noreturn; do
26948  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
26949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
26950$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
26951if eval \${$as_CACHEVAR+:} false; then :
26952  $as_echo_n "(cached) " >&6
26953else
26954
26955  ax_check_save_flags=$CFLAGS
26956  CFLAGS="$CFLAGS -Werror $flag"
26957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26958/* end confdefs.h.  */
26959
26960int
26961main ()
26962{
26963
26964  ;
26965  return 0;
26966}
26967_ACEOF
26968if ac_fn_c_try_compile "$LINENO"; then :
26969  eval "$as_CACHEVAR=yes"
26970else
26971  eval "$as_CACHEVAR=no"
26972fi
26973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26974  CFLAGS=$ax_check_save_flags
26975fi
26976eval ac_res=\$$as_CACHEVAR
26977	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26978$as_echo "$ac_res" >&6; }
26979if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
26980  if ${CFLAGS+:} false; then :
26981  case " $CFLAGS " in
26982    *" $flag "*)
26983      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
26984  (: CFLAGS already contains $flag) 2>&5
26985  ac_status=$?
26986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26987  test $ac_status = 0; }
26988      ;;
26989    *)
26990      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
26991  (: CFLAGS="$CFLAGS $flag") 2>&5
26992  ac_status=$?
26993  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26994  test $ac_status = 0; }
26995      CFLAGS="$CFLAGS $flag"
26996      ;;
26997   esac
26998else
26999  CFLAGS="$flag"
27000fi
27001
27002else
27003  :
27004fi
27005
27006done
27007
27008
27009fi
27010
27011
27012
27013for flag in -Wmissing-prototypes; do
27014  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
27015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
27016$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
27017if eval \${$as_CACHEVAR+:} false; then :
27018  $as_echo_n "(cached) " >&6
27019else
27020
27021  ax_check_save_flags=$CFLAGS
27022  CFLAGS="$CFLAGS -Werror $flag"
27023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27024/* end confdefs.h.  */
27025
27026int
27027main ()
27028{
27029
27030  ;
27031  return 0;
27032}
27033_ACEOF
27034if ac_fn_c_try_compile "$LINENO"; then :
27035  eval "$as_CACHEVAR=yes"
27036else
27037  eval "$as_CACHEVAR=no"
27038fi
27039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27040  CFLAGS=$ax_check_save_flags
27041fi
27042eval ac_res=\$$as_CACHEVAR
27043	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27044$as_echo "$ac_res" >&6; }
27045if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
27046  if ${CFLAGS+:} false; then :
27047  case " $CFLAGS " in
27048    *" $flag "*)
27049      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
27050  (: CFLAGS already contains $flag) 2>&5
27051  ac_status=$?
27052  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27053  test $ac_status = 0; }
27054      ;;
27055    *)
27056      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
27057  (: CFLAGS="$CFLAGS $flag") 2>&5
27058  ac_status=$?
27059  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27060  test $ac_status = 0; }
27061      CFLAGS="$CFLAGS $flag"
27062      ;;
27063   esac
27064else
27065  CFLAGS="$flag"
27066fi
27067
27068else
27069  :
27070fi
27071
27072done
27073
27074
27075
27076
27077
27078for flag in -Wnested-externs; do
27079  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
27080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
27081$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
27082if eval \${$as_CACHEVAR+:} false; then :
27083  $as_echo_n "(cached) " >&6
27084else
27085
27086  ax_check_save_flags=$CFLAGS
27087  CFLAGS="$CFLAGS -Werror $flag"
27088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27089/* end confdefs.h.  */
27090
27091int
27092main ()
27093{
27094
27095  ;
27096  return 0;
27097}
27098_ACEOF
27099if ac_fn_c_try_compile "$LINENO"; then :
27100  eval "$as_CACHEVAR=yes"
27101else
27102  eval "$as_CACHEVAR=no"
27103fi
27104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27105  CFLAGS=$ax_check_save_flags
27106fi
27107eval ac_res=\$$as_CACHEVAR
27108	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27109$as_echo "$ac_res" >&6; }
27110if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
27111  if ${CFLAGS+:} false; then :
27112  case " $CFLAGS " in
27113    *" $flag "*)
27114      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
27115  (: CFLAGS already contains $flag) 2>&5
27116  ac_status=$?
27117  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27118  test $ac_status = 0; }
27119      ;;
27120    *)
27121      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
27122  (: CFLAGS="$CFLAGS $flag") 2>&5
27123  ac_status=$?
27124  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27125  test $ac_status = 0; }
27126      CFLAGS="$CFLAGS $flag"
27127      ;;
27128   esac
27129else
27130  CFLAGS="$flag"
27131fi
27132
27133else
27134  :
27135fi
27136
27137done
27138
27139
27140
27141
27142
27143for flag in -Wnormalized=id; do
27144  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
27145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
27146$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
27147if eval \${$as_CACHEVAR+:} false; then :
27148  $as_echo_n "(cached) " >&6
27149else
27150
27151  ax_check_save_flags=$CFLAGS
27152  CFLAGS="$CFLAGS -Werror $flag"
27153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27154/* end confdefs.h.  */
27155
27156int
27157main ()
27158{
27159
27160  ;
27161  return 0;
27162}
27163_ACEOF
27164if ac_fn_c_try_compile "$LINENO"; then :
27165  eval "$as_CACHEVAR=yes"
27166else
27167  eval "$as_CACHEVAR=no"
27168fi
27169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27170  CFLAGS=$ax_check_save_flags
27171fi
27172eval ac_res=\$$as_CACHEVAR
27173	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27174$as_echo "$ac_res" >&6; }
27175if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
27176  if ${CFLAGS+:} false; then :
27177  case " $CFLAGS " in
27178    *" $flag "*)
27179      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
27180  (: CFLAGS already contains $flag) 2>&5
27181  ac_status=$?
27182  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27183  test $ac_status = 0; }
27184      ;;
27185    *)
27186      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
27187  (: CFLAGS="$CFLAGS $flag") 2>&5
27188  ac_status=$?
27189  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27190  test $ac_status = 0; }
27191      CFLAGS="$CFLAGS $flag"
27192      ;;
27193   esac
27194else
27195  CFLAGS="$flag"
27196fi
27197
27198else
27199  :
27200fi
27201
27202done
27203
27204
27205
27206
27207
27208for flag in -Woverride-init; do
27209  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
27210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
27211$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
27212if eval \${$as_CACHEVAR+:} false; then :
27213  $as_echo_n "(cached) " >&6
27214else
27215
27216  ax_check_save_flags=$CFLAGS
27217  CFLAGS="$CFLAGS -Werror $flag"
27218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27219/* end confdefs.h.  */
27220
27221int
27222main ()
27223{
27224
27225  ;
27226  return 0;
27227}
27228_ACEOF
27229if ac_fn_c_try_compile "$LINENO"; then :
27230  eval "$as_CACHEVAR=yes"
27231else
27232  eval "$as_CACHEVAR=no"
27233fi
27234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27235  CFLAGS=$ax_check_save_flags
27236fi
27237eval ac_res=\$$as_CACHEVAR
27238	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27239$as_echo "$ac_res" >&6; }
27240if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
27241  if ${CFLAGS+:} false; then :
27242  case " $CFLAGS " in
27243    *" $flag "*)
27244      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
27245  (: CFLAGS already contains $flag) 2>&5
27246  ac_status=$?
27247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27248  test $ac_status = 0; }
27249      ;;
27250    *)
27251      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
27252  (: CFLAGS="$CFLAGS $flag") 2>&5
27253  ac_status=$?
27254  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27255  test $ac_status = 0; }
27256      CFLAGS="$CFLAGS $flag"
27257      ;;
27258   esac
27259else
27260  CFLAGS="$flag"
27261fi
27262
27263else
27264  :
27265fi
27266
27267done
27268
27269
27270
27271
27272
27273for flag in -Wpointer-arith; do
27274  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
27275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
27276$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
27277if eval \${$as_CACHEVAR+:} false; then :
27278  $as_echo_n "(cached) " >&6
27279else
27280
27281  ax_check_save_flags=$CFLAGS
27282  CFLAGS="$CFLAGS -Werror $flag"
27283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27284/* end confdefs.h.  */
27285
27286int
27287main ()
27288{
27289
27290  ;
27291  return 0;
27292}
27293_ACEOF
27294if ac_fn_c_try_compile "$LINENO"; then :
27295  eval "$as_CACHEVAR=yes"
27296else
27297  eval "$as_CACHEVAR=no"
27298fi
27299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27300  CFLAGS=$ax_check_save_flags
27301fi
27302eval ac_res=\$$as_CACHEVAR
27303	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27304$as_echo "$ac_res" >&6; }
27305if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
27306  if ${CFLAGS+:} false; then :
27307  case " $CFLAGS " in
27308    *" $flag "*)
27309      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
27310  (: CFLAGS already contains $flag) 2>&5
27311  ac_status=$?
27312  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27313  test $ac_status = 0; }
27314      ;;
27315    *)
27316      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
27317  (: CFLAGS="$CFLAGS $flag") 2>&5
27318  ac_status=$?
27319  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27320  test $ac_status = 0; }
27321      CFLAGS="$CFLAGS $flag"
27322      ;;
27323   esac
27324else
27325  CFLAGS="$flag"
27326fi
27327
27328else
27329  :
27330fi
27331
27332done
27333
27334
27335
27336
27337
27338for flag in -Wpointer-sign; do
27339  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
27340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
27341$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
27342if eval \${$as_CACHEVAR+:} false; then :
27343  $as_echo_n "(cached) " >&6
27344else
27345
27346  ax_check_save_flags=$CFLAGS
27347  CFLAGS="$CFLAGS -Werror $flag"
27348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27349/* end confdefs.h.  */
27350
27351int
27352main ()
27353{
27354
27355  ;
27356  return 0;
27357}
27358_ACEOF
27359if ac_fn_c_try_compile "$LINENO"; then :
27360  eval "$as_CACHEVAR=yes"
27361else
27362  eval "$as_CACHEVAR=no"
27363fi
27364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27365  CFLAGS=$ax_check_save_flags
27366fi
27367eval ac_res=\$$as_CACHEVAR
27368	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27369$as_echo "$ac_res" >&6; }
27370if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
27371  if ${CFLAGS+:} false; then :
27372  case " $CFLAGS " in
27373    *" $flag "*)
27374      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
27375  (: CFLAGS already contains $flag) 2>&5
27376  ac_status=$?
27377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27378  test $ac_status = 0; }
27379      ;;
27380    *)
27381      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
27382  (: CFLAGS="$CFLAGS $flag") 2>&5
27383  ac_status=$?
27384  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27385  test $ac_status = 0; }
27386      CFLAGS="$CFLAGS $flag"
27387      ;;
27388   esac
27389else
27390  CFLAGS="$flag"
27391fi
27392
27393else
27394  :
27395fi
27396
27397done
27398
27399
27400          if test "x$MINGW" = xyes; then :
27401
27402
27403
27404for flag in -Wno-suggest-attribute=const; do
27405  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
27406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
27407$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
27408if eval \${$as_CACHEVAR+:} false; then :
27409  $as_echo_n "(cached) " >&6
27410else
27411
27412  ax_check_save_flags=$CFLAGS
27413  CFLAGS="$CFLAGS -Werror $flag"
27414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27415/* end confdefs.h.  */
27416
27417int
27418main ()
27419{
27420
27421  ;
27422  return 0;
27423}
27424_ACEOF
27425if ac_fn_c_try_compile "$LINENO"; then :
27426  eval "$as_CACHEVAR=yes"
27427else
27428  eval "$as_CACHEVAR=no"
27429fi
27430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27431  CFLAGS=$ax_check_save_flags
27432fi
27433eval ac_res=\$$as_CACHEVAR
27434	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27435$as_echo "$ac_res" >&6; }
27436if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
27437  if ${CFLAGS+:} false; then :
27438  case " $CFLAGS " in
27439    *" $flag "*)
27440      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
27441  (: CFLAGS already contains $flag) 2>&5
27442  ac_status=$?
27443  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27444  test $ac_status = 0; }
27445      ;;
27446    *)
27447      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
27448  (: CFLAGS="$CFLAGS $flag") 2>&5
27449  ac_status=$?
27450  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27451  test $ac_status = 0; }
27452      CFLAGS="$CFLAGS $flag"
27453      ;;
27454   esac
27455else
27456  CFLAGS="$flag"
27457fi
27458
27459else
27460  :
27461fi
27462
27463done
27464
27465
27466
27467
27468
27469for flag in -Wno-suggest-attribute=noreturn; do
27470  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
27471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
27472$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
27473if eval \${$as_CACHEVAR+:} false; then :
27474  $as_echo_n "(cached) " >&6
27475else
27476
27477  ax_check_save_flags=$CFLAGS
27478  CFLAGS="$CFLAGS -Werror $flag"
27479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27480/* end confdefs.h.  */
27481
27482int
27483main ()
27484{
27485
27486  ;
27487  return 0;
27488}
27489_ACEOF
27490if ac_fn_c_try_compile "$LINENO"; then :
27491  eval "$as_CACHEVAR=yes"
27492else
27493  eval "$as_CACHEVAR=no"
27494fi
27495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27496  CFLAGS=$ax_check_save_flags
27497fi
27498eval ac_res=\$$as_CACHEVAR
27499	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27500$as_echo "$ac_res" >&6; }
27501if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
27502  if ${CFLAGS+:} false; then :
27503  case " $CFLAGS " in
27504    *" $flag "*)
27505      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
27506  (: CFLAGS already contains $flag) 2>&5
27507  ac_status=$?
27508  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27509  test $ac_status = 0; }
27510      ;;
27511    *)
27512      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
27513  (: CFLAGS="$CFLAGS $flag") 2>&5
27514  ac_status=$?
27515  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27516  test $ac_status = 0; }
27517      CFLAGS="$CFLAGS $flag"
27518      ;;
27519   esac
27520else
27521  CFLAGS="$flag"
27522fi
27523
27524else
27525  :
27526fi
27527
27528done
27529
27530
27531
27532
27533
27534for flag in -Wno-suggest-attribute=pure; do
27535  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
27536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
27537$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
27538if eval \${$as_CACHEVAR+:} false; then :
27539  $as_echo_n "(cached) " >&6
27540else
27541
27542  ax_check_save_flags=$CFLAGS
27543  CFLAGS="$CFLAGS -Werror $flag"
27544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27545/* end confdefs.h.  */
27546
27547int
27548main ()
27549{
27550
27551  ;
27552  return 0;
27553}
27554_ACEOF
27555if ac_fn_c_try_compile "$LINENO"; then :
27556  eval "$as_CACHEVAR=yes"
27557else
27558  eval "$as_CACHEVAR=no"
27559fi
27560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27561  CFLAGS=$ax_check_save_flags
27562fi
27563eval ac_res=\$$as_CACHEVAR
27564	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27565$as_echo "$ac_res" >&6; }
27566if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
27567  if ${CFLAGS+:} false; then :
27568  case " $CFLAGS " in
27569    *" $flag "*)
27570      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
27571  (: CFLAGS already contains $flag) 2>&5
27572  ac_status=$?
27573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27574  test $ac_status = 0; }
27575      ;;
27576    *)
27577      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
27578  (: CFLAGS="$CFLAGS $flag") 2>&5
27579  ac_status=$?
27580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27581  test $ac_status = 0; }
27582      CFLAGS="$CFLAGS $flag"
27583      ;;
27584   esac
27585else
27586  CFLAGS="$flag"
27587fi
27588
27589else
27590  :
27591fi
27592
27593done
27594
27595
27596
27597
27598
27599for flag in -Wno-redundant-decls; do
27600  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
27601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
27602$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
27603if eval \${$as_CACHEVAR+:} false; then :
27604  $as_echo_n "(cached) " >&6
27605else
27606
27607  ax_check_save_flags=$CFLAGS
27608  CFLAGS="$CFLAGS -Werror $flag"
27609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27610/* end confdefs.h.  */
27611
27612int
27613main ()
27614{
27615
27616  ;
27617  return 0;
27618}
27619_ACEOF
27620if ac_fn_c_try_compile "$LINENO"; then :
27621  eval "$as_CACHEVAR=yes"
27622else
27623  eval "$as_CACHEVAR=no"
27624fi
27625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27626  CFLAGS=$ax_check_save_flags
27627fi
27628eval ac_res=\$$as_CACHEVAR
27629	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27630$as_echo "$ac_res" >&6; }
27631if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
27632  if ${CFLAGS+:} false; then :
27633  case " $CFLAGS " in
27634    *" $flag "*)
27635      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
27636  (: CFLAGS already contains $flag) 2>&5
27637  ac_status=$?
27638  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27639  test $ac_status = 0; }
27640      ;;
27641    *)
27642      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
27643  (: CFLAGS="$CFLAGS $flag") 2>&5
27644  ac_status=$?
27645  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27646  test $ac_status = 0; }
27647      CFLAGS="$CFLAGS $flag"
27648      ;;
27649   esac
27650else
27651  CFLAGS="$flag"
27652fi
27653
27654else
27655  :
27656fi
27657
27658done
27659
27660
27661else
27662
27663
27664
27665for flag in -Wredundant-decls; do
27666  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
27667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
27668$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
27669if eval \${$as_CACHEVAR+:} false; then :
27670  $as_echo_n "(cached) " >&6
27671else
27672
27673  ax_check_save_flags=$CFLAGS
27674  CFLAGS="$CFLAGS -Werror $flag"
27675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27676/* end confdefs.h.  */
27677
27678int
27679main ()
27680{
27681
27682  ;
27683  return 0;
27684}
27685_ACEOF
27686if ac_fn_c_try_compile "$LINENO"; then :
27687  eval "$as_CACHEVAR=yes"
27688else
27689  eval "$as_CACHEVAR=no"
27690fi
27691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27692  CFLAGS=$ax_check_save_flags
27693fi
27694eval ac_res=\$$as_CACHEVAR
27695	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27696$as_echo "$ac_res" >&6; }
27697if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
27698  if ${CFLAGS+:} false; then :
27699  case " $CFLAGS " in
27700    *" $flag "*)
27701      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
27702  (: CFLAGS already contains $flag) 2>&5
27703  ac_status=$?
27704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27705  test $ac_status = 0; }
27706      ;;
27707    *)
27708      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
27709  (: CFLAGS="$CFLAGS $flag") 2>&5
27710  ac_status=$?
27711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27712  test $ac_status = 0; }
27713      CFLAGS="$CFLAGS $flag"
27714      ;;
27715   esac
27716else
27717  CFLAGS="$flag"
27718fi
27719
27720else
27721  :
27722fi
27723
27724done
27725
27726
27727fi
27728
27729
27730
27731for flag in -Wshadow; do
27732  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
27733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
27734$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
27735if eval \${$as_CACHEVAR+:} false; then :
27736  $as_echo_n "(cached) " >&6
27737else
27738
27739  ax_check_save_flags=$CFLAGS
27740  CFLAGS="$CFLAGS -Werror $flag"
27741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27742/* end confdefs.h.  */
27743
27744int
27745main ()
27746{
27747
27748  ;
27749  return 0;
27750}
27751_ACEOF
27752if ac_fn_c_try_compile "$LINENO"; then :
27753  eval "$as_CACHEVAR=yes"
27754else
27755  eval "$as_CACHEVAR=no"
27756fi
27757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27758  CFLAGS=$ax_check_save_flags
27759fi
27760eval ac_res=\$$as_CACHEVAR
27761	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27762$as_echo "$ac_res" >&6; }
27763if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
27764  if ${CFLAGS+:} false; then :
27765  case " $CFLAGS " in
27766    *" $flag "*)
27767      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
27768  (: CFLAGS already contains $flag) 2>&5
27769  ac_status=$?
27770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27771  test $ac_status = 0; }
27772      ;;
27773    *)
27774      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
27775  (: CFLAGS="$CFLAGS $flag") 2>&5
27776  ac_status=$?
27777  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27778  test $ac_status = 0; }
27779      CFLAGS="$CFLAGS $flag"
27780      ;;
27781   esac
27782else
27783  CFLAGS="$flag"
27784fi
27785
27786else
27787  :
27788fi
27789
27790done
27791
27792
27793
27794
27795
27796for flag in -Wshorten-64-to-32; do
27797  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
27798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
27799$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
27800if eval \${$as_CACHEVAR+:} false; then :
27801  $as_echo_n "(cached) " >&6
27802else
27803
27804  ax_check_save_flags=$CFLAGS
27805  CFLAGS="$CFLAGS -Werror $flag"
27806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27807/* end confdefs.h.  */
27808
27809int
27810main ()
27811{
27812
27813  ;
27814  return 0;
27815}
27816_ACEOF
27817if ac_fn_c_try_compile "$LINENO"; then :
27818  eval "$as_CACHEVAR=yes"
27819else
27820  eval "$as_CACHEVAR=no"
27821fi
27822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27823  CFLAGS=$ax_check_save_flags
27824fi
27825eval ac_res=\$$as_CACHEVAR
27826	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27827$as_echo "$ac_res" >&6; }
27828if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
27829  if ${CFLAGS+:} false; then :
27830  case " $CFLAGS " in
27831    *" $flag "*)
27832      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
27833  (: CFLAGS already contains $flag) 2>&5
27834  ac_status=$?
27835  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27836  test $ac_status = 0; }
27837      ;;
27838    *)
27839      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
27840  (: CFLAGS="$CFLAGS $flag") 2>&5
27841  ac_status=$?
27842  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27843  test $ac_status = 0; }
27844      CFLAGS="$CFLAGS $flag"
27845      ;;
27846   esac
27847else
27848  CFLAGS="$flag"
27849fi
27850
27851else
27852  :
27853fi
27854
27855done
27856
27857
27858
27859
27860
27861for flag in -Wsign-compare; do
27862  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
27863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
27864$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
27865if eval \${$as_CACHEVAR+:} false; then :
27866  $as_echo_n "(cached) " >&6
27867else
27868
27869  ax_check_save_flags=$CFLAGS
27870  CFLAGS="$CFLAGS -Werror $flag"
27871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27872/* end confdefs.h.  */
27873
27874int
27875main ()
27876{
27877
27878  ;
27879  return 0;
27880}
27881_ACEOF
27882if ac_fn_c_try_compile "$LINENO"; then :
27883  eval "$as_CACHEVAR=yes"
27884else
27885  eval "$as_CACHEVAR=no"
27886fi
27887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27888  CFLAGS=$ax_check_save_flags
27889fi
27890eval ac_res=\$$as_CACHEVAR
27891	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27892$as_echo "$ac_res" >&6; }
27893if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
27894  if ${CFLAGS+:} false; then :
27895  case " $CFLAGS " in
27896    *" $flag "*)
27897      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
27898  (: CFLAGS already contains $flag) 2>&5
27899  ac_status=$?
27900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27901  test $ac_status = 0; }
27902      ;;
27903    *)
27904      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
27905  (: CFLAGS="$CFLAGS $flag") 2>&5
27906  ac_status=$?
27907  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27908  test $ac_status = 0; }
27909      CFLAGS="$CFLAGS $flag"
27910      ;;
27911   esac
27912else
27913  CFLAGS="$flag"
27914fi
27915
27916else
27917  :
27918fi
27919
27920done
27921
27922
27923
27924
27925
27926for flag in -Wstrict-overflow=1; do
27927  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
27928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
27929$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
27930if eval \${$as_CACHEVAR+:} false; then :
27931  $as_echo_n "(cached) " >&6
27932else
27933
27934  ax_check_save_flags=$CFLAGS
27935  CFLAGS="$CFLAGS -Werror $flag"
27936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27937/* end confdefs.h.  */
27938
27939int
27940main ()
27941{
27942
27943  ;
27944  return 0;
27945}
27946_ACEOF
27947if ac_fn_c_try_compile "$LINENO"; then :
27948  eval "$as_CACHEVAR=yes"
27949else
27950  eval "$as_CACHEVAR=no"
27951fi
27952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27953  CFLAGS=$ax_check_save_flags
27954fi
27955eval ac_res=\$$as_CACHEVAR
27956	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27957$as_echo "$ac_res" >&6; }
27958if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
27959  if ${CFLAGS+:} false; then :
27960  case " $CFLAGS " in
27961    *" $flag "*)
27962      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
27963  (: CFLAGS already contains $flag) 2>&5
27964  ac_status=$?
27965  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27966  test $ac_status = 0; }
27967      ;;
27968    *)
27969      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
27970  (: CFLAGS="$CFLAGS $flag") 2>&5
27971  ac_status=$?
27972  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27973  test $ac_status = 0; }
27974      CFLAGS="$CFLAGS $flag"
27975      ;;
27976   esac
27977else
27978  CFLAGS="$flag"
27979fi
27980
27981else
27982  :
27983fi
27984
27985done
27986
27987
27988
27989
27990
27991for flag in -Wstrict-prototypes; do
27992  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
27993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
27994$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
27995if eval \${$as_CACHEVAR+:} false; then :
27996  $as_echo_n "(cached) " >&6
27997else
27998
27999  ax_check_save_flags=$CFLAGS
28000  CFLAGS="$CFLAGS -Werror $flag"
28001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28002/* end confdefs.h.  */
28003
28004int
28005main ()
28006{
28007
28008  ;
28009  return 0;
28010}
28011_ACEOF
28012if ac_fn_c_try_compile "$LINENO"; then :
28013  eval "$as_CACHEVAR=yes"
28014else
28015  eval "$as_CACHEVAR=no"
28016fi
28017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28018  CFLAGS=$ax_check_save_flags
28019fi
28020eval ac_res=\$$as_CACHEVAR
28021	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28022$as_echo "$ac_res" >&6; }
28023if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
28024  if ${CFLAGS+:} false; then :
28025  case " $CFLAGS " in
28026    *" $flag "*)
28027      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
28028  (: CFLAGS already contains $flag) 2>&5
28029  ac_status=$?
28030  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28031  test $ac_status = 0; }
28032      ;;
28033    *)
28034      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
28035  (: CFLAGS="$CFLAGS $flag") 2>&5
28036  ac_status=$?
28037  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28038  test $ac_status = 0; }
28039      CFLAGS="$CFLAGS $flag"
28040      ;;
28041   esac
28042else
28043  CFLAGS="$flag"
28044fi
28045
28046else
28047  :
28048fi
28049
28050done
28051
28052
28053
28054
28055
28056for flag in -Wswitch-enum; do
28057  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
28058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
28059$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
28060if eval \${$as_CACHEVAR+:} false; then :
28061  $as_echo_n "(cached) " >&6
28062else
28063
28064  ax_check_save_flags=$CFLAGS
28065  CFLAGS="$CFLAGS -Werror $flag"
28066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28067/* end confdefs.h.  */
28068
28069int
28070main ()
28071{
28072
28073  ;
28074  return 0;
28075}
28076_ACEOF
28077if ac_fn_c_try_compile "$LINENO"; then :
28078  eval "$as_CACHEVAR=yes"
28079else
28080  eval "$as_CACHEVAR=no"
28081fi
28082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28083  CFLAGS=$ax_check_save_flags
28084fi
28085eval ac_res=\$$as_CACHEVAR
28086	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28087$as_echo "$ac_res" >&6; }
28088if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
28089  if ${CFLAGS+:} false; then :
28090  case " $CFLAGS " in
28091    *" $flag "*)
28092      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
28093  (: CFLAGS already contains $flag) 2>&5
28094  ac_status=$?
28095  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28096  test $ac_status = 0; }
28097      ;;
28098    *)
28099      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
28100  (: CFLAGS="$CFLAGS $flag") 2>&5
28101  ac_status=$?
28102  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28103  test $ac_status = 0; }
28104      CFLAGS="$CFLAGS $flag"
28105      ;;
28106   esac
28107else
28108  CFLAGS="$flag"
28109fi
28110
28111else
28112  :
28113fi
28114
28115done
28116
28117
28118
28119
28120
28121for flag in -Wtrampolines; do
28122  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
28123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
28124$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
28125if eval \${$as_CACHEVAR+:} false; then :
28126  $as_echo_n "(cached) " >&6
28127else
28128
28129  ax_check_save_flags=$CFLAGS
28130  CFLAGS="$CFLAGS -Werror $flag"
28131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28132/* end confdefs.h.  */
28133
28134int
28135main ()
28136{
28137
28138  ;
28139  return 0;
28140}
28141_ACEOF
28142if ac_fn_c_try_compile "$LINENO"; then :
28143  eval "$as_CACHEVAR=yes"
28144else
28145  eval "$as_CACHEVAR=no"
28146fi
28147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28148  CFLAGS=$ax_check_save_flags
28149fi
28150eval ac_res=\$$as_CACHEVAR
28151	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28152$as_echo "$ac_res" >&6; }
28153if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
28154  if ${CFLAGS+:} false; then :
28155  case " $CFLAGS " in
28156    *" $flag "*)
28157      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
28158  (: CFLAGS already contains $flag) 2>&5
28159  ac_status=$?
28160  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28161  test $ac_status = 0; }
28162      ;;
28163    *)
28164      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
28165  (: CFLAGS="$CFLAGS $flag") 2>&5
28166  ac_status=$?
28167  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28168  test $ac_status = 0; }
28169      CFLAGS="$CFLAGS $flag"
28170      ;;
28171   esac
28172else
28173  CFLAGS="$flag"
28174fi
28175
28176else
28177  :
28178fi
28179
28180done
28181
28182
28183
28184
28185
28186for flag in -Wundef; do
28187  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
28188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
28189$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
28190if eval \${$as_CACHEVAR+:} false; then :
28191  $as_echo_n "(cached) " >&6
28192else
28193
28194  ax_check_save_flags=$CFLAGS
28195  CFLAGS="$CFLAGS -Werror $flag"
28196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28197/* end confdefs.h.  */
28198
28199int
28200main ()
28201{
28202
28203  ;
28204  return 0;
28205}
28206_ACEOF
28207if ac_fn_c_try_compile "$LINENO"; then :
28208  eval "$as_CACHEVAR=yes"
28209else
28210  eval "$as_CACHEVAR=no"
28211fi
28212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28213  CFLAGS=$ax_check_save_flags
28214fi
28215eval ac_res=\$$as_CACHEVAR
28216	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28217$as_echo "$ac_res" >&6; }
28218if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
28219  if ${CFLAGS+:} false; then :
28220  case " $CFLAGS " in
28221    *" $flag "*)
28222      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
28223  (: CFLAGS already contains $flag) 2>&5
28224  ac_status=$?
28225  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28226  test $ac_status = 0; }
28227      ;;
28228    *)
28229      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
28230  (: CFLAGS="$CFLAGS $flag") 2>&5
28231  ac_status=$?
28232  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28233  test $ac_status = 0; }
28234      CFLAGS="$CFLAGS $flag"
28235      ;;
28236   esac
28237else
28238  CFLAGS="$flag"
28239fi
28240
28241else
28242  :
28243fi
28244
28245done
28246
28247
28248
28249
28250
28251for flag in -Wunsafe-loop-optimizations; do
28252  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
28253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
28254$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
28255if eval \${$as_CACHEVAR+:} false; then :
28256  $as_echo_n "(cached) " >&6
28257else
28258
28259  ax_check_save_flags=$CFLAGS
28260  CFLAGS="$CFLAGS -Werror $flag"
28261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28262/* end confdefs.h.  */
28263
28264int
28265main ()
28266{
28267
28268  ;
28269  return 0;
28270}
28271_ACEOF
28272if ac_fn_c_try_compile "$LINENO"; then :
28273  eval "$as_CACHEVAR=yes"
28274else
28275  eval "$as_CACHEVAR=no"
28276fi
28277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28278  CFLAGS=$ax_check_save_flags
28279fi
28280eval ac_res=\$$as_CACHEVAR
28281	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28282$as_echo "$ac_res" >&6; }
28283if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
28284  if ${CFLAGS+:} false; then :
28285  case " $CFLAGS " in
28286    *" $flag "*)
28287      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
28288  (: CFLAGS already contains $flag) 2>&5
28289  ac_status=$?
28290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28291  test $ac_status = 0; }
28292      ;;
28293    *)
28294      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
28295  (: CFLAGS="$CFLAGS $flag") 2>&5
28296  ac_status=$?
28297  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28298  test $ac_status = 0; }
28299      CFLAGS="$CFLAGS $flag"
28300      ;;
28301   esac
28302else
28303  CFLAGS="$flag"
28304fi
28305
28306else
28307  :
28308fi
28309
28310done
28311
28312
28313
28314
28315
28316for flag in -funsafe-loop-optimizations; do
28317  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
28318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
28319$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
28320if eval \${$as_CACHEVAR+:} false; then :
28321  $as_echo_n "(cached) " >&6
28322else
28323
28324  ax_check_save_flags=$CFLAGS
28325  CFLAGS="$CFLAGS -Werror $flag"
28326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28327/* end confdefs.h.  */
28328
28329int
28330main ()
28331{
28332
28333  ;
28334  return 0;
28335}
28336_ACEOF
28337if ac_fn_c_try_compile "$LINENO"; then :
28338  eval "$as_CACHEVAR=yes"
28339else
28340  eval "$as_CACHEVAR=no"
28341fi
28342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28343  CFLAGS=$ax_check_save_flags
28344fi
28345eval ac_res=\$$as_CACHEVAR
28346	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28347$as_echo "$ac_res" >&6; }
28348if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
28349  if ${CFLAGS+:} false; then :
28350  case " $CFLAGS " in
28351    *" $flag "*)
28352      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
28353  (: CFLAGS already contains $flag) 2>&5
28354  ac_status=$?
28355  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28356  test $ac_status = 0; }
28357      ;;
28358    *)
28359      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
28360  (: CFLAGS="$CFLAGS $flag") 2>&5
28361  ac_status=$?
28362  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28363  test $ac_status = 0; }
28364      CFLAGS="$CFLAGS $flag"
28365      ;;
28366   esac
28367else
28368  CFLAGS="$flag"
28369fi
28370
28371else
28372  :
28373fi
28374
28375done
28376
28377
28378          if test "x$MINGW" != xyes; then :
28379
28380            if test "x$ac_cv_vcs_checkout" = xyes; then :
28381
28382              if test "x$enable_shared" = "xyes"; then :
28383
28384
28385
28386
28387for flag in -fno-omit-frame-pointer; do
28388  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
28389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
28390$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
28391if eval \${$as_CACHEVAR+:} false; then :
28392  $as_echo_n "(cached) " >&6
28393else
28394
28395  ax_check_save_flags=$CFLAGS
28396  CFLAGS="$CFLAGS -Werror $flag"
28397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28398/* end confdefs.h.  */
28399
28400int
28401main ()
28402{
28403
28404  ;
28405  return 0;
28406}
28407_ACEOF
28408if ac_fn_c_try_compile "$LINENO"; then :
28409  eval "$as_CACHEVAR=yes"
28410else
28411  eval "$as_CACHEVAR=no"
28412fi
28413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28414  CFLAGS=$ax_check_save_flags
28415fi
28416eval ac_res=\$$as_CACHEVAR
28417	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28418$as_echo "$ac_res" >&6; }
28419if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
28420  if ${CFLAGS+:} false; then :
28421  case " $CFLAGS " in
28422    *" $flag "*)
28423      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
28424  (: CFLAGS already contains $flag) 2>&5
28425  ac_status=$?
28426  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28427  test $ac_status = 0; }
28428      ;;
28429    *)
28430      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
28431  (: CFLAGS="$CFLAGS $flag") 2>&5
28432  ac_status=$?
28433  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28434  test $ac_status = 0; }
28435      CFLAGS="$CFLAGS $flag"
28436      ;;
28437   esac
28438else
28439  CFLAGS="$flag"
28440fi
28441
28442else
28443  :
28444fi
28445
28446done
28447
28448
28449
28450
28451
28452for flag in -fsanitize=address; do
28453  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
28454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
28455$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
28456if eval \${$as_CACHEVAR+:} false; then :
28457  $as_echo_n "(cached) " >&6
28458else
28459
28460  ax_check_save_flags=$CFLAGS
28461  CFLAGS="$CFLAGS -Werror $flag"
28462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28463/* end confdefs.h.  */
28464
28465int
28466main ()
28467{
28468
28469  ;
28470  return 0;
28471}
28472_ACEOF
28473if ac_fn_c_try_compile "$LINENO"; then :
28474  eval "$as_CACHEVAR=yes"
28475else
28476  eval "$as_CACHEVAR=no"
28477fi
28478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28479  CFLAGS=$ax_check_save_flags
28480fi
28481eval ac_res=\$$as_CACHEVAR
28482	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28483$as_echo "$ac_res" >&6; }
28484if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
28485  if ${CFLAGS+:} false; then :
28486  case " $CFLAGS " in
28487    *" $flag "*)
28488      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
28489  (: CFLAGS already contains $flag) 2>&5
28490  ac_status=$?
28491  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28492  test $ac_status = 0; }
28493      ;;
28494    *)
28495      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
28496  (: CFLAGS="$CFLAGS $flag") 2>&5
28497  ac_status=$?
28498  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28499  test $ac_status = 0; }
28500      CFLAGS="$CFLAGS $flag"
28501      ;;
28502   esac
28503else
28504  CFLAGS="$flag"
28505fi
28506
28507else
28508  :
28509fi
28510
28511done
28512
28513
28514
28515
28516
28517for flag in -fsanitize=integer; do
28518  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
28519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
28520$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
28521if eval \${$as_CACHEVAR+:} false; then :
28522  $as_echo_n "(cached) " >&6
28523else
28524
28525  ax_check_save_flags=$CFLAGS
28526  CFLAGS="$CFLAGS -Werror $flag"
28527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28528/* end confdefs.h.  */
28529
28530int
28531main ()
28532{
28533
28534  ;
28535  return 0;
28536}
28537_ACEOF
28538if ac_fn_c_try_compile "$LINENO"; then :
28539  eval "$as_CACHEVAR=yes"
28540else
28541  eval "$as_CACHEVAR=no"
28542fi
28543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28544  CFLAGS=$ax_check_save_flags
28545fi
28546eval ac_res=\$$as_CACHEVAR
28547	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28548$as_echo "$ac_res" >&6; }
28549if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
28550  if ${CFLAGS+:} false; then :
28551  case " $CFLAGS " in
28552    *" $flag "*)
28553      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
28554  (: CFLAGS already contains $flag) 2>&5
28555  ac_status=$?
28556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28557  test $ac_status = 0; }
28558      ;;
28559    *)
28560      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
28561  (: CFLAGS="$CFLAGS $flag") 2>&5
28562  ac_status=$?
28563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28564  test $ac_status = 0; }
28565      CFLAGS="$CFLAGS $flag"
28566      ;;
28567   esac
28568else
28569  CFLAGS="$flag"
28570fi
28571
28572else
28573  :
28574fi
28575
28576done
28577
28578
28579
28580
28581
28582for flag in -fsanitize=thread; do
28583  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
28584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
28585$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
28586if eval \${$as_CACHEVAR+:} false; then :
28587  $as_echo_n "(cached) " >&6
28588else
28589
28590  ax_check_save_flags=$CFLAGS
28591  CFLAGS="$CFLAGS -Werror $flag"
28592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28593/* end confdefs.h.  */
28594
28595int
28596main ()
28597{
28598
28599  ;
28600  return 0;
28601}
28602_ACEOF
28603if ac_fn_c_try_compile "$LINENO"; then :
28604  eval "$as_CACHEVAR=yes"
28605else
28606  eval "$as_CACHEVAR=no"
28607fi
28608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28609  CFLAGS=$ax_check_save_flags
28610fi
28611eval ac_res=\$$as_CACHEVAR
28612	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28613$as_echo "$ac_res" >&6; }
28614if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
28615  if ${CFLAGS+:} false; then :
28616  case " $CFLAGS " in
28617    *" $flag "*)
28618      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
28619  (: CFLAGS already contains $flag) 2>&5
28620  ac_status=$?
28621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28622  test $ac_status = 0; }
28623      ;;
28624    *)
28625      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
28626  (: CFLAGS="$CFLAGS $flag") 2>&5
28627  ac_status=$?
28628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28629  test $ac_status = 0; }
28630      CFLAGS="$CFLAGS $flag"
28631      ;;
28632   esac
28633else
28634  CFLAGS="$flag"
28635fi
28636
28637else
28638  :
28639fi
28640
28641done
28642
28643
28644
28645
28646
28647for flag in -fsanitize=memory; do
28648  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
28649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
28650$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
28651if eval \${$as_CACHEVAR+:} false; then :
28652  $as_echo_n "(cached) " >&6
28653else
28654
28655  ax_check_save_flags=$CFLAGS
28656  CFLAGS="$CFLAGS -Werror $flag"
28657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28658/* end confdefs.h.  */
28659
28660int
28661main ()
28662{
28663
28664  ;
28665  return 0;
28666}
28667_ACEOF
28668if ac_fn_c_try_compile "$LINENO"; then :
28669  eval "$as_CACHEVAR=yes"
28670else
28671  eval "$as_CACHEVAR=no"
28672fi
28673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28674  CFLAGS=$ax_check_save_flags
28675fi
28676eval ac_res=\$$as_CACHEVAR
28677	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28678$as_echo "$ac_res" >&6; }
28679if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
28680  if ${CFLAGS+:} false; then :
28681  case " $CFLAGS " in
28682    *" $flag "*)
28683      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
28684  (: CFLAGS already contains $flag) 2>&5
28685  ac_status=$?
28686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28687  test $ac_status = 0; }
28688      ;;
28689    *)
28690      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
28691  (: CFLAGS="$CFLAGS $flag") 2>&5
28692  ac_status=$?
28693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28694  test $ac_status = 0; }
28695      CFLAGS="$CFLAGS $flag"
28696      ;;
28697   esac
28698else
28699  CFLAGS="$flag"
28700fi
28701
28702else
28703  :
28704fi
28705
28706done
28707
28708
28709
28710
28711
28712for flag in -fsanitize=alignment; do
28713  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
28714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
28715$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
28716if eval \${$as_CACHEVAR+:} false; then :
28717  $as_echo_n "(cached) " >&6
28718else
28719
28720  ax_check_save_flags=$CFLAGS
28721  CFLAGS="$CFLAGS -Werror $flag"
28722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28723/* end confdefs.h.  */
28724
28725int
28726main ()
28727{
28728
28729  ;
28730  return 0;
28731}
28732_ACEOF
28733if ac_fn_c_try_compile "$LINENO"; then :
28734  eval "$as_CACHEVAR=yes"
28735else
28736  eval "$as_CACHEVAR=no"
28737fi
28738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28739  CFLAGS=$ax_check_save_flags
28740fi
28741eval ac_res=\$$as_CACHEVAR
28742	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28743$as_echo "$ac_res" >&6; }
28744if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
28745  if ${CFLAGS+:} false; then :
28746  case " $CFLAGS " in
28747    *" $flag "*)
28748      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
28749  (: CFLAGS already contains $flag) 2>&5
28750  ac_status=$?
28751  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28752  test $ac_status = 0; }
28753      ;;
28754    *)
28755      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
28756  (: CFLAGS="$CFLAGS $flag") 2>&5
28757  ac_status=$?
28758  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28759  test $ac_status = 0; }
28760      CFLAGS="$CFLAGS $flag"
28761      ;;
28762   esac
28763else
28764  CFLAGS="$flag"
28765fi
28766
28767else
28768  :
28769fi
28770
28771done
28772
28773
28774
28775
28776
28777for flag in -fsanitize=bool; do
28778  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
28779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
28780$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
28781if eval \${$as_CACHEVAR+:} false; then :
28782  $as_echo_n "(cached) " >&6
28783else
28784
28785  ax_check_save_flags=$CFLAGS
28786  CFLAGS="$CFLAGS -Werror $flag"
28787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28788/* end confdefs.h.  */
28789
28790int
28791main ()
28792{
28793
28794  ;
28795  return 0;
28796}
28797_ACEOF
28798if ac_fn_c_try_compile "$LINENO"; then :
28799  eval "$as_CACHEVAR=yes"
28800else
28801  eval "$as_CACHEVAR=no"
28802fi
28803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28804  CFLAGS=$ax_check_save_flags
28805fi
28806eval ac_res=\$$as_CACHEVAR
28807	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28808$as_echo "$ac_res" >&6; }
28809if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
28810  if ${CFLAGS+:} false; then :
28811  case " $CFLAGS " in
28812    *" $flag "*)
28813      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
28814  (: CFLAGS already contains $flag) 2>&5
28815  ac_status=$?
28816  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28817  test $ac_status = 0; }
28818      ;;
28819    *)
28820      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
28821  (: CFLAGS="$CFLAGS $flag") 2>&5
28822  ac_status=$?
28823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28824  test $ac_status = 0; }
28825      CFLAGS="$CFLAGS $flag"
28826      ;;
28827   esac
28828else
28829  CFLAGS="$flag"
28830fi
28831
28832else
28833  :
28834fi
28835
28836done
28837
28838
28839
28840
28841
28842for flag in -fsanitize=bounds; do
28843  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
28844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
28845$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
28846if eval \${$as_CACHEVAR+:} false; then :
28847  $as_echo_n "(cached) " >&6
28848else
28849
28850  ax_check_save_flags=$CFLAGS
28851  CFLAGS="$CFLAGS -Werror $flag"
28852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28853/* end confdefs.h.  */
28854
28855int
28856main ()
28857{
28858
28859  ;
28860  return 0;
28861}
28862_ACEOF
28863if ac_fn_c_try_compile "$LINENO"; then :
28864  eval "$as_CACHEVAR=yes"
28865else
28866  eval "$as_CACHEVAR=no"
28867fi
28868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28869  CFLAGS=$ax_check_save_flags
28870fi
28871eval ac_res=\$$as_CACHEVAR
28872	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28873$as_echo "$ac_res" >&6; }
28874if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
28875  if ${CFLAGS+:} false; then :
28876  case " $CFLAGS " in
28877    *" $flag "*)
28878      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
28879  (: CFLAGS already contains $flag) 2>&5
28880  ac_status=$?
28881  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28882  test $ac_status = 0; }
28883      ;;
28884    *)
28885      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
28886  (: CFLAGS="$CFLAGS $flag") 2>&5
28887  ac_status=$?
28888  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28889  test $ac_status = 0; }
28890      CFLAGS="$CFLAGS $flag"
28891      ;;
28892   esac
28893else
28894  CFLAGS="$flag"
28895fi
28896
28897else
28898  :
28899fi
28900
28901done
28902
28903
28904
28905
28906
28907for flag in -fsanitize=enum; do
28908  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
28909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
28910$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
28911if eval \${$as_CACHEVAR+:} false; then :
28912  $as_echo_n "(cached) " >&6
28913else
28914
28915  ax_check_save_flags=$CFLAGS
28916  CFLAGS="$CFLAGS -Werror $flag"
28917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28918/* end confdefs.h.  */
28919
28920int
28921main ()
28922{
28923
28924  ;
28925  return 0;
28926}
28927_ACEOF
28928if ac_fn_c_try_compile "$LINENO"; then :
28929  eval "$as_CACHEVAR=yes"
28930else
28931  eval "$as_CACHEVAR=no"
28932fi
28933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28934  CFLAGS=$ax_check_save_flags
28935fi
28936eval ac_res=\$$as_CACHEVAR
28937	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28938$as_echo "$ac_res" >&6; }
28939if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
28940  if ${CFLAGS+:} false; then :
28941  case " $CFLAGS " in
28942    *" $flag "*)
28943      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
28944  (: CFLAGS already contains $flag) 2>&5
28945  ac_status=$?
28946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28947  test $ac_status = 0; }
28948      ;;
28949    *)
28950      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
28951  (: CFLAGS="$CFLAGS $flag") 2>&5
28952  ac_status=$?
28953  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28954  test $ac_status = 0; }
28955      CFLAGS="$CFLAGS $flag"
28956      ;;
28957   esac
28958else
28959  CFLAGS="$flag"
28960fi
28961
28962else
28963  :
28964fi
28965
28966done
28967
28968
28969
28970
28971
28972for flag in -fsanitize=float-cast-overflow; do
28973  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
28974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
28975$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
28976if eval \${$as_CACHEVAR+:} false; then :
28977  $as_echo_n "(cached) " >&6
28978else
28979
28980  ax_check_save_flags=$CFLAGS
28981  CFLAGS="$CFLAGS -Werror $flag"
28982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28983/* end confdefs.h.  */
28984
28985int
28986main ()
28987{
28988
28989  ;
28990  return 0;
28991}
28992_ACEOF
28993if ac_fn_c_try_compile "$LINENO"; then :
28994  eval "$as_CACHEVAR=yes"
28995else
28996  eval "$as_CACHEVAR=no"
28997fi
28998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28999  CFLAGS=$ax_check_save_flags
29000fi
29001eval ac_res=\$$as_CACHEVAR
29002	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29003$as_echo "$ac_res" >&6; }
29004if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
29005  if ${CFLAGS+:} false; then :
29006  case " $CFLAGS " in
29007    *" $flag "*)
29008      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
29009  (: CFLAGS already contains $flag) 2>&5
29010  ac_status=$?
29011  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29012  test $ac_status = 0; }
29013      ;;
29014    *)
29015      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
29016  (: CFLAGS="$CFLAGS $flag") 2>&5
29017  ac_status=$?
29018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29019  test $ac_status = 0; }
29020      CFLAGS="$CFLAGS $flag"
29021      ;;
29022   esac
29023else
29024  CFLAGS="$flag"
29025fi
29026
29027else
29028  :
29029fi
29030
29031done
29032
29033
29034
29035
29036
29037for flag in -fsanitize=float-divide-by-zero; do
29038  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
29039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
29040$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
29041if eval \${$as_CACHEVAR+:} false; then :
29042  $as_echo_n "(cached) " >&6
29043else
29044
29045  ax_check_save_flags=$CFLAGS
29046  CFLAGS="$CFLAGS -Werror $flag"
29047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29048/* end confdefs.h.  */
29049
29050int
29051main ()
29052{
29053
29054  ;
29055  return 0;
29056}
29057_ACEOF
29058if ac_fn_c_try_compile "$LINENO"; then :
29059  eval "$as_CACHEVAR=yes"
29060else
29061  eval "$as_CACHEVAR=no"
29062fi
29063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29064  CFLAGS=$ax_check_save_flags
29065fi
29066eval ac_res=\$$as_CACHEVAR
29067	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29068$as_echo "$ac_res" >&6; }
29069if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
29070  if ${CFLAGS+:} false; then :
29071  case " $CFLAGS " in
29072    *" $flag "*)
29073      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
29074  (: CFLAGS already contains $flag) 2>&5
29075  ac_status=$?
29076  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29077  test $ac_status = 0; }
29078      ;;
29079    *)
29080      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
29081  (: CFLAGS="$CFLAGS $flag") 2>&5
29082  ac_status=$?
29083  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29084  test $ac_status = 0; }
29085      CFLAGS="$CFLAGS $flag"
29086      ;;
29087   esac
29088else
29089  CFLAGS="$flag"
29090fi
29091
29092else
29093  :
29094fi
29095
29096done
29097
29098
29099
29100
29101
29102for flag in -fsanitize=integer-divide-by-zero; do
29103  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
29104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
29105$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
29106if eval \${$as_CACHEVAR+:} false; then :
29107  $as_echo_n "(cached) " >&6
29108else
29109
29110  ax_check_save_flags=$CFLAGS
29111  CFLAGS="$CFLAGS -Werror $flag"
29112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29113/* end confdefs.h.  */
29114
29115int
29116main ()
29117{
29118
29119  ;
29120  return 0;
29121}
29122_ACEOF
29123if ac_fn_c_try_compile "$LINENO"; then :
29124  eval "$as_CACHEVAR=yes"
29125else
29126  eval "$as_CACHEVAR=no"
29127fi
29128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29129  CFLAGS=$ax_check_save_flags
29130fi
29131eval ac_res=\$$as_CACHEVAR
29132	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29133$as_echo "$ac_res" >&6; }
29134if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
29135  if ${CFLAGS+:} false; then :
29136  case " $CFLAGS " in
29137    *" $flag "*)
29138      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
29139  (: CFLAGS already contains $flag) 2>&5
29140  ac_status=$?
29141  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29142  test $ac_status = 0; }
29143      ;;
29144    *)
29145      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
29146  (: CFLAGS="$CFLAGS $flag") 2>&5
29147  ac_status=$?
29148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29149  test $ac_status = 0; }
29150      CFLAGS="$CFLAGS $flag"
29151      ;;
29152   esac
29153else
29154  CFLAGS="$flag"
29155fi
29156
29157else
29158  :
29159fi
29160
29161done
29162
29163
29164
29165
29166
29167for flag in -fsanitize=null; do
29168  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
29169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
29170$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
29171if eval \${$as_CACHEVAR+:} false; then :
29172  $as_echo_n "(cached) " >&6
29173else
29174
29175  ax_check_save_flags=$CFLAGS
29176  CFLAGS="$CFLAGS -Werror $flag"
29177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29178/* end confdefs.h.  */
29179
29180int
29181main ()
29182{
29183
29184  ;
29185  return 0;
29186}
29187_ACEOF
29188if ac_fn_c_try_compile "$LINENO"; then :
29189  eval "$as_CACHEVAR=yes"
29190else
29191  eval "$as_CACHEVAR=no"
29192fi
29193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29194  CFLAGS=$ax_check_save_flags
29195fi
29196eval ac_res=\$$as_CACHEVAR
29197	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29198$as_echo "$ac_res" >&6; }
29199if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
29200  if ${CFLAGS+:} false; then :
29201  case " $CFLAGS " in
29202    *" $flag "*)
29203      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
29204  (: CFLAGS already contains $flag) 2>&5
29205  ac_status=$?
29206  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29207  test $ac_status = 0; }
29208      ;;
29209    *)
29210      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
29211  (: CFLAGS="$CFLAGS $flag") 2>&5
29212  ac_status=$?
29213  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29214  test $ac_status = 0; }
29215      CFLAGS="$CFLAGS $flag"
29216      ;;
29217   esac
29218else
29219  CFLAGS="$flag"
29220fi
29221
29222else
29223  :
29224fi
29225
29226done
29227
29228
29229
29230
29231
29232for flag in -fsanitize=object-size; do
29233  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
29234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
29235$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
29236if eval \${$as_CACHEVAR+:} false; then :
29237  $as_echo_n "(cached) " >&6
29238else
29239
29240  ax_check_save_flags=$CFLAGS
29241  CFLAGS="$CFLAGS -Werror $flag"
29242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29243/* end confdefs.h.  */
29244
29245int
29246main ()
29247{
29248
29249  ;
29250  return 0;
29251}
29252_ACEOF
29253if ac_fn_c_try_compile "$LINENO"; then :
29254  eval "$as_CACHEVAR=yes"
29255else
29256  eval "$as_CACHEVAR=no"
29257fi
29258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29259  CFLAGS=$ax_check_save_flags
29260fi
29261eval ac_res=\$$as_CACHEVAR
29262	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29263$as_echo "$ac_res" >&6; }
29264if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
29265  if ${CFLAGS+:} false; then :
29266  case " $CFLAGS " in
29267    *" $flag "*)
29268      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
29269  (: CFLAGS already contains $flag) 2>&5
29270  ac_status=$?
29271  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29272  test $ac_status = 0; }
29273      ;;
29274    *)
29275      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
29276  (: CFLAGS="$CFLAGS $flag") 2>&5
29277  ac_status=$?
29278  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29279  test $ac_status = 0; }
29280      CFLAGS="$CFLAGS $flag"
29281      ;;
29282   esac
29283else
29284  CFLAGS="$flag"
29285fi
29286
29287else
29288  :
29289fi
29290
29291done
29292
29293
29294
29295
29296
29297for flag in -fsanitize=return; do
29298  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
29299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
29300$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
29301if eval \${$as_CACHEVAR+:} false; then :
29302  $as_echo_n "(cached) " >&6
29303else
29304
29305  ax_check_save_flags=$CFLAGS
29306  CFLAGS="$CFLAGS -Werror $flag"
29307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29308/* end confdefs.h.  */
29309
29310int
29311main ()
29312{
29313
29314  ;
29315  return 0;
29316}
29317_ACEOF
29318if ac_fn_c_try_compile "$LINENO"; then :
29319  eval "$as_CACHEVAR=yes"
29320else
29321  eval "$as_CACHEVAR=no"
29322fi
29323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29324  CFLAGS=$ax_check_save_flags
29325fi
29326eval ac_res=\$$as_CACHEVAR
29327	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29328$as_echo "$ac_res" >&6; }
29329if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
29330  if ${CFLAGS+:} false; then :
29331  case " $CFLAGS " in
29332    *" $flag "*)
29333      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
29334  (: CFLAGS already contains $flag) 2>&5
29335  ac_status=$?
29336  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29337  test $ac_status = 0; }
29338      ;;
29339    *)
29340      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
29341  (: CFLAGS="$CFLAGS $flag") 2>&5
29342  ac_status=$?
29343  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29344  test $ac_status = 0; }
29345      CFLAGS="$CFLAGS $flag"
29346      ;;
29347   esac
29348else
29349  CFLAGS="$flag"
29350fi
29351
29352else
29353  :
29354fi
29355
29356done
29357
29358
29359
29360
29361
29362for flag in -fsanitize=shift; do
29363  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
29364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
29365$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
29366if eval \${$as_CACHEVAR+:} false; then :
29367  $as_echo_n "(cached) " >&6
29368else
29369
29370  ax_check_save_flags=$CFLAGS
29371  CFLAGS="$CFLAGS -Werror $flag"
29372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29373/* end confdefs.h.  */
29374
29375int
29376main ()
29377{
29378
29379  ;
29380  return 0;
29381}
29382_ACEOF
29383if ac_fn_c_try_compile "$LINENO"; then :
29384  eval "$as_CACHEVAR=yes"
29385else
29386  eval "$as_CACHEVAR=no"
29387fi
29388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29389  CFLAGS=$ax_check_save_flags
29390fi
29391eval ac_res=\$$as_CACHEVAR
29392	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29393$as_echo "$ac_res" >&6; }
29394if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
29395  if ${CFLAGS+:} false; then :
29396  case " $CFLAGS " in
29397    *" $flag "*)
29398      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
29399  (: CFLAGS already contains $flag) 2>&5
29400  ac_status=$?
29401  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29402  test $ac_status = 0; }
29403      ;;
29404    *)
29405      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
29406  (: CFLAGS="$CFLAGS $flag") 2>&5
29407  ac_status=$?
29408  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29409  test $ac_status = 0; }
29410      CFLAGS="$CFLAGS $flag"
29411      ;;
29412   esac
29413else
29414  CFLAGS="$flag"
29415fi
29416
29417else
29418  :
29419fi
29420
29421done
29422
29423
29424
29425
29426
29427for flag in -fsanitize=signed-integer-overflow; do
29428  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
29429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
29430$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
29431if eval \${$as_CACHEVAR+:} false; then :
29432  $as_echo_n "(cached) " >&6
29433else
29434
29435  ax_check_save_flags=$CFLAGS
29436  CFLAGS="$CFLAGS -Werror $flag"
29437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29438/* end confdefs.h.  */
29439
29440int
29441main ()
29442{
29443
29444  ;
29445  return 0;
29446}
29447_ACEOF
29448if ac_fn_c_try_compile "$LINENO"; then :
29449  eval "$as_CACHEVAR=yes"
29450else
29451  eval "$as_CACHEVAR=no"
29452fi
29453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29454  CFLAGS=$ax_check_save_flags
29455fi
29456eval ac_res=\$$as_CACHEVAR
29457	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29458$as_echo "$ac_res" >&6; }
29459if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
29460  if ${CFLAGS+:} false; then :
29461  case " $CFLAGS " in
29462    *" $flag "*)
29463      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
29464  (: CFLAGS already contains $flag) 2>&5
29465  ac_status=$?
29466  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29467  test $ac_status = 0; }
29468      ;;
29469    *)
29470      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
29471  (: CFLAGS="$CFLAGS $flag") 2>&5
29472  ac_status=$?
29473  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29474  test $ac_status = 0; }
29475      CFLAGS="$CFLAGS $flag"
29476      ;;
29477   esac
29478else
29479  CFLAGS="$flag"
29480fi
29481
29482else
29483  :
29484fi
29485
29486done
29487
29488
29489
29490
29491
29492for flag in -fsanitize=unreachable; do
29493  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
29494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
29495$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
29496if eval \${$as_CACHEVAR+:} false; then :
29497  $as_echo_n "(cached) " >&6
29498else
29499
29500  ax_check_save_flags=$CFLAGS
29501  CFLAGS="$CFLAGS -Werror $flag"
29502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29503/* end confdefs.h.  */
29504
29505int
29506main ()
29507{
29508
29509  ;
29510  return 0;
29511}
29512_ACEOF
29513if ac_fn_c_try_compile "$LINENO"; then :
29514  eval "$as_CACHEVAR=yes"
29515else
29516  eval "$as_CACHEVAR=no"
29517fi
29518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29519  CFLAGS=$ax_check_save_flags
29520fi
29521eval ac_res=\$$as_CACHEVAR
29522	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29523$as_echo "$ac_res" >&6; }
29524if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
29525  if ${CFLAGS+:} false; then :
29526  case " $CFLAGS " in
29527    *" $flag "*)
29528      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
29529  (: CFLAGS already contains $flag) 2>&5
29530  ac_status=$?
29531  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29532  test $ac_status = 0; }
29533      ;;
29534    *)
29535      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
29536  (: CFLAGS="$CFLAGS $flag") 2>&5
29537  ac_status=$?
29538  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29539  test $ac_status = 0; }
29540      CFLAGS="$CFLAGS $flag"
29541      ;;
29542   esac
29543else
29544  CFLAGS="$flag"
29545fi
29546
29547else
29548  :
29549fi
29550
29551done
29552
29553
29554
29555
29556
29557for flag in -fsanitize=unsigned-integer-overflow; do
29558  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
29559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
29560$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
29561if eval \${$as_CACHEVAR+:} false; then :
29562  $as_echo_n "(cached) " >&6
29563else
29564
29565  ax_check_save_flags=$CFLAGS
29566  CFLAGS="$CFLAGS -Werror $flag"
29567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29568/* end confdefs.h.  */
29569
29570int
29571main ()
29572{
29573
29574  ;
29575  return 0;
29576}
29577_ACEOF
29578if ac_fn_c_try_compile "$LINENO"; then :
29579  eval "$as_CACHEVAR=yes"
29580else
29581  eval "$as_CACHEVAR=no"
29582fi
29583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29584  CFLAGS=$ax_check_save_flags
29585fi
29586eval ac_res=\$$as_CACHEVAR
29587	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29588$as_echo "$ac_res" >&6; }
29589if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
29590  if ${CFLAGS+:} false; then :
29591  case " $CFLAGS " in
29592    *" $flag "*)
29593      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
29594  (: CFLAGS already contains $flag) 2>&5
29595  ac_status=$?
29596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29597  test $ac_status = 0; }
29598      ;;
29599    *)
29600      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
29601  (: CFLAGS="$CFLAGS $flag") 2>&5
29602  ac_status=$?
29603  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29604  test $ac_status = 0; }
29605      CFLAGS="$CFLAGS $flag"
29606      ;;
29607   esac
29608else
29609  CFLAGS="$flag"
29610fi
29611
29612else
29613  :
29614fi
29615
29616done
29617
29618
29619
29620
29621
29622for flag in -fsanitize=vla-bound; do
29623  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
29624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
29625$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
29626if eval \${$as_CACHEVAR+:} false; then :
29627  $as_echo_n "(cached) " >&6
29628else
29629
29630  ax_check_save_flags=$CFLAGS
29631  CFLAGS="$CFLAGS -Werror $flag"
29632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29633/* end confdefs.h.  */
29634
29635int
29636main ()
29637{
29638
29639  ;
29640  return 0;
29641}
29642_ACEOF
29643if ac_fn_c_try_compile "$LINENO"; then :
29644  eval "$as_CACHEVAR=yes"
29645else
29646  eval "$as_CACHEVAR=no"
29647fi
29648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29649  CFLAGS=$ax_check_save_flags
29650fi
29651eval ac_res=\$$as_CACHEVAR
29652	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29653$as_echo "$ac_res" >&6; }
29654if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
29655  if ${CFLAGS+:} false; then :
29656  case " $CFLAGS " in
29657    *" $flag "*)
29658      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
29659  (: CFLAGS already contains $flag) 2>&5
29660  ac_status=$?
29661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29662  test $ac_status = 0; }
29663      ;;
29664    *)
29665      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
29666  (: CFLAGS="$CFLAGS $flag") 2>&5
29667  ac_status=$?
29668  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29669  test $ac_status = 0; }
29670      CFLAGS="$CFLAGS $flag"
29671      ;;
29672   esac
29673else
29674  CFLAGS="$flag"
29675fi
29676
29677else
29678  :
29679fi
29680
29681done
29682
29683
29684
29685
29686
29687for flag in -fsanitize=vptr; do
29688  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
29689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
29690$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
29691if eval \${$as_CACHEVAR+:} false; then :
29692  $as_echo_n "(cached) " >&6
29693else
29694
29695  ax_check_save_flags=$CFLAGS
29696  CFLAGS="$CFLAGS -Werror $flag"
29697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29698/* end confdefs.h.  */
29699
29700int
29701main ()
29702{
29703
29704  ;
29705  return 0;
29706}
29707_ACEOF
29708if ac_fn_c_try_compile "$LINENO"; then :
29709  eval "$as_CACHEVAR=yes"
29710else
29711  eval "$as_CACHEVAR=no"
29712fi
29713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29714  CFLAGS=$ax_check_save_flags
29715fi
29716eval ac_res=\$$as_CACHEVAR
29717	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29718$as_echo "$ac_res" >&6; }
29719if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
29720  if ${CFLAGS+:} false; then :
29721  case " $CFLAGS " in
29722    *" $flag "*)
29723      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
29724  (: CFLAGS already contains $flag) 2>&5
29725  ac_status=$?
29726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29727  test $ac_status = 0; }
29728      ;;
29729    *)
29730      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
29731  (: CFLAGS="$CFLAGS $flag") 2>&5
29732  ac_status=$?
29733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29734  test $ac_status = 0; }
29735      CFLAGS="$CFLAGS $flag"
29736      ;;
29737   esac
29738else
29739  CFLAGS="$flag"
29740fi
29741
29742else
29743  :
29744fi
29745
29746done
29747
29748
29749
29750fi
29751
29752fi
29753
29754fi
29755
29756
29757
29758for flag in -Wclobbered; do
29759  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
29760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
29761$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
29762if eval \${$as_CACHEVAR+:} false; then :
29763  $as_echo_n "(cached) " >&6
29764else
29765
29766  ax_check_save_flags=$CFLAGS
29767  CFLAGS="$CFLAGS -Werror $flag"
29768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29769/* end confdefs.h.  */
29770
29771int
29772main ()
29773{
29774
29775  ;
29776  return 0;
29777}
29778_ACEOF
29779if ac_fn_c_try_compile "$LINENO"; then :
29780  eval "$as_CACHEVAR=yes"
29781else
29782  eval "$as_CACHEVAR=no"
29783fi
29784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29785  CFLAGS=$ax_check_save_flags
29786fi
29787eval ac_res=\$$as_CACHEVAR
29788	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29789$as_echo "$ac_res" >&6; }
29790if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
29791  if ${CFLAGS+:} false; then :
29792  case " $CFLAGS " in
29793    *" $flag "*)
29794      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
29795  (: CFLAGS already contains $flag) 2>&5
29796  ac_status=$?
29797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29798  test $ac_status = 0; }
29799      ;;
29800    *)
29801      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
29802  (: CFLAGS="$CFLAGS $flag") 2>&5
29803  ac_status=$?
29804  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29805  test $ac_status = 0; }
29806      CFLAGS="$CFLAGS $flag"
29807      ;;
29808   esac
29809else
29810  CFLAGS="$flag"
29811fi
29812
29813else
29814  :
29815fi
29816
29817done
29818
29819
29820
29821
29822
29823for flag in -Wunused; do
29824  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
29825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
29826$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
29827if eval \${$as_CACHEVAR+:} false; then :
29828  $as_echo_n "(cached) " >&6
29829else
29830
29831  ax_check_save_flags=$CFLAGS
29832  CFLAGS="$CFLAGS -Werror $flag"
29833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29834/* end confdefs.h.  */
29835
29836int
29837main ()
29838{
29839
29840  ;
29841  return 0;
29842}
29843_ACEOF
29844if ac_fn_c_try_compile "$LINENO"; then :
29845  eval "$as_CACHEVAR=yes"
29846else
29847  eval "$as_CACHEVAR=no"
29848fi
29849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29850  CFLAGS=$ax_check_save_flags
29851fi
29852eval ac_res=\$$as_CACHEVAR
29853	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29854$as_echo "$ac_res" >&6; }
29855if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
29856  if ${CFLAGS+:} false; then :
29857  case " $CFLAGS " in
29858    *" $flag "*)
29859      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
29860  (: CFLAGS already contains $flag) 2>&5
29861  ac_status=$?
29862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29863  test $ac_status = 0; }
29864      ;;
29865    *)
29866      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
29867  (: CFLAGS="$CFLAGS $flag") 2>&5
29868  ac_status=$?
29869  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29870  test $ac_status = 0; }
29871      CFLAGS="$CFLAGS $flag"
29872      ;;
29873   esac
29874else
29875  CFLAGS="$flag"
29876fi
29877
29878else
29879  :
29880fi
29881
29882done
29883
29884
29885
29886
29887
29888for flag in -Wunused-result; do
29889  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
29890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
29891$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
29892if eval \${$as_CACHEVAR+:} false; then :
29893  $as_echo_n "(cached) " >&6
29894else
29895
29896  ax_check_save_flags=$CFLAGS
29897  CFLAGS="$CFLAGS -Werror $flag"
29898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29899/* end confdefs.h.  */
29900
29901int
29902main ()
29903{
29904
29905  ;
29906  return 0;
29907}
29908_ACEOF
29909if ac_fn_c_try_compile "$LINENO"; then :
29910  eval "$as_CACHEVAR=yes"
29911else
29912  eval "$as_CACHEVAR=no"
29913fi
29914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29915  CFLAGS=$ax_check_save_flags
29916fi
29917eval ac_res=\$$as_CACHEVAR
29918	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29919$as_echo "$ac_res" >&6; }
29920if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
29921  if ${CFLAGS+:} false; then :
29922  case " $CFLAGS " in
29923    *" $flag "*)
29924      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
29925  (: CFLAGS already contains $flag) 2>&5
29926  ac_status=$?
29927  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29928  test $ac_status = 0; }
29929      ;;
29930    *)
29931      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
29932  (: CFLAGS="$CFLAGS $flag") 2>&5
29933  ac_status=$?
29934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29935  test $ac_status = 0; }
29936      CFLAGS="$CFLAGS $flag"
29937      ;;
29938   esac
29939else
29940  CFLAGS="$flag"
29941fi
29942
29943else
29944  :
29945fi
29946
29947done
29948
29949
29950
29951
29952
29953for flag in -Wunused-variable; do
29954  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
29955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
29956$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
29957if eval \${$as_CACHEVAR+:} false; then :
29958  $as_echo_n "(cached) " >&6
29959else
29960
29961  ax_check_save_flags=$CFLAGS
29962  CFLAGS="$CFLAGS -Werror $flag"
29963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29964/* end confdefs.h.  */
29965
29966int
29967main ()
29968{
29969
29970  ;
29971  return 0;
29972}
29973_ACEOF
29974if ac_fn_c_try_compile "$LINENO"; then :
29975  eval "$as_CACHEVAR=yes"
29976else
29977  eval "$as_CACHEVAR=no"
29978fi
29979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29980  CFLAGS=$ax_check_save_flags
29981fi
29982eval ac_res=\$$as_CACHEVAR
29983	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29984$as_echo "$ac_res" >&6; }
29985if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
29986  if ${CFLAGS+:} false; then :
29987  case " $CFLAGS " in
29988    *" $flag "*)
29989      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
29990  (: CFLAGS already contains $flag) 2>&5
29991  ac_status=$?
29992  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29993  test $ac_status = 0; }
29994      ;;
29995    *)
29996      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
29997  (: CFLAGS="$CFLAGS $flag") 2>&5
29998  ac_status=$?
29999  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30000  test $ac_status = 0; }
30001      CFLAGS="$CFLAGS $flag"
30002      ;;
30003   esac
30004else
30005  CFLAGS="$flag"
30006fi
30007
30008else
30009  :
30010fi
30011
30012done
30013
30014
30015
30016
30017
30018for flag in -Wunused-parameter; do
30019  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
30020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
30021$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
30022if eval \${$as_CACHEVAR+:} false; then :
30023  $as_echo_n "(cached) " >&6
30024else
30025
30026  ax_check_save_flags=$CFLAGS
30027  CFLAGS="$CFLAGS -Werror $flag"
30028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30029/* end confdefs.h.  */
30030
30031int
30032main ()
30033{
30034
30035  ;
30036  return 0;
30037}
30038_ACEOF
30039if ac_fn_c_try_compile "$LINENO"; then :
30040  eval "$as_CACHEVAR=yes"
30041else
30042  eval "$as_CACHEVAR=no"
30043fi
30044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30045  CFLAGS=$ax_check_save_flags
30046fi
30047eval ac_res=\$$as_CACHEVAR
30048	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30049$as_echo "$ac_res" >&6; }
30050if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
30051  if ${CFLAGS+:} false; then :
30052  case " $CFLAGS " in
30053    *" $flag "*)
30054      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
30055  (: CFLAGS already contains $flag) 2>&5
30056  ac_status=$?
30057  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30058  test $ac_status = 0; }
30059      ;;
30060    *)
30061      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
30062  (: CFLAGS="$CFLAGS $flag") 2>&5
30063  ac_status=$?
30064  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30065  test $ac_status = 0; }
30066      CFLAGS="$CFLAGS $flag"
30067      ;;
30068   esac
30069else
30070  CFLAGS="$flag"
30071fi
30072
30073else
30074  :
30075fi
30076
30077done
30078
30079
30080
30081
30082
30083for flag in -Wunused-local-typedefs; do
30084  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
30085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
30086$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
30087if eval \${$as_CACHEVAR+:} false; then :
30088  $as_echo_n "(cached) " >&6
30089else
30090
30091  ax_check_save_flags=$CFLAGS
30092  CFLAGS="$CFLAGS -Werror $flag"
30093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30094/* end confdefs.h.  */
30095
30096int
30097main ()
30098{
30099
30100  ;
30101  return 0;
30102}
30103_ACEOF
30104if ac_fn_c_try_compile "$LINENO"; then :
30105  eval "$as_CACHEVAR=yes"
30106else
30107  eval "$as_CACHEVAR=no"
30108fi
30109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30110  CFLAGS=$ax_check_save_flags
30111fi
30112eval ac_res=\$$as_CACHEVAR
30113	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30114$as_echo "$ac_res" >&6; }
30115if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
30116  if ${CFLAGS+:} false; then :
30117  case " $CFLAGS " in
30118    *" $flag "*)
30119      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
30120  (: CFLAGS already contains $flag) 2>&5
30121  ac_status=$?
30122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30123  test $ac_status = 0; }
30124      ;;
30125    *)
30126      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
30127  (: CFLAGS="$CFLAGS $flag") 2>&5
30128  ac_status=$?
30129  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30130  test $ac_status = 0; }
30131      CFLAGS="$CFLAGS $flag"
30132      ;;
30133   esac
30134else
30135  CFLAGS="$flag"
30136fi
30137
30138else
30139  :
30140fi
30141
30142done
30143
30144
30145
30146
30147
30148for flag in -Wwrite-strings; do
30149  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
30150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
30151$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
30152if eval \${$as_CACHEVAR+:} false; then :
30153  $as_echo_n "(cached) " >&6
30154else
30155
30156  ax_check_save_flags=$CFLAGS
30157  CFLAGS="$CFLAGS -Werror $flag"
30158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30159/* end confdefs.h.  */
30160
30161int
30162main ()
30163{
30164
30165  ;
30166  return 0;
30167}
30168_ACEOF
30169if ac_fn_c_try_compile "$LINENO"; then :
30170  eval "$as_CACHEVAR=yes"
30171else
30172  eval "$as_CACHEVAR=no"
30173fi
30174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30175  CFLAGS=$ax_check_save_flags
30176fi
30177eval ac_res=\$$as_CACHEVAR
30178	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30179$as_echo "$ac_res" >&6; }
30180if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
30181  if ${CFLAGS+:} false; then :
30182  case " $CFLAGS " in
30183    *" $flag "*)
30184      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
30185  (: CFLAGS already contains $flag) 2>&5
30186  ac_status=$?
30187  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30188  test $ac_status = 0; }
30189      ;;
30190    *)
30191      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
30192  (: CFLAGS="$CFLAGS $flag") 2>&5
30193  ac_status=$?
30194  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30195  test $ac_status = 0; }
30196      CFLAGS="$CFLAGS $flag"
30197      ;;
30198   esac
30199else
30200  CFLAGS="$flag"
30201fi
30202
30203else
30204  :
30205fi
30206
30207done
30208
30209
30210
30211
30212
30213for flag in -floop-parallelize-all; do
30214  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
30215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
30216$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
30217if eval \${$as_CACHEVAR+:} false; then :
30218  $as_echo_n "(cached) " >&6
30219else
30220
30221  ax_check_save_flags=$CFLAGS
30222  CFLAGS="$CFLAGS -Werror $flag"
30223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30224/* end confdefs.h.  */
30225
30226int
30227main ()
30228{
30229
30230  ;
30231  return 0;
30232}
30233_ACEOF
30234if ac_fn_c_try_compile "$LINENO"; then :
30235  eval "$as_CACHEVAR=yes"
30236else
30237  eval "$as_CACHEVAR=no"
30238fi
30239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30240  CFLAGS=$ax_check_save_flags
30241fi
30242eval ac_res=\$$as_CACHEVAR
30243	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30244$as_echo "$ac_res" >&6; }
30245if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
30246  if ${CFLAGS+:} false; then :
30247  case " $CFLAGS " in
30248    *" $flag "*)
30249      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
30250  (: CFLAGS already contains $flag) 2>&5
30251  ac_status=$?
30252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30253  test $ac_status = 0; }
30254      ;;
30255    *)
30256      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
30257  (: CFLAGS="$CFLAGS $flag") 2>&5
30258  ac_status=$?
30259  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30260  test $ac_status = 0; }
30261      CFLAGS="$CFLAGS $flag"
30262      ;;
30263   esac
30264else
30265  CFLAGS="$flag"
30266fi
30267
30268else
30269  :
30270fi
30271
30272done
30273
30274
30275
30276
30277
30278for flag in -fwrapv; do
30279  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
30280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
30281$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
30282if eval \${$as_CACHEVAR+:} false; then :
30283  $as_echo_n "(cached) " >&6
30284else
30285
30286  ax_check_save_flags=$CFLAGS
30287  CFLAGS="$CFLAGS -Werror $flag"
30288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30289/* end confdefs.h.  */
30290
30291int
30292main ()
30293{
30294
30295  ;
30296  return 0;
30297}
30298_ACEOF
30299if ac_fn_c_try_compile "$LINENO"; then :
30300  eval "$as_CACHEVAR=yes"
30301else
30302  eval "$as_CACHEVAR=no"
30303fi
30304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30305  CFLAGS=$ax_check_save_flags
30306fi
30307eval ac_res=\$$as_CACHEVAR
30308	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30309$as_echo "$ac_res" >&6; }
30310if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
30311  if ${CFLAGS+:} false; then :
30312  case " $CFLAGS " in
30313    *" $flag "*)
30314      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
30315  (: CFLAGS already contains $flag) 2>&5
30316  ac_status=$?
30317  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30318  test $ac_status = 0; }
30319      ;;
30320    *)
30321      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
30322  (: CFLAGS="$CFLAGS $flag") 2>&5
30323  ac_status=$?
30324  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30325  test $ac_status = 0; }
30326      CFLAGS="$CFLAGS $flag"
30327      ;;
30328   esac
30329else
30330  CFLAGS="$flag"
30331fi
30332
30333else
30334  :
30335fi
30336
30337done
30338
30339
30340
30341
30342
30343for flag in -fmudflapt; do
30344  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
30345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
30346$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
30347if eval \${$as_CACHEVAR+:} false; then :
30348  $as_echo_n "(cached) " >&6
30349else
30350
30351  ax_check_save_flags=$CFLAGS
30352  CFLAGS="$CFLAGS -Werror $flag"
30353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30354/* end confdefs.h.  */
30355
30356int
30357main ()
30358{
30359
30360  ;
30361  return 0;
30362}
30363_ACEOF
30364if ac_fn_c_try_compile "$LINENO"; then :
30365  eval "$as_CACHEVAR=yes"
30366else
30367  eval "$as_CACHEVAR=no"
30368fi
30369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30370  CFLAGS=$ax_check_save_flags
30371fi
30372eval ac_res=\$$as_CACHEVAR
30373	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30374$as_echo "$ac_res" >&6; }
30375if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
30376  if ${CFLAGS+:} false; then :
30377  case " $CFLAGS " in
30378    *" $flag "*)
30379      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
30380  (: CFLAGS already contains $flag) 2>&5
30381  ac_status=$?
30382  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30383  test $ac_status = 0; }
30384      ;;
30385    *)
30386      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
30387  (: CFLAGS="$CFLAGS $flag") 2>&5
30388  ac_status=$?
30389  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30390  test $ac_status = 0; }
30391      CFLAGS="$CFLAGS $flag"
30392      ;;
30393   esac
30394else
30395  CFLAGS="$flag"
30396fi
30397
30398else
30399  :
30400fi
30401
30402done
30403
30404
30405
30406
30407
30408for flag in -pipe; do
30409  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
30410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
30411$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
30412if eval \${$as_CACHEVAR+:} false; then :
30413  $as_echo_n "(cached) " >&6
30414else
30415
30416  ax_check_save_flags=$CFLAGS
30417  CFLAGS="$CFLAGS -Werror $flag"
30418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30419/* end confdefs.h.  */
30420
30421int
30422main ()
30423{
30424
30425  ;
30426  return 0;
30427}
30428_ACEOF
30429if ac_fn_c_try_compile "$LINENO"; then :
30430  eval "$as_CACHEVAR=yes"
30431else
30432  eval "$as_CACHEVAR=no"
30433fi
30434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30435  CFLAGS=$ax_check_save_flags
30436fi
30437eval ac_res=\$$as_CACHEVAR
30438	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30439$as_echo "$ac_res" >&6; }
30440if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
30441  if ${CFLAGS+:} false; then :
30442  case " $CFLAGS " in
30443    *" $flag "*)
30444      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
30445  (: CFLAGS already contains $flag) 2>&5
30446  ac_status=$?
30447  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30448  test $ac_status = 0; }
30449      ;;
30450    *)
30451      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
30452  (: CFLAGS="$CFLAGS $flag") 2>&5
30453  ac_status=$?
30454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30455  test $ac_status = 0; }
30456      CFLAGS="$CFLAGS $flag"
30457      ;;
30458   esac
30459else
30460  CFLAGS="$flag"
30461fi
30462
30463else
30464  :
30465fi
30466
30467done
30468
30469
30470
30471
30472
30473for flag in -fPIE -pie; do
30474  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
30475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
30476$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
30477if eval \${$as_CACHEVAR+:} false; then :
30478  $as_echo_n "(cached) " >&6
30479else
30480
30481  ax_check_save_flags=$CFLAGS
30482  CFLAGS="$CFLAGS -Werror $flag"
30483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30484/* end confdefs.h.  */
30485
30486int
30487main ()
30488{
30489
30490  ;
30491  return 0;
30492}
30493_ACEOF
30494if ac_fn_c_try_compile "$LINENO"; then :
30495  eval "$as_CACHEVAR=yes"
30496else
30497  eval "$as_CACHEVAR=no"
30498fi
30499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30500  CFLAGS=$ax_check_save_flags
30501fi
30502eval ac_res=\$$as_CACHEVAR
30503	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30504$as_echo "$ac_res" >&6; }
30505if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
30506  if ${CFLAGS+:} false; then :
30507  case " $CFLAGS " in
30508    *" $flag "*)
30509      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
30510  (: CFLAGS already contains $flag) 2>&5
30511  ac_status=$?
30512  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30513  test $ac_status = 0; }
30514      ;;
30515    *)
30516      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
30517  (: CFLAGS="$CFLAGS $flag") 2>&5
30518  ac_status=$?
30519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30520  test $ac_status = 0; }
30521      CFLAGS="$CFLAGS $flag"
30522      ;;
30523   esac
30524else
30525  CFLAGS="$flag"
30526fi
30527
30528else
30529  :
30530fi
30531
30532done
30533
30534
30535
30536
30537
30538for flag in -Wsizeof-pointer-memaccess; do
30539  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
30540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
30541$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
30542if eval \${$as_CACHEVAR+:} false; then :
30543  $as_echo_n "(cached) " >&6
30544else
30545
30546  ax_check_save_flags=$CFLAGS
30547  CFLAGS="$CFLAGS -Werror $flag"
30548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30549/* end confdefs.h.  */
30550
30551int
30552main ()
30553{
30554
30555  ;
30556  return 0;
30557}
30558_ACEOF
30559if ac_fn_c_try_compile "$LINENO"; then :
30560  eval "$as_CACHEVAR=yes"
30561else
30562  eval "$as_CACHEVAR=no"
30563fi
30564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30565  CFLAGS=$ax_check_save_flags
30566fi
30567eval ac_res=\$$as_CACHEVAR
30568	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30569$as_echo "$ac_res" >&6; }
30570if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
30571  if ${CFLAGS+:} false; then :
30572  case " $CFLAGS " in
30573    *" $flag "*)
30574      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
30575  (: CFLAGS already contains $flag) 2>&5
30576  ac_status=$?
30577  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30578  test $ac_status = 0; }
30579      ;;
30580    *)
30581      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
30582  (: CFLAGS="$CFLAGS $flag") 2>&5
30583  ac_status=$?
30584  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30585  test $ac_status = 0; }
30586      CFLAGS="$CFLAGS $flag"
30587      ;;
30588   esac
30589else
30590  CFLAGS="$flag"
30591fi
30592
30593else
30594  :
30595fi
30596
30597done
30598
30599
30600
30601
30602
30603for flag in -Wpacked; do
30604  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
30605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
30606$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
30607if eval \${$as_CACHEVAR+:} false; then :
30608  $as_echo_n "(cached) " >&6
30609else
30610
30611  ax_check_save_flags=$CFLAGS
30612  CFLAGS="$CFLAGS -Werror $flag"
30613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30614/* end confdefs.h.  */
30615
30616int
30617main ()
30618{
30619
30620  ;
30621  return 0;
30622}
30623_ACEOF
30624if ac_fn_c_try_compile "$LINENO"; then :
30625  eval "$as_CACHEVAR=yes"
30626else
30627  eval "$as_CACHEVAR=no"
30628fi
30629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30630  CFLAGS=$ax_check_save_flags
30631fi
30632eval ac_res=\$$as_CACHEVAR
30633	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30634$as_echo "$ac_res" >&6; }
30635if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
30636  if ${CFLAGS+:} false; then :
30637  case " $CFLAGS " in
30638    *" $flag "*)
30639      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
30640  (: CFLAGS already contains $flag) 2>&5
30641  ac_status=$?
30642  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30643  test $ac_status = 0; }
30644      ;;
30645    *)
30646      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
30647  (: CFLAGS="$CFLAGS $flag") 2>&5
30648  ac_status=$?
30649  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30650  test $ac_status = 0; }
30651      CFLAGS="$CFLAGS $flag"
30652      ;;
30653   esac
30654else
30655  CFLAGS="$flag"
30656fi
30657
30658else
30659  :
30660fi
30661
30662done
30663
30664
30665#         _APPEND_COMPILE_FLAGS_ERROR([-Wlong-long])
30666
30667
30668
30669for flag in -Wunreachable-code; do
30670  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
30671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
30672$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
30673if eval \${$as_CACHEVAR+:} false; then :
30674  $as_echo_n "(cached) " >&6
30675else
30676
30677  ax_check_save_flags=$CFLAGS
30678  CFLAGS="$CFLAGS -Werror $flag"
30679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30680/* end confdefs.h.  */
30681
30682int
30683main ()
30684{
30685
30686  ;
30687  return 0;
30688}
30689_ACEOF
30690if ac_fn_c_try_compile "$LINENO"; then :
30691  eval "$as_CACHEVAR=yes"
30692else
30693  eval "$as_CACHEVAR=no"
30694fi
30695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30696  CFLAGS=$ax_check_save_flags
30697fi
30698eval ac_res=\$$as_CACHEVAR
30699	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30700$as_echo "$ac_res" >&6; }
30701if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
30702  if ${CFLAGS+:} false; then :
30703  case " $CFLAGS " in
30704    *" $flag "*)
30705      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
30706  (: CFLAGS already contains $flag) 2>&5
30707  ac_status=$?
30708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30709  test $ac_status = 0; }
30710      ;;
30711    *)
30712      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
30713  (: CFLAGS="$CFLAGS $flag") 2>&5
30714  ac_status=$?
30715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30716  test $ac_status = 0; }
30717      CFLAGS="$CFLAGS $flag"
30718      ;;
30719   esac
30720else
30721  CFLAGS="$flag"
30722fi
30723
30724else
30725  :
30726fi
30727
30728done
30729
30730
30731
30732          if test "x$ax_enable_debug" = xno; then :
30733  if test "x$ac_cv_vcs_checkout" = xyes; then :
30734  if test "x${target_os}" != "xmingw"; then :
30735  if test "x$ac_c_gcc_recent" = xyes; then :
30736
30737
30738
30739for flag in -D_FORTIFY_SOURCE=2; do
30740  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
30741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
30742$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
30743if eval \${$as_CACHEVAR+:} false; then :
30744  $as_echo_n "(cached) " >&6
30745else
30746
30747  ax_check_save_flags=$CFLAGS
30748  CFLAGS="$CFLAGS -Werror $flag"
30749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30750/* end confdefs.h.  */
30751
30752int
30753main ()
30754{
30755
30756  ;
30757  return 0;
30758}
30759_ACEOF
30760if ac_fn_c_try_compile "$LINENO"; then :
30761  eval "$as_CACHEVAR=yes"
30762else
30763  eval "$as_CACHEVAR=no"
30764fi
30765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30766  CFLAGS=$ax_check_save_flags
30767fi
30768eval ac_res=\$$as_CACHEVAR
30769	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30770$as_echo "$ac_res" >&6; }
30771if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
30772  if ${CFLAGS+:} false; then :
30773  case " $CFLAGS " in
30774    *" $flag "*)
30775      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
30776  (: CFLAGS already contains $flag) 2>&5
30777  ac_status=$?
30778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30779  test $ac_status = 0; }
30780      ;;
30781    *)
30782      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
30783  (: CFLAGS="$CFLAGS $flag") 2>&5
30784  ac_status=$?
30785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30786  test $ac_status = 0; }
30787      CFLAGS="$CFLAGS $flag"
30788      ;;
30789   esac
30790else
30791  CFLAGS="$flag"
30792fi
30793
30794else
30795  :
30796fi
30797
30798done
30799
30800
30801                  #_APPEND_COMPILE_FLAGS_ERROR([-Wstack-protector])
30802                  #_APPEND_COMPILE_FLAGS_ERROR([-fstack-protector --param=ssp-buffer-size=4])
30803
30804
30805
30806for flag in -fstack-protector-all; do
30807  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
30808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
30809$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
30810if eval \${$as_CACHEVAR+:} false; then :
30811  $as_echo_n "(cached) " >&6
30812else
30813
30814  ax_check_save_flags=$CFLAGS
30815  CFLAGS="$CFLAGS -Werror $flag"
30816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30817/* end confdefs.h.  */
30818
30819int
30820main ()
30821{
30822
30823  ;
30824  return 0;
30825}
30826_ACEOF
30827if ac_fn_c_try_compile "$LINENO"; then :
30828  eval "$as_CACHEVAR=yes"
30829else
30830  eval "$as_CACHEVAR=no"
30831fi
30832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30833  CFLAGS=$ax_check_save_flags
30834fi
30835eval ac_res=\$$as_CACHEVAR
30836	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30837$as_echo "$ac_res" >&6; }
30838if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
30839  if ${CFLAGS+:} false; then :
30840  case " $CFLAGS " in
30841    *" $flag "*)
30842      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
30843  (: CFLAGS already contains $flag) 2>&5
30844  ac_status=$?
30845  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30846  test $ac_status = 0; }
30847      ;;
30848    *)
30849      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
30850  (: CFLAGS="$CFLAGS $flag") 2>&5
30851  ac_status=$?
30852  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30853  test $ac_status = 0; }
30854      CFLAGS="$CFLAGS $flag"
30855      ;;
30856   esac
30857else
30858  CFLAGS="$flag"
30859fi
30860
30861else
30862  :
30863fi
30864
30865done
30866
30867
30868
30869fi
30870fi
30871fi
30872fi
30873
30874         if test "x$ac_cv_warnings_as_errors" = xyes; then :
30875  if ${CFLAGS+:} false; then :
30876  case " $CFLAGS " in
30877    *" -Werror "*)
30878      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -Werror"; } >&5
30879  (: CFLAGS already contains -Werror) 2>&5
30880  ac_status=$?
30881  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30882  test $ac_status = 0; }
30883      ;;
30884    *)
30885      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS -Werror\""; } >&5
30886  (: CFLAGS="$CFLAGS -Werror") 2>&5
30887  ac_status=$?
30888  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30889  test $ac_status = 0; }
30890      CFLAGS="$CFLAGS -Werror"
30891      ;;
30892   esac
30893else
30894  CFLAGS="-Werror"
30895fi
30896
30897fi
30898
30899          ac_ext=c
30900ac_cpp='$CPP $CPPFLAGS'
30901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30903ac_compiler_gnu=$ac_cv_c_compiler_gnu
30904
30905
30906ac_ext=cpp
30907ac_cpp='$CXXCPP $CPPFLAGS'
30908ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30909ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30910ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30911
30912
30913
30914         if test "x$ax_enable_debug" = xyes; then :
30915  CXXFLAGS=''
30916
30917
30918
30919for flag in -H; do
30920  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
30921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
30922$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
30923if eval \${$as_CACHEVAR+:} false; then :
30924  $as_echo_n "(cached) " >&6
30925else
30926
30927  ax_check_save_flags=$CXXFLAGS
30928  CXXFLAGS="$CXXFLAGS -Werror $flag"
30929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30930/* end confdefs.h.  */
30931
30932int
30933main ()
30934{
30935
30936  ;
30937  return 0;
30938}
30939_ACEOF
30940if ac_fn_cxx_try_compile "$LINENO"; then :
30941  eval "$as_CACHEVAR=yes"
30942else
30943  eval "$as_CACHEVAR=no"
30944fi
30945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30946  CXXFLAGS=$ax_check_save_flags
30947fi
30948eval ac_res=\$$as_CACHEVAR
30949	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30950$as_echo "$ac_res" >&6; }
30951if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
30952  if ${CXXFLAGS+:} false; then :
30953  case " $CXXFLAGS " in
30954    *" $flag "*)
30955      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
30956  (: CXXFLAGS already contains $flag) 2>&5
30957  ac_status=$?
30958  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30959  test $ac_status = 0; }
30960      ;;
30961    *)
30962      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
30963  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
30964  ac_status=$?
30965  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30966  test $ac_status = 0; }
30967      CXXFLAGS="$CXXFLAGS $flag"
30968      ;;
30969   esac
30970else
30971  CXXFLAGS="$flag"
30972fi
30973
30974else
30975  :
30976fi
30977
30978done
30979
30980
30981
30982
30983
30984for flag in -ggdb; do
30985  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
30986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
30987$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
30988if eval \${$as_CACHEVAR+:} false; then :
30989  $as_echo_n "(cached) " >&6
30990else
30991
30992  ax_check_save_flags=$CXXFLAGS
30993  CXXFLAGS="$CXXFLAGS -Werror $flag"
30994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30995/* end confdefs.h.  */
30996
30997int
30998main ()
30999{
31000
31001  ;
31002  return 0;
31003}
31004_ACEOF
31005if ac_fn_cxx_try_compile "$LINENO"; then :
31006  eval "$as_CACHEVAR=yes"
31007else
31008  eval "$as_CACHEVAR=no"
31009fi
31010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31011  CXXFLAGS=$ax_check_save_flags
31012fi
31013eval ac_res=\$$as_CACHEVAR
31014	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31015$as_echo "$ac_res" >&6; }
31016if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
31017  if ${CXXFLAGS+:} false; then :
31018  case " $CXXFLAGS " in
31019    *" $flag "*)
31020      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
31021  (: CXXFLAGS already contains $flag) 2>&5
31022  ac_status=$?
31023  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31024  test $ac_status = 0; }
31025      ;;
31026    *)
31027      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
31028  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
31029  ac_status=$?
31030  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31031  test $ac_status = 0; }
31032      CXXFLAGS="$CXXFLAGS $flag"
31033      ;;
31034   esac
31035else
31036  CXXFLAGS="$flag"
31037fi
31038
31039else
31040  :
31041fi
31042
31043done
31044
31045
31046
31047
31048
31049for flag in -g; do
31050  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
31051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
31052$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
31053if eval \${$as_CACHEVAR+:} false; then :
31054  $as_echo_n "(cached) " >&6
31055else
31056
31057  ax_check_save_flags=$CXXFLAGS
31058  CXXFLAGS="$CXXFLAGS -Werror $flag"
31059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31060/* end confdefs.h.  */
31061
31062int
31063main ()
31064{
31065
31066  ;
31067  return 0;
31068}
31069_ACEOF
31070if ac_fn_cxx_try_compile "$LINENO"; then :
31071  eval "$as_CACHEVAR=yes"
31072else
31073  eval "$as_CACHEVAR=no"
31074fi
31075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31076  CXXFLAGS=$ax_check_save_flags
31077fi
31078eval ac_res=\$$as_CACHEVAR
31079	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31080$as_echo "$ac_res" >&6; }
31081if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
31082  if ${CXXFLAGS+:} false; then :
31083  case " $CXXFLAGS " in
31084    *" $flag "*)
31085      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
31086  (: CXXFLAGS already contains $flag) 2>&5
31087  ac_status=$?
31088  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31089  test $ac_status = 0; }
31090      ;;
31091    *)
31092      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
31093  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
31094  ac_status=$?
31095  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31096  test $ac_status = 0; }
31097      CXXFLAGS="$CXXFLAGS $flag"
31098      ;;
31099   esac
31100else
31101  CXXFLAGS="$flag"
31102fi
31103
31104else
31105  :
31106fi
31107
31108done
31109
31110
31111
31112
31113
31114for flag in -O0; do
31115  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
31116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
31117$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
31118if eval \${$as_CACHEVAR+:} false; then :
31119  $as_echo_n "(cached) " >&6
31120else
31121
31122  ax_check_save_flags=$CXXFLAGS
31123  CXXFLAGS="$CXXFLAGS -Werror $flag"
31124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31125/* end confdefs.h.  */
31126
31127int
31128main ()
31129{
31130
31131  ;
31132  return 0;
31133}
31134_ACEOF
31135if ac_fn_cxx_try_compile "$LINENO"; then :
31136  eval "$as_CACHEVAR=yes"
31137else
31138  eval "$as_CACHEVAR=no"
31139fi
31140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31141  CXXFLAGS=$ax_check_save_flags
31142fi
31143eval ac_res=\$$as_CACHEVAR
31144	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31145$as_echo "$ac_res" >&6; }
31146if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
31147  if ${CXXFLAGS+:} false; then :
31148  case " $CXXFLAGS " in
31149    *" $flag "*)
31150      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
31151  (: CXXFLAGS already contains $flag) 2>&5
31152  ac_status=$?
31153  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31154  test $ac_status = 0; }
31155      ;;
31156    *)
31157      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
31158  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
31159  ac_status=$?
31160  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31161  test $ac_status = 0; }
31162      CXXFLAGS="$CXXFLAGS $flag"
31163      ;;
31164   esac
31165else
31166  CXXFLAGS="$flag"
31167fi
31168
31169else
31170  :
31171fi
31172
31173done
31174
31175         ,
31176
31177
31178
31179for flag in -fno-omit-frame-pointer; do
31180  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
31181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
31182$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
31183if eval \${$as_CACHEVAR+:} false; then :
31184  $as_echo_n "(cached) " >&6
31185else
31186
31187  ax_check_save_flags=$CXXFLAGS
31188  CXXFLAGS="$CXXFLAGS -Werror $flag"
31189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31190/* end confdefs.h.  */
31191
31192int
31193main ()
31194{
31195
31196  ;
31197  return 0;
31198}
31199_ACEOF
31200if ac_fn_cxx_try_compile "$LINENO"; then :
31201  eval "$as_CACHEVAR=yes"
31202else
31203  eval "$as_CACHEVAR=no"
31204fi
31205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31206  CXXFLAGS=$ax_check_save_flags
31207fi
31208eval ac_res=\$$as_CACHEVAR
31209	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31210$as_echo "$ac_res" >&6; }
31211if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
31212  if ${CXXFLAGS+:} false; then :
31213  case " $CXXFLAGS " in
31214    *" $flag "*)
31215      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
31216  (: CXXFLAGS already contains $flag) 2>&5
31217  ac_status=$?
31218  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31219  test $ac_status = 0; }
31220      ;;
31221    *)
31222      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
31223  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
31224  ac_status=$?
31225  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31226  test $ac_status = 0; }
31227      CXXFLAGS="$CXXFLAGS $flag"
31228      ;;
31229   esac
31230else
31231  CXXFLAGS="$flag"
31232fi
31233
31234else
31235  :
31236fi
31237
31238done
31239
31240
31241
31242else
31243
31244
31245
31246
31247for flag in -g; do
31248  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
31249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
31250$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
31251if eval \${$as_CACHEVAR+:} false; then :
31252  $as_echo_n "(cached) " >&6
31253else
31254
31255  ax_check_save_flags=$CXXFLAGS
31256  CXXFLAGS="$CXXFLAGS -Werror $flag"
31257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31258/* end confdefs.h.  */
31259
31260int
31261main ()
31262{
31263
31264  ;
31265  return 0;
31266}
31267_ACEOF
31268if ac_fn_cxx_try_compile "$LINENO"; then :
31269  eval "$as_CACHEVAR=yes"
31270else
31271  eval "$as_CACHEVAR=no"
31272fi
31273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31274  CXXFLAGS=$ax_check_save_flags
31275fi
31276eval ac_res=\$$as_CACHEVAR
31277	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31278$as_echo "$ac_res" >&6; }
31279if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
31280  if ${CXXFLAGS+:} false; then :
31281  case " $CXXFLAGS " in
31282    *" $flag "*)
31283      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
31284  (: CXXFLAGS already contains $flag) 2>&5
31285  ac_status=$?
31286  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31287  test $ac_status = 0; }
31288      ;;
31289    *)
31290      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
31291  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
31292  ac_status=$?
31293  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31294  test $ac_status = 0; }
31295      CXXFLAGS="$CXXFLAGS $flag"
31296      ;;
31297   esac
31298else
31299  CXXFLAGS="$flag"
31300fi
31301
31302else
31303  :
31304fi
31305
31306done
31307
31308
31309
31310
31311
31312for flag in -O2; do
31313  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
31314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
31315$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
31316if eval \${$as_CACHEVAR+:} false; then :
31317  $as_echo_n "(cached) " >&6
31318else
31319
31320  ax_check_save_flags=$CXXFLAGS
31321  CXXFLAGS="$CXXFLAGS -Werror $flag"
31322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31323/* end confdefs.h.  */
31324
31325int
31326main ()
31327{
31328
31329  ;
31330  return 0;
31331}
31332_ACEOF
31333if ac_fn_cxx_try_compile "$LINENO"; then :
31334  eval "$as_CACHEVAR=yes"
31335else
31336  eval "$as_CACHEVAR=no"
31337fi
31338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31339  CXXFLAGS=$ax_check_save_flags
31340fi
31341eval ac_res=\$$as_CACHEVAR
31342	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31343$as_echo "$ac_res" >&6; }
31344if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
31345  if ${CXXFLAGS+:} false; then :
31346  case " $CXXFLAGS " in
31347    *" $flag "*)
31348      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
31349  (: CXXFLAGS already contains $flag) 2>&5
31350  ac_status=$?
31351  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31352  test $ac_status = 0; }
31353      ;;
31354    *)
31355      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
31356  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
31357  ac_status=$?
31358  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31359  test $ac_status = 0; }
31360      CXXFLAGS="$CXXFLAGS $flag"
31361      ;;
31362   esac
31363else
31364  CXXFLAGS="$flag"
31365fi
31366
31367else
31368  :
31369fi
31370
31371done
31372
31373
31374
31375fi
31376
31377         if test "x$ac_cv_vcs_checkout" = xyes; then :
31378
31379
31380
31381for flag in -fstack-check; do
31382  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
31383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
31384$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
31385if eval \${$as_CACHEVAR+:} false; then :
31386  $as_echo_n "(cached) " >&6
31387else
31388
31389  ax_check_save_flags=$CXXFLAGS
31390  CXXFLAGS="$CXXFLAGS -Werror $flag"
31391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31392/* end confdefs.h.  */
31393
31394int
31395main ()
31396{
31397
31398  ;
31399  return 0;
31400}
31401_ACEOF
31402if ac_fn_cxx_try_compile "$LINENO"; then :
31403  eval "$as_CACHEVAR=yes"
31404else
31405  eval "$as_CACHEVAR=no"
31406fi
31407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31408  CXXFLAGS=$ax_check_save_flags
31409fi
31410eval ac_res=\$$as_CACHEVAR
31411	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31412$as_echo "$ac_res" >&6; }
31413if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
31414  if ${CXXFLAGS+:} false; then :
31415  case " $CXXFLAGS " in
31416    *" $flag "*)
31417      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
31418  (: CXXFLAGS already contains $flag) 2>&5
31419  ac_status=$?
31420  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31421  test $ac_status = 0; }
31422      ;;
31423    *)
31424      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
31425  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
31426  ac_status=$?
31427  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31428  test $ac_status = 0; }
31429      CXXFLAGS="$CXXFLAGS $flag"
31430      ;;
31431   esac
31432else
31433  CXXFLAGS="$flag"
31434fi
31435
31436else
31437  :
31438fi
31439
31440done
31441
31442
31443
31444
31445
31446for flag in -Wpragmas; do
31447  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
31448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
31449$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
31450if eval \${$as_CACHEVAR+:} false; then :
31451  $as_echo_n "(cached) " >&6
31452else
31453
31454  ax_check_save_flags=$CXXFLAGS
31455  CXXFLAGS="$CXXFLAGS -Werror $flag"
31456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31457/* end confdefs.h.  */
31458
31459int
31460main ()
31461{
31462
31463  ;
31464  return 0;
31465}
31466_ACEOF
31467if ac_fn_cxx_try_compile "$LINENO"; then :
31468  eval "$as_CACHEVAR=yes"
31469else
31470  eval "$as_CACHEVAR=no"
31471fi
31472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31473  CXXFLAGS=$ax_check_save_flags
31474fi
31475eval ac_res=\$$as_CACHEVAR
31476	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31477$as_echo "$ac_res" >&6; }
31478if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
31479  if ${CXXFLAGS+:} false; then :
31480  case " $CXXFLAGS " in
31481    *" $flag "*)
31482      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
31483  (: CXXFLAGS already contains $flag) 2>&5
31484  ac_status=$?
31485  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31486  test $ac_status = 0; }
31487      ;;
31488    *)
31489      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
31490  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
31491  ac_status=$?
31492  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31493  test $ac_status = 0; }
31494      CXXFLAGS="$CXXFLAGS $flag"
31495      ;;
31496   esac
31497else
31498  CXXFLAGS="$flag"
31499fi
31500
31501else
31502  :
31503fi
31504
31505done
31506
31507
31508
31509
31510
31511for flag in -Wunknown-pragmas; do
31512  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
31513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
31514$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
31515if eval \${$as_CACHEVAR+:} false; then :
31516  $as_echo_n "(cached) " >&6
31517else
31518
31519  ax_check_save_flags=$CXXFLAGS
31520  CXXFLAGS="$CXXFLAGS -Werror $flag"
31521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31522/* end confdefs.h.  */
31523
31524int
31525main ()
31526{
31527
31528  ;
31529  return 0;
31530}
31531_ACEOF
31532if ac_fn_cxx_try_compile "$LINENO"; then :
31533  eval "$as_CACHEVAR=yes"
31534else
31535  eval "$as_CACHEVAR=no"
31536fi
31537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31538  CXXFLAGS=$ax_check_save_flags
31539fi
31540eval ac_res=\$$as_CACHEVAR
31541	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31542$as_echo "$ac_res" >&6; }
31543if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
31544  if ${CXXFLAGS+:} false; then :
31545  case " $CXXFLAGS " in
31546    *" $flag "*)
31547      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
31548  (: CXXFLAGS already contains $flag) 2>&5
31549  ac_status=$?
31550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31551  test $ac_status = 0; }
31552      ;;
31553    *)
31554      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
31555  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
31556  ac_status=$?
31557  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31558  test $ac_status = 0; }
31559      CXXFLAGS="$CXXFLAGS $flag"
31560      ;;
31561   esac
31562else
31563  CXXFLAGS="$flag"
31564fi
31565
31566else
31567  :
31568fi
31569
31570done
31571
31572
31573else
31574
31575
31576
31577for flag in -Wno-unknown-pragmas; do
31578  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
31579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
31580$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
31581if eval \${$as_CACHEVAR+:} false; then :
31582  $as_echo_n "(cached) " >&6
31583else
31584
31585  ax_check_save_flags=$CXXFLAGS
31586  CXXFLAGS="$CXXFLAGS -Werror $flag"
31587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31588/* end confdefs.h.  */
31589
31590int
31591main ()
31592{
31593
31594  ;
31595  return 0;
31596}
31597_ACEOF
31598if ac_fn_cxx_try_compile "$LINENO"; then :
31599  eval "$as_CACHEVAR=yes"
31600else
31601  eval "$as_CACHEVAR=no"
31602fi
31603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31604  CXXFLAGS=$ax_check_save_flags
31605fi
31606eval ac_res=\$$as_CACHEVAR
31607	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31608$as_echo "$ac_res" >&6; }
31609if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
31610  if ${CXXFLAGS+:} false; then :
31611  case " $CXXFLAGS " in
31612    *" $flag "*)
31613      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
31614  (: CXXFLAGS already contains $flag) 2>&5
31615  ac_status=$?
31616  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31617  test $ac_status = 0; }
31618      ;;
31619    *)
31620      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
31621  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
31622  ac_status=$?
31623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31624  test $ac_status = 0; }
31625      CXXFLAGS="$CXXFLAGS $flag"
31626      ;;
31627   esac
31628else
31629  CXXFLAGS="$flag"
31630fi
31631
31632else
31633  :
31634fi
31635
31636done
31637
31638
31639
31640
31641
31642for flag in -Wno-pragmas; do
31643  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
31644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
31645$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
31646if eval \${$as_CACHEVAR+:} false; then :
31647  $as_echo_n "(cached) " >&6
31648else
31649
31650  ax_check_save_flags=$CXXFLAGS
31651  CXXFLAGS="$CXXFLAGS -Werror $flag"
31652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31653/* end confdefs.h.  */
31654
31655int
31656main ()
31657{
31658
31659  ;
31660  return 0;
31661}
31662_ACEOF
31663if ac_fn_cxx_try_compile "$LINENO"; then :
31664  eval "$as_CACHEVAR=yes"
31665else
31666  eval "$as_CACHEVAR=no"
31667fi
31668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31669  CXXFLAGS=$ax_check_save_flags
31670fi
31671eval ac_res=\$$as_CACHEVAR
31672	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31673$as_echo "$ac_res" >&6; }
31674if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
31675  if ${CXXFLAGS+:} false; then :
31676  case " $CXXFLAGS " in
31677    *" $flag "*)
31678      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
31679  (: CXXFLAGS already contains $flag) 2>&5
31680  ac_status=$?
31681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31682  test $ac_status = 0; }
31683      ;;
31684    *)
31685      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
31686  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
31687  ac_status=$?
31688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31689  test $ac_status = 0; }
31690      CXXFLAGS="$CXXFLAGS $flag"
31691      ;;
31692   esac
31693else
31694  CXXFLAGS="$flag"
31695fi
31696
31697else
31698  :
31699fi
31700
31701done
31702
31703
31704fi
31705
31706         if test "$CXX" = "clang++"; then :
31707
31708
31709
31710for flag in -Qunused-arguments; do
31711  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
31712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
31713$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
31714if eval \${$as_CACHEVAR+:} false; then :
31715  $as_echo_n "(cached) " >&6
31716else
31717
31718  ax_check_save_flags=$CXXFLAGS
31719  CXXFLAGS="$CXXFLAGS -Werror $flag"
31720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31721/* end confdefs.h.  */
31722
31723int
31724main ()
31725{
31726
31727  ;
31728  return 0;
31729}
31730_ACEOF
31731if ac_fn_cxx_try_compile "$LINENO"; then :
31732  eval "$as_CACHEVAR=yes"
31733else
31734  eval "$as_CACHEVAR=no"
31735fi
31736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31737  CXXFLAGS=$ax_check_save_flags
31738fi
31739eval ac_res=\$$as_CACHEVAR
31740	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31741$as_echo "$ac_res" >&6; }
31742if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
31743  if ${CXXFLAGS+:} false; then :
31744  case " $CXXFLAGS " in
31745    *" $flag "*)
31746      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
31747  (: CXXFLAGS already contains $flag) 2>&5
31748  ac_status=$?
31749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31750  test $ac_status = 0; }
31751      ;;
31752    *)
31753      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
31754  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
31755  ac_status=$?
31756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31757  test $ac_status = 0; }
31758      CXXFLAGS="$CXXFLAGS $flag"
31759      ;;
31760   esac
31761else
31762  CXXFLAGS="$flag"
31763fi
31764
31765else
31766  :
31767fi
31768
31769done
31770
31771
31772fi
31773
31774
31775
31776
31777for flag in -Wall; do
31778  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
31779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
31780$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
31781if eval \${$as_CACHEVAR+:} false; then :
31782  $as_echo_n "(cached) " >&6
31783else
31784
31785  ax_check_save_flags=$CXXFLAGS
31786  CXXFLAGS="$CXXFLAGS -Werror $flag"
31787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31788/* end confdefs.h.  */
31789
31790int
31791main ()
31792{
31793
31794  ;
31795  return 0;
31796}
31797_ACEOF
31798if ac_fn_cxx_try_compile "$LINENO"; then :
31799  eval "$as_CACHEVAR=yes"
31800else
31801  eval "$as_CACHEVAR=no"
31802fi
31803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31804  CXXFLAGS=$ax_check_save_flags
31805fi
31806eval ac_res=\$$as_CACHEVAR
31807	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31808$as_echo "$ac_res" >&6; }
31809if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
31810  if ${CXXFLAGS+:} false; then :
31811  case " $CXXFLAGS " in
31812    *" $flag "*)
31813      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
31814  (: CXXFLAGS already contains $flag) 2>&5
31815  ac_status=$?
31816  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31817  test $ac_status = 0; }
31818      ;;
31819    *)
31820      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
31821  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
31822  ac_status=$?
31823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31824  test $ac_status = 0; }
31825      CXXFLAGS="$CXXFLAGS $flag"
31826      ;;
31827   esac
31828else
31829  CXXFLAGS="$flag"
31830fi
31831
31832else
31833  :
31834fi
31835
31836done
31837
31838
31839
31840
31841
31842for flag in -Wextra; do
31843  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
31844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
31845$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
31846if eval \${$as_CACHEVAR+:} false; then :
31847  $as_echo_n "(cached) " >&6
31848else
31849
31850  ax_check_save_flags=$CXXFLAGS
31851  CXXFLAGS="$CXXFLAGS -Werror $flag"
31852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31853/* end confdefs.h.  */
31854
31855int
31856main ()
31857{
31858
31859  ;
31860  return 0;
31861}
31862_ACEOF
31863if ac_fn_cxx_try_compile "$LINENO"; then :
31864  eval "$as_CACHEVAR=yes"
31865else
31866  eval "$as_CACHEVAR=no"
31867fi
31868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31869  CXXFLAGS=$ax_check_save_flags
31870fi
31871eval ac_res=\$$as_CACHEVAR
31872	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31873$as_echo "$ac_res" >&6; }
31874if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
31875  if ${CXXFLAGS+:} false; then :
31876  case " $CXXFLAGS " in
31877    *" $flag "*)
31878      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
31879  (: CXXFLAGS already contains $flag) 2>&5
31880  ac_status=$?
31881  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31882  test $ac_status = 0; }
31883      ;;
31884    *)
31885      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
31886  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
31887  ac_status=$?
31888  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31889  test $ac_status = 0; }
31890      CXXFLAGS="$CXXFLAGS $flag"
31891      ;;
31892   esac
31893else
31894  CXXFLAGS="$flag"
31895fi
31896
31897else
31898  :
31899fi
31900
31901done
31902
31903
31904
31905
31906
31907for flag in -Weverything; do
31908  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
31909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
31910$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
31911if eval \${$as_CACHEVAR+:} false; then :
31912  $as_echo_n "(cached) " >&6
31913else
31914
31915  ax_check_save_flags=$CXXFLAGS
31916  CXXFLAGS="$CXXFLAGS -Werror $flag"
31917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31918/* end confdefs.h.  */
31919
31920int
31921main ()
31922{
31923
31924  ;
31925  return 0;
31926}
31927_ACEOF
31928if ac_fn_cxx_try_compile "$LINENO"; then :
31929  eval "$as_CACHEVAR=yes"
31930else
31931  eval "$as_CACHEVAR=no"
31932fi
31933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31934  CXXFLAGS=$ax_check_save_flags
31935fi
31936eval ac_res=\$$as_CACHEVAR
31937	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31938$as_echo "$ac_res" >&6; }
31939if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
31940  if ${CXXFLAGS+:} false; then :
31941  case " $CXXFLAGS " in
31942    *" $flag "*)
31943      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
31944  (: CXXFLAGS already contains $flag) 2>&5
31945  ac_status=$?
31946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31947  test $ac_status = 0; }
31948      ;;
31949    *)
31950      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
31951  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
31952  ac_status=$?
31953  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31954  test $ac_status = 0; }
31955      CXXFLAGS="$CXXFLAGS $flag"
31956      ;;
31957   esac
31958else
31959  CXXFLAGS="$flag"
31960fi
31961
31962else
31963  :
31964fi
31965
31966done
31967
31968
31969
31970
31971
31972for flag in -Wthis-test-should-fail; do
31973  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
31974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
31975$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
31976if eval \${$as_CACHEVAR+:} false; then :
31977  $as_echo_n "(cached) " >&6
31978else
31979
31980  ax_check_save_flags=$CXXFLAGS
31981  CXXFLAGS="$CXXFLAGS -Werror $flag"
31982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31983/* end confdefs.h.  */
31984
31985int
31986main ()
31987{
31988
31989  ;
31990  return 0;
31991}
31992_ACEOF
31993if ac_fn_cxx_try_compile "$LINENO"; then :
31994  eval "$as_CACHEVAR=yes"
31995else
31996  eval "$as_CACHEVAR=no"
31997fi
31998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31999  CXXFLAGS=$ax_check_save_flags
32000fi
32001eval ac_res=\$$as_CACHEVAR
32002	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32003$as_echo "$ac_res" >&6; }
32004if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
32005  if ${CXXFLAGS+:} false; then :
32006  case " $CXXFLAGS " in
32007    *" $flag "*)
32008      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
32009  (: CXXFLAGS already contains $flag) 2>&5
32010  ac_status=$?
32011  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32012  test $ac_status = 0; }
32013      ;;
32014    *)
32015      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
32016  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
32017  ac_status=$?
32018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32019  test $ac_status = 0; }
32020      CXXFLAGS="$CXXFLAGS $flag"
32021      ;;
32022   esac
32023else
32024  CXXFLAGS="$flag"
32025fi
32026
32027else
32028  :
32029fi
32030
32031done
32032
32033
32034# Anything below this comment please keep sorted.
32035# _APPEND_COMPILE_FLAGS_ERROR([-Wmissing-format-attribute])
32036
32037
32038
32039for flag in -Wno-attributes; do
32040  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
32041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
32042$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
32043if eval \${$as_CACHEVAR+:} false; then :
32044  $as_echo_n "(cached) " >&6
32045else
32046
32047  ax_check_save_flags=$CXXFLAGS
32048  CXXFLAGS="$CXXFLAGS -Werror $flag"
32049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32050/* end confdefs.h.  */
32051
32052int
32053main ()
32054{
32055
32056  ;
32057  return 0;
32058}
32059_ACEOF
32060if ac_fn_cxx_try_compile "$LINENO"; then :
32061  eval "$as_CACHEVAR=yes"
32062else
32063  eval "$as_CACHEVAR=no"
32064fi
32065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32066  CXXFLAGS=$ax_check_save_flags
32067fi
32068eval ac_res=\$$as_CACHEVAR
32069	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32070$as_echo "$ac_res" >&6; }
32071if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
32072  if ${CXXFLAGS+:} false; then :
32073  case " $CXXFLAGS " in
32074    *" $flag "*)
32075      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
32076  (: CXXFLAGS already contains $flag) 2>&5
32077  ac_status=$?
32078  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32079  test $ac_status = 0; }
32080      ;;
32081    *)
32082      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
32083  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
32084  ac_status=$?
32085  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32086  test $ac_status = 0; }
32087      CXXFLAGS="$CXXFLAGS $flag"
32088      ;;
32089   esac
32090else
32091  CXXFLAGS="$flag"
32092fi
32093
32094else
32095  :
32096fi
32097
32098done
32099
32100
32101
32102
32103
32104for flag in -Wvarargs; do
32105  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
32106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
32107$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
32108if eval \${$as_CACHEVAR+:} false; then :
32109  $as_echo_n "(cached) " >&6
32110else
32111
32112  ax_check_save_flags=$CXXFLAGS
32113  CXXFLAGS="$CXXFLAGS -Werror $flag"
32114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32115/* end confdefs.h.  */
32116
32117int
32118main ()
32119{
32120
32121  ;
32122  return 0;
32123}
32124_ACEOF
32125if ac_fn_cxx_try_compile "$LINENO"; then :
32126  eval "$as_CACHEVAR=yes"
32127else
32128  eval "$as_CACHEVAR=no"
32129fi
32130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32131  CXXFLAGS=$ax_check_save_flags
32132fi
32133eval ac_res=\$$as_CACHEVAR
32134	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32135$as_echo "$ac_res" >&6; }
32136if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
32137  if ${CXXFLAGS+:} false; then :
32138  case " $CXXFLAGS " in
32139    *" $flag "*)
32140      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
32141  (: CXXFLAGS already contains $flag) 2>&5
32142  ac_status=$?
32143  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32144  test $ac_status = 0; }
32145      ;;
32146    *)
32147      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
32148  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
32149  ac_status=$?
32150  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32151  test $ac_status = 0; }
32152      CXXFLAGS="$CXXFLAGS $flag"
32153      ;;
32154   esac
32155else
32156  CXXFLAGS="$flag"
32157fi
32158
32159else
32160  :
32161fi
32162
32163done
32164
32165
32166
32167
32168
32169for flag in -Waddress; do
32170  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
32171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
32172$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
32173if eval \${$as_CACHEVAR+:} false; then :
32174  $as_echo_n "(cached) " >&6
32175else
32176
32177  ax_check_save_flags=$CXXFLAGS
32178  CXXFLAGS="$CXXFLAGS -Werror $flag"
32179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32180/* end confdefs.h.  */
32181
32182int
32183main ()
32184{
32185
32186  ;
32187  return 0;
32188}
32189_ACEOF
32190if ac_fn_cxx_try_compile "$LINENO"; then :
32191  eval "$as_CACHEVAR=yes"
32192else
32193  eval "$as_CACHEVAR=no"
32194fi
32195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32196  CXXFLAGS=$ax_check_save_flags
32197fi
32198eval ac_res=\$$as_CACHEVAR
32199	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32200$as_echo "$ac_res" >&6; }
32201if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
32202  if ${CXXFLAGS+:} false; then :
32203  case " $CXXFLAGS " in
32204    *" $flag "*)
32205      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
32206  (: CXXFLAGS already contains $flag) 2>&5
32207  ac_status=$?
32208  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32209  test $ac_status = 0; }
32210      ;;
32211    *)
32212      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
32213  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
32214  ac_status=$?
32215  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32216  test $ac_status = 0; }
32217      CXXFLAGS="$CXXFLAGS $flag"
32218      ;;
32219   esac
32220else
32221  CXXFLAGS="$flag"
32222fi
32223
32224else
32225  :
32226fi
32227
32228done
32229
32230
32231
32232
32233
32234for flag in -Warray-bounds; do
32235  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
32236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
32237$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
32238if eval \${$as_CACHEVAR+:} false; then :
32239  $as_echo_n "(cached) " >&6
32240else
32241
32242  ax_check_save_flags=$CXXFLAGS
32243  CXXFLAGS="$CXXFLAGS -Werror $flag"
32244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32245/* end confdefs.h.  */
32246
32247int
32248main ()
32249{
32250
32251  ;
32252  return 0;
32253}
32254_ACEOF
32255if ac_fn_cxx_try_compile "$LINENO"; then :
32256  eval "$as_CACHEVAR=yes"
32257else
32258  eval "$as_CACHEVAR=no"
32259fi
32260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32261  CXXFLAGS=$ax_check_save_flags
32262fi
32263eval ac_res=\$$as_CACHEVAR
32264	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32265$as_echo "$ac_res" >&6; }
32266if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
32267  if ${CXXFLAGS+:} false; then :
32268  case " $CXXFLAGS " in
32269    *" $flag "*)
32270      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
32271  (: CXXFLAGS already contains $flag) 2>&5
32272  ac_status=$?
32273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32274  test $ac_status = 0; }
32275      ;;
32276    *)
32277      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
32278  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
32279  ac_status=$?
32280  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32281  test $ac_status = 0; }
32282      CXXFLAGS="$CXXFLAGS $flag"
32283      ;;
32284   esac
32285else
32286  CXXFLAGS="$flag"
32287fi
32288
32289else
32290  :
32291fi
32292
32293done
32294
32295
32296
32297
32298
32299for flag in -Wchar-subscripts; do
32300  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
32301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
32302$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
32303if eval \${$as_CACHEVAR+:} false; then :
32304  $as_echo_n "(cached) " >&6
32305else
32306
32307  ax_check_save_flags=$CXXFLAGS
32308  CXXFLAGS="$CXXFLAGS -Werror $flag"
32309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32310/* end confdefs.h.  */
32311
32312int
32313main ()
32314{
32315
32316  ;
32317  return 0;
32318}
32319_ACEOF
32320if ac_fn_cxx_try_compile "$LINENO"; then :
32321  eval "$as_CACHEVAR=yes"
32322else
32323  eval "$as_CACHEVAR=no"
32324fi
32325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32326  CXXFLAGS=$ax_check_save_flags
32327fi
32328eval ac_res=\$$as_CACHEVAR
32329	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32330$as_echo "$ac_res" >&6; }
32331if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
32332  if ${CXXFLAGS+:} false; then :
32333  case " $CXXFLAGS " in
32334    *" $flag "*)
32335      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
32336  (: CXXFLAGS already contains $flag) 2>&5
32337  ac_status=$?
32338  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32339  test $ac_status = 0; }
32340      ;;
32341    *)
32342      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
32343  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
32344  ac_status=$?
32345  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32346  test $ac_status = 0; }
32347      CXXFLAGS="$CXXFLAGS $flag"
32348      ;;
32349   esac
32350else
32351  CXXFLAGS="$flag"
32352fi
32353
32354else
32355  :
32356fi
32357
32358done
32359
32360
32361
32362
32363
32364for flag in -Wcomment; do
32365  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
32366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
32367$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
32368if eval \${$as_CACHEVAR+:} false; then :
32369  $as_echo_n "(cached) " >&6
32370else
32371
32372  ax_check_save_flags=$CXXFLAGS
32373  CXXFLAGS="$CXXFLAGS -Werror $flag"
32374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32375/* end confdefs.h.  */
32376
32377int
32378main ()
32379{
32380
32381  ;
32382  return 0;
32383}
32384_ACEOF
32385if ac_fn_cxx_try_compile "$LINENO"; then :
32386  eval "$as_CACHEVAR=yes"
32387else
32388  eval "$as_CACHEVAR=no"
32389fi
32390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32391  CXXFLAGS=$ax_check_save_flags
32392fi
32393eval ac_res=\$$as_CACHEVAR
32394	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32395$as_echo "$ac_res" >&6; }
32396if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
32397  if ${CXXFLAGS+:} false; then :
32398  case " $CXXFLAGS " in
32399    *" $flag "*)
32400      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
32401  (: CXXFLAGS already contains $flag) 2>&5
32402  ac_status=$?
32403  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32404  test $ac_status = 0; }
32405      ;;
32406    *)
32407      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
32408  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
32409  ac_status=$?
32410  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32411  test $ac_status = 0; }
32412      CXXFLAGS="$CXXFLAGS $flag"
32413      ;;
32414   esac
32415else
32416  CXXFLAGS="$flag"
32417fi
32418
32419else
32420  :
32421fi
32422
32423done
32424
32425
32426
32427
32428
32429for flag in -Wctor-dtor-privacy; do
32430  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
32431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
32432$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
32433if eval \${$as_CACHEVAR+:} false; then :
32434  $as_echo_n "(cached) " >&6
32435else
32436
32437  ax_check_save_flags=$CXXFLAGS
32438  CXXFLAGS="$CXXFLAGS -Werror $flag"
32439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32440/* end confdefs.h.  */
32441
32442int
32443main ()
32444{
32445
32446  ;
32447  return 0;
32448}
32449_ACEOF
32450if ac_fn_cxx_try_compile "$LINENO"; then :
32451  eval "$as_CACHEVAR=yes"
32452else
32453  eval "$as_CACHEVAR=no"
32454fi
32455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32456  CXXFLAGS=$ax_check_save_flags
32457fi
32458eval ac_res=\$$as_CACHEVAR
32459	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32460$as_echo "$ac_res" >&6; }
32461if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
32462  if ${CXXFLAGS+:} false; then :
32463  case " $CXXFLAGS " in
32464    *" $flag "*)
32465      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
32466  (: CXXFLAGS already contains $flag) 2>&5
32467  ac_status=$?
32468  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32469  test $ac_status = 0; }
32470      ;;
32471    *)
32472      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
32473  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
32474  ac_status=$?
32475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32476  test $ac_status = 0; }
32477      CXXFLAGS="$CXXFLAGS $flag"
32478      ;;
32479   esac
32480else
32481  CXXFLAGS="$flag"
32482fi
32483
32484else
32485  :
32486fi
32487
32488done
32489
32490
32491
32492
32493
32494for flag in -Wfloat-equal; do
32495  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
32496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
32497$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
32498if eval \${$as_CACHEVAR+:} false; then :
32499  $as_echo_n "(cached) " >&6
32500else
32501
32502  ax_check_save_flags=$CXXFLAGS
32503  CXXFLAGS="$CXXFLAGS -Werror $flag"
32504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32505/* end confdefs.h.  */
32506
32507int
32508main ()
32509{
32510
32511  ;
32512  return 0;
32513}
32514_ACEOF
32515if ac_fn_cxx_try_compile "$LINENO"; then :
32516  eval "$as_CACHEVAR=yes"
32517else
32518  eval "$as_CACHEVAR=no"
32519fi
32520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32521  CXXFLAGS=$ax_check_save_flags
32522fi
32523eval ac_res=\$$as_CACHEVAR
32524	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32525$as_echo "$ac_res" >&6; }
32526if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
32527  if ${CXXFLAGS+:} false; then :
32528  case " $CXXFLAGS " in
32529    *" $flag "*)
32530      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
32531  (: CXXFLAGS already contains $flag) 2>&5
32532  ac_status=$?
32533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32534  test $ac_status = 0; }
32535      ;;
32536    *)
32537      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
32538  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
32539  ac_status=$?
32540  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32541  test $ac_status = 0; }
32542      CXXFLAGS="$CXXFLAGS $flag"
32543      ;;
32544   esac
32545else
32546  CXXFLAGS="$flag"
32547fi
32548
32549else
32550  :
32551fi
32552
32553done
32554
32555
32556
32557
32558
32559for flag in -Wformat=2; do
32560  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
32561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
32562$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
32563if eval \${$as_CACHEVAR+:} false; then :
32564  $as_echo_n "(cached) " >&6
32565else
32566
32567  ax_check_save_flags=$CXXFLAGS
32568  CXXFLAGS="$CXXFLAGS -Werror $flag"
32569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32570/* end confdefs.h.  */
32571
32572int
32573main ()
32574{
32575
32576  ;
32577  return 0;
32578}
32579_ACEOF
32580if ac_fn_cxx_try_compile "$LINENO"; then :
32581  eval "$as_CACHEVAR=yes"
32582else
32583  eval "$as_CACHEVAR=no"
32584fi
32585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32586  CXXFLAGS=$ax_check_save_flags
32587fi
32588eval ac_res=\$$as_CACHEVAR
32589	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32590$as_echo "$ac_res" >&6; }
32591if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
32592  if ${CXXFLAGS+:} false; then :
32593  case " $CXXFLAGS " in
32594    *" $flag "*)
32595      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
32596  (: CXXFLAGS already contains $flag) 2>&5
32597  ac_status=$?
32598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32599  test $ac_status = 0; }
32600      ;;
32601    *)
32602      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
32603  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
32604  ac_status=$?
32605  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32606  test $ac_status = 0; }
32607      CXXFLAGS="$CXXFLAGS $flag"
32608      ;;
32609   esac
32610else
32611  CXXFLAGS="$flag"
32612fi
32613
32614else
32615  :
32616fi
32617
32618done
32619
32620
32621
32622
32623
32624for flag in -Wformat-y2k; do
32625  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
32626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
32627$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
32628if eval \${$as_CACHEVAR+:} false; then :
32629  $as_echo_n "(cached) " >&6
32630else
32631
32632  ax_check_save_flags=$CXXFLAGS
32633  CXXFLAGS="$CXXFLAGS -Werror $flag"
32634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32635/* end confdefs.h.  */
32636
32637int
32638main ()
32639{
32640
32641  ;
32642  return 0;
32643}
32644_ACEOF
32645if ac_fn_cxx_try_compile "$LINENO"; then :
32646  eval "$as_CACHEVAR=yes"
32647else
32648  eval "$as_CACHEVAR=no"
32649fi
32650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32651  CXXFLAGS=$ax_check_save_flags
32652fi
32653eval ac_res=\$$as_CACHEVAR
32654	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32655$as_echo "$ac_res" >&6; }
32656if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
32657  if ${CXXFLAGS+:} false; then :
32658  case " $CXXFLAGS " in
32659    *" $flag "*)
32660      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
32661  (: CXXFLAGS already contains $flag) 2>&5
32662  ac_status=$?
32663  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32664  test $ac_status = 0; }
32665      ;;
32666    *)
32667      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
32668  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
32669  ac_status=$?
32670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32671  test $ac_status = 0; }
32672      CXXFLAGS="$CXXFLAGS $flag"
32673      ;;
32674   esac
32675else
32676  CXXFLAGS="$flag"
32677fi
32678
32679else
32680  :
32681fi
32682
32683done
32684
32685
32686
32687
32688
32689for flag in -Wmaybe-uninitialized; do
32690  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
32691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
32692$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
32693if eval \${$as_CACHEVAR+:} false; then :
32694  $as_echo_n "(cached) " >&6
32695else
32696
32697  ax_check_save_flags=$CXXFLAGS
32698  CXXFLAGS="$CXXFLAGS -Werror $flag"
32699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32700/* end confdefs.h.  */
32701
32702int
32703main ()
32704{
32705
32706  ;
32707  return 0;
32708}
32709_ACEOF
32710if ac_fn_cxx_try_compile "$LINENO"; then :
32711  eval "$as_CACHEVAR=yes"
32712else
32713  eval "$as_CACHEVAR=no"
32714fi
32715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32716  CXXFLAGS=$ax_check_save_flags
32717fi
32718eval ac_res=\$$as_CACHEVAR
32719	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32720$as_echo "$ac_res" >&6; }
32721if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
32722  if ${CXXFLAGS+:} false; then :
32723  case " $CXXFLAGS " in
32724    *" $flag "*)
32725      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
32726  (: CXXFLAGS already contains $flag) 2>&5
32727  ac_status=$?
32728  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32729  test $ac_status = 0; }
32730      ;;
32731    *)
32732      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
32733  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
32734  ac_status=$?
32735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32736  test $ac_status = 0; }
32737      CXXFLAGS="$CXXFLAGS $flag"
32738      ;;
32739   esac
32740else
32741  CXXFLAGS="$flag"
32742fi
32743
32744else
32745  :
32746fi
32747
32748done
32749
32750
32751
32752
32753
32754for flag in -Wmissing-field-initializers; do
32755  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
32756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
32757$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
32758if eval \${$as_CACHEVAR+:} false; then :
32759  $as_echo_n "(cached) " >&6
32760else
32761
32762  ax_check_save_flags=$CXXFLAGS
32763  CXXFLAGS="$CXXFLAGS -Werror $flag"
32764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32765/* end confdefs.h.  */
32766
32767int
32768main ()
32769{
32770
32771  ;
32772  return 0;
32773}
32774_ACEOF
32775if ac_fn_cxx_try_compile "$LINENO"; then :
32776  eval "$as_CACHEVAR=yes"
32777else
32778  eval "$as_CACHEVAR=no"
32779fi
32780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32781  CXXFLAGS=$ax_check_save_flags
32782fi
32783eval ac_res=\$$as_CACHEVAR
32784	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32785$as_echo "$ac_res" >&6; }
32786if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
32787  if ${CXXFLAGS+:} false; then :
32788  case " $CXXFLAGS " in
32789    *" $flag "*)
32790      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
32791  (: CXXFLAGS already contains $flag) 2>&5
32792  ac_status=$?
32793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32794  test $ac_status = 0; }
32795      ;;
32796    *)
32797      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
32798  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
32799  ac_status=$?
32800  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32801  test $ac_status = 0; }
32802      CXXFLAGS="$CXXFLAGS $flag"
32803      ;;
32804   esac
32805else
32806  CXXFLAGS="$flag"
32807fi
32808
32809else
32810  :
32811fi
32812
32813done
32814
32815
32816
32817
32818
32819for flag in -Wlogical-op; do
32820  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
32821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
32822$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
32823if eval \${$as_CACHEVAR+:} false; then :
32824  $as_echo_n "(cached) " >&6
32825else
32826
32827  ax_check_save_flags=$CXXFLAGS
32828  CXXFLAGS="$CXXFLAGS -Werror $flag"
32829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32830/* end confdefs.h.  */
32831
32832int
32833main ()
32834{
32835
32836  ;
32837  return 0;
32838}
32839_ACEOF
32840if ac_fn_cxx_try_compile "$LINENO"; then :
32841  eval "$as_CACHEVAR=yes"
32842else
32843  eval "$as_CACHEVAR=no"
32844fi
32845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32846  CXXFLAGS=$ax_check_save_flags
32847fi
32848eval ac_res=\$$as_CACHEVAR
32849	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32850$as_echo "$ac_res" >&6; }
32851if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
32852  if ${CXXFLAGS+:} false; then :
32853  case " $CXXFLAGS " in
32854    *" $flag "*)
32855      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
32856  (: CXXFLAGS already contains $flag) 2>&5
32857  ac_status=$?
32858  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32859  test $ac_status = 0; }
32860      ;;
32861    *)
32862      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
32863  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
32864  ac_status=$?
32865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32866  test $ac_status = 0; }
32867      CXXFLAGS="$CXXFLAGS $flag"
32868      ;;
32869   esac
32870else
32871  CXXFLAGS="$flag"
32872fi
32873
32874else
32875  :
32876fi
32877
32878done
32879
32880
32881
32882
32883
32884for flag in -Wnon-virtual-dtor; do
32885  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
32886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
32887$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
32888if eval \${$as_CACHEVAR+:} false; then :
32889  $as_echo_n "(cached) " >&6
32890else
32891
32892  ax_check_save_flags=$CXXFLAGS
32893  CXXFLAGS="$CXXFLAGS -Werror $flag"
32894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32895/* end confdefs.h.  */
32896
32897int
32898main ()
32899{
32900
32901  ;
32902  return 0;
32903}
32904_ACEOF
32905if ac_fn_cxx_try_compile "$LINENO"; then :
32906  eval "$as_CACHEVAR=yes"
32907else
32908  eval "$as_CACHEVAR=no"
32909fi
32910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32911  CXXFLAGS=$ax_check_save_flags
32912fi
32913eval ac_res=\$$as_CACHEVAR
32914	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32915$as_echo "$ac_res" >&6; }
32916if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
32917  if ${CXXFLAGS+:} false; then :
32918  case " $CXXFLAGS " in
32919    *" $flag "*)
32920      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
32921  (: CXXFLAGS already contains $flag) 2>&5
32922  ac_status=$?
32923  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32924  test $ac_status = 0; }
32925      ;;
32926    *)
32927      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
32928  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
32929  ac_status=$?
32930  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32931  test $ac_status = 0; }
32932      CXXFLAGS="$CXXFLAGS $flag"
32933      ;;
32934   esac
32935else
32936  CXXFLAGS="$flag"
32937fi
32938
32939else
32940  :
32941fi
32942
32943done
32944
32945
32946
32947
32948
32949for flag in -Wnormalized=id; do
32950  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
32951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
32952$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
32953if eval \${$as_CACHEVAR+:} false; then :
32954  $as_echo_n "(cached) " >&6
32955else
32956
32957  ax_check_save_flags=$CXXFLAGS
32958  CXXFLAGS="$CXXFLAGS -Werror $flag"
32959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32960/* end confdefs.h.  */
32961
32962int
32963main ()
32964{
32965
32966  ;
32967  return 0;
32968}
32969_ACEOF
32970if ac_fn_cxx_try_compile "$LINENO"; then :
32971  eval "$as_CACHEVAR=yes"
32972else
32973  eval "$as_CACHEVAR=no"
32974fi
32975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32976  CXXFLAGS=$ax_check_save_flags
32977fi
32978eval ac_res=\$$as_CACHEVAR
32979	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32980$as_echo "$ac_res" >&6; }
32981if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
32982  if ${CXXFLAGS+:} false; then :
32983  case " $CXXFLAGS " in
32984    *" $flag "*)
32985      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
32986  (: CXXFLAGS already contains $flag) 2>&5
32987  ac_status=$?
32988  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32989  test $ac_status = 0; }
32990      ;;
32991    *)
32992      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
32993  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
32994  ac_status=$?
32995  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32996  test $ac_status = 0; }
32997      CXXFLAGS="$CXXFLAGS $flag"
32998      ;;
32999   esac
33000else
33001  CXXFLAGS="$flag"
33002fi
33003
33004else
33005  :
33006fi
33007
33008done
33009
33010
33011
33012
33013
33014for flag in -Woverloaded-virtual; do
33015  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
33016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
33017$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
33018if eval \${$as_CACHEVAR+:} false; then :
33019  $as_echo_n "(cached) " >&6
33020else
33021
33022  ax_check_save_flags=$CXXFLAGS
33023  CXXFLAGS="$CXXFLAGS -Werror $flag"
33024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33025/* end confdefs.h.  */
33026
33027int
33028main ()
33029{
33030
33031  ;
33032  return 0;
33033}
33034_ACEOF
33035if ac_fn_cxx_try_compile "$LINENO"; then :
33036  eval "$as_CACHEVAR=yes"
33037else
33038  eval "$as_CACHEVAR=no"
33039fi
33040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33041  CXXFLAGS=$ax_check_save_flags
33042fi
33043eval ac_res=\$$as_CACHEVAR
33044	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33045$as_echo "$ac_res" >&6; }
33046if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
33047  if ${CXXFLAGS+:} false; then :
33048  case " $CXXFLAGS " in
33049    *" $flag "*)
33050      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
33051  (: CXXFLAGS already contains $flag) 2>&5
33052  ac_status=$?
33053  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33054  test $ac_status = 0; }
33055      ;;
33056    *)
33057      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
33058  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
33059  ac_status=$?
33060  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33061  test $ac_status = 0; }
33062      CXXFLAGS="$CXXFLAGS $flag"
33063      ;;
33064   esac
33065else
33066  CXXFLAGS="$flag"
33067fi
33068
33069else
33070  :
33071fi
33072
33073done
33074
33075
33076
33077
33078
33079for flag in -Wpointer-arith; do
33080  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
33081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
33082$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
33083if eval \${$as_CACHEVAR+:} false; then :
33084  $as_echo_n "(cached) " >&6
33085else
33086
33087  ax_check_save_flags=$CXXFLAGS
33088  CXXFLAGS="$CXXFLAGS -Werror $flag"
33089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33090/* end confdefs.h.  */
33091
33092int
33093main ()
33094{
33095
33096  ;
33097  return 0;
33098}
33099_ACEOF
33100if ac_fn_cxx_try_compile "$LINENO"; then :
33101  eval "$as_CACHEVAR=yes"
33102else
33103  eval "$as_CACHEVAR=no"
33104fi
33105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33106  CXXFLAGS=$ax_check_save_flags
33107fi
33108eval ac_res=\$$as_CACHEVAR
33109	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33110$as_echo "$ac_res" >&6; }
33111if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
33112  if ${CXXFLAGS+:} false; then :
33113  case " $CXXFLAGS " in
33114    *" $flag "*)
33115      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
33116  (: CXXFLAGS already contains $flag) 2>&5
33117  ac_status=$?
33118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33119  test $ac_status = 0; }
33120      ;;
33121    *)
33122      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
33123  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
33124  ac_status=$?
33125  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33126  test $ac_status = 0; }
33127      CXXFLAGS="$CXXFLAGS $flag"
33128      ;;
33129   esac
33130else
33131  CXXFLAGS="$flag"
33132fi
33133
33134else
33135  :
33136fi
33137
33138done
33139
33140
33141          if test "x$MINGW" = xyes; then :
33142
33143
33144
33145for flag in -Wno-suggest-attribute=const; do
33146  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
33147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
33148$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
33149if eval \${$as_CACHEVAR+:} false; then :
33150  $as_echo_n "(cached) " >&6
33151else
33152
33153  ax_check_save_flags=$CXXFLAGS
33154  CXXFLAGS="$CXXFLAGS -Werror $flag"
33155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33156/* end confdefs.h.  */
33157
33158int
33159main ()
33160{
33161
33162  ;
33163  return 0;
33164}
33165_ACEOF
33166if ac_fn_cxx_try_compile "$LINENO"; then :
33167  eval "$as_CACHEVAR=yes"
33168else
33169  eval "$as_CACHEVAR=no"
33170fi
33171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33172  CXXFLAGS=$ax_check_save_flags
33173fi
33174eval ac_res=\$$as_CACHEVAR
33175	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33176$as_echo "$ac_res" >&6; }
33177if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
33178  if ${CXXFLAGS+:} false; then :
33179  case " $CXXFLAGS " in
33180    *" $flag "*)
33181      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
33182  (: CXXFLAGS already contains $flag) 2>&5
33183  ac_status=$?
33184  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33185  test $ac_status = 0; }
33186      ;;
33187    *)
33188      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
33189  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
33190  ac_status=$?
33191  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33192  test $ac_status = 0; }
33193      CXXFLAGS="$CXXFLAGS $flag"
33194      ;;
33195   esac
33196else
33197  CXXFLAGS="$flag"
33198fi
33199
33200else
33201  :
33202fi
33203
33204done
33205
33206
33207
33208
33209
33210for flag in -Wno-missing-noreturn; do
33211  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
33212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
33213$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
33214if eval \${$as_CACHEVAR+:} false; then :
33215  $as_echo_n "(cached) " >&6
33216else
33217
33218  ax_check_save_flags=$CXXFLAGS
33219  CXXFLAGS="$CXXFLAGS -Werror $flag"
33220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33221/* end confdefs.h.  */
33222
33223int
33224main ()
33225{
33226
33227  ;
33228  return 0;
33229}
33230_ACEOF
33231if ac_fn_cxx_try_compile "$LINENO"; then :
33232  eval "$as_CACHEVAR=yes"
33233else
33234  eval "$as_CACHEVAR=no"
33235fi
33236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33237  CXXFLAGS=$ax_check_save_flags
33238fi
33239eval ac_res=\$$as_CACHEVAR
33240	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33241$as_echo "$ac_res" >&6; }
33242if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
33243  if ${CXXFLAGS+:} false; then :
33244  case " $CXXFLAGS " in
33245    *" $flag "*)
33246      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
33247  (: CXXFLAGS already contains $flag) 2>&5
33248  ac_status=$?
33249  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33250  test $ac_status = 0; }
33251      ;;
33252    *)
33253      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
33254  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
33255  ac_status=$?
33256  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33257  test $ac_status = 0; }
33258      CXXFLAGS="$CXXFLAGS $flag"
33259      ;;
33260   esac
33261else
33262  CXXFLAGS="$flag"
33263fi
33264
33265else
33266  :
33267fi
33268
33269done
33270
33271
33272
33273
33274
33275for flag in -Wmissing-noreturn; do
33276  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
33277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
33278$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
33279if eval \${$as_CACHEVAR+:} false; then :
33280  $as_echo_n "(cached) " >&6
33281else
33282
33283  ax_check_save_flags=$CXXFLAGS
33284  CXXFLAGS="$CXXFLAGS -Werror $flag"
33285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33286/* end confdefs.h.  */
33287
33288int
33289main ()
33290{
33291
33292  ;
33293  return 0;
33294}
33295_ACEOF
33296if ac_fn_cxx_try_compile "$LINENO"; then :
33297  eval "$as_CACHEVAR=yes"
33298else
33299  eval "$as_CACHEVAR=no"
33300fi
33301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33302  CXXFLAGS=$ax_check_save_flags
33303fi
33304eval ac_res=\$$as_CACHEVAR
33305	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33306$as_echo "$ac_res" >&6; }
33307if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
33308  if ${CXXFLAGS+:} false; then :
33309  case " $CXXFLAGS " in
33310    *" $flag "*)
33311      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
33312  (: CXXFLAGS already contains $flag) 2>&5
33313  ac_status=$?
33314  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33315  test $ac_status = 0; }
33316      ;;
33317    *)
33318      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
33319  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
33320  ac_status=$?
33321  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33322  test $ac_status = 0; }
33323      CXXFLAGS="$CXXFLAGS $flag"
33324      ;;
33325   esac
33326else
33327  CXXFLAGS="$flag"
33328fi
33329
33330else
33331  :
33332fi
33333
33334done
33335
33336
33337
33338
33339
33340for flag in -Wno-suggest-attribute=noreturn; do
33341  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
33342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
33343$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
33344if eval \${$as_CACHEVAR+:} false; then :
33345  $as_echo_n "(cached) " >&6
33346else
33347
33348  ax_check_save_flags=$CXXFLAGS
33349  CXXFLAGS="$CXXFLAGS -Werror $flag"
33350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33351/* end confdefs.h.  */
33352
33353int
33354main ()
33355{
33356
33357  ;
33358  return 0;
33359}
33360_ACEOF
33361if ac_fn_cxx_try_compile "$LINENO"; then :
33362  eval "$as_CACHEVAR=yes"
33363else
33364  eval "$as_CACHEVAR=no"
33365fi
33366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33367  CXXFLAGS=$ax_check_save_flags
33368fi
33369eval ac_res=\$$as_CACHEVAR
33370	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33371$as_echo "$ac_res" >&6; }
33372if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
33373  if ${CXXFLAGS+:} false; then :
33374  case " $CXXFLAGS " in
33375    *" $flag "*)
33376      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
33377  (: CXXFLAGS already contains $flag) 2>&5
33378  ac_status=$?
33379  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33380  test $ac_status = 0; }
33381      ;;
33382    *)
33383      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
33384  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
33385  ac_status=$?
33386  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33387  test $ac_status = 0; }
33388      CXXFLAGS="$CXXFLAGS $flag"
33389      ;;
33390   esac
33391else
33392  CXXFLAGS="$flag"
33393fi
33394
33395else
33396  :
33397fi
33398
33399done
33400
33401
33402
33403
33404
33405for flag in -Wno-error=suggest-attribute=noreturn; do
33406  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
33407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
33408$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
33409if eval \${$as_CACHEVAR+:} false; then :
33410  $as_echo_n "(cached) " >&6
33411else
33412
33413  ax_check_save_flags=$CXXFLAGS
33414  CXXFLAGS="$CXXFLAGS -Werror $flag"
33415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33416/* end confdefs.h.  */
33417
33418int
33419main ()
33420{
33421
33422  ;
33423  return 0;
33424}
33425_ACEOF
33426if ac_fn_cxx_try_compile "$LINENO"; then :
33427  eval "$as_CACHEVAR=yes"
33428else
33429  eval "$as_CACHEVAR=no"
33430fi
33431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33432  CXXFLAGS=$ax_check_save_flags
33433fi
33434eval ac_res=\$$as_CACHEVAR
33435	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33436$as_echo "$ac_res" >&6; }
33437if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
33438  if ${CXXFLAGS+:} false; then :
33439  case " $CXXFLAGS " in
33440    *" $flag "*)
33441      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
33442  (: CXXFLAGS already contains $flag) 2>&5
33443  ac_status=$?
33444  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33445  test $ac_status = 0; }
33446      ;;
33447    *)
33448      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
33449  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
33450  ac_status=$?
33451  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33452  test $ac_status = 0; }
33453      CXXFLAGS="$CXXFLAGS $flag"
33454      ;;
33455   esac
33456else
33457  CXXFLAGS="$flag"
33458fi
33459
33460else
33461  :
33462fi
33463
33464done
33465
33466
33467
33468
33469
33470for flag in -Wno-redundant-decls; do
33471  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
33472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
33473$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
33474if eval \${$as_CACHEVAR+:} false; then :
33475  $as_echo_n "(cached) " >&6
33476else
33477
33478  ax_check_save_flags=$CXXFLAGS
33479  CXXFLAGS="$CXXFLAGS -Werror $flag"
33480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33481/* end confdefs.h.  */
33482
33483int
33484main ()
33485{
33486
33487  ;
33488  return 0;
33489}
33490_ACEOF
33491if ac_fn_cxx_try_compile "$LINENO"; then :
33492  eval "$as_CACHEVAR=yes"
33493else
33494  eval "$as_CACHEVAR=no"
33495fi
33496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33497  CXXFLAGS=$ax_check_save_flags
33498fi
33499eval ac_res=\$$as_CACHEVAR
33500	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33501$as_echo "$ac_res" >&6; }
33502if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
33503  if ${CXXFLAGS+:} false; then :
33504  case " $CXXFLAGS " in
33505    *" $flag "*)
33506      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
33507  (: CXXFLAGS already contains $flag) 2>&5
33508  ac_status=$?
33509  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33510  test $ac_status = 0; }
33511      ;;
33512    *)
33513      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
33514  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
33515  ac_status=$?
33516  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33517  test $ac_status = 0; }
33518      CXXFLAGS="$CXXFLAGS $flag"
33519      ;;
33520   esac
33521else
33522  CXXFLAGS="$flag"
33523fi
33524
33525else
33526  :
33527fi
33528
33529done
33530
33531
33532else
33533
33534
33535
33536for flag in -Wredundant-decls; do
33537  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
33538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
33539$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
33540if eval \${$as_CACHEVAR+:} false; then :
33541  $as_echo_n "(cached) " >&6
33542else
33543
33544  ax_check_save_flags=$CXXFLAGS
33545  CXXFLAGS="$CXXFLAGS -Werror $flag"
33546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33547/* end confdefs.h.  */
33548
33549int
33550main ()
33551{
33552
33553  ;
33554  return 0;
33555}
33556_ACEOF
33557if ac_fn_cxx_try_compile "$LINENO"; then :
33558  eval "$as_CACHEVAR=yes"
33559else
33560  eval "$as_CACHEVAR=no"
33561fi
33562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33563  CXXFLAGS=$ax_check_save_flags
33564fi
33565eval ac_res=\$$as_CACHEVAR
33566	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33567$as_echo "$ac_res" >&6; }
33568if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
33569  if ${CXXFLAGS+:} false; then :
33570  case " $CXXFLAGS " in
33571    *" $flag "*)
33572      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
33573  (: CXXFLAGS already contains $flag) 2>&5
33574  ac_status=$?
33575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33576  test $ac_status = 0; }
33577      ;;
33578    *)
33579      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
33580  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
33581  ac_status=$?
33582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33583  test $ac_status = 0; }
33584      CXXFLAGS="$CXXFLAGS $flag"
33585      ;;
33586   esac
33587else
33588  CXXFLAGS="$flag"
33589fi
33590
33591else
33592  :
33593fi
33594
33595done
33596
33597
33598fi
33599
33600
33601
33602for flag in -Wshadow; do
33603  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
33604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
33605$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
33606if eval \${$as_CACHEVAR+:} false; then :
33607  $as_echo_n "(cached) " >&6
33608else
33609
33610  ax_check_save_flags=$CXXFLAGS
33611  CXXFLAGS="$CXXFLAGS -Werror $flag"
33612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33613/* end confdefs.h.  */
33614
33615int
33616main ()
33617{
33618
33619  ;
33620  return 0;
33621}
33622_ACEOF
33623if ac_fn_cxx_try_compile "$LINENO"; then :
33624  eval "$as_CACHEVAR=yes"
33625else
33626  eval "$as_CACHEVAR=no"
33627fi
33628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33629  CXXFLAGS=$ax_check_save_flags
33630fi
33631eval ac_res=\$$as_CACHEVAR
33632	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33633$as_echo "$ac_res" >&6; }
33634if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
33635  if ${CXXFLAGS+:} false; then :
33636  case " $CXXFLAGS " in
33637    *" $flag "*)
33638      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
33639  (: CXXFLAGS already contains $flag) 2>&5
33640  ac_status=$?
33641  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33642  test $ac_status = 0; }
33643      ;;
33644    *)
33645      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
33646  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
33647  ac_status=$?
33648  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33649  test $ac_status = 0; }
33650      CXXFLAGS="$CXXFLAGS $flag"
33651      ;;
33652   esac
33653else
33654  CXXFLAGS="$flag"
33655fi
33656
33657else
33658  :
33659fi
33660
33661done
33662
33663
33664
33665
33666
33667for flag in -Wshorten-64-to-32; do
33668  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
33669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
33670$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
33671if eval \${$as_CACHEVAR+:} false; then :
33672  $as_echo_n "(cached) " >&6
33673else
33674
33675  ax_check_save_flags=$CXXFLAGS
33676  CXXFLAGS="$CXXFLAGS -Werror $flag"
33677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33678/* end confdefs.h.  */
33679
33680int
33681main ()
33682{
33683
33684  ;
33685  return 0;
33686}
33687_ACEOF
33688if ac_fn_cxx_try_compile "$LINENO"; then :
33689  eval "$as_CACHEVAR=yes"
33690else
33691  eval "$as_CACHEVAR=no"
33692fi
33693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33694  CXXFLAGS=$ax_check_save_flags
33695fi
33696eval ac_res=\$$as_CACHEVAR
33697	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33698$as_echo "$ac_res" >&6; }
33699if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
33700  if ${CXXFLAGS+:} false; then :
33701  case " $CXXFLAGS " in
33702    *" $flag "*)
33703      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
33704  (: CXXFLAGS already contains $flag) 2>&5
33705  ac_status=$?
33706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33707  test $ac_status = 0; }
33708      ;;
33709    *)
33710      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
33711  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
33712  ac_status=$?
33713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33714  test $ac_status = 0; }
33715      CXXFLAGS="$CXXFLAGS $flag"
33716      ;;
33717   esac
33718else
33719  CXXFLAGS="$flag"
33720fi
33721
33722else
33723  :
33724fi
33725
33726done
33727
33728
33729
33730
33731
33732for flag in -Wsign-compare; do
33733  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
33734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
33735$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
33736if eval \${$as_CACHEVAR+:} false; then :
33737  $as_echo_n "(cached) " >&6
33738else
33739
33740  ax_check_save_flags=$CXXFLAGS
33741  CXXFLAGS="$CXXFLAGS -Werror $flag"
33742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33743/* end confdefs.h.  */
33744
33745int
33746main ()
33747{
33748
33749  ;
33750  return 0;
33751}
33752_ACEOF
33753if ac_fn_cxx_try_compile "$LINENO"; then :
33754  eval "$as_CACHEVAR=yes"
33755else
33756  eval "$as_CACHEVAR=no"
33757fi
33758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33759  CXXFLAGS=$ax_check_save_flags
33760fi
33761eval ac_res=\$$as_CACHEVAR
33762	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33763$as_echo "$ac_res" >&6; }
33764if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
33765  if ${CXXFLAGS+:} false; then :
33766  case " $CXXFLAGS " in
33767    *" $flag "*)
33768      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
33769  (: CXXFLAGS already contains $flag) 2>&5
33770  ac_status=$?
33771  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33772  test $ac_status = 0; }
33773      ;;
33774    *)
33775      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
33776  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
33777  ac_status=$?
33778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33779  test $ac_status = 0; }
33780      CXXFLAGS="$CXXFLAGS $flag"
33781      ;;
33782   esac
33783else
33784  CXXFLAGS="$flag"
33785fi
33786
33787else
33788  :
33789fi
33790
33791done
33792
33793
33794
33795
33796
33797for flag in -Wstrict-overflow=1; do
33798  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
33799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
33800$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
33801if eval \${$as_CACHEVAR+:} false; then :
33802  $as_echo_n "(cached) " >&6
33803else
33804
33805  ax_check_save_flags=$CXXFLAGS
33806  CXXFLAGS="$CXXFLAGS -Werror $flag"
33807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33808/* end confdefs.h.  */
33809
33810int
33811main ()
33812{
33813
33814  ;
33815  return 0;
33816}
33817_ACEOF
33818if ac_fn_cxx_try_compile "$LINENO"; then :
33819  eval "$as_CACHEVAR=yes"
33820else
33821  eval "$as_CACHEVAR=no"
33822fi
33823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33824  CXXFLAGS=$ax_check_save_flags
33825fi
33826eval ac_res=\$$as_CACHEVAR
33827	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33828$as_echo "$ac_res" >&6; }
33829if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
33830  if ${CXXFLAGS+:} false; then :
33831  case " $CXXFLAGS " in
33832    *" $flag "*)
33833      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
33834  (: CXXFLAGS already contains $flag) 2>&5
33835  ac_status=$?
33836  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33837  test $ac_status = 0; }
33838      ;;
33839    *)
33840      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
33841  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
33842  ac_status=$?
33843  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33844  test $ac_status = 0; }
33845      CXXFLAGS="$CXXFLAGS $flag"
33846      ;;
33847   esac
33848else
33849  CXXFLAGS="$flag"
33850fi
33851
33852else
33853  :
33854fi
33855
33856done
33857
33858
33859
33860
33861
33862for flag in -Wswitch-enum; do
33863  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
33864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
33865$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
33866if eval \${$as_CACHEVAR+:} false; then :
33867  $as_echo_n "(cached) " >&6
33868else
33869
33870  ax_check_save_flags=$CXXFLAGS
33871  CXXFLAGS="$CXXFLAGS -Werror $flag"
33872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33873/* end confdefs.h.  */
33874
33875int
33876main ()
33877{
33878
33879  ;
33880  return 0;
33881}
33882_ACEOF
33883if ac_fn_cxx_try_compile "$LINENO"; then :
33884  eval "$as_CACHEVAR=yes"
33885else
33886  eval "$as_CACHEVAR=no"
33887fi
33888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33889  CXXFLAGS=$ax_check_save_flags
33890fi
33891eval ac_res=\$$as_CACHEVAR
33892	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33893$as_echo "$ac_res" >&6; }
33894if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
33895  if ${CXXFLAGS+:} false; then :
33896  case " $CXXFLAGS " in
33897    *" $flag "*)
33898      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
33899  (: CXXFLAGS already contains $flag) 2>&5
33900  ac_status=$?
33901  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33902  test $ac_status = 0; }
33903      ;;
33904    *)
33905      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
33906  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
33907  ac_status=$?
33908  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33909  test $ac_status = 0; }
33910      CXXFLAGS="$CXXFLAGS $flag"
33911      ;;
33912   esac
33913else
33914  CXXFLAGS="$flag"
33915fi
33916
33917else
33918  :
33919fi
33920
33921done
33922
33923
33924
33925
33926
33927for flag in -Wtrampolines; do
33928  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
33929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
33930$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
33931if eval \${$as_CACHEVAR+:} false; then :
33932  $as_echo_n "(cached) " >&6
33933else
33934
33935  ax_check_save_flags=$CXXFLAGS
33936  CXXFLAGS="$CXXFLAGS -Werror $flag"
33937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33938/* end confdefs.h.  */
33939
33940int
33941main ()
33942{
33943
33944  ;
33945  return 0;
33946}
33947_ACEOF
33948if ac_fn_cxx_try_compile "$LINENO"; then :
33949  eval "$as_CACHEVAR=yes"
33950else
33951  eval "$as_CACHEVAR=no"
33952fi
33953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33954  CXXFLAGS=$ax_check_save_flags
33955fi
33956eval ac_res=\$$as_CACHEVAR
33957	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33958$as_echo "$ac_res" >&6; }
33959if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
33960  if ${CXXFLAGS+:} false; then :
33961  case " $CXXFLAGS " in
33962    *" $flag "*)
33963      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
33964  (: CXXFLAGS already contains $flag) 2>&5
33965  ac_status=$?
33966  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33967  test $ac_status = 0; }
33968      ;;
33969    *)
33970      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
33971  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
33972  ac_status=$?
33973  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33974  test $ac_status = 0; }
33975      CXXFLAGS="$CXXFLAGS $flag"
33976      ;;
33977   esac
33978else
33979  CXXFLAGS="$flag"
33980fi
33981
33982else
33983  :
33984fi
33985
33986done
33987
33988
33989
33990
33991
33992for flag in -Wundef; do
33993  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
33994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
33995$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
33996if eval \${$as_CACHEVAR+:} false; then :
33997  $as_echo_n "(cached) " >&6
33998else
33999
34000  ax_check_save_flags=$CXXFLAGS
34001  CXXFLAGS="$CXXFLAGS -Werror $flag"
34002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34003/* end confdefs.h.  */
34004
34005int
34006main ()
34007{
34008
34009  ;
34010  return 0;
34011}
34012_ACEOF
34013if ac_fn_cxx_try_compile "$LINENO"; then :
34014  eval "$as_CACHEVAR=yes"
34015else
34016  eval "$as_CACHEVAR=no"
34017fi
34018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34019  CXXFLAGS=$ax_check_save_flags
34020fi
34021eval ac_res=\$$as_CACHEVAR
34022	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34023$as_echo "$ac_res" >&6; }
34024if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
34025  if ${CXXFLAGS+:} false; then :
34026  case " $CXXFLAGS " in
34027    *" $flag "*)
34028      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
34029  (: CXXFLAGS already contains $flag) 2>&5
34030  ac_status=$?
34031  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34032  test $ac_status = 0; }
34033      ;;
34034    *)
34035      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
34036  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
34037  ac_status=$?
34038  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34039  test $ac_status = 0; }
34040      CXXFLAGS="$CXXFLAGS $flag"
34041      ;;
34042   esac
34043else
34044  CXXFLAGS="$flag"
34045fi
34046
34047else
34048  :
34049fi
34050
34051done
34052
34053
34054
34055
34056
34057for flag in -Wunsafe-loop-optimizations; do
34058  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
34059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
34060$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
34061if eval \${$as_CACHEVAR+:} false; then :
34062  $as_echo_n "(cached) " >&6
34063else
34064
34065  ax_check_save_flags=$CXXFLAGS
34066  CXXFLAGS="$CXXFLAGS -Werror $flag"
34067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34068/* end confdefs.h.  */
34069
34070int
34071main ()
34072{
34073
34074  ;
34075  return 0;
34076}
34077_ACEOF
34078if ac_fn_cxx_try_compile "$LINENO"; then :
34079  eval "$as_CACHEVAR=yes"
34080else
34081  eval "$as_CACHEVAR=no"
34082fi
34083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34084  CXXFLAGS=$ax_check_save_flags
34085fi
34086eval ac_res=\$$as_CACHEVAR
34087	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34088$as_echo "$ac_res" >&6; }
34089if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
34090  if ${CXXFLAGS+:} false; then :
34091  case " $CXXFLAGS " in
34092    *" $flag "*)
34093      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
34094  (: CXXFLAGS already contains $flag) 2>&5
34095  ac_status=$?
34096  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34097  test $ac_status = 0; }
34098      ;;
34099    *)
34100      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
34101  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
34102  ac_status=$?
34103  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34104  test $ac_status = 0; }
34105      CXXFLAGS="$CXXFLAGS $flag"
34106      ;;
34107   esac
34108else
34109  CXXFLAGS="$flag"
34110fi
34111
34112else
34113  :
34114fi
34115
34116done
34117
34118
34119
34120
34121
34122for flag in -funsafe-loop-optimizations; do
34123  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
34124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
34125$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
34126if eval \${$as_CACHEVAR+:} false; then :
34127  $as_echo_n "(cached) " >&6
34128else
34129
34130  ax_check_save_flags=$CXXFLAGS
34131  CXXFLAGS="$CXXFLAGS -Werror $flag"
34132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34133/* end confdefs.h.  */
34134
34135int
34136main ()
34137{
34138
34139  ;
34140  return 0;
34141}
34142_ACEOF
34143if ac_fn_cxx_try_compile "$LINENO"; then :
34144  eval "$as_CACHEVAR=yes"
34145else
34146  eval "$as_CACHEVAR=no"
34147fi
34148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34149  CXXFLAGS=$ax_check_save_flags
34150fi
34151eval ac_res=\$$as_CACHEVAR
34152	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34153$as_echo "$ac_res" >&6; }
34154if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
34155  if ${CXXFLAGS+:} false; then :
34156  case " $CXXFLAGS " in
34157    *" $flag "*)
34158      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
34159  (: CXXFLAGS already contains $flag) 2>&5
34160  ac_status=$?
34161  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34162  test $ac_status = 0; }
34163      ;;
34164    *)
34165      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
34166  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
34167  ac_status=$?
34168  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34169  test $ac_status = 0; }
34170      CXXFLAGS="$CXXFLAGS $flag"
34171      ;;
34172   esac
34173else
34174  CXXFLAGS="$flag"
34175fi
34176
34177else
34178  :
34179fi
34180
34181done
34182
34183
34184
34185
34186
34187for flag in -Wno-c++11-compat; do
34188  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
34189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
34190$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
34191if eval \${$as_CACHEVAR+:} false; then :
34192  $as_echo_n "(cached) " >&6
34193else
34194
34195  ax_check_save_flags=$CXXFLAGS
34196  CXXFLAGS="$CXXFLAGS -Werror $flag"
34197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34198/* end confdefs.h.  */
34199
34200int
34201main ()
34202{
34203
34204  ;
34205  return 0;
34206}
34207_ACEOF
34208if ac_fn_cxx_try_compile "$LINENO"; then :
34209  eval "$as_CACHEVAR=yes"
34210else
34211  eval "$as_CACHEVAR=no"
34212fi
34213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34214  CXXFLAGS=$ax_check_save_flags
34215fi
34216eval ac_res=\$$as_CACHEVAR
34217	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34218$as_echo "$ac_res" >&6; }
34219if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
34220  if ${CXXFLAGS+:} false; then :
34221  case " $CXXFLAGS " in
34222    *" $flag "*)
34223      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
34224  (: CXXFLAGS already contains $flag) 2>&5
34225  ac_status=$?
34226  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34227  test $ac_status = 0; }
34228      ;;
34229    *)
34230      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
34231  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
34232  ac_status=$?
34233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34234  test $ac_status = 0; }
34235      CXXFLAGS="$CXXFLAGS $flag"
34236      ;;
34237   esac
34238else
34239  CXXFLAGS="$flag"
34240fi
34241
34242else
34243  :
34244fi
34245
34246done
34247
34248
34249#         _APPEND_COMPILE_FLAGS_ERROR([-Weffc++])
34250          if test "x$MINGW" != xyes; then :
34251
34252            if test "x$ac_cv_vcs_checkout" = xyes; then :
34253
34254              if test "x$enable_shared" = "xyes"; then :
34255
34256
34257
34258
34259for flag in -fno-omit-frame-pointer; do
34260  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
34261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
34262$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
34263if eval \${$as_CACHEVAR+:} false; then :
34264  $as_echo_n "(cached) " >&6
34265else
34266
34267  ax_check_save_flags=$CXXFLAGS
34268  CXXFLAGS="$CXXFLAGS -Werror $flag"
34269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34270/* end confdefs.h.  */
34271
34272int
34273main ()
34274{
34275
34276  ;
34277  return 0;
34278}
34279_ACEOF
34280if ac_fn_cxx_try_compile "$LINENO"; then :
34281  eval "$as_CACHEVAR=yes"
34282else
34283  eval "$as_CACHEVAR=no"
34284fi
34285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34286  CXXFLAGS=$ax_check_save_flags
34287fi
34288eval ac_res=\$$as_CACHEVAR
34289	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34290$as_echo "$ac_res" >&6; }
34291if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
34292  if ${CXXFLAGS+:} false; then :
34293  case " $CXXFLAGS " in
34294    *" $flag "*)
34295      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
34296  (: CXXFLAGS already contains $flag) 2>&5
34297  ac_status=$?
34298  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34299  test $ac_status = 0; }
34300      ;;
34301    *)
34302      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
34303  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
34304  ac_status=$?
34305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34306  test $ac_status = 0; }
34307      CXXFLAGS="$CXXFLAGS $flag"
34308      ;;
34309   esac
34310else
34311  CXXFLAGS="$flag"
34312fi
34313
34314else
34315  :
34316fi
34317
34318done
34319
34320
34321
34322
34323
34324for flag in -fsanitize=address; do
34325  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
34326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
34327$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
34328if eval \${$as_CACHEVAR+:} false; then :
34329  $as_echo_n "(cached) " >&6
34330else
34331
34332  ax_check_save_flags=$CXXFLAGS
34333  CXXFLAGS="$CXXFLAGS -Werror $flag"
34334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34335/* end confdefs.h.  */
34336
34337int
34338main ()
34339{
34340
34341  ;
34342  return 0;
34343}
34344_ACEOF
34345if ac_fn_cxx_try_compile "$LINENO"; then :
34346  eval "$as_CACHEVAR=yes"
34347else
34348  eval "$as_CACHEVAR=no"
34349fi
34350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34351  CXXFLAGS=$ax_check_save_flags
34352fi
34353eval ac_res=\$$as_CACHEVAR
34354	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34355$as_echo "$ac_res" >&6; }
34356if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
34357  if ${CXXFLAGS+:} false; then :
34358  case " $CXXFLAGS " in
34359    *" $flag "*)
34360      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
34361  (: CXXFLAGS already contains $flag) 2>&5
34362  ac_status=$?
34363  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34364  test $ac_status = 0; }
34365      ;;
34366    *)
34367      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
34368  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
34369  ac_status=$?
34370  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34371  test $ac_status = 0; }
34372      CXXFLAGS="$CXXFLAGS $flag"
34373      ;;
34374   esac
34375else
34376  CXXFLAGS="$flag"
34377fi
34378
34379else
34380  :
34381fi
34382
34383done
34384
34385
34386
34387
34388
34389for flag in -fsanitize=integer; do
34390  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
34391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
34392$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
34393if eval \${$as_CACHEVAR+:} false; then :
34394  $as_echo_n "(cached) " >&6
34395else
34396
34397  ax_check_save_flags=$CXXFLAGS
34398  CXXFLAGS="$CXXFLAGS -Werror $flag"
34399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34400/* end confdefs.h.  */
34401
34402int
34403main ()
34404{
34405
34406  ;
34407  return 0;
34408}
34409_ACEOF
34410if ac_fn_cxx_try_compile "$LINENO"; then :
34411  eval "$as_CACHEVAR=yes"
34412else
34413  eval "$as_CACHEVAR=no"
34414fi
34415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34416  CXXFLAGS=$ax_check_save_flags
34417fi
34418eval ac_res=\$$as_CACHEVAR
34419	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34420$as_echo "$ac_res" >&6; }
34421if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
34422  if ${CXXFLAGS+:} false; then :
34423  case " $CXXFLAGS " in
34424    *" $flag "*)
34425      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
34426  (: CXXFLAGS already contains $flag) 2>&5
34427  ac_status=$?
34428  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34429  test $ac_status = 0; }
34430      ;;
34431    *)
34432      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
34433  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
34434  ac_status=$?
34435  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34436  test $ac_status = 0; }
34437      CXXFLAGS="$CXXFLAGS $flag"
34438      ;;
34439   esac
34440else
34441  CXXFLAGS="$flag"
34442fi
34443
34444else
34445  :
34446fi
34447
34448done
34449
34450
34451
34452
34453
34454for flag in -fsanitize=thread; do
34455  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
34456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
34457$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
34458if eval \${$as_CACHEVAR+:} false; then :
34459  $as_echo_n "(cached) " >&6
34460else
34461
34462  ax_check_save_flags=$CXXFLAGS
34463  CXXFLAGS="$CXXFLAGS -Werror $flag"
34464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34465/* end confdefs.h.  */
34466
34467int
34468main ()
34469{
34470
34471  ;
34472  return 0;
34473}
34474_ACEOF
34475if ac_fn_cxx_try_compile "$LINENO"; then :
34476  eval "$as_CACHEVAR=yes"
34477else
34478  eval "$as_CACHEVAR=no"
34479fi
34480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34481  CXXFLAGS=$ax_check_save_flags
34482fi
34483eval ac_res=\$$as_CACHEVAR
34484	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34485$as_echo "$ac_res" >&6; }
34486if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
34487  if ${CXXFLAGS+:} false; then :
34488  case " $CXXFLAGS " in
34489    *" $flag "*)
34490      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
34491  (: CXXFLAGS already contains $flag) 2>&5
34492  ac_status=$?
34493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34494  test $ac_status = 0; }
34495      ;;
34496    *)
34497      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
34498  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
34499  ac_status=$?
34500  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34501  test $ac_status = 0; }
34502      CXXFLAGS="$CXXFLAGS $flag"
34503      ;;
34504   esac
34505else
34506  CXXFLAGS="$flag"
34507fi
34508
34509else
34510  :
34511fi
34512
34513done
34514
34515
34516
34517
34518
34519for flag in -fsanitize=memory; do
34520  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
34521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
34522$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
34523if eval \${$as_CACHEVAR+:} false; then :
34524  $as_echo_n "(cached) " >&6
34525else
34526
34527  ax_check_save_flags=$CXXFLAGS
34528  CXXFLAGS="$CXXFLAGS -Werror $flag"
34529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34530/* end confdefs.h.  */
34531
34532int
34533main ()
34534{
34535
34536  ;
34537  return 0;
34538}
34539_ACEOF
34540if ac_fn_cxx_try_compile "$LINENO"; then :
34541  eval "$as_CACHEVAR=yes"
34542else
34543  eval "$as_CACHEVAR=no"
34544fi
34545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34546  CXXFLAGS=$ax_check_save_flags
34547fi
34548eval ac_res=\$$as_CACHEVAR
34549	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34550$as_echo "$ac_res" >&6; }
34551if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
34552  if ${CXXFLAGS+:} false; then :
34553  case " $CXXFLAGS " in
34554    *" $flag "*)
34555      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
34556  (: CXXFLAGS already contains $flag) 2>&5
34557  ac_status=$?
34558  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34559  test $ac_status = 0; }
34560      ;;
34561    *)
34562      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
34563  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
34564  ac_status=$?
34565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34566  test $ac_status = 0; }
34567      CXXFLAGS="$CXXFLAGS $flag"
34568      ;;
34569   esac
34570else
34571  CXXFLAGS="$flag"
34572fi
34573
34574else
34575  :
34576fi
34577
34578done
34579
34580
34581
34582
34583
34584for flag in -fsanitize=alignment; do
34585  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
34586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
34587$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
34588if eval \${$as_CACHEVAR+:} false; then :
34589  $as_echo_n "(cached) " >&6
34590else
34591
34592  ax_check_save_flags=$CXXFLAGS
34593  CXXFLAGS="$CXXFLAGS -Werror $flag"
34594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34595/* end confdefs.h.  */
34596
34597int
34598main ()
34599{
34600
34601  ;
34602  return 0;
34603}
34604_ACEOF
34605if ac_fn_cxx_try_compile "$LINENO"; then :
34606  eval "$as_CACHEVAR=yes"
34607else
34608  eval "$as_CACHEVAR=no"
34609fi
34610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34611  CXXFLAGS=$ax_check_save_flags
34612fi
34613eval ac_res=\$$as_CACHEVAR
34614	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34615$as_echo "$ac_res" >&6; }
34616if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
34617  if ${CXXFLAGS+:} false; then :
34618  case " $CXXFLAGS " in
34619    *" $flag "*)
34620      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
34621  (: CXXFLAGS already contains $flag) 2>&5
34622  ac_status=$?
34623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34624  test $ac_status = 0; }
34625      ;;
34626    *)
34627      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
34628  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
34629  ac_status=$?
34630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34631  test $ac_status = 0; }
34632      CXXFLAGS="$CXXFLAGS $flag"
34633      ;;
34634   esac
34635else
34636  CXXFLAGS="$flag"
34637fi
34638
34639else
34640  :
34641fi
34642
34643done
34644
34645
34646
34647
34648
34649for flag in -fsanitize=bool; do
34650  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
34651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
34652$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
34653if eval \${$as_CACHEVAR+:} false; then :
34654  $as_echo_n "(cached) " >&6
34655else
34656
34657  ax_check_save_flags=$CXXFLAGS
34658  CXXFLAGS="$CXXFLAGS -Werror $flag"
34659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34660/* end confdefs.h.  */
34661
34662int
34663main ()
34664{
34665
34666  ;
34667  return 0;
34668}
34669_ACEOF
34670if ac_fn_cxx_try_compile "$LINENO"; then :
34671  eval "$as_CACHEVAR=yes"
34672else
34673  eval "$as_CACHEVAR=no"
34674fi
34675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34676  CXXFLAGS=$ax_check_save_flags
34677fi
34678eval ac_res=\$$as_CACHEVAR
34679	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34680$as_echo "$ac_res" >&6; }
34681if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
34682  if ${CXXFLAGS+:} false; then :
34683  case " $CXXFLAGS " in
34684    *" $flag "*)
34685      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
34686  (: CXXFLAGS already contains $flag) 2>&5
34687  ac_status=$?
34688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34689  test $ac_status = 0; }
34690      ;;
34691    *)
34692      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
34693  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
34694  ac_status=$?
34695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34696  test $ac_status = 0; }
34697      CXXFLAGS="$CXXFLAGS $flag"
34698      ;;
34699   esac
34700else
34701  CXXFLAGS="$flag"
34702fi
34703
34704else
34705  :
34706fi
34707
34708done
34709
34710
34711
34712
34713
34714for flag in -fsanitize=bounds; do
34715  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
34716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
34717$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
34718if eval \${$as_CACHEVAR+:} false; then :
34719  $as_echo_n "(cached) " >&6
34720else
34721
34722  ax_check_save_flags=$CXXFLAGS
34723  CXXFLAGS="$CXXFLAGS -Werror $flag"
34724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34725/* end confdefs.h.  */
34726
34727int
34728main ()
34729{
34730
34731  ;
34732  return 0;
34733}
34734_ACEOF
34735if ac_fn_cxx_try_compile "$LINENO"; then :
34736  eval "$as_CACHEVAR=yes"
34737else
34738  eval "$as_CACHEVAR=no"
34739fi
34740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34741  CXXFLAGS=$ax_check_save_flags
34742fi
34743eval ac_res=\$$as_CACHEVAR
34744	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34745$as_echo "$ac_res" >&6; }
34746if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
34747  if ${CXXFLAGS+:} false; then :
34748  case " $CXXFLAGS " in
34749    *" $flag "*)
34750      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
34751  (: CXXFLAGS already contains $flag) 2>&5
34752  ac_status=$?
34753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34754  test $ac_status = 0; }
34755      ;;
34756    *)
34757      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
34758  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
34759  ac_status=$?
34760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34761  test $ac_status = 0; }
34762      CXXFLAGS="$CXXFLAGS $flag"
34763      ;;
34764   esac
34765else
34766  CXXFLAGS="$flag"
34767fi
34768
34769else
34770  :
34771fi
34772
34773done
34774
34775
34776
34777
34778
34779for flag in -fsanitize=enum; do
34780  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
34781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
34782$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
34783if eval \${$as_CACHEVAR+:} false; then :
34784  $as_echo_n "(cached) " >&6
34785else
34786
34787  ax_check_save_flags=$CXXFLAGS
34788  CXXFLAGS="$CXXFLAGS -Werror $flag"
34789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34790/* end confdefs.h.  */
34791
34792int
34793main ()
34794{
34795
34796  ;
34797  return 0;
34798}
34799_ACEOF
34800if ac_fn_cxx_try_compile "$LINENO"; then :
34801  eval "$as_CACHEVAR=yes"
34802else
34803  eval "$as_CACHEVAR=no"
34804fi
34805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34806  CXXFLAGS=$ax_check_save_flags
34807fi
34808eval ac_res=\$$as_CACHEVAR
34809	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34810$as_echo "$ac_res" >&6; }
34811if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
34812  if ${CXXFLAGS+:} false; then :
34813  case " $CXXFLAGS " in
34814    *" $flag "*)
34815      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
34816  (: CXXFLAGS already contains $flag) 2>&5
34817  ac_status=$?
34818  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34819  test $ac_status = 0; }
34820      ;;
34821    *)
34822      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
34823  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
34824  ac_status=$?
34825  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34826  test $ac_status = 0; }
34827      CXXFLAGS="$CXXFLAGS $flag"
34828      ;;
34829   esac
34830else
34831  CXXFLAGS="$flag"
34832fi
34833
34834else
34835  :
34836fi
34837
34838done
34839
34840
34841
34842
34843
34844for flag in -fsanitize=float-cast-overflow; do
34845  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
34846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
34847$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
34848if eval \${$as_CACHEVAR+:} false; then :
34849  $as_echo_n "(cached) " >&6
34850else
34851
34852  ax_check_save_flags=$CXXFLAGS
34853  CXXFLAGS="$CXXFLAGS -Werror $flag"
34854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34855/* end confdefs.h.  */
34856
34857int
34858main ()
34859{
34860
34861  ;
34862  return 0;
34863}
34864_ACEOF
34865if ac_fn_cxx_try_compile "$LINENO"; then :
34866  eval "$as_CACHEVAR=yes"
34867else
34868  eval "$as_CACHEVAR=no"
34869fi
34870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34871  CXXFLAGS=$ax_check_save_flags
34872fi
34873eval ac_res=\$$as_CACHEVAR
34874	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34875$as_echo "$ac_res" >&6; }
34876if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
34877  if ${CXXFLAGS+:} false; then :
34878  case " $CXXFLAGS " in
34879    *" $flag "*)
34880      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
34881  (: CXXFLAGS already contains $flag) 2>&5
34882  ac_status=$?
34883  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34884  test $ac_status = 0; }
34885      ;;
34886    *)
34887      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
34888  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
34889  ac_status=$?
34890  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34891  test $ac_status = 0; }
34892      CXXFLAGS="$CXXFLAGS $flag"
34893      ;;
34894   esac
34895else
34896  CXXFLAGS="$flag"
34897fi
34898
34899else
34900  :
34901fi
34902
34903done
34904
34905
34906
34907
34908
34909for flag in -fsanitize=float-divide-by-zero; do
34910  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
34911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
34912$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
34913if eval \${$as_CACHEVAR+:} false; then :
34914  $as_echo_n "(cached) " >&6
34915else
34916
34917  ax_check_save_flags=$CXXFLAGS
34918  CXXFLAGS="$CXXFLAGS -Werror $flag"
34919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34920/* end confdefs.h.  */
34921
34922int
34923main ()
34924{
34925
34926  ;
34927  return 0;
34928}
34929_ACEOF
34930if ac_fn_cxx_try_compile "$LINENO"; then :
34931  eval "$as_CACHEVAR=yes"
34932else
34933  eval "$as_CACHEVAR=no"
34934fi
34935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34936  CXXFLAGS=$ax_check_save_flags
34937fi
34938eval ac_res=\$$as_CACHEVAR
34939	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34940$as_echo "$ac_res" >&6; }
34941if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
34942  if ${CXXFLAGS+:} false; then :
34943  case " $CXXFLAGS " in
34944    *" $flag "*)
34945      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
34946  (: CXXFLAGS already contains $flag) 2>&5
34947  ac_status=$?
34948  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34949  test $ac_status = 0; }
34950      ;;
34951    *)
34952      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
34953  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
34954  ac_status=$?
34955  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34956  test $ac_status = 0; }
34957      CXXFLAGS="$CXXFLAGS $flag"
34958      ;;
34959   esac
34960else
34961  CXXFLAGS="$flag"
34962fi
34963
34964else
34965  :
34966fi
34967
34968done
34969
34970
34971
34972
34973
34974for flag in -fsanitize=integer-divide-by-zero; do
34975  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
34976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
34977$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
34978if eval \${$as_CACHEVAR+:} false; then :
34979  $as_echo_n "(cached) " >&6
34980else
34981
34982  ax_check_save_flags=$CXXFLAGS
34983  CXXFLAGS="$CXXFLAGS -Werror $flag"
34984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34985/* end confdefs.h.  */
34986
34987int
34988main ()
34989{
34990
34991  ;
34992  return 0;
34993}
34994_ACEOF
34995if ac_fn_cxx_try_compile "$LINENO"; then :
34996  eval "$as_CACHEVAR=yes"
34997else
34998  eval "$as_CACHEVAR=no"
34999fi
35000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35001  CXXFLAGS=$ax_check_save_flags
35002fi
35003eval ac_res=\$$as_CACHEVAR
35004	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35005$as_echo "$ac_res" >&6; }
35006if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
35007  if ${CXXFLAGS+:} false; then :
35008  case " $CXXFLAGS " in
35009    *" $flag "*)
35010      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
35011  (: CXXFLAGS already contains $flag) 2>&5
35012  ac_status=$?
35013  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35014  test $ac_status = 0; }
35015      ;;
35016    *)
35017      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
35018  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
35019  ac_status=$?
35020  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35021  test $ac_status = 0; }
35022      CXXFLAGS="$CXXFLAGS $flag"
35023      ;;
35024   esac
35025else
35026  CXXFLAGS="$flag"
35027fi
35028
35029else
35030  :
35031fi
35032
35033done
35034
35035
35036
35037
35038
35039for flag in -fsanitize=null; do
35040  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
35041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
35042$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
35043if eval \${$as_CACHEVAR+:} false; then :
35044  $as_echo_n "(cached) " >&6
35045else
35046
35047  ax_check_save_flags=$CXXFLAGS
35048  CXXFLAGS="$CXXFLAGS -Werror $flag"
35049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35050/* end confdefs.h.  */
35051
35052int
35053main ()
35054{
35055
35056  ;
35057  return 0;
35058}
35059_ACEOF
35060if ac_fn_cxx_try_compile "$LINENO"; then :
35061  eval "$as_CACHEVAR=yes"
35062else
35063  eval "$as_CACHEVAR=no"
35064fi
35065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35066  CXXFLAGS=$ax_check_save_flags
35067fi
35068eval ac_res=\$$as_CACHEVAR
35069	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35070$as_echo "$ac_res" >&6; }
35071if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
35072  if ${CXXFLAGS+:} false; then :
35073  case " $CXXFLAGS " in
35074    *" $flag "*)
35075      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
35076  (: CXXFLAGS already contains $flag) 2>&5
35077  ac_status=$?
35078  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35079  test $ac_status = 0; }
35080      ;;
35081    *)
35082      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
35083  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
35084  ac_status=$?
35085  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35086  test $ac_status = 0; }
35087      CXXFLAGS="$CXXFLAGS $flag"
35088      ;;
35089   esac
35090else
35091  CXXFLAGS="$flag"
35092fi
35093
35094else
35095  :
35096fi
35097
35098done
35099
35100
35101
35102
35103
35104for flag in -fsanitize=object-size; do
35105  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
35106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
35107$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
35108if eval \${$as_CACHEVAR+:} false; then :
35109  $as_echo_n "(cached) " >&6
35110else
35111
35112  ax_check_save_flags=$CXXFLAGS
35113  CXXFLAGS="$CXXFLAGS -Werror $flag"
35114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35115/* end confdefs.h.  */
35116
35117int
35118main ()
35119{
35120
35121  ;
35122  return 0;
35123}
35124_ACEOF
35125if ac_fn_cxx_try_compile "$LINENO"; then :
35126  eval "$as_CACHEVAR=yes"
35127else
35128  eval "$as_CACHEVAR=no"
35129fi
35130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35131  CXXFLAGS=$ax_check_save_flags
35132fi
35133eval ac_res=\$$as_CACHEVAR
35134	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35135$as_echo "$ac_res" >&6; }
35136if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
35137  if ${CXXFLAGS+:} false; then :
35138  case " $CXXFLAGS " in
35139    *" $flag "*)
35140      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
35141  (: CXXFLAGS already contains $flag) 2>&5
35142  ac_status=$?
35143  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35144  test $ac_status = 0; }
35145      ;;
35146    *)
35147      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
35148  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
35149  ac_status=$?
35150  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35151  test $ac_status = 0; }
35152      CXXFLAGS="$CXXFLAGS $flag"
35153      ;;
35154   esac
35155else
35156  CXXFLAGS="$flag"
35157fi
35158
35159else
35160  :
35161fi
35162
35163done
35164
35165
35166
35167
35168
35169for flag in -fsanitize=return; do
35170  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
35171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
35172$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
35173if eval \${$as_CACHEVAR+:} false; then :
35174  $as_echo_n "(cached) " >&6
35175else
35176
35177  ax_check_save_flags=$CXXFLAGS
35178  CXXFLAGS="$CXXFLAGS -Werror $flag"
35179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35180/* end confdefs.h.  */
35181
35182int
35183main ()
35184{
35185
35186  ;
35187  return 0;
35188}
35189_ACEOF
35190if ac_fn_cxx_try_compile "$LINENO"; then :
35191  eval "$as_CACHEVAR=yes"
35192else
35193  eval "$as_CACHEVAR=no"
35194fi
35195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35196  CXXFLAGS=$ax_check_save_flags
35197fi
35198eval ac_res=\$$as_CACHEVAR
35199	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35200$as_echo "$ac_res" >&6; }
35201if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
35202  if ${CXXFLAGS+:} false; then :
35203  case " $CXXFLAGS " in
35204    *" $flag "*)
35205      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
35206  (: CXXFLAGS already contains $flag) 2>&5
35207  ac_status=$?
35208  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35209  test $ac_status = 0; }
35210      ;;
35211    *)
35212      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
35213  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
35214  ac_status=$?
35215  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35216  test $ac_status = 0; }
35217      CXXFLAGS="$CXXFLAGS $flag"
35218      ;;
35219   esac
35220else
35221  CXXFLAGS="$flag"
35222fi
35223
35224else
35225  :
35226fi
35227
35228done
35229
35230
35231
35232
35233
35234for flag in -fsanitize=shift; do
35235  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
35236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
35237$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
35238if eval \${$as_CACHEVAR+:} false; then :
35239  $as_echo_n "(cached) " >&6
35240else
35241
35242  ax_check_save_flags=$CXXFLAGS
35243  CXXFLAGS="$CXXFLAGS -Werror $flag"
35244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35245/* end confdefs.h.  */
35246
35247int
35248main ()
35249{
35250
35251  ;
35252  return 0;
35253}
35254_ACEOF
35255if ac_fn_cxx_try_compile "$LINENO"; then :
35256  eval "$as_CACHEVAR=yes"
35257else
35258  eval "$as_CACHEVAR=no"
35259fi
35260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35261  CXXFLAGS=$ax_check_save_flags
35262fi
35263eval ac_res=\$$as_CACHEVAR
35264	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35265$as_echo "$ac_res" >&6; }
35266if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
35267  if ${CXXFLAGS+:} false; then :
35268  case " $CXXFLAGS " in
35269    *" $flag "*)
35270      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
35271  (: CXXFLAGS already contains $flag) 2>&5
35272  ac_status=$?
35273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35274  test $ac_status = 0; }
35275      ;;
35276    *)
35277      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
35278  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
35279  ac_status=$?
35280  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35281  test $ac_status = 0; }
35282      CXXFLAGS="$CXXFLAGS $flag"
35283      ;;
35284   esac
35285else
35286  CXXFLAGS="$flag"
35287fi
35288
35289else
35290  :
35291fi
35292
35293done
35294
35295
35296
35297
35298
35299for flag in -fsanitize=signed-integer-overflow; do
35300  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
35301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
35302$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
35303if eval \${$as_CACHEVAR+:} false; then :
35304  $as_echo_n "(cached) " >&6
35305else
35306
35307  ax_check_save_flags=$CXXFLAGS
35308  CXXFLAGS="$CXXFLAGS -Werror $flag"
35309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35310/* end confdefs.h.  */
35311
35312int
35313main ()
35314{
35315
35316  ;
35317  return 0;
35318}
35319_ACEOF
35320if ac_fn_cxx_try_compile "$LINENO"; then :
35321  eval "$as_CACHEVAR=yes"
35322else
35323  eval "$as_CACHEVAR=no"
35324fi
35325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35326  CXXFLAGS=$ax_check_save_flags
35327fi
35328eval ac_res=\$$as_CACHEVAR
35329	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35330$as_echo "$ac_res" >&6; }
35331if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
35332  if ${CXXFLAGS+:} false; then :
35333  case " $CXXFLAGS " in
35334    *" $flag "*)
35335      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
35336  (: CXXFLAGS already contains $flag) 2>&5
35337  ac_status=$?
35338  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35339  test $ac_status = 0; }
35340      ;;
35341    *)
35342      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
35343  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
35344  ac_status=$?
35345  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35346  test $ac_status = 0; }
35347      CXXFLAGS="$CXXFLAGS $flag"
35348      ;;
35349   esac
35350else
35351  CXXFLAGS="$flag"
35352fi
35353
35354else
35355  :
35356fi
35357
35358done
35359
35360
35361
35362
35363
35364for flag in -fsanitize=unreachable; do
35365  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
35366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
35367$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
35368if eval \${$as_CACHEVAR+:} false; then :
35369  $as_echo_n "(cached) " >&6
35370else
35371
35372  ax_check_save_flags=$CXXFLAGS
35373  CXXFLAGS="$CXXFLAGS -Werror $flag"
35374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35375/* end confdefs.h.  */
35376
35377int
35378main ()
35379{
35380
35381  ;
35382  return 0;
35383}
35384_ACEOF
35385if ac_fn_cxx_try_compile "$LINENO"; then :
35386  eval "$as_CACHEVAR=yes"
35387else
35388  eval "$as_CACHEVAR=no"
35389fi
35390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35391  CXXFLAGS=$ax_check_save_flags
35392fi
35393eval ac_res=\$$as_CACHEVAR
35394	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35395$as_echo "$ac_res" >&6; }
35396if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
35397  if ${CXXFLAGS+:} false; then :
35398  case " $CXXFLAGS " in
35399    *" $flag "*)
35400      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
35401  (: CXXFLAGS already contains $flag) 2>&5
35402  ac_status=$?
35403  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35404  test $ac_status = 0; }
35405      ;;
35406    *)
35407      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
35408  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
35409  ac_status=$?
35410  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35411  test $ac_status = 0; }
35412      CXXFLAGS="$CXXFLAGS $flag"
35413      ;;
35414   esac
35415else
35416  CXXFLAGS="$flag"
35417fi
35418
35419else
35420  :
35421fi
35422
35423done
35424
35425
35426
35427
35428
35429for flag in -fsanitize=unsigned-integer-overflow; do
35430  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
35431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
35432$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
35433if eval \${$as_CACHEVAR+:} false; then :
35434  $as_echo_n "(cached) " >&6
35435else
35436
35437  ax_check_save_flags=$CXXFLAGS
35438  CXXFLAGS="$CXXFLAGS -Werror $flag"
35439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35440/* end confdefs.h.  */
35441
35442int
35443main ()
35444{
35445
35446  ;
35447  return 0;
35448}
35449_ACEOF
35450if ac_fn_cxx_try_compile "$LINENO"; then :
35451  eval "$as_CACHEVAR=yes"
35452else
35453  eval "$as_CACHEVAR=no"
35454fi
35455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35456  CXXFLAGS=$ax_check_save_flags
35457fi
35458eval ac_res=\$$as_CACHEVAR
35459	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35460$as_echo "$ac_res" >&6; }
35461if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
35462  if ${CXXFLAGS+:} false; then :
35463  case " $CXXFLAGS " in
35464    *" $flag "*)
35465      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
35466  (: CXXFLAGS already contains $flag) 2>&5
35467  ac_status=$?
35468  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35469  test $ac_status = 0; }
35470      ;;
35471    *)
35472      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
35473  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
35474  ac_status=$?
35475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35476  test $ac_status = 0; }
35477      CXXFLAGS="$CXXFLAGS $flag"
35478      ;;
35479   esac
35480else
35481  CXXFLAGS="$flag"
35482fi
35483
35484else
35485  :
35486fi
35487
35488done
35489
35490
35491
35492
35493
35494for flag in -fsanitize=vla-bound; do
35495  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
35496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
35497$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
35498if eval \${$as_CACHEVAR+:} false; then :
35499  $as_echo_n "(cached) " >&6
35500else
35501
35502  ax_check_save_flags=$CXXFLAGS
35503  CXXFLAGS="$CXXFLAGS -Werror $flag"
35504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35505/* end confdefs.h.  */
35506
35507int
35508main ()
35509{
35510
35511  ;
35512  return 0;
35513}
35514_ACEOF
35515if ac_fn_cxx_try_compile "$LINENO"; then :
35516  eval "$as_CACHEVAR=yes"
35517else
35518  eval "$as_CACHEVAR=no"
35519fi
35520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35521  CXXFLAGS=$ax_check_save_flags
35522fi
35523eval ac_res=\$$as_CACHEVAR
35524	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35525$as_echo "$ac_res" >&6; }
35526if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
35527  if ${CXXFLAGS+:} false; then :
35528  case " $CXXFLAGS " in
35529    *" $flag "*)
35530      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
35531  (: CXXFLAGS already contains $flag) 2>&5
35532  ac_status=$?
35533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35534  test $ac_status = 0; }
35535      ;;
35536    *)
35537      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
35538  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
35539  ac_status=$?
35540  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35541  test $ac_status = 0; }
35542      CXXFLAGS="$CXXFLAGS $flag"
35543      ;;
35544   esac
35545else
35546  CXXFLAGS="$flag"
35547fi
35548
35549else
35550  :
35551fi
35552
35553done
35554
35555
35556
35557
35558
35559for flag in -fsanitize=vptr; do
35560  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
35561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
35562$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
35563if eval \${$as_CACHEVAR+:} false; then :
35564  $as_echo_n "(cached) " >&6
35565else
35566
35567  ax_check_save_flags=$CXXFLAGS
35568  CXXFLAGS="$CXXFLAGS -Werror $flag"
35569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35570/* end confdefs.h.  */
35571
35572int
35573main ()
35574{
35575
35576  ;
35577  return 0;
35578}
35579_ACEOF
35580if ac_fn_cxx_try_compile "$LINENO"; then :
35581  eval "$as_CACHEVAR=yes"
35582else
35583  eval "$as_CACHEVAR=no"
35584fi
35585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35586  CXXFLAGS=$ax_check_save_flags
35587fi
35588eval ac_res=\$$as_CACHEVAR
35589	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35590$as_echo "$ac_res" >&6; }
35591if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
35592  if ${CXXFLAGS+:} false; then :
35593  case " $CXXFLAGS " in
35594    *" $flag "*)
35595      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
35596  (: CXXFLAGS already contains $flag) 2>&5
35597  ac_status=$?
35598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35599  test $ac_status = 0; }
35600      ;;
35601    *)
35602      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
35603  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
35604  ac_status=$?
35605  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35606  test $ac_status = 0; }
35607      CXXFLAGS="$CXXFLAGS $flag"
35608      ;;
35609   esac
35610else
35611  CXXFLAGS="$flag"
35612fi
35613
35614else
35615  :
35616fi
35617
35618done
35619
35620
35621
35622fi
35623
35624fi
35625
35626fi
35627#         _APPEND_COMPILE_FLAGS_ERROR([-Wold-style-cast])
35628
35629
35630
35631for flag in -Wclobbered; do
35632  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
35633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
35634$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
35635if eval \${$as_CACHEVAR+:} false; then :
35636  $as_echo_n "(cached) " >&6
35637else
35638
35639  ax_check_save_flags=$CXXFLAGS
35640  CXXFLAGS="$CXXFLAGS -Werror $flag"
35641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35642/* end confdefs.h.  */
35643
35644int
35645main ()
35646{
35647
35648  ;
35649  return 0;
35650}
35651_ACEOF
35652if ac_fn_cxx_try_compile "$LINENO"; then :
35653  eval "$as_CACHEVAR=yes"
35654else
35655  eval "$as_CACHEVAR=no"
35656fi
35657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35658  CXXFLAGS=$ax_check_save_flags
35659fi
35660eval ac_res=\$$as_CACHEVAR
35661	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35662$as_echo "$ac_res" >&6; }
35663if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
35664  if ${CXXFLAGS+:} false; then :
35665  case " $CXXFLAGS " in
35666    *" $flag "*)
35667      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
35668  (: CXXFLAGS already contains $flag) 2>&5
35669  ac_status=$?
35670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35671  test $ac_status = 0; }
35672      ;;
35673    *)
35674      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
35675  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
35676  ac_status=$?
35677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35678  test $ac_status = 0; }
35679      CXXFLAGS="$CXXFLAGS $flag"
35680      ;;
35681   esac
35682else
35683  CXXFLAGS="$flag"
35684fi
35685
35686else
35687  :
35688fi
35689
35690done
35691
35692
35693
35694
35695
35696for flag in -Wunused; do
35697  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
35698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
35699$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
35700if eval \${$as_CACHEVAR+:} false; then :
35701  $as_echo_n "(cached) " >&6
35702else
35703
35704  ax_check_save_flags=$CXXFLAGS
35705  CXXFLAGS="$CXXFLAGS -Werror $flag"
35706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35707/* end confdefs.h.  */
35708
35709int
35710main ()
35711{
35712
35713  ;
35714  return 0;
35715}
35716_ACEOF
35717if ac_fn_cxx_try_compile "$LINENO"; then :
35718  eval "$as_CACHEVAR=yes"
35719else
35720  eval "$as_CACHEVAR=no"
35721fi
35722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35723  CXXFLAGS=$ax_check_save_flags
35724fi
35725eval ac_res=\$$as_CACHEVAR
35726	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35727$as_echo "$ac_res" >&6; }
35728if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
35729  if ${CXXFLAGS+:} false; then :
35730  case " $CXXFLAGS " in
35731    *" $flag "*)
35732      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
35733  (: CXXFLAGS already contains $flag) 2>&5
35734  ac_status=$?
35735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35736  test $ac_status = 0; }
35737      ;;
35738    *)
35739      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
35740  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
35741  ac_status=$?
35742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35743  test $ac_status = 0; }
35744      CXXFLAGS="$CXXFLAGS $flag"
35745      ;;
35746   esac
35747else
35748  CXXFLAGS="$flag"
35749fi
35750
35751else
35752  :
35753fi
35754
35755done
35756
35757
35758
35759
35760
35761for flag in -Wunused-result; do
35762  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
35763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
35764$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
35765if eval \${$as_CACHEVAR+:} false; then :
35766  $as_echo_n "(cached) " >&6
35767else
35768
35769  ax_check_save_flags=$CXXFLAGS
35770  CXXFLAGS="$CXXFLAGS -Werror $flag"
35771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35772/* end confdefs.h.  */
35773
35774int
35775main ()
35776{
35777
35778  ;
35779  return 0;
35780}
35781_ACEOF
35782if ac_fn_cxx_try_compile "$LINENO"; then :
35783  eval "$as_CACHEVAR=yes"
35784else
35785  eval "$as_CACHEVAR=no"
35786fi
35787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35788  CXXFLAGS=$ax_check_save_flags
35789fi
35790eval ac_res=\$$as_CACHEVAR
35791	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35792$as_echo "$ac_res" >&6; }
35793if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
35794  if ${CXXFLAGS+:} false; then :
35795  case " $CXXFLAGS " in
35796    *" $flag "*)
35797      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
35798  (: CXXFLAGS already contains $flag) 2>&5
35799  ac_status=$?
35800  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35801  test $ac_status = 0; }
35802      ;;
35803    *)
35804      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
35805  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
35806  ac_status=$?
35807  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35808  test $ac_status = 0; }
35809      CXXFLAGS="$CXXFLAGS $flag"
35810      ;;
35811   esac
35812else
35813  CXXFLAGS="$flag"
35814fi
35815
35816else
35817  :
35818fi
35819
35820done
35821
35822
35823
35824
35825
35826for flag in -Wunused-variable; do
35827  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
35828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
35829$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
35830if eval \${$as_CACHEVAR+:} false; then :
35831  $as_echo_n "(cached) " >&6
35832else
35833
35834  ax_check_save_flags=$CXXFLAGS
35835  CXXFLAGS="$CXXFLAGS -Werror $flag"
35836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35837/* end confdefs.h.  */
35838
35839int
35840main ()
35841{
35842
35843  ;
35844  return 0;
35845}
35846_ACEOF
35847if ac_fn_cxx_try_compile "$LINENO"; then :
35848  eval "$as_CACHEVAR=yes"
35849else
35850  eval "$as_CACHEVAR=no"
35851fi
35852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35853  CXXFLAGS=$ax_check_save_flags
35854fi
35855eval ac_res=\$$as_CACHEVAR
35856	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35857$as_echo "$ac_res" >&6; }
35858if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
35859  if ${CXXFLAGS+:} false; then :
35860  case " $CXXFLAGS " in
35861    *" $flag "*)
35862      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
35863  (: CXXFLAGS already contains $flag) 2>&5
35864  ac_status=$?
35865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35866  test $ac_status = 0; }
35867      ;;
35868    *)
35869      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
35870  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
35871  ac_status=$?
35872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35873  test $ac_status = 0; }
35874      CXXFLAGS="$CXXFLAGS $flag"
35875      ;;
35876   esac
35877else
35878  CXXFLAGS="$flag"
35879fi
35880
35881else
35882  :
35883fi
35884
35885done
35886
35887
35888
35889
35890
35891for flag in -Wunused-parameter; do
35892  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
35893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
35894$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
35895if eval \${$as_CACHEVAR+:} false; then :
35896  $as_echo_n "(cached) " >&6
35897else
35898
35899  ax_check_save_flags=$CXXFLAGS
35900  CXXFLAGS="$CXXFLAGS -Werror $flag"
35901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35902/* end confdefs.h.  */
35903
35904int
35905main ()
35906{
35907
35908  ;
35909  return 0;
35910}
35911_ACEOF
35912if ac_fn_cxx_try_compile "$LINENO"; then :
35913  eval "$as_CACHEVAR=yes"
35914else
35915  eval "$as_CACHEVAR=no"
35916fi
35917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35918  CXXFLAGS=$ax_check_save_flags
35919fi
35920eval ac_res=\$$as_CACHEVAR
35921	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35922$as_echo "$ac_res" >&6; }
35923if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
35924  if ${CXXFLAGS+:} false; then :
35925  case " $CXXFLAGS " in
35926    *" $flag "*)
35927      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
35928  (: CXXFLAGS already contains $flag) 2>&5
35929  ac_status=$?
35930  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35931  test $ac_status = 0; }
35932      ;;
35933    *)
35934      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
35935  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
35936  ac_status=$?
35937  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35938  test $ac_status = 0; }
35939      CXXFLAGS="$CXXFLAGS $flag"
35940      ;;
35941   esac
35942else
35943  CXXFLAGS="$flag"
35944fi
35945
35946else
35947  :
35948fi
35949
35950done
35951
35952
35953
35954
35955
35956for flag in -Wunused-local-typedefs; do
35957  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
35958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
35959$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
35960if eval \${$as_CACHEVAR+:} false; then :
35961  $as_echo_n "(cached) " >&6
35962else
35963
35964  ax_check_save_flags=$CXXFLAGS
35965  CXXFLAGS="$CXXFLAGS -Werror $flag"
35966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35967/* end confdefs.h.  */
35968
35969int
35970main ()
35971{
35972
35973  ;
35974  return 0;
35975}
35976_ACEOF
35977if ac_fn_cxx_try_compile "$LINENO"; then :
35978  eval "$as_CACHEVAR=yes"
35979else
35980  eval "$as_CACHEVAR=no"
35981fi
35982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35983  CXXFLAGS=$ax_check_save_flags
35984fi
35985eval ac_res=\$$as_CACHEVAR
35986	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35987$as_echo "$ac_res" >&6; }
35988if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
35989  if ${CXXFLAGS+:} false; then :
35990  case " $CXXFLAGS " in
35991    *" $flag "*)
35992      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
35993  (: CXXFLAGS already contains $flag) 2>&5
35994  ac_status=$?
35995  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35996  test $ac_status = 0; }
35997      ;;
35998    *)
35999      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
36000  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
36001  ac_status=$?
36002  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36003  test $ac_status = 0; }
36004      CXXFLAGS="$CXXFLAGS $flag"
36005      ;;
36006   esac
36007else
36008  CXXFLAGS="$flag"
36009fi
36010
36011else
36012  :
36013fi
36014
36015done
36016
36017
36018
36019
36020
36021for flag in -Wwrite-strings; do
36022  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
36023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
36024$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
36025if eval \${$as_CACHEVAR+:} false; then :
36026  $as_echo_n "(cached) " >&6
36027else
36028
36029  ax_check_save_flags=$CXXFLAGS
36030  CXXFLAGS="$CXXFLAGS -Werror $flag"
36031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36032/* end confdefs.h.  */
36033
36034int
36035main ()
36036{
36037
36038  ;
36039  return 0;
36040}
36041_ACEOF
36042if ac_fn_cxx_try_compile "$LINENO"; then :
36043  eval "$as_CACHEVAR=yes"
36044else
36045  eval "$as_CACHEVAR=no"
36046fi
36047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36048  CXXFLAGS=$ax_check_save_flags
36049fi
36050eval ac_res=\$$as_CACHEVAR
36051	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
36052$as_echo "$ac_res" >&6; }
36053if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
36054  if ${CXXFLAGS+:} false; then :
36055  case " $CXXFLAGS " in
36056    *" $flag "*)
36057      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
36058  (: CXXFLAGS already contains $flag) 2>&5
36059  ac_status=$?
36060  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36061  test $ac_status = 0; }
36062      ;;
36063    *)
36064      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
36065  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
36066  ac_status=$?
36067  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36068  test $ac_status = 0; }
36069      CXXFLAGS="$CXXFLAGS $flag"
36070      ;;
36071   esac
36072else
36073  CXXFLAGS="$flag"
36074fi
36075
36076else
36077  :
36078fi
36079
36080done
36081
36082
36083
36084
36085
36086for flag in -Wformat-security; do
36087  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
36088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
36089$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
36090if eval \${$as_CACHEVAR+:} false; then :
36091  $as_echo_n "(cached) " >&6
36092else
36093
36094  ax_check_save_flags=$CXXFLAGS
36095  CXXFLAGS="$CXXFLAGS -Werror $flag"
36096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36097/* end confdefs.h.  */
36098
36099int
36100main ()
36101{
36102
36103  ;
36104  return 0;
36105}
36106_ACEOF
36107if ac_fn_cxx_try_compile "$LINENO"; then :
36108  eval "$as_CACHEVAR=yes"
36109else
36110  eval "$as_CACHEVAR=no"
36111fi
36112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36113  CXXFLAGS=$ax_check_save_flags
36114fi
36115eval ac_res=\$$as_CACHEVAR
36116	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
36117$as_echo "$ac_res" >&6; }
36118if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
36119  if ${CXXFLAGS+:} false; then :
36120  case " $CXXFLAGS " in
36121    *" $flag "*)
36122      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
36123  (: CXXFLAGS already contains $flag) 2>&5
36124  ac_status=$?
36125  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36126  test $ac_status = 0; }
36127      ;;
36128    *)
36129      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
36130  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
36131  ac_status=$?
36132  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36133  test $ac_status = 0; }
36134      CXXFLAGS="$CXXFLAGS $flag"
36135      ;;
36136   esac
36137else
36138  CXXFLAGS="$flag"
36139fi
36140
36141else
36142  :
36143fi
36144
36145done
36146
36147
36148
36149
36150
36151for flag in -floop-parallelize-all; do
36152  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
36153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
36154$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
36155if eval \${$as_CACHEVAR+:} false; then :
36156  $as_echo_n "(cached) " >&6
36157else
36158
36159  ax_check_save_flags=$CXXFLAGS
36160  CXXFLAGS="$CXXFLAGS -Werror $flag"
36161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36162/* end confdefs.h.  */
36163
36164int
36165main ()
36166{
36167
36168  ;
36169  return 0;
36170}
36171_ACEOF
36172if ac_fn_cxx_try_compile "$LINENO"; then :
36173  eval "$as_CACHEVAR=yes"
36174else
36175  eval "$as_CACHEVAR=no"
36176fi
36177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36178  CXXFLAGS=$ax_check_save_flags
36179fi
36180eval ac_res=\$$as_CACHEVAR
36181	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
36182$as_echo "$ac_res" >&6; }
36183if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
36184  if ${CXXFLAGS+:} false; then :
36185  case " $CXXFLAGS " in
36186    *" $flag "*)
36187      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
36188  (: CXXFLAGS already contains $flag) 2>&5
36189  ac_status=$?
36190  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36191  test $ac_status = 0; }
36192      ;;
36193    *)
36194      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
36195  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
36196  ac_status=$?
36197  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36198  test $ac_status = 0; }
36199      CXXFLAGS="$CXXFLAGS $flag"
36200      ;;
36201   esac
36202else
36203  CXXFLAGS="$flag"
36204fi
36205
36206else
36207  :
36208fi
36209
36210done
36211
36212
36213
36214
36215
36216for flag in -fwrapv; do
36217  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
36218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
36219$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
36220if eval \${$as_CACHEVAR+:} false; then :
36221  $as_echo_n "(cached) " >&6
36222else
36223
36224  ax_check_save_flags=$CXXFLAGS
36225  CXXFLAGS="$CXXFLAGS -Werror $flag"
36226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36227/* end confdefs.h.  */
36228
36229int
36230main ()
36231{
36232
36233  ;
36234  return 0;
36235}
36236_ACEOF
36237if ac_fn_cxx_try_compile "$LINENO"; then :
36238  eval "$as_CACHEVAR=yes"
36239else
36240  eval "$as_CACHEVAR=no"
36241fi
36242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36243  CXXFLAGS=$ax_check_save_flags
36244fi
36245eval ac_res=\$$as_CACHEVAR
36246	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
36247$as_echo "$ac_res" >&6; }
36248if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
36249  if ${CXXFLAGS+:} false; then :
36250  case " $CXXFLAGS " in
36251    *" $flag "*)
36252      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
36253  (: CXXFLAGS already contains $flag) 2>&5
36254  ac_status=$?
36255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36256  test $ac_status = 0; }
36257      ;;
36258    *)
36259      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
36260  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
36261  ac_status=$?
36262  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36263  test $ac_status = 0; }
36264      CXXFLAGS="$CXXFLAGS $flag"
36265      ;;
36266   esac
36267else
36268  CXXFLAGS="$flag"
36269fi
36270
36271else
36272  :
36273fi
36274
36275done
36276
36277
36278
36279
36280
36281for flag in -fmudflapt; do
36282  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
36283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
36284$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
36285if eval \${$as_CACHEVAR+:} false; then :
36286  $as_echo_n "(cached) " >&6
36287else
36288
36289  ax_check_save_flags=$CXXFLAGS
36290  CXXFLAGS="$CXXFLAGS -Werror $flag"
36291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36292/* end confdefs.h.  */
36293
36294int
36295main ()
36296{
36297
36298  ;
36299  return 0;
36300}
36301_ACEOF
36302if ac_fn_cxx_try_compile "$LINENO"; then :
36303  eval "$as_CACHEVAR=yes"
36304else
36305  eval "$as_CACHEVAR=no"
36306fi
36307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36308  CXXFLAGS=$ax_check_save_flags
36309fi
36310eval ac_res=\$$as_CACHEVAR
36311	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
36312$as_echo "$ac_res" >&6; }
36313if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
36314  if ${CXXFLAGS+:} false; then :
36315  case " $CXXFLAGS " in
36316    *" $flag "*)
36317      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
36318  (: CXXFLAGS already contains $flag) 2>&5
36319  ac_status=$?
36320  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36321  test $ac_status = 0; }
36322      ;;
36323    *)
36324      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
36325  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
36326  ac_status=$?
36327  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36328  test $ac_status = 0; }
36329      CXXFLAGS="$CXXFLAGS $flag"
36330      ;;
36331   esac
36332else
36333  CXXFLAGS="$flag"
36334fi
36335
36336else
36337  :
36338fi
36339
36340done
36341
36342
36343
36344
36345
36346for flag in -pipe; do
36347  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
36348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
36349$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
36350if eval \${$as_CACHEVAR+:} false; then :
36351  $as_echo_n "(cached) " >&6
36352else
36353
36354  ax_check_save_flags=$CXXFLAGS
36355  CXXFLAGS="$CXXFLAGS -Werror $flag"
36356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36357/* end confdefs.h.  */
36358
36359int
36360main ()
36361{
36362
36363  ;
36364  return 0;
36365}
36366_ACEOF
36367if ac_fn_cxx_try_compile "$LINENO"; then :
36368  eval "$as_CACHEVAR=yes"
36369else
36370  eval "$as_CACHEVAR=no"
36371fi
36372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36373  CXXFLAGS=$ax_check_save_flags
36374fi
36375eval ac_res=\$$as_CACHEVAR
36376	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
36377$as_echo "$ac_res" >&6; }
36378if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
36379  if ${CXXFLAGS+:} false; then :
36380  case " $CXXFLAGS " in
36381    *" $flag "*)
36382      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
36383  (: CXXFLAGS already contains $flag) 2>&5
36384  ac_status=$?
36385  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36386  test $ac_status = 0; }
36387      ;;
36388    *)
36389      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
36390  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
36391  ac_status=$?
36392  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36393  test $ac_status = 0; }
36394      CXXFLAGS="$CXXFLAGS $flag"
36395      ;;
36396   esac
36397else
36398  CXXFLAGS="$flag"
36399fi
36400
36401else
36402  :
36403fi
36404
36405done
36406
36407
36408
36409
36410
36411for flag in -fPIE -pie; do
36412  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
36413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
36414$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
36415if eval \${$as_CACHEVAR+:} false; then :
36416  $as_echo_n "(cached) " >&6
36417else
36418
36419  ax_check_save_flags=$CXXFLAGS
36420  CXXFLAGS="$CXXFLAGS -Werror $flag"
36421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36422/* end confdefs.h.  */
36423
36424int
36425main ()
36426{
36427
36428  ;
36429  return 0;
36430}
36431_ACEOF
36432if ac_fn_cxx_try_compile "$LINENO"; then :
36433  eval "$as_CACHEVAR=yes"
36434else
36435  eval "$as_CACHEVAR=no"
36436fi
36437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36438  CXXFLAGS=$ax_check_save_flags
36439fi
36440eval ac_res=\$$as_CACHEVAR
36441	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
36442$as_echo "$ac_res" >&6; }
36443if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
36444  if ${CXXFLAGS+:} false; then :
36445  case " $CXXFLAGS " in
36446    *" $flag "*)
36447      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
36448  (: CXXFLAGS already contains $flag) 2>&5
36449  ac_status=$?
36450  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36451  test $ac_status = 0; }
36452      ;;
36453    *)
36454      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
36455  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
36456  ac_status=$?
36457  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36458  test $ac_status = 0; }
36459      CXXFLAGS="$CXXFLAGS $flag"
36460      ;;
36461   esac
36462else
36463  CXXFLAGS="$flag"
36464fi
36465
36466else
36467  :
36468fi
36469
36470done
36471
36472
36473
36474
36475
36476for flag in -Wsizeof-pointer-memaccess; do
36477  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
36478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
36479$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
36480if eval \${$as_CACHEVAR+:} false; then :
36481  $as_echo_n "(cached) " >&6
36482else
36483
36484  ax_check_save_flags=$CXXFLAGS
36485  CXXFLAGS="$CXXFLAGS -Werror $flag"
36486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36487/* end confdefs.h.  */
36488
36489int
36490main ()
36491{
36492
36493  ;
36494  return 0;
36495}
36496_ACEOF
36497if ac_fn_cxx_try_compile "$LINENO"; then :
36498  eval "$as_CACHEVAR=yes"
36499else
36500  eval "$as_CACHEVAR=no"
36501fi
36502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36503  CXXFLAGS=$ax_check_save_flags
36504fi
36505eval ac_res=\$$as_CACHEVAR
36506	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
36507$as_echo "$ac_res" >&6; }
36508if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
36509  if ${CXXFLAGS+:} false; then :
36510  case " $CXXFLAGS " in
36511    *" $flag "*)
36512      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
36513  (: CXXFLAGS already contains $flag) 2>&5
36514  ac_status=$?
36515  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36516  test $ac_status = 0; }
36517      ;;
36518    *)
36519      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
36520  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
36521  ac_status=$?
36522  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36523  test $ac_status = 0; }
36524      CXXFLAGS="$CXXFLAGS $flag"
36525      ;;
36526   esac
36527else
36528  CXXFLAGS="$flag"
36529fi
36530
36531else
36532  :
36533fi
36534
36535done
36536
36537
36538
36539
36540
36541for flag in -Wpacked; do
36542  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
36543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
36544$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
36545if eval \${$as_CACHEVAR+:} false; then :
36546  $as_echo_n "(cached) " >&6
36547else
36548
36549  ax_check_save_flags=$CXXFLAGS
36550  CXXFLAGS="$CXXFLAGS -Werror $flag"
36551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36552/* end confdefs.h.  */
36553
36554int
36555main ()
36556{
36557
36558  ;
36559  return 0;
36560}
36561_ACEOF
36562if ac_fn_cxx_try_compile "$LINENO"; then :
36563  eval "$as_CACHEVAR=yes"
36564else
36565  eval "$as_CACHEVAR=no"
36566fi
36567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36568  CXXFLAGS=$ax_check_save_flags
36569fi
36570eval ac_res=\$$as_CACHEVAR
36571	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
36572$as_echo "$ac_res" >&6; }
36573if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
36574  if ${CXXFLAGS+:} false; then :
36575  case " $CXXFLAGS " in
36576    *" $flag "*)
36577      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
36578  (: CXXFLAGS already contains $flag) 2>&5
36579  ac_status=$?
36580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36581  test $ac_status = 0; }
36582      ;;
36583    *)
36584      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
36585  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
36586  ac_status=$?
36587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36588  test $ac_status = 0; }
36589      CXXFLAGS="$CXXFLAGS $flag"
36590      ;;
36591   esac
36592else
36593  CXXFLAGS="$flag"
36594fi
36595
36596else
36597  :
36598fi
36599
36600done
36601
36602
36603#         _APPEND_COMPILE_FLAGS_ERROR([-Wlong-long])
36604
36605
36606
36607for flag in -Wunreachable-code; do
36608  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
36609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
36610$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
36611if eval \${$as_CACHEVAR+:} false; then :
36612  $as_echo_n "(cached) " >&6
36613else
36614
36615  ax_check_save_flags=$CXXFLAGS
36616  CXXFLAGS="$CXXFLAGS -Werror $flag"
36617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36618/* end confdefs.h.  */
36619
36620int
36621main ()
36622{
36623
36624  ;
36625  return 0;
36626}
36627_ACEOF
36628if ac_fn_cxx_try_compile "$LINENO"; then :
36629  eval "$as_CACHEVAR=yes"
36630else
36631  eval "$as_CACHEVAR=no"
36632fi
36633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36634  CXXFLAGS=$ax_check_save_flags
36635fi
36636eval ac_res=\$$as_CACHEVAR
36637	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
36638$as_echo "$ac_res" >&6; }
36639if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
36640  if ${CXXFLAGS+:} false; then :
36641  case " $CXXFLAGS " in
36642    *" $flag "*)
36643      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
36644  (: CXXFLAGS already contains $flag) 2>&5
36645  ac_status=$?
36646  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36647  test $ac_status = 0; }
36648      ;;
36649    *)
36650      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
36651  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
36652  ac_status=$?
36653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36654  test $ac_status = 0; }
36655      CXXFLAGS="$CXXFLAGS $flag"
36656      ;;
36657   esac
36658else
36659  CXXFLAGS="$flag"
36660fi
36661
36662else
36663  :
36664fi
36665
36666done
36667
36668
36669
36670          if test "x$ax_enable_debug" = xno; then :
36671  if test "x$ac_cv_vcs_checkout" = xyes; then :
36672  if test "x${target_os}" != "xmingw"; then :
36673  if test "x$ac_c_gcc_recent" = xyes; then :
36674
36675
36676
36677for flag in -D_FORTIFY_SOURCE=2; do
36678  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
36679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
36680$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
36681if eval \${$as_CACHEVAR+:} false; then :
36682  $as_echo_n "(cached) " >&6
36683else
36684
36685  ax_check_save_flags=$CXXFLAGS
36686  CXXFLAGS="$CXXFLAGS -Werror $flag"
36687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36688/* end confdefs.h.  */
36689
36690int
36691main ()
36692{
36693
36694  ;
36695  return 0;
36696}
36697_ACEOF
36698if ac_fn_cxx_try_compile "$LINENO"; then :
36699  eval "$as_CACHEVAR=yes"
36700else
36701  eval "$as_CACHEVAR=no"
36702fi
36703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36704  CXXFLAGS=$ax_check_save_flags
36705fi
36706eval ac_res=\$$as_CACHEVAR
36707	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
36708$as_echo "$ac_res" >&6; }
36709if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
36710  if ${CXXFLAGS+:} false; then :
36711  case " $CXXFLAGS " in
36712    *" $flag "*)
36713      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
36714  (: CXXFLAGS already contains $flag) 2>&5
36715  ac_status=$?
36716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36717  test $ac_status = 0; }
36718      ;;
36719    *)
36720      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
36721  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
36722  ac_status=$?
36723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36724  test $ac_status = 0; }
36725      CXXFLAGS="$CXXFLAGS $flag"
36726      ;;
36727   esac
36728else
36729  CXXFLAGS="$flag"
36730fi
36731
36732else
36733  :
36734fi
36735
36736done
36737
36738
36739                #_APPEND_COMPILE_FLAGS_ERROR([-Wstack-protector])
36740                #_APPEND_COMPILE_FLAGS_ERROR([-fstack-protector --param=ssp-buffer-size=4])
36741
36742
36743
36744for flag in -fstack-protector-all; do
36745  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_-Werror_$flag" | $as_tr_sh`
36746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
36747$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
36748if eval \${$as_CACHEVAR+:} false; then :
36749  $as_echo_n "(cached) " >&6
36750else
36751
36752  ax_check_save_flags=$CXXFLAGS
36753  CXXFLAGS="$CXXFLAGS -Werror $flag"
36754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36755/* end confdefs.h.  */
36756
36757int
36758main ()
36759{
36760
36761  ;
36762  return 0;
36763}
36764_ACEOF
36765if ac_fn_cxx_try_compile "$LINENO"; then :
36766  eval "$as_CACHEVAR=yes"
36767else
36768  eval "$as_CACHEVAR=no"
36769fi
36770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36771  CXXFLAGS=$ax_check_save_flags
36772fi
36773eval ac_res=\$$as_CACHEVAR
36774	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
36775$as_echo "$ac_res" >&6; }
36776if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
36777  if ${CXXFLAGS+:} false; then :
36778  case " $CXXFLAGS " in
36779    *" $flag "*)
36780      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
36781  (: CXXFLAGS already contains $flag) 2>&5
36782  ac_status=$?
36783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36784  test $ac_status = 0; }
36785      ;;
36786    *)
36787      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$flag\""; } >&5
36788  (: CXXFLAGS="$CXXFLAGS $flag") 2>&5
36789  ac_status=$?
36790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36791  test $ac_status = 0; }
36792      CXXFLAGS="$CXXFLAGS $flag"
36793      ;;
36794   esac
36795else
36796  CXXFLAGS="$flag"
36797fi
36798
36799else
36800  :
36801fi
36802
36803done
36804
36805
36806
36807fi
36808fi
36809fi
36810fi
36811
36812          if test "x$ac_cv_warnings_as_errors" = xyes; then :
36813  if ${CXXFLAGS+:} false; then :
36814  case " $CXXFLAGS " in
36815    *" -Werror "*)
36816      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains -Werror"; } >&5
36817  (: CXXFLAGS already contains -Werror) 2>&5
36818  ac_status=$?
36819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36820  test $ac_status = 0; }
36821      ;;
36822    *)
36823      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS -Werror\""; } >&5
36824  (: CXXFLAGS="$CXXFLAGS -Werror") 2>&5
36825  ac_status=$?
36826  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36827  test $ac_status = 0; }
36828      CXXFLAGS="$CXXFLAGS -Werror"
36829      ;;
36830   esac
36831else
36832  CXXFLAGS="-Werror"
36833fi
36834
36835fi
36836          ac_ext=c
36837ac_cpp='$CPP $CPPFLAGS'
36838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36840ac_compiler_gnu=$ac_cv_c_compiler_gnu
36841
36842
36843
36844
36845
36846
36847
36848
36849
36850           if test -n "$CFLAG_VISIBILITY"; then :
36851  CPPFLAGS="$CPPFLAGS $CFLAG_VISIBILITY"
36852fi
36853
36854
36855
36856
36857
36858
36859 if test "x${MINGW}" = "xtrue"; then
36860  TARGET_MINGW_TRUE=
36861  TARGET_MINGW_FALSE='#'
36862else
36863  TARGET_MINGW_TRUE='#'
36864  TARGET_MINGW_FALSE=
36865fi
36866
36867
36868# backtrace(), others require shared builds
36869if test "x$enable_shared" = "xyes"; then :
36870
36871$as_echo "#define HAVE_SHARED_ENABLED 1" >>confdefs.h
36872
36873          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GCC C++ ABI name demangling" >&5
36874$as_echo_n "checking whether the compiler supports GCC C++ ABI name demangling... " >&6; }
36875if ${ax_cv_cxx_gcc_abi_demangle+:} false; then :
36876  $as_echo_n "(cached) " >&6
36877else
36878  ac_ext=cpp
36879ac_cpp='$CXXCPP $CPPFLAGS'
36880ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36881ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36882ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36883
36884      if test "$cross_compiling" = yes; then :
36885  ax_cv_cxx_gcc_abi_demangle=no
36886else
36887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36888/* end confdefs.h.  */
36889#include <typeinfo>
36890#include <cxxabi.h>
36891#include <cstdlib>
36892#include <string>
36893          template<typename TYPE>
36894          class A {};
36895int
36896main ()
36897{
36898A<int> instance;
36899#if defined(_WIN32)
36900          return EXIT_FAILURE;
36901#endif
36902          int status = 0;
36903          char* c_name = abi::__cxa_demangle(typeid(instance).name(), 0, 0, &status);
36904
36905          std::string name(c_name);
36906          ::free(c_name);
36907
36908          if (name.compare("A<int>") != 0)
36909          {
36910          return EXIT_FAILURE;
36911          }
36912  ;
36913  return 0;
36914}
36915_ACEOF
36916if ac_fn_cxx_try_run "$LINENO"; then :
36917  ax_cv_cxx_gcc_abi_demangle=yes
36918else
36919  ax_cv_cxx_gcc_abi_demangle=no
36920fi
36921rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36922  conftest.$ac_objext conftest.beam conftest.$ac_ext
36923fi
36924
36925      ac_ext=c
36926ac_cpp='$CPP $CPPFLAGS'
36927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36929ac_compiler_gnu=$ac_cv_c_compiler_gnu
36930
36931fi
36932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_gcc_abi_demangle" >&5
36933$as_echo "$ax_cv_cxx_gcc_abi_demangle" >&6; }
36934      { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for cxx_gcc_abi_demangle" >&5
36935$as_echo_n "checking checking for cxx_gcc_abi_demangle... " >&6; }
36936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$ax_cv_cxx_gcc_abi_demangle\"" >&5
36937$as_echo "\"$ax_cv_cxx_gcc_abi_demangle\"" >&6; }
36938  if test "x$ax_cv_cxx_gcc_abi_demangle" = xyes; then :
36939
36940$as_echo "#define HAVE_GCC_ABI_DEMANGLE 1" >>confdefs.h
36941
36942fi
36943
36944fi
36945 if test "x$enable_shared" = "xyes"; then
36946  SHARED_ENABLED_TRUE=
36947  SHARED_ENABLED_FALSE='#'
36948else
36949  SHARED_ENABLED_TRUE='#'
36950  SHARED_ENABLED_FALSE=
36951fi
36952
36953
36954ac_config_files="$ac_config_files Makefile docs/conf.py libgearman-1.0/version.h scripts/gearmand scripts/gearmand-init scripts/gearmand.xml scripts/smf_install.sh support/gearmand.pc support/gearmand.spec"
36955
36956
36957cat >confcache <<\_ACEOF
36958# This file is a shell script that caches the results of configure
36959# tests run on this system so they can be shared between configure
36960# scripts and configure runs, see configure's option --config-cache.
36961# It is not useful on other systems.  If it contains results you don't
36962# want to keep, you may remove or edit it.
36963#
36964# config.status only pays attention to the cache file if you give it
36965# the --recheck option to rerun configure.
36966#
36967# `ac_cv_env_foo' variables (set or unset) will be overridden when
36968# loading this file, other *unset* `ac_cv_foo' will be assigned the
36969# following values.
36970
36971_ACEOF
36972
36973# The following way of writing the cache mishandles newlines in values,
36974# but we know of no workaround that is simple, portable, and efficient.
36975# So, we kill variables containing newlines.
36976# Ultrix sh set writes to stderr and can't be redirected directly,
36977# and sets the high bit in the cache file unless we assign to the vars.
36978(
36979  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36980    eval ac_val=\$$ac_var
36981    case $ac_val in #(
36982    *${as_nl}*)
36983      case $ac_var in #(
36984      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
36985$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36986      esac
36987      case $ac_var in #(
36988      _ | IFS | as_nl) ;; #(
36989      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
36990      *) { eval $ac_var=; unset $ac_var;} ;;
36991      esac ;;
36992    esac
36993  done
36994
36995  (set) 2>&1 |
36996    case $as_nl`(ac_space=' '; set) 2>&1` in #(
36997    *${as_nl}ac_space=\ *)
36998      # `set' does not quote correctly, so add quotes: double-quote
36999      # substitution turns \\\\ into \\, and sed turns \\ into \.
37000      sed -n \
37001	"s/'/'\\\\''/g;
37002	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37003      ;; #(
37004    *)
37005      # `set' quotes correctly as required by POSIX, so do not add quotes.
37006      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
37007      ;;
37008    esac |
37009    sort
37010) |
37011  sed '
37012     /^ac_cv_env_/b end
37013     t clear
37014     :clear
37015     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37016     t end
37017     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37018     :end' >>confcache
37019if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
37020  if test -w "$cache_file"; then
37021    if test "x$cache_file" != "x/dev/null"; then
37022      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
37023$as_echo "$as_me: updating cache $cache_file" >&6;}
37024      if test ! -f "$cache_file" || test -h "$cache_file"; then
37025	cat confcache >"$cache_file"
37026      else
37027        case $cache_file in #(
37028        */* | ?:*)
37029	  mv -f confcache "$cache_file"$$ &&
37030	  mv -f "$cache_file"$$ "$cache_file" ;; #(
37031        *)
37032	  mv -f confcache "$cache_file" ;;
37033	esac
37034      fi
37035    fi
37036  else
37037    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
37038$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
37039  fi
37040fi
37041rm -f confcache
37042
37043test "x$prefix" = xNONE && prefix=$ac_default_prefix
37044# Let make expand exec_prefix.
37045test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
37046
37047DEFS=-DHAVE_CONFIG_H
37048
37049ac_libobjs=
37050ac_ltlibobjs=
37051U=
37052for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
37053  # 1. Remove the extension, and $U if already installed.
37054  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
37055  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
37056  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
37057  #    will be set to the directory where LIBOBJS objects are built.
37058  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
37059  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
37060done
37061LIBOBJS=$ac_libobjs
37062
37063LTLIBOBJS=$ac_ltlibobjs
37064
37065
37066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
37067$as_echo_n "checking that generated files are newer than configure... " >&6; }
37068   if test -n "$am_sleep_pid"; then
37069     # Hide warnings about reused PIDs.
37070     wait $am_sleep_pid 2>/dev/null
37071   fi
37072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
37073$as_echo "done" >&6; }
37074if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
37075  as_fn_error $? "conditional \"AMDEP\" was never defined.
37076Usually this means the macro was only invoked conditionally." "$LINENO" 5
37077fi
37078if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37079  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
37080Usually this means the macro was only invoked conditionally." "$LINENO" 5
37081fi
37082 if test -n "$EXEEXT"; then
37083  am__EXEEXT_TRUE=
37084  am__EXEEXT_FALSE='#'
37085else
37086  am__EXEEXT_TRUE='#'
37087  am__EXEEXT_FALSE=
37088fi
37089
37090if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
37091  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
37092Usually this means the macro was only invoked conditionally." "$LINENO" 5
37093fi
37094if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
37095  as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
37096Usually this means the macro was only invoked conditionally." "$LINENO" 5
37097fi
37098if test -z "${TARGET_OSX_TRUE}" && test -z "${TARGET_OSX_FALSE}"; then
37099  as_fn_error $? "conditional \"TARGET_OSX\" was never defined.
37100Usually this means the macro was only invoked conditionally." "$LINENO" 5
37101fi
37102if test -z "${TARGET_LINUX_TRUE}" && test -z "${TARGET_LINUX_FALSE}"; then
37103  as_fn_error $? "conditional \"TARGET_LINUX\" was never defined.
37104Usually this means the macro was only invoked conditionally." "$LINENO" 5
37105fi
37106if test -z "${TARGET_FREEBSD_TRUE}" && test -z "${TARGET_FREEBSD_FALSE}"; then
37107  as_fn_error $? "conditional \"TARGET_FREEBSD\" was never defined.
37108Usually this means the macro was only invoked conditionally." "$LINENO" 5
37109fi
37110if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
37111  as_fn_error $? "conditional \"DEBUG\" was never defined.
37112Usually this means the macro was only invoked conditionally." "$LINENO" 5
37113fi
37114if test -z "${IS_VCS_CHECKOUT_TRUE}" && test -z "${IS_VCS_CHECKOUT_FALSE}"; then
37115  as_fn_error $? "conditional \"IS_VCS_CHECKOUT\" was never defined.
37116Usually this means the macro was only invoked conditionally." "$LINENO" 5
37117fi
37118if test -z "${INCLUDE_HSIEH_SRC_TRUE}" && test -z "${INCLUDE_HSIEH_SRC_FALSE}"; then
37119  as_fn_error $? "conditional \"INCLUDE_HSIEH_SRC\" was never defined.
37120Usually this means the macro was only invoked conditionally." "$LINENO" 5
37121fi
37122if test -z "${HAVE_LIBMYSQL_TRUE}" && test -z "${HAVE_LIBMYSQL_FALSE}"; then
37123  as_fn_error $? "conditional \"HAVE_LIBMYSQL\" was never defined.
37124Usually this means the macro was only invoked conditionally." "$LINENO" 5
37125fi
37126if test -z "${BUILDING_GEARMAN_TRUE}" && test -z "${BUILDING_GEARMAN_FALSE}"; then
37127  as_fn_error $? "conditional \"BUILDING_GEARMAN\" was never defined.
37128Usually this means the macro was only invoked conditionally." "$LINENO" 5
37129fi
37130if test -z "${HAVE_LIBGEARMAN_TRUE}" && test -z "${HAVE_LIBGEARMAN_FALSE}"; then
37131  as_fn_error $? "conditional \"HAVE_LIBGEARMAN\" was never defined.
37132Usually this means the macro was only invoked conditionally." "$LINENO" 5
37133fi
37134if test -z "${HAVE_LIBCURL_TRUE}" && test -z "${HAVE_LIBCURL_FALSE}"; then
37135  as_fn_error $? "conditional \"HAVE_LIBCURL\" was never defined.
37136Usually this means the macro was only invoked conditionally." "$LINENO" 5
37137fi
37138if test -z "${HAVE_LIBSQLITE3_TRUE}" && test -z "${HAVE_LIBSQLITE3_FALSE}"; then
37139  as_fn_error $? "conditional \"HAVE_LIBSQLITE3\" was never defined.
37140Usually this means the macro was only invoked conditionally." "$LINENO" 5
37141fi
37142if test -z "${HAVE_DTRACE_TRUE}" && test -z "${HAVE_DTRACE_FALSE}"; then
37143  as_fn_error $? "conditional \"HAVE_DTRACE\" was never defined.
37144Usually this means the macro was only invoked conditionally." "$LINENO" 5
37145fi
37146if test -z "${DTRACE_NEEDS_OBJECTS_TRUE}" && test -z "${DTRACE_NEEDS_OBJECTS_FALSE}"; then
37147  as_fn_error $? "conditional \"DTRACE_NEEDS_OBJECTS\" was never defined.
37148Usually this means the macro was only invoked conditionally." "$LINENO" 5
37149fi
37150if test -z "${HAVE_LIBPQ_TRUE}" && test -z "${HAVE_LIBPQ_FALSE}"; then
37151  as_fn_error $? "conditional \"HAVE_LIBPQ\" was never defined.
37152Usually this means the macro was only invoked conditionally." "$LINENO" 5
37153fi
37154if test -z "${HAVE_TOKYOCABINET_TRUE}" && test -z "${HAVE_TOKYOCABINET_FALSE}"; then
37155  as_fn_error $? "conditional \"HAVE_TOKYOCABINET\" was never defined.
37156Usually this means the macro was only invoked conditionally." "$LINENO" 5
37157fi
37158if test -z "${BUILD_WIN32_WRAPPERS_TRUE}" && test -z "${BUILD_WIN32_WRAPPERS_FALSE}"; then
37159  as_fn_error $? "conditional \"BUILD_WIN32_WRAPPERS\" was never defined.
37160Usually this means the macro was only invoked conditionally." "$LINENO" 5
37161fi
37162if test -z "${HAVE_LIBMEMCACHED_TRUE}" && test -z "${HAVE_LIBMEMCACHED_FALSE}"; then
37163  as_fn_error $? "conditional \"HAVE_LIBMEMCACHED\" was never defined.
37164Usually this means the macro was only invoked conditionally." "$LINENO" 5
37165fi
37166if test -z "${HAVE_LIBEVENT_TRUE}" && test -z "${HAVE_LIBEVENT_FALSE}"; then
37167  as_fn_error $? "conditional \"HAVE_LIBEVENT\" was never defined.
37168Usually this means the macro was only invoked conditionally." "$LINENO" 5
37169fi
37170if test -z "${HAVE_LIBUUID_TRUE}" && test -z "${HAVE_LIBUUID_FALSE}"; then
37171  as_fn_error $? "conditional \"HAVE_LIBUUID\" was never defined.
37172Usually this means the macro was only invoked conditionally." "$LINENO" 5
37173fi
37174if test -z "${TARGET_HOSTILE_TRUE}" && test -z "${TARGET_HOSTILE_FALSE}"; then
37175  as_fn_error $? "conditional \"TARGET_HOSTILE\" was never defined.
37176Usually this means the macro was only invoked conditionally." "$LINENO" 5
37177fi
37178if test -z "${TARGET_MINGW_TRUE}" && test -z "${TARGET_MINGW_FALSE}"; then
37179  as_fn_error $? "conditional \"TARGET_MINGW\" was never defined.
37180Usually this means the macro was only invoked conditionally." "$LINENO" 5
37181fi
37182if test -z "${SHARED_ENABLED_TRUE}" && test -z "${SHARED_ENABLED_FALSE}"; then
37183  as_fn_error $? "conditional \"SHARED_ENABLED\" was never defined.
37184Usually this means the macro was only invoked conditionally." "$LINENO" 5
37185fi
37186
37187: "${CONFIG_STATUS=./config.status}"
37188ac_write_fail=0
37189ac_clean_files_save=$ac_clean_files
37190ac_clean_files="$ac_clean_files $CONFIG_STATUS"
37191{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
37192$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
37193as_write_fail=0
37194cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
37195#! $SHELL
37196# Generated by $as_me.
37197# Run this file to recreate the current configuration.
37198# Compiler output produced by configure, useful for debugging
37199# configure, is in config.log if it exists.
37200
37201debug=false
37202ac_cs_recheck=false
37203ac_cs_silent=false
37204
37205SHELL=\${CONFIG_SHELL-$SHELL}
37206export SHELL
37207_ASEOF
37208cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
37209## -------------------- ##
37210## M4sh Initialization. ##
37211## -------------------- ##
37212
37213# Be more Bourne compatible
37214DUALCASE=1; export DUALCASE # for MKS sh
37215if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
37216  emulate sh
37217  NULLCMD=:
37218  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
37219  # is contrary to our usage.  Disable this feature.
37220  alias -g '${1+"$@"}'='"$@"'
37221  setopt NO_GLOB_SUBST
37222else
37223  case `(set -o) 2>/dev/null` in #(
37224  *posix*) :
37225    set -o posix ;; #(
37226  *) :
37227     ;;
37228esac
37229fi
37230
37231
37232as_nl='
37233'
37234export as_nl
37235# Printing a long string crashes Solaris 7 /usr/bin/printf.
37236as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
37237as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
37238as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
37239# Prefer a ksh shell builtin over an external printf program on Solaris,
37240# but without wasting forks for bash or zsh.
37241if test -z "$BASH_VERSION$ZSH_VERSION" \
37242    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
37243  as_echo='print -r --'
37244  as_echo_n='print -rn --'
37245elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
37246  as_echo='printf %s\n'
37247  as_echo_n='printf %s'
37248else
37249  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
37250    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
37251    as_echo_n='/usr/ucb/echo -n'
37252  else
37253    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
37254    as_echo_n_body='eval
37255      arg=$1;
37256      case $arg in #(
37257      *"$as_nl"*)
37258	expr "X$arg" : "X\\(.*\\)$as_nl";
37259	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
37260      esac;
37261      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
37262    '
37263    export as_echo_n_body
37264    as_echo_n='sh -c $as_echo_n_body as_echo'
37265  fi
37266  export as_echo_body
37267  as_echo='sh -c $as_echo_body as_echo'
37268fi
37269
37270# The user is always right.
37271if test "${PATH_SEPARATOR+set}" != set; then
37272  PATH_SEPARATOR=:
37273  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
37274    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
37275      PATH_SEPARATOR=';'
37276  }
37277fi
37278
37279
37280# IFS
37281# We need space, tab and new line, in precisely that order.  Quoting is
37282# there to prevent editors from complaining about space-tab.
37283# (If _AS_PATH_WALK were called with IFS unset, it would disable word
37284# splitting by setting IFS to empty value.)
37285IFS=" ""	$as_nl"
37286
37287# Find who we are.  Look in the path if we contain no directory separator.
37288as_myself=
37289case $0 in #((
37290  *[\\/]* ) as_myself=$0 ;;
37291  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37292for as_dir in $PATH
37293do
37294  IFS=$as_save_IFS
37295  test -z "$as_dir" && as_dir=.
37296    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37297  done
37298IFS=$as_save_IFS
37299
37300     ;;
37301esac
37302# We did not find ourselves, most probably we were run as `sh COMMAND'
37303# in which case we are not to be found in the path.
37304if test "x$as_myself" = x; then
37305  as_myself=$0
37306fi
37307if test ! -f "$as_myself"; then
37308  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
37309  exit 1
37310fi
37311
37312# Unset variables that we do not need and which cause bugs (e.g. in
37313# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
37314# suppresses any "Segmentation fault" message there.  '((' could
37315# trigger a bug in pdksh 5.2.14.
37316for as_var in BASH_ENV ENV MAIL MAILPATH
37317do eval test x\${$as_var+set} = xset \
37318  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
37319done
37320PS1='$ '
37321PS2='> '
37322PS4='+ '
37323
37324# NLS nuisances.
37325LC_ALL=C
37326export LC_ALL
37327LANGUAGE=C
37328export LANGUAGE
37329
37330# CDPATH.
37331(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37332
37333
37334# as_fn_error STATUS ERROR [LINENO LOG_FD]
37335# ----------------------------------------
37336# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
37337# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
37338# script with STATUS, using 1 if that was 0.
37339as_fn_error ()
37340{
37341  as_status=$1; test $as_status -eq 0 && as_status=1
37342  if test "$4"; then
37343    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
37344    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
37345  fi
37346  $as_echo "$as_me: error: $2" >&2
37347  as_fn_exit $as_status
37348} # as_fn_error
37349
37350
37351# as_fn_set_status STATUS
37352# -----------------------
37353# Set $? to STATUS, without forking.
37354as_fn_set_status ()
37355{
37356  return $1
37357} # as_fn_set_status
37358
37359# as_fn_exit STATUS
37360# -----------------
37361# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
37362as_fn_exit ()
37363{
37364  set +e
37365  as_fn_set_status $1
37366  exit $1
37367} # as_fn_exit
37368
37369# as_fn_unset VAR
37370# ---------------
37371# Portably unset VAR.
37372as_fn_unset ()
37373{
37374  { eval $1=; unset $1;}
37375}
37376as_unset=as_fn_unset
37377# as_fn_append VAR VALUE
37378# ----------------------
37379# Append the text in VALUE to the end of the definition contained in VAR. Take
37380# advantage of any shell optimizations that allow amortized linear growth over
37381# repeated appends, instead of the typical quadratic growth present in naive
37382# implementations.
37383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
37384  eval 'as_fn_append ()
37385  {
37386    eval $1+=\$2
37387  }'
37388else
37389  as_fn_append ()
37390  {
37391    eval $1=\$$1\$2
37392  }
37393fi # as_fn_append
37394
37395# as_fn_arith ARG...
37396# ------------------
37397# Perform arithmetic evaluation on the ARGs, and store the result in the
37398# global $as_val. Take advantage of shells that can avoid forks. The arguments
37399# must be portable across $(()) and expr.
37400if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
37401  eval 'as_fn_arith ()
37402  {
37403    as_val=$(( $* ))
37404  }'
37405else
37406  as_fn_arith ()
37407  {
37408    as_val=`expr "$@" || test $? -eq 1`
37409  }
37410fi # as_fn_arith
37411
37412
37413if expr a : '\(a\)' >/dev/null 2>&1 &&
37414   test "X`expr 00001 : '.*\(...\)'`" = X001; then
37415  as_expr=expr
37416else
37417  as_expr=false
37418fi
37419
37420if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37421  as_basename=basename
37422else
37423  as_basename=false
37424fi
37425
37426if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37427  as_dirname=dirname
37428else
37429  as_dirname=false
37430fi
37431
37432as_me=`$as_basename -- "$0" ||
37433$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37434	 X"$0" : 'X\(//\)$' \| \
37435	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37436$as_echo X/"$0" |
37437    sed '/^.*\/\([^/][^/]*\)\/*$/{
37438	    s//\1/
37439	    q
37440	  }
37441	  /^X\/\(\/\/\)$/{
37442	    s//\1/
37443	    q
37444	  }
37445	  /^X\/\(\/\).*/{
37446	    s//\1/
37447	    q
37448	  }
37449	  s/.*/./; q'`
37450
37451# Avoid depending upon Character Ranges.
37452as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37453as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37454as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37455as_cr_digits='0123456789'
37456as_cr_alnum=$as_cr_Letters$as_cr_digits
37457
37458ECHO_C= ECHO_N= ECHO_T=
37459case `echo -n x` in #(((((
37460-n*)
37461  case `echo 'xy\c'` in
37462  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
37463  xy)  ECHO_C='\c';;
37464  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
37465       ECHO_T='	';;
37466  esac;;
37467*)
37468  ECHO_N='-n';;
37469esac
37470
37471rm -f conf$$ conf$$.exe conf$$.file
37472if test -d conf$$.dir; then
37473  rm -f conf$$.dir/conf$$.file
37474else
37475  rm -f conf$$.dir
37476  mkdir conf$$.dir 2>/dev/null
37477fi
37478if (echo >conf$$.file) 2>/dev/null; then
37479  if ln -s conf$$.file conf$$ 2>/dev/null; then
37480    as_ln_s='ln -s'
37481    # ... but there are two gotchas:
37482    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37483    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
37484    # In both cases, we have to default to `cp -pR'.
37485    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
37486      as_ln_s='cp -pR'
37487  elif ln conf$$.file conf$$ 2>/dev/null; then
37488    as_ln_s=ln
37489  else
37490    as_ln_s='cp -pR'
37491  fi
37492else
37493  as_ln_s='cp -pR'
37494fi
37495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37496rmdir conf$$.dir 2>/dev/null
37497
37498
37499# as_fn_mkdir_p
37500# -------------
37501# Create "$as_dir" as a directory, including parents if necessary.
37502as_fn_mkdir_p ()
37503{
37504
37505  case $as_dir in #(
37506  -*) as_dir=./$as_dir;;
37507  esac
37508  test -d "$as_dir" || eval $as_mkdir_p || {
37509    as_dirs=
37510    while :; do
37511      case $as_dir in #(
37512      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37513      *) as_qdir=$as_dir;;
37514      esac
37515      as_dirs="'$as_qdir' $as_dirs"
37516      as_dir=`$as_dirname -- "$as_dir" ||
37517$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37518	 X"$as_dir" : 'X\(//\)[^/]' \| \
37519	 X"$as_dir" : 'X\(//\)$' \| \
37520	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37521$as_echo X"$as_dir" |
37522    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37523	    s//\1/
37524	    q
37525	  }
37526	  /^X\(\/\/\)[^/].*/{
37527	    s//\1/
37528	    q
37529	  }
37530	  /^X\(\/\/\)$/{
37531	    s//\1/
37532	    q
37533	  }
37534	  /^X\(\/\).*/{
37535	    s//\1/
37536	    q
37537	  }
37538	  s/.*/./; q'`
37539      test -d "$as_dir" && break
37540    done
37541    test -z "$as_dirs" || eval "mkdir $as_dirs"
37542  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
37543
37544
37545} # as_fn_mkdir_p
37546if mkdir -p . 2>/dev/null; then
37547  as_mkdir_p='mkdir -p "$as_dir"'
37548else
37549  test -d ./-p && rmdir ./-p
37550  as_mkdir_p=false
37551fi
37552
37553
37554# as_fn_executable_p FILE
37555# -----------------------
37556# Test if FILE is an executable regular file.
37557as_fn_executable_p ()
37558{
37559  test -f "$1" && test -x "$1"
37560} # as_fn_executable_p
37561as_test_x='test -x'
37562as_executable_p=as_fn_executable_p
37563
37564# Sed expression to map a string onto a valid CPP name.
37565as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37566
37567# Sed expression to map a string onto a valid variable name.
37568as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37569
37570
37571exec 6>&1
37572## ----------------------------------- ##
37573## Main body of $CONFIG_STATUS script. ##
37574## ----------------------------------- ##
37575_ASEOF
37576test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
37577
37578cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37579# Save the log message, to keep $0 and so on meaningful, and to
37580# report actual input values of CONFIG_FILES etc. instead of their
37581# values after options handling.
37582ac_log="
37583This file was extended by gearmand $as_me 1.0.6, which was
37584generated by GNU Autoconf 2.69.  Invocation command line was
37585
37586  CONFIG_FILES    = $CONFIG_FILES
37587  CONFIG_HEADERS  = $CONFIG_HEADERS
37588  CONFIG_LINKS    = $CONFIG_LINKS
37589  CONFIG_COMMANDS = $CONFIG_COMMANDS
37590  $ $0 $@
37591
37592on `(hostname || uname -n) 2>/dev/null | sed 1q`
37593"
37594
37595_ACEOF
37596
37597case $ac_config_files in *"
37598"*) set x $ac_config_files; shift; ac_config_files=$*;;
37599esac
37600
37601case $ac_config_headers in *"
37602"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
37603esac
37604
37605
37606cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37607# Files that config.status was made for.
37608config_files="$ac_config_files"
37609config_headers="$ac_config_headers"
37610config_links="$ac_config_links"
37611config_commands="$ac_config_commands"
37612
37613_ACEOF
37614
37615cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37616ac_cs_usage="\
37617\`$as_me' instantiates files and other configuration actions
37618from templates according to the current configuration.  Unless the files
37619and actions are specified as TAGs, all are instantiated by default.
37620
37621Usage: $0 [OPTION]... [TAG]...
37622
37623  -h, --help       print this help, then exit
37624  -V, --version    print version number and configuration settings, then exit
37625      --config     print configuration, then exit
37626  -q, --quiet, --silent
37627                   do not print progress messages
37628  -d, --debug      don't remove temporary files
37629      --recheck    update $as_me by reconfiguring in the same conditions
37630      --file=FILE[:TEMPLATE]
37631                   instantiate the configuration file FILE
37632      --header=FILE[:TEMPLATE]
37633                   instantiate the configuration header FILE
37634
37635Configuration files:
37636$config_files
37637
37638Configuration headers:
37639$config_headers
37640
37641Configuration links:
37642$config_links
37643
37644Configuration commands:
37645$config_commands
37646
37647Report bugs to <https://bugs.launchpad.net/gearmand>.
37648gearmand home page: <http://gearman.info/>."
37649
37650_ACEOF
37651cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37652ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
37653ac_cs_version="\\
37654gearmand config.status 1.0.6
37655configured by $0, generated by GNU Autoconf 2.69,
37656  with options \\"\$ac_cs_config\\"
37657
37658Copyright (C) 2012 Free Software Foundation, Inc.
37659This config.status script is free software; the Free Software Foundation
37660gives unlimited permission to copy, distribute and modify it."
37661
37662ac_pwd='$ac_pwd'
37663srcdir='$srcdir'
37664INSTALL='$INSTALL'
37665MKDIR_P='$MKDIR_P'
37666AWK='$AWK'
37667test -n "\$AWK" || AWK=awk
37668_ACEOF
37669
37670cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37671# The default lists apply if the user does not specify any file.
37672ac_need_defaults=:
37673while test $# != 0
37674do
37675  case $1 in
37676  --*=?*)
37677    ac_option=`expr "X$1" : 'X\([^=]*\)='`
37678    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37679    ac_shift=:
37680    ;;
37681  --*=)
37682    ac_option=`expr "X$1" : 'X\([^=]*\)='`
37683    ac_optarg=
37684    ac_shift=:
37685    ;;
37686  *)
37687    ac_option=$1
37688    ac_optarg=$2
37689    ac_shift=shift
37690    ;;
37691  esac
37692
37693  case $ac_option in
37694  # Handling of the options.
37695  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37696    ac_cs_recheck=: ;;
37697  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37698    $as_echo "$ac_cs_version"; exit ;;
37699  --config | --confi | --conf | --con | --co | --c )
37700    $as_echo "$ac_cs_config"; exit ;;
37701  --debug | --debu | --deb | --de | --d | -d )
37702    debug=: ;;
37703  --file | --fil | --fi | --f )
37704    $ac_shift
37705    case $ac_optarg in
37706    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37707    '') as_fn_error $? "missing file argument" ;;
37708    esac
37709    as_fn_append CONFIG_FILES " '$ac_optarg'"
37710    ac_need_defaults=false;;
37711  --header | --heade | --head | --hea )
37712    $ac_shift
37713    case $ac_optarg in
37714    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37715    esac
37716    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
37717    ac_need_defaults=false;;
37718  --he | --h)
37719    # Conflict between --help and --header
37720    as_fn_error $? "ambiguous option: \`$1'
37721Try \`$0 --help' for more information.";;
37722  --help | --hel | -h )
37723    $as_echo "$ac_cs_usage"; exit ;;
37724  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37725  | -silent | --silent | --silen | --sile | --sil | --si | --s)
37726    ac_cs_silent=: ;;
37727
37728  # This is an error.
37729  -*) as_fn_error $? "unrecognized option: \`$1'
37730Try \`$0 --help' for more information." ;;
37731
37732  *) as_fn_append ac_config_targets " $1"
37733     ac_need_defaults=false ;;
37734
37735  esac
37736  shift
37737done
37738
37739ac_configure_extra_args=
37740
37741if $ac_cs_silent; then
37742  exec 6>/dev/null
37743  ac_configure_extra_args="$ac_configure_extra_args --silent"
37744fi
37745
37746_ACEOF
37747cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37748if \$ac_cs_recheck; then
37749  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
37750  shift
37751  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
37752  CONFIG_SHELL='$SHELL'
37753  export CONFIG_SHELL
37754  exec "\$@"
37755fi
37756
37757_ACEOF
37758cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37759exec 5>>config.log
37760{
37761  echo
37762  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37763## Running $as_me. ##
37764_ASBOX
37765  $as_echo "$ac_log"
37766} >&5
37767
37768_ACEOF
37769cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37770#
37771# INIT-COMMANDS
37772#
37773AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37774
37775
37776# The HP-UX ksh and POSIX shell print the target directory to stdout
37777# if CDPATH is set.
37778(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37779
37780sed_quote_subst='$sed_quote_subst'
37781double_quote_subst='$double_quote_subst'
37782delay_variable_subst='$delay_variable_subst'
37783macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37784macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37785enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37786enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37787pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37788enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
37789SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37790ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37791PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
37792host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37793host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37794host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37795build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
37796build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
37797build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
37798SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
37799Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
37800GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37801EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37802FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37803LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37804NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
37805LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
37806max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
37807ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
37808exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
37809lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
37810lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
37811lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
37812lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
37813lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
37814reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
37815reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
37816OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37817deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
37818file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
37819file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
37820want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
37821DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37822sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
37823AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
37824AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
37825archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
37826STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
37827RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
37828old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37829old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37830old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
37831lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
37832CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
37833CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
37834compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
37835GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
37836lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
37837lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
37838lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
37839lt_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"`'
37840nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
37841lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
37842objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
37843MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
37844lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
37845lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
37846lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
37847lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
37848lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
37849need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
37850MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
37851DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
37852NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
37853LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
37854OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
37855OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
37856libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
37857shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
37858extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37859archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
37860enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
37861export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37862whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37863compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37864old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37865old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37866archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37867archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37868module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37869module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37870with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37871allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37872no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37873hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
37874hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37875hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37876hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37877hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37878hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37879hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37880inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37881link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
37882always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37883export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37884exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37885include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37886prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
37887postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
37888file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37889variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37890need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37891need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37892version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37893runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37894shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37895shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37896libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37897library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37898soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37899install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37900postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37901postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37902finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37903finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37904hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37905sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37906sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
37907hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37908enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37909enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37910enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37911old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37912striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37913compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37914predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37915postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37916predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37917postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37918compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37919LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37920reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37921reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37922old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37923compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37924GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37925lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
37926lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
37927lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
37928lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37929lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37930archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37931enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37932export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37933whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37934compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37935old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37936old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37937archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37938archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37939module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37940module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37941with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37942allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37943no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37944hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37945hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37946hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37947hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37948hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37949hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37950hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37951inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37952link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
37953always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37954export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37955exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37956include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37957prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37958postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37959file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37960hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37961compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37962predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37963postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37964predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37965postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37966compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
37967
37968LTCC='$LTCC'
37969LTCFLAGS='$LTCFLAGS'
37970compiler='$compiler_DEFAULT'
37971
37972# A function that is used when there is no print builtin or printf.
37973func_fallback_echo ()
37974{
37975  eval 'cat <<_LTECHO_EOF
37976\$1
37977_LTECHO_EOF'
37978}
37979
37980# Quote evaled strings.
37981for var in SHELL \
37982ECHO \
37983PATH_SEPARATOR \
37984SED \
37985GREP \
37986EGREP \
37987FGREP \
37988LD \
37989NM \
37990LN_S \
37991lt_SP2NL \
37992lt_NL2SP \
37993reload_flag \
37994OBJDUMP \
37995deplibs_check_method \
37996file_magic_cmd \
37997file_magic_glob \
37998want_nocaseglob \
37999DLLTOOL \
38000sharedlib_from_linklib_cmd \
38001AR \
38002AR_FLAGS \
38003archiver_list_spec \
38004STRIP \
38005RANLIB \
38006CC \
38007CFLAGS \
38008compiler \
38009lt_cv_sys_global_symbol_pipe \
38010lt_cv_sys_global_symbol_to_cdecl \
38011lt_cv_sys_global_symbol_to_c_name_address \
38012lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
38013nm_file_list_spec \
38014lt_prog_compiler_no_builtin_flag \
38015lt_prog_compiler_pic \
38016lt_prog_compiler_wl \
38017lt_prog_compiler_static \
38018lt_cv_prog_compiler_c_o \
38019need_locks \
38020MANIFEST_TOOL \
38021DSYMUTIL \
38022NMEDIT \
38023LIPO \
38024OTOOL \
38025OTOOL64 \
38026shrext_cmds \
38027export_dynamic_flag_spec \
38028whole_archive_flag_spec \
38029compiler_needs_object \
38030with_gnu_ld \
38031allow_undefined_flag \
38032no_undefined_flag \
38033hardcode_libdir_flag_spec \
38034hardcode_libdir_separator \
38035exclude_expsyms \
38036include_expsyms \
38037file_list_spec \
38038variables_saved_for_relink \
38039libname_spec \
38040library_names_spec \
38041soname_spec \
38042install_override_mode \
38043finish_eval \
38044old_striplib \
38045striplib \
38046compiler_lib_search_dirs \
38047predep_objects \
38048postdep_objects \
38049predeps \
38050postdeps \
38051compiler_lib_search_path \
38052LD_CXX \
38053reload_flag_CXX \
38054compiler_CXX \
38055lt_prog_compiler_no_builtin_flag_CXX \
38056lt_prog_compiler_pic_CXX \
38057lt_prog_compiler_wl_CXX \
38058lt_prog_compiler_static_CXX \
38059lt_cv_prog_compiler_c_o_CXX \
38060export_dynamic_flag_spec_CXX \
38061whole_archive_flag_spec_CXX \
38062compiler_needs_object_CXX \
38063with_gnu_ld_CXX \
38064allow_undefined_flag_CXX \
38065no_undefined_flag_CXX \
38066hardcode_libdir_flag_spec_CXX \
38067hardcode_libdir_separator_CXX \
38068exclude_expsyms_CXX \
38069include_expsyms_CXX \
38070file_list_spec_CXX \
38071compiler_lib_search_dirs_CXX \
38072predep_objects_CXX \
38073postdep_objects_CXX \
38074predeps_CXX \
38075postdeps_CXX \
38076compiler_lib_search_path_CXX; do
38077    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
38078    *[\\\\\\\`\\"\\\$]*)
38079      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
38080      ;;
38081    *)
38082      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38083      ;;
38084    esac
38085done
38086
38087# Double-quote double-evaled strings.
38088for var in reload_cmds \
38089old_postinstall_cmds \
38090old_postuninstall_cmds \
38091old_archive_cmds \
38092extract_expsyms_cmds \
38093old_archive_from_new_cmds \
38094old_archive_from_expsyms_cmds \
38095archive_cmds \
38096archive_expsym_cmds \
38097module_cmds \
38098module_expsym_cmds \
38099export_symbols_cmds \
38100prelink_cmds \
38101postlink_cmds \
38102postinstall_cmds \
38103postuninstall_cmds \
38104finish_cmds \
38105sys_lib_search_path_spec \
38106sys_lib_dlsearch_path_spec \
38107reload_cmds_CXX \
38108old_archive_cmds_CXX \
38109old_archive_from_new_cmds_CXX \
38110old_archive_from_expsyms_cmds_CXX \
38111archive_cmds_CXX \
38112archive_expsym_cmds_CXX \
38113module_cmds_CXX \
38114module_expsym_cmds_CXX \
38115export_symbols_cmds_CXX \
38116prelink_cmds_CXX \
38117postlink_cmds_CXX; do
38118    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
38119    *[\\\\\\\`\\"\\\$]*)
38120      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
38121      ;;
38122    *)
38123      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38124      ;;
38125    esac
38126done
38127
38128ac_aux_dir='$ac_aux_dir'
38129xsi_shell='$xsi_shell'
38130lt_shell_append='$lt_shell_append'
38131
38132# See if we are running on zsh, and set the options which allow our
38133# commands through without removal of \ escapes INIT.
38134if test -n "\${ZSH_VERSION+set}" ; then
38135   setopt NO_GLOB_SUBST
38136fi
38137
38138
38139    PACKAGE='$PACKAGE'
38140    VERSION='$VERSION'
38141    TIMESTAMP='$TIMESTAMP'
38142    RM='$RM'
38143    ofile='$ofile'
38144
38145
38146
38147
38148
38149
38150_ACEOF
38151
38152cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38153
38154# Handling of arguments.
38155for ac_config_target in $ac_config_targets
38156do
38157  case $ac_config_target in
38158    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
38159    "gear_config.h") CONFIG_HEADERS="$CONFIG_HEADERS gear_config.h:gear_config.in" ;;
38160    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
38161    "libhashkit/hashkitcon.h") CONFIG_FILES="$CONFIG_FILES libhashkit/hashkitcon.h" ;;
38162    "libhashkit-1.0/configure.h") CONFIG_FILES="$CONFIG_FILES libhashkit-1.0/configure.h" ;;
38163    "libtest/version.h") CONFIG_FILES="$CONFIG_FILES libtest/version.h" ;;
38164    "libtest/yatlcon.h") CONFIG_FILES="$CONFIG_FILES libtest/yatlcon.h" ;;
38165    "$ac_config_libobj_dir/fnmatch.h") CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h" ;;
38166    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
38167    "docs/conf.py") CONFIG_FILES="$CONFIG_FILES docs/conf.py" ;;
38168    "libgearman-1.0/version.h") CONFIG_FILES="$CONFIG_FILES libgearman-1.0/version.h" ;;
38169    "scripts/gearmand") CONFIG_FILES="$CONFIG_FILES scripts/gearmand" ;;
38170    "scripts/gearmand-init") CONFIG_FILES="$CONFIG_FILES scripts/gearmand-init" ;;
38171    "scripts/gearmand.xml") CONFIG_FILES="$CONFIG_FILES scripts/gearmand.xml" ;;
38172    "scripts/smf_install.sh") CONFIG_FILES="$CONFIG_FILES scripts/smf_install.sh" ;;
38173    "support/gearmand.pc") CONFIG_FILES="$CONFIG_FILES support/gearmand.pc" ;;
38174    "support/gearmand.spec") CONFIG_FILES="$CONFIG_FILES support/gearmand.spec" ;;
38175
38176  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
38177  esac
38178done
38179
38180
38181# If the user did not use the arguments to specify the items to instantiate,
38182# then the envvar interface is used.  Set only those that are not.
38183# We use the long form for the default assignment because of an extremely
38184# bizarre bug on SunOS 4.1.3.
38185if $ac_need_defaults; then
38186  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
38187  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
38188  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
38189  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
38190fi
38191
38192# Have a temporary directory for convenience.  Make it in the build tree
38193# simply because there is no reason against having it here, and in addition,
38194# creating and moving files from /tmp can sometimes cause problems.
38195# Hook for its removal unless debugging.
38196# Note that there is a small window in which the directory will not be cleaned:
38197# after its creation but before its name has been assigned to `$tmp'.
38198$debug ||
38199{
38200  tmp= ac_tmp=
38201  trap 'exit_status=$?
38202  : "${ac_tmp:=$tmp}"
38203  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
38204' 0
38205  trap 'as_fn_exit 1' 1 2 13 15
38206}
38207# Create a (secure) tmp directory for tmp files.
38208
38209{
38210  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
38211  test -d "$tmp"
38212}  ||
38213{
38214  tmp=./conf$$-$RANDOM
38215  (umask 077 && mkdir "$tmp")
38216} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
38217ac_tmp=$tmp
38218
38219# Set up the scripts for CONFIG_FILES section.
38220# No need to generate them if there are no CONFIG_FILES.
38221# This happens for instance with `./config.status config.h'.
38222if test -n "$CONFIG_FILES"; then
38223
38224
38225ac_cr=`echo X | tr X '\015'`
38226# On cygwin, bash can eat \r inside `` if the user requested igncr.
38227# But we know of no other shell where ac_cr would be empty at this
38228# point, so we can use a bashism as a fallback.
38229if test "x$ac_cr" = x; then
38230  eval ac_cr=\$\'\\r\'
38231fi
38232ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
38233if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
38234  ac_cs_awk_cr='\\r'
38235else
38236  ac_cs_awk_cr=$ac_cr
38237fi
38238
38239echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
38240_ACEOF
38241
38242
38243{
38244  echo "cat >conf$$subs.awk <<_ACEOF" &&
38245  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
38246  echo "_ACEOF"
38247} >conf$$subs.sh ||
38248  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38249ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
38250ac_delim='%!_!# '
38251for ac_last_try in false false false false false :; do
38252  . ./conf$$subs.sh ||
38253    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38254
38255  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
38256  if test $ac_delim_n = $ac_delim_num; then
38257    break
38258  elif $ac_last_try; then
38259    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38260  else
38261    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38262  fi
38263done
38264rm -f conf$$subs.sh
38265
38266cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38267cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
38268_ACEOF
38269sed -n '
38270h
38271s/^/S["/; s/!.*/"]=/
38272p
38273g
38274s/^[^!]*!//
38275:repl
38276t repl
38277s/'"$ac_delim"'$//
38278t delim
38279:nl
38280h
38281s/\(.\{148\}\)..*/\1/
38282t more1
38283s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
38284p
38285n
38286b repl
38287:more1
38288s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38289p
38290g
38291s/.\{148\}//
38292t nl
38293:delim
38294h
38295s/\(.\{148\}\)..*/\1/
38296t more2
38297s/["\\]/\\&/g; s/^/"/; s/$/"/
38298p
38299b
38300:more2
38301s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38302p
38303g
38304s/.\{148\}//
38305t delim
38306' <conf$$subs.awk | sed '
38307/^[^""]/{
38308  N
38309  s/\n//
38310}
38311' >>$CONFIG_STATUS || ac_write_fail=1
38312rm -f conf$$subs.awk
38313cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38314_ACAWK
38315cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
38316  for (key in S) S_is_set[key] = 1
38317  FS = ""
38318
38319}
38320{
38321  line = $ 0
38322  nfields = split(line, field, "@")
38323  substed = 0
38324  len = length(field[1])
38325  for (i = 2; i < nfields; i++) {
38326    key = field[i]
38327    keylen = length(key)
38328    if (S_is_set[key]) {
38329      value = S[key]
38330      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
38331      len += length(value) + length(field[++i])
38332      substed = 1
38333    } else
38334      len += 1 + keylen
38335  }
38336
38337  print line
38338}
38339
38340_ACAWK
38341_ACEOF
38342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38343if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
38344  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
38345else
38346  cat
38347fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
38348  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
38349_ACEOF
38350
38351# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
38352# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
38353# trailing colons and then remove the whole line if VPATH becomes empty
38354# (actually we leave an empty line to preserve line numbers).
38355if test "x$srcdir" = x.; then
38356  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
38357h
38358s///
38359s/^/:/
38360s/[	 ]*$/:/
38361s/:\$(srcdir):/:/g
38362s/:\${srcdir}:/:/g
38363s/:@srcdir@:/:/g
38364s/^:*//
38365s/:*$//
38366x
38367s/\(=[	 ]*\).*/\1/
38368G
38369s/\n//
38370s/^[^=]*=[	 ]*$//
38371}'
38372fi
38373
38374cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38375fi # test -n "$CONFIG_FILES"
38376
38377# Set up the scripts for CONFIG_HEADERS section.
38378# No need to generate them if there are no CONFIG_HEADERS.
38379# This happens for instance with `./config.status Makefile'.
38380if test -n "$CONFIG_HEADERS"; then
38381cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
38382BEGIN {
38383_ACEOF
38384
38385# Transform confdefs.h into an awk script `defines.awk', embedded as
38386# here-document in config.status, that substitutes the proper values into
38387# config.h.in to produce config.h.
38388
38389# Create a delimiter string that does not exist in confdefs.h, to ease
38390# handling of long lines.
38391ac_delim='%!_!# '
38392for ac_last_try in false false :; do
38393  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
38394  if test -z "$ac_tt"; then
38395    break
38396  elif $ac_last_try; then
38397    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
38398  else
38399    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38400  fi
38401done
38402
38403# For the awk script, D is an array of macro values keyed by name,
38404# likewise P contains macro parameters if any.  Preserve backslash
38405# newline sequences.
38406
38407ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38408sed -n '
38409s/.\{148\}/&'"$ac_delim"'/g
38410t rset
38411:rset
38412s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
38413t def
38414d
38415:def
38416s/\\$//
38417t bsnl
38418s/["\\]/\\&/g
38419s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
38420D["\1"]=" \3"/p
38421s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
38422d
38423:bsnl
38424s/["\\]/\\&/g
38425s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
38426D["\1"]=" \3\\\\\\n"\\/p
38427t cont
38428s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
38429t cont
38430d
38431:cont
38432n
38433s/.\{148\}/&'"$ac_delim"'/g
38434t clear
38435:clear
38436s/\\$//
38437t bsnlc
38438s/["\\]/\\&/g; s/^/"/; s/$/"/p
38439d
38440:bsnlc
38441s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
38442b cont
38443' <confdefs.h | sed '
38444s/'"$ac_delim"'/"\\\
38445"/g' >>$CONFIG_STATUS || ac_write_fail=1
38446
38447cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38448  for (key in D) D_is_set[key] = 1
38449  FS = ""
38450}
38451/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
38452  line = \$ 0
38453  split(line, arg, " ")
38454  if (arg[1] == "#") {
38455    defundef = arg[2]
38456    mac1 = arg[3]
38457  } else {
38458    defundef = substr(arg[1], 2)
38459    mac1 = arg[2]
38460  }
38461  split(mac1, mac2, "(") #)
38462  macro = mac2[1]
38463  prefix = substr(line, 1, index(line, defundef) - 1)
38464  if (D_is_set[macro]) {
38465    # Preserve the white space surrounding the "#".
38466    print prefix "define", macro P[macro] D[macro]
38467    next
38468  } else {
38469    # Replace #undef with comments.  This is necessary, for example,
38470    # in the case of _POSIX_SOURCE, which is predefined and required
38471    # on some systems where configure will not decide to define it.
38472    if (defundef == "undef") {
38473      print "/*", prefix defundef, macro, "*/"
38474      next
38475    }
38476  }
38477}
38478{ print }
38479_ACAWK
38480_ACEOF
38481cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38482  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
38483fi # test -n "$CONFIG_HEADERS"
38484
38485
38486eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
38487shift
38488for ac_tag
38489do
38490  case $ac_tag in
38491  :[FHLC]) ac_mode=$ac_tag; continue;;
38492  esac
38493  case $ac_mode$ac_tag in
38494  :[FHL]*:*);;
38495  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
38496  :[FH]-) ac_tag=-:-;;
38497  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38498  esac
38499  ac_save_IFS=$IFS
38500  IFS=:
38501  set x $ac_tag
38502  IFS=$ac_save_IFS
38503  shift
38504  ac_file=$1
38505  shift
38506
38507  case $ac_mode in
38508  :L) ac_source=$1;;
38509  :[FH])
38510    ac_file_inputs=
38511    for ac_f
38512    do
38513      case $ac_f in
38514      -) ac_f="$ac_tmp/stdin";;
38515      *) # Look for the file first in the build tree, then in the source tree
38516	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
38517	 # because $ac_f cannot contain `:'.
38518	 test -f "$ac_f" ||
38519	   case $ac_f in
38520	   [\\/$]*) false;;
38521	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38522	   esac ||
38523	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
38524      esac
38525      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
38526      as_fn_append ac_file_inputs " '$ac_f'"
38527    done
38528
38529    # Let's still pretend it is `configure' which instantiates (i.e., don't
38530    # use $as_me), people would be surprised to read:
38531    #    /* config.h.  Generated by config.status.  */
38532    configure_input='Generated from '`
38533	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
38534	`' by configure.'
38535    if test x"$ac_file" != x-; then
38536      configure_input="$ac_file.  $configure_input"
38537      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
38538$as_echo "$as_me: creating $ac_file" >&6;}
38539    fi
38540    # Neutralize special characters interpreted by sed in replacement strings.
38541    case $configure_input in #(
38542    *\&* | *\|* | *\\* )
38543       ac_sed_conf_input=`$as_echo "$configure_input" |
38544       sed 's/[\\\\&|]/\\\\&/g'`;; #(
38545    *) ac_sed_conf_input=$configure_input;;
38546    esac
38547
38548    case $ac_tag in
38549    *:-:* | *:-) cat >"$ac_tmp/stdin" \
38550      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
38551    esac
38552    ;;
38553  esac
38554
38555  ac_dir=`$as_dirname -- "$ac_file" ||
38556$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38557	 X"$ac_file" : 'X\(//\)[^/]' \| \
38558	 X"$ac_file" : 'X\(//\)$' \| \
38559	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38560$as_echo X"$ac_file" |
38561    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38562	    s//\1/
38563	    q
38564	  }
38565	  /^X\(\/\/\)[^/].*/{
38566	    s//\1/
38567	    q
38568	  }
38569	  /^X\(\/\/\)$/{
38570	    s//\1/
38571	    q
38572	  }
38573	  /^X\(\/\).*/{
38574	    s//\1/
38575	    q
38576	  }
38577	  s/.*/./; q'`
38578  as_dir="$ac_dir"; as_fn_mkdir_p
38579  ac_builddir=.
38580
38581case "$ac_dir" in
38582.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38583*)
38584  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
38585  # A ".." for each directory in $ac_dir_suffix.
38586  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
38587  case $ac_top_builddir_sub in
38588  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38589  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38590  esac ;;
38591esac
38592ac_abs_top_builddir=$ac_pwd
38593ac_abs_builddir=$ac_pwd$ac_dir_suffix
38594# for backward compatibility:
38595ac_top_builddir=$ac_top_build_prefix
38596
38597case $srcdir in
38598  .)  # We are building in place.
38599    ac_srcdir=.
38600    ac_top_srcdir=$ac_top_builddir_sub
38601    ac_abs_top_srcdir=$ac_pwd ;;
38602  [\\/]* | ?:[\\/]* )  # Absolute name.
38603    ac_srcdir=$srcdir$ac_dir_suffix;
38604    ac_top_srcdir=$srcdir
38605    ac_abs_top_srcdir=$srcdir ;;
38606  *) # Relative name.
38607    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38608    ac_top_srcdir=$ac_top_build_prefix$srcdir
38609    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38610esac
38611ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38612
38613
38614  case $ac_mode in
38615  :F)
38616  #
38617  # CONFIG_FILE
38618  #
38619
38620  case $INSTALL in
38621  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38622  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38623  esac
38624  ac_MKDIR_P=$MKDIR_P
38625  case $MKDIR_P in
38626  [\\/$]* | ?:[\\/]* ) ;;
38627  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
38628  esac
38629_ACEOF
38630
38631cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38632# If the template does not know about datarootdir, expand it.
38633# FIXME: This hack should be removed a few years after 2.60.
38634ac_datarootdir_hack=; ac_datarootdir_seen=
38635ac_sed_dataroot='
38636/datarootdir/ {
38637  p
38638  q
38639}
38640/@datadir@/p
38641/@docdir@/p
38642/@infodir@/p
38643/@localedir@/p
38644/@mandir@/p'
38645case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
38646*datarootdir*) ac_datarootdir_seen=yes;;
38647*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
38648  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
38649$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38650_ACEOF
38651cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38652  ac_datarootdir_hack='
38653  s&@datadir@&$datadir&g
38654  s&@docdir@&$docdir&g
38655  s&@infodir@&$infodir&g
38656  s&@localedir@&$localedir&g
38657  s&@mandir@&$mandir&g
38658  s&\\\${datarootdir}&$datarootdir&g' ;;
38659esac
38660_ACEOF
38661
38662# Neutralize VPATH when `$srcdir' = `.'.
38663# Shell code in configure.ac might set extrasub.
38664# FIXME: do we really want to maintain this feature?
38665cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38666ac_sed_extra="$ac_vpsub
38667$extrasub
38668_ACEOF
38669cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38670:t
38671/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38672s|@configure_input@|$ac_sed_conf_input|;t t
38673s&@top_builddir@&$ac_top_builddir_sub&;t t
38674s&@top_build_prefix@&$ac_top_build_prefix&;t t
38675s&@srcdir@&$ac_srcdir&;t t
38676s&@abs_srcdir@&$ac_abs_srcdir&;t t
38677s&@top_srcdir@&$ac_top_srcdir&;t t
38678s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38679s&@builddir@&$ac_builddir&;t t
38680s&@abs_builddir@&$ac_abs_builddir&;t t
38681s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38682s&@INSTALL@&$ac_INSTALL&;t t
38683s&@MKDIR_P@&$ac_MKDIR_P&;t t
38684$ac_datarootdir_hack
38685"
38686eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
38687  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38688
38689test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
38690  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
38691  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
38692      "$ac_tmp/out"`; test -z "$ac_out"; } &&
38693  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38694which seems to be undefined.  Please make sure it is defined" >&5
38695$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38696which seems to be undefined.  Please make sure it is defined" >&2;}
38697
38698  rm -f "$ac_tmp/stdin"
38699  case $ac_file in
38700  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
38701  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
38702  esac \
38703  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38704 ;;
38705  :H)
38706  #
38707  # CONFIG_HEADER
38708  #
38709  if test x"$ac_file" != x-; then
38710    {
38711      $as_echo "/* $configure_input  */" \
38712      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
38713    } >"$ac_tmp/config.h" \
38714      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38715    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
38716      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
38717$as_echo "$as_me: $ac_file is unchanged" >&6;}
38718    else
38719      rm -f "$ac_file"
38720      mv "$ac_tmp/config.h" "$ac_file" \
38721	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
38722    fi
38723  else
38724    $as_echo "/* $configure_input  */" \
38725      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
38726      || as_fn_error $? "could not create -" "$LINENO" 5
38727  fi
38728# Compute "$ac_file"'s index in $config_headers.
38729_am_arg="$ac_file"
38730_am_stamp_count=1
38731for _am_header in $config_headers :; do
38732  case $_am_header in
38733    $_am_arg | $_am_arg:* )
38734      break ;;
38735    * )
38736      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38737  esac
38738done
38739echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38740$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38741	 X"$_am_arg" : 'X\(//\)[^/]' \| \
38742	 X"$_am_arg" : 'X\(//\)$' \| \
38743	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38744$as_echo X"$_am_arg" |
38745    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38746	    s//\1/
38747	    q
38748	  }
38749	  /^X\(\/\/\)[^/].*/{
38750	    s//\1/
38751	    q
38752	  }
38753	  /^X\(\/\/\)$/{
38754	    s//\1/
38755	    q
38756	  }
38757	  /^X\(\/\).*/{
38758	    s//\1/
38759	    q
38760	  }
38761	  s/.*/./; q'`/stamp-h$_am_stamp_count
38762 ;;
38763  :L)
38764  #
38765  # CONFIG_LINK
38766  #
38767
38768  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
38769    :
38770  else
38771    # Prefer the file from the source tree if names are identical.
38772    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
38773      ac_source=$srcdir/$ac_source
38774    fi
38775
38776    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
38777$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
38778
38779    if test ! -r "$ac_source"; then
38780      as_fn_error $? "$ac_source: file not found" "$LINENO" 5
38781    fi
38782    rm -f "$ac_file"
38783
38784    # Try a relative symlink, then a hard link, then a copy.
38785    case $ac_source in
38786    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
38787	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
38788    esac
38789    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
38790      ln "$ac_source" "$ac_file" 2>/dev/null ||
38791      cp -p "$ac_source" "$ac_file" ||
38792      as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
38793  fi
38794 ;;
38795  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
38796$as_echo "$as_me: executing $ac_file commands" >&6;}
38797 ;;
38798  esac
38799
38800
38801  case $ac_file$ac_mode in
38802    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
38803  # Autoconf 2.62 quotes --file arguments for eval, but not when files
38804  # are listed without --file.  Let's play safe and only enable the eval
38805  # if we detect the quoting.
38806  case $CONFIG_FILES in
38807  *\'*) eval set x "$CONFIG_FILES" ;;
38808  *)   set x $CONFIG_FILES ;;
38809  esac
38810  shift
38811  for mf
38812  do
38813    # Strip MF so we end up with the name of the file.
38814    mf=`echo "$mf" | sed -e 's/:.*$//'`
38815    # Check whether this is an Automake generated Makefile or not.
38816    # We used to match only the files named 'Makefile.in', but
38817    # some people rename them; so instead we look at the file content.
38818    # Grep'ing the first line is not enough: some people post-process
38819    # each Makefile.in and add a new line on top of each file to say so.
38820    # Grep'ing the whole file is not good either: AIX grep has a line
38821    # limit of 2048, but all sed's we know have understand at least 4000.
38822    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
38823      dirpart=`$as_dirname -- "$mf" ||
38824$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38825	 X"$mf" : 'X\(//\)[^/]' \| \
38826	 X"$mf" : 'X\(//\)$' \| \
38827	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
38828$as_echo X"$mf" |
38829    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38830	    s//\1/
38831	    q
38832	  }
38833	  /^X\(\/\/\)[^/].*/{
38834	    s//\1/
38835	    q
38836	  }
38837	  /^X\(\/\/\)$/{
38838	    s//\1/
38839	    q
38840	  }
38841	  /^X\(\/\).*/{
38842	    s//\1/
38843	    q
38844	  }
38845	  s/.*/./; q'`
38846    else
38847      continue
38848    fi
38849    # Extract the definition of DEPDIR, am__include, and am__quote
38850    # from the Makefile without running 'make'.
38851    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38852    test -z "$DEPDIR" && continue
38853    am__include=`sed -n 's/^am__include = //p' < "$mf"`
38854    test -z "am__include" && continue
38855    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
38856    # Find all dependency output files, they are included files with
38857    # $(DEPDIR) in their names.  We invoke sed twice because it is the
38858    # simplest approach to changing $(DEPDIR) to its actual value in the
38859    # expansion.
38860    for file in `sed -n "
38861      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
38862	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
38863      # Make sure the directory exists.
38864      test -f "$dirpart/$file" && continue
38865      fdir=`$as_dirname -- "$file" ||
38866$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38867	 X"$file" : 'X\(//\)[^/]' \| \
38868	 X"$file" : 'X\(//\)$' \| \
38869	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38870$as_echo X"$file" |
38871    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38872	    s//\1/
38873	    q
38874	  }
38875	  /^X\(\/\/\)[^/].*/{
38876	    s//\1/
38877	    q
38878	  }
38879	  /^X\(\/\/\)$/{
38880	    s//\1/
38881	    q
38882	  }
38883	  /^X\(\/\).*/{
38884	    s//\1/
38885	    q
38886	  }
38887	  s/.*/./; q'`
38888      as_dir=$dirpart/$fdir; as_fn_mkdir_p
38889      # echo "creating $dirpart/$file"
38890      echo '# dummy' > "$dirpart/$file"
38891    done
38892  done
38893}
38894 ;;
38895    "libtool":C)
38896
38897    # See if we are running on zsh, and set the options which allow our
38898    # commands through without removal of \ escapes.
38899    if test -n "${ZSH_VERSION+set}" ; then
38900      setopt NO_GLOB_SUBST
38901    fi
38902
38903    cfgfile="${ofile}T"
38904    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38905    $RM "$cfgfile"
38906
38907    cat <<_LT_EOF >> "$cfgfile"
38908#! $SHELL
38909
38910# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38911# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38912# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38913# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38914#
38915#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
38916#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38917#                 Foundation, Inc.
38918#   Written by Gordon Matzigkeit, 1996
38919#
38920#   This file is part of GNU Libtool.
38921#
38922# GNU Libtool is free software; you can redistribute it and/or
38923# modify it under the terms of the GNU General Public License as
38924# published by the Free Software Foundation; either version 2 of
38925# the License, or (at your option) any later version.
38926#
38927# As a special exception to the GNU General Public License,
38928# if you distribute this file as part of a program or library that
38929# is built using GNU Libtool, you may include this file under the
38930# same distribution terms that you use for the rest of that program.
38931#
38932# GNU Libtool is distributed in the hope that it will be useful,
38933# but WITHOUT ANY WARRANTY; without even the implied warranty of
38934# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
38935# GNU General Public License for more details.
38936#
38937# You should have received a copy of the GNU General Public License
38938# along with GNU Libtool; see the file COPYING.  If not, a copy
38939# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38940# obtained by writing to the Free Software Foundation, Inc.,
38941# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38942
38943
38944# The names of the tagged configurations supported by this script.
38945available_tags="CXX "
38946
38947# ### BEGIN LIBTOOL CONFIG
38948
38949# Which release of libtool.m4 was used?
38950macro_version=$macro_version
38951macro_revision=$macro_revision
38952
38953# Whether or not to build static libraries.
38954build_old_libs=$enable_static
38955
38956# Whether or not to build shared libraries.
38957build_libtool_libs=$enable_shared
38958
38959# What type of objects to build.
38960pic_mode=$pic_mode
38961
38962# Whether or not to optimize for fast installation.
38963fast_install=$enable_fast_install
38964
38965# Shell to use when invoking shell scripts.
38966SHELL=$lt_SHELL
38967
38968# An echo program that protects backslashes.
38969ECHO=$lt_ECHO
38970
38971# The PATH separator for the build system.
38972PATH_SEPARATOR=$lt_PATH_SEPARATOR
38973
38974# The host system.
38975host_alias=$host_alias
38976host=$host
38977host_os=$host_os
38978
38979# The build system.
38980build_alias=$build_alias
38981build=$build
38982build_os=$build_os
38983
38984# A sed program that does not truncate output.
38985SED=$lt_SED
38986
38987# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38988Xsed="\$SED -e 1s/^X//"
38989
38990# A grep program that handles long lines.
38991GREP=$lt_GREP
38992
38993# An ERE matcher.
38994EGREP=$lt_EGREP
38995
38996# A literal string matcher.
38997FGREP=$lt_FGREP
38998
38999# A BSD- or MS-compatible name lister.
39000NM=$lt_NM
39001
39002# Whether we need soft or hard links.
39003LN_S=$lt_LN_S
39004
39005# What is the maximum length of a command?
39006max_cmd_len=$max_cmd_len
39007
39008# Object file suffix (normally "o").
39009objext=$ac_objext
39010
39011# Executable file suffix (normally "").
39012exeext=$exeext
39013
39014# whether the shell understands "unset".
39015lt_unset=$lt_unset
39016
39017# turn spaces into newlines.
39018SP2NL=$lt_lt_SP2NL
39019
39020# turn newlines into spaces.
39021NL2SP=$lt_lt_NL2SP
39022
39023# convert \$build file names to \$host format.
39024to_host_file_cmd=$lt_cv_to_host_file_cmd
39025
39026# convert \$build files to toolchain format.
39027to_tool_file_cmd=$lt_cv_to_tool_file_cmd
39028
39029# An object symbol dumper.
39030OBJDUMP=$lt_OBJDUMP
39031
39032# Method to check whether dependent libraries are shared objects.
39033deplibs_check_method=$lt_deplibs_check_method
39034
39035# Command to use when deplibs_check_method = "file_magic".
39036file_magic_cmd=$lt_file_magic_cmd
39037
39038# How to find potential files when deplibs_check_method = "file_magic".
39039file_magic_glob=$lt_file_magic_glob
39040
39041# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
39042want_nocaseglob=$lt_want_nocaseglob
39043
39044# DLL creation program.
39045DLLTOOL=$lt_DLLTOOL
39046
39047# Command to associate shared and link libraries.
39048sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
39049
39050# The archiver.
39051AR=$lt_AR
39052
39053# Flags to create an archive.
39054AR_FLAGS=$lt_AR_FLAGS
39055
39056# How to feed a file listing to the archiver.
39057archiver_list_spec=$lt_archiver_list_spec
39058
39059# A symbol stripping program.
39060STRIP=$lt_STRIP
39061
39062# Commands used to install an old-style archive.
39063RANLIB=$lt_RANLIB
39064old_postinstall_cmds=$lt_old_postinstall_cmds
39065old_postuninstall_cmds=$lt_old_postuninstall_cmds
39066
39067# Whether to use a lock for old archive extraction.
39068lock_old_archive_extraction=$lock_old_archive_extraction
39069
39070# A C compiler.
39071LTCC=$lt_CC
39072
39073# LTCC compiler flags.
39074LTCFLAGS=$lt_CFLAGS
39075
39076# Take the output of nm and produce a listing of raw symbols and C names.
39077global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
39078
39079# Transform the output of nm in a proper C declaration.
39080global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
39081
39082# Transform the output of nm in a C name address pair.
39083global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
39084
39085# Transform the output of nm in a C name address pair when lib prefix is needed.
39086global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
39087
39088# Specify filename containing input files for \$NM.
39089nm_file_list_spec=$lt_nm_file_list_spec
39090
39091# The root where to search for dependent libraries,and in which our libraries should be installed.
39092lt_sysroot=$lt_sysroot
39093
39094# The name of the directory that contains temporary libtool files.
39095objdir=$objdir
39096
39097# Used to examine libraries when file_magic_cmd begins with "file".
39098MAGIC_CMD=$MAGIC_CMD
39099
39100# Must we lock files when doing compilation?
39101need_locks=$lt_need_locks
39102
39103# Manifest tool.
39104MANIFEST_TOOL=$lt_MANIFEST_TOOL
39105
39106# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
39107DSYMUTIL=$lt_DSYMUTIL
39108
39109# Tool to change global to local symbols on Mac OS X.
39110NMEDIT=$lt_NMEDIT
39111
39112# Tool to manipulate fat objects and archives on Mac OS X.
39113LIPO=$lt_LIPO
39114
39115# ldd/readelf like tool for Mach-O binaries on Mac OS X.
39116OTOOL=$lt_OTOOL
39117
39118# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
39119OTOOL64=$lt_OTOOL64
39120
39121# Old archive suffix (normally "a").
39122libext=$libext
39123
39124# Shared library suffix (normally ".so").
39125shrext_cmds=$lt_shrext_cmds
39126
39127# The commands to extract the exported symbol list from a shared archive.
39128extract_expsyms_cmds=$lt_extract_expsyms_cmds
39129
39130# Variables whose values should be saved in libtool wrapper scripts and
39131# restored at link time.
39132variables_saved_for_relink=$lt_variables_saved_for_relink
39133
39134# Do we need the "lib" prefix for modules?
39135need_lib_prefix=$need_lib_prefix
39136
39137# Do we need a version for libraries?
39138need_version=$need_version
39139
39140# Library versioning type.
39141version_type=$version_type
39142
39143# Shared library runtime path variable.
39144runpath_var=$runpath_var
39145
39146# Shared library path variable.
39147shlibpath_var=$shlibpath_var
39148
39149# Is shlibpath searched before the hard-coded library search path?
39150shlibpath_overrides_runpath=$shlibpath_overrides_runpath
39151
39152# Format of library name prefix.
39153libname_spec=$lt_libname_spec
39154
39155# List of archive names.  First name is the real one, the rest are links.
39156# The last name is the one that the linker finds with -lNAME
39157library_names_spec=$lt_library_names_spec
39158
39159# The coded name of the library, if different from the real name.
39160soname_spec=$lt_soname_spec
39161
39162# Permission mode override for installation of shared libraries.
39163install_override_mode=$lt_install_override_mode
39164
39165# Command to use after installation of a shared archive.
39166postinstall_cmds=$lt_postinstall_cmds
39167
39168# Command to use after uninstallation of a shared archive.
39169postuninstall_cmds=$lt_postuninstall_cmds
39170
39171# Commands used to finish a libtool library installation in a directory.
39172finish_cmds=$lt_finish_cmds
39173
39174# As "finish_cmds", except a single script fragment to be evaled but
39175# not shown.
39176finish_eval=$lt_finish_eval
39177
39178# Whether we should hardcode library paths into libraries.
39179hardcode_into_libs=$hardcode_into_libs
39180
39181# Compile-time system search path for libraries.
39182sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
39183
39184# Run-time system search path for libraries.
39185sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
39186
39187# Whether dlopen is supported.
39188dlopen_support=$enable_dlopen
39189
39190# Whether dlopen of programs is supported.
39191dlopen_self=$enable_dlopen_self
39192
39193# Whether dlopen of statically linked programs is supported.
39194dlopen_self_static=$enable_dlopen_self_static
39195
39196# Commands to strip libraries.
39197old_striplib=$lt_old_striplib
39198striplib=$lt_striplib
39199
39200
39201# The linker used to build libraries.
39202LD=$lt_LD
39203
39204# How to create reloadable object files.
39205reload_flag=$lt_reload_flag
39206reload_cmds=$lt_reload_cmds
39207
39208# Commands used to build an old-style archive.
39209old_archive_cmds=$lt_old_archive_cmds
39210
39211# A language specific compiler.
39212CC=$lt_compiler
39213
39214# Is the compiler the GNU compiler?
39215with_gcc=$GCC
39216
39217# Compiler flag to turn off builtin functions.
39218no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
39219
39220# Additional compiler flags for building library objects.
39221pic_flag=$lt_lt_prog_compiler_pic
39222
39223# How to pass a linker flag through the compiler.
39224wl=$lt_lt_prog_compiler_wl
39225
39226# Compiler flag to prevent dynamic linking.
39227link_static_flag=$lt_lt_prog_compiler_static
39228
39229# Does compiler simultaneously support -c and -o options?
39230compiler_c_o=$lt_lt_cv_prog_compiler_c_o
39231
39232# Whether or not to add -lc for building shared libraries.
39233build_libtool_need_lc=$archive_cmds_need_lc
39234
39235# Whether or not to disallow shared libs when runtime libs are static.
39236allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
39237
39238# Compiler flag to allow reflexive dlopens.
39239export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
39240
39241# Compiler flag to generate shared objects directly from archives.
39242whole_archive_flag_spec=$lt_whole_archive_flag_spec
39243
39244# Whether the compiler copes with passing no objects directly.
39245compiler_needs_object=$lt_compiler_needs_object
39246
39247# Create an old-style archive from a shared archive.
39248old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
39249
39250# Create a temporary old-style archive to link instead of a shared archive.
39251old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
39252
39253# Commands used to build a shared archive.
39254archive_cmds=$lt_archive_cmds
39255archive_expsym_cmds=$lt_archive_expsym_cmds
39256
39257# Commands used to build a loadable module if different from building
39258# a shared archive.
39259module_cmds=$lt_module_cmds
39260module_expsym_cmds=$lt_module_expsym_cmds
39261
39262# Whether we are building with GNU ld or not.
39263with_gnu_ld=$lt_with_gnu_ld
39264
39265# Flag that allows shared libraries with undefined symbols to be built.
39266allow_undefined_flag=$lt_allow_undefined_flag
39267
39268# Flag that enforces no undefined symbols.
39269no_undefined_flag=$lt_no_undefined_flag
39270
39271# Flag to hardcode \$libdir into a binary during linking.
39272# This must work even if \$libdir does not exist
39273hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
39274
39275# Whether we need a single "-rpath" flag with a separated argument.
39276hardcode_libdir_separator=$lt_hardcode_libdir_separator
39277
39278# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39279# DIR into the resulting binary.
39280hardcode_direct=$hardcode_direct
39281
39282# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39283# DIR into the resulting binary and the resulting library dependency is
39284# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39285# library is relocated.
39286hardcode_direct_absolute=$hardcode_direct_absolute
39287
39288# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39289# into the resulting binary.
39290hardcode_minus_L=$hardcode_minus_L
39291
39292# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39293# into the resulting binary.
39294hardcode_shlibpath_var=$hardcode_shlibpath_var
39295
39296# Set to "yes" if building a shared library automatically hardcodes DIR
39297# into the library and all subsequent libraries and executables linked
39298# against it.
39299hardcode_automatic=$hardcode_automatic
39300
39301# Set to yes if linker adds runtime paths of dependent libraries
39302# to runtime path list.
39303inherit_rpath=$inherit_rpath
39304
39305# Whether libtool must link a program against all its dependency libraries.
39306link_all_deplibs=$link_all_deplibs
39307
39308# Set to "yes" if exported symbols are required.
39309always_export_symbols=$always_export_symbols
39310
39311# The commands to list exported symbols.
39312export_symbols_cmds=$lt_export_symbols_cmds
39313
39314# Symbols that should not be listed in the preloaded symbols.
39315exclude_expsyms=$lt_exclude_expsyms
39316
39317# Symbols that must always be exported.
39318include_expsyms=$lt_include_expsyms
39319
39320# Commands necessary for linking programs (against libraries) with templates.
39321prelink_cmds=$lt_prelink_cmds
39322
39323# Commands necessary for finishing linking programs.
39324postlink_cmds=$lt_postlink_cmds
39325
39326# Specify filename containing input files.
39327file_list_spec=$lt_file_list_spec
39328
39329# How to hardcode a shared library path into an executable.
39330hardcode_action=$hardcode_action
39331
39332# The directories searched by this compiler when creating a shared library.
39333compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
39334
39335# Dependencies to place before and after the objects being linked to
39336# create a shared library.
39337predep_objects=$lt_predep_objects
39338postdep_objects=$lt_postdep_objects
39339predeps=$lt_predeps
39340postdeps=$lt_postdeps
39341
39342# The library search path used internally by the compiler when linking
39343# a shared library.
39344compiler_lib_search_path=$lt_compiler_lib_search_path
39345
39346# ### END LIBTOOL CONFIG
39347
39348_LT_EOF
39349
39350  case $host_os in
39351  aix3*)
39352    cat <<\_LT_EOF >> "$cfgfile"
39353# AIX sometimes has problems with the GCC collect2 program.  For some
39354# reason, if we set the COLLECT_NAMES environment variable, the problems
39355# vanish in a puff of smoke.
39356if test "X${COLLECT_NAMES+set}" != Xset; then
39357  COLLECT_NAMES=
39358  export COLLECT_NAMES
39359fi
39360_LT_EOF
39361    ;;
39362  esac
39363
39364
39365ltmain="$ac_aux_dir/ltmain.sh"
39366
39367
39368  # We use sed instead of cat because bash on DJGPP gets confused if
39369  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
39370  # text mode, it properly converts lines to CR/LF.  This bash problem
39371  # is reportedly fixed, but why not run on old versions too?
39372  sed '$q' "$ltmain" >> "$cfgfile" \
39373     || (rm -f "$cfgfile"; exit 1)
39374
39375  if test x"$xsi_shell" = xyes; then
39376  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
39377func_dirname ()\
39378{\
39379\    case ${1} in\
39380\      */*) func_dirname_result="${1%/*}${2}" ;;\
39381\      *  ) func_dirname_result="${3}" ;;\
39382\    esac\
39383} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
39384  && mv -f "$cfgfile.tmp" "$cfgfile" \
39385    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39386test 0 -eq $? || _lt_function_replace_fail=:
39387
39388
39389  sed -e '/^func_basename ()$/,/^} # func_basename /c\
39390func_basename ()\
39391{\
39392\    func_basename_result="${1##*/}"\
39393} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
39394  && mv -f "$cfgfile.tmp" "$cfgfile" \
39395    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39396test 0 -eq $? || _lt_function_replace_fail=:
39397
39398
39399  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
39400func_dirname_and_basename ()\
39401{\
39402\    case ${1} in\
39403\      */*) func_dirname_result="${1%/*}${2}" ;;\
39404\      *  ) func_dirname_result="${3}" ;;\
39405\    esac\
39406\    func_basename_result="${1##*/}"\
39407} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
39408  && mv -f "$cfgfile.tmp" "$cfgfile" \
39409    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39410test 0 -eq $? || _lt_function_replace_fail=:
39411
39412
39413  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
39414func_stripname ()\
39415{\
39416\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
39417\    # positional parameters, so assign one to ordinary parameter first.\
39418\    func_stripname_result=${3}\
39419\    func_stripname_result=${func_stripname_result#"${1}"}\
39420\    func_stripname_result=${func_stripname_result%"${2}"}\
39421} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
39422  && mv -f "$cfgfile.tmp" "$cfgfile" \
39423    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39424test 0 -eq $? || _lt_function_replace_fail=:
39425
39426
39427  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
39428func_split_long_opt ()\
39429{\
39430\    func_split_long_opt_name=${1%%=*}\
39431\    func_split_long_opt_arg=${1#*=}\
39432} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
39433  && mv -f "$cfgfile.tmp" "$cfgfile" \
39434    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39435test 0 -eq $? || _lt_function_replace_fail=:
39436
39437
39438  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
39439func_split_short_opt ()\
39440{\
39441\    func_split_short_opt_arg=${1#??}\
39442\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
39443} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
39444  && mv -f "$cfgfile.tmp" "$cfgfile" \
39445    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39446test 0 -eq $? || _lt_function_replace_fail=:
39447
39448
39449  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
39450func_lo2o ()\
39451{\
39452\    case ${1} in\
39453\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
39454\      *)    func_lo2o_result=${1} ;;\
39455\    esac\
39456} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
39457  && mv -f "$cfgfile.tmp" "$cfgfile" \
39458    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39459test 0 -eq $? || _lt_function_replace_fail=:
39460
39461
39462  sed -e '/^func_xform ()$/,/^} # func_xform /c\
39463func_xform ()\
39464{\
39465    func_xform_result=${1%.*}.lo\
39466} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
39467  && mv -f "$cfgfile.tmp" "$cfgfile" \
39468    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39469test 0 -eq $? || _lt_function_replace_fail=:
39470
39471
39472  sed -e '/^func_arith ()$/,/^} # func_arith /c\
39473func_arith ()\
39474{\
39475    func_arith_result=$(( $* ))\
39476} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
39477  && mv -f "$cfgfile.tmp" "$cfgfile" \
39478    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39479test 0 -eq $? || _lt_function_replace_fail=:
39480
39481
39482  sed -e '/^func_len ()$/,/^} # func_len /c\
39483func_len ()\
39484{\
39485    func_len_result=${#1}\
39486} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
39487  && mv -f "$cfgfile.tmp" "$cfgfile" \
39488    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39489test 0 -eq $? || _lt_function_replace_fail=:
39490
39491fi
39492
39493if test x"$lt_shell_append" = xyes; then
39494  sed -e '/^func_append ()$/,/^} # func_append /c\
39495func_append ()\
39496{\
39497    eval "${1}+=\\${2}"\
39498} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
39499  && mv -f "$cfgfile.tmp" "$cfgfile" \
39500    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39501test 0 -eq $? || _lt_function_replace_fail=:
39502
39503
39504  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
39505func_append_quoted ()\
39506{\
39507\    func_quote_for_eval "${2}"\
39508\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
39509} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
39510  && mv -f "$cfgfile.tmp" "$cfgfile" \
39511    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39512test 0 -eq $? || _lt_function_replace_fail=:
39513
39514
39515  # Save a `func_append' function call where possible by direct use of '+='
39516  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
39517    && mv -f "$cfgfile.tmp" "$cfgfile" \
39518      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39519  test 0 -eq $? || _lt_function_replace_fail=:
39520else
39521  # Save a `func_append' function call even when '+=' is not available
39522  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
39523    && mv -f "$cfgfile.tmp" "$cfgfile" \
39524      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39525  test 0 -eq $? || _lt_function_replace_fail=:
39526fi
39527
39528if test x"$_lt_function_replace_fail" = x":"; then
39529  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
39530$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
39531fi
39532
39533
39534   mv -f "$cfgfile" "$ofile" ||
39535    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
39536  chmod +x "$ofile"
39537
39538
39539    cat <<_LT_EOF >> "$ofile"
39540
39541# ### BEGIN LIBTOOL TAG CONFIG: CXX
39542
39543# The linker used to build libraries.
39544LD=$lt_LD_CXX
39545
39546# How to create reloadable object files.
39547reload_flag=$lt_reload_flag_CXX
39548reload_cmds=$lt_reload_cmds_CXX
39549
39550# Commands used to build an old-style archive.
39551old_archive_cmds=$lt_old_archive_cmds_CXX
39552
39553# A language specific compiler.
39554CC=$lt_compiler_CXX
39555
39556# Is the compiler the GNU compiler?
39557with_gcc=$GCC_CXX
39558
39559# Compiler flag to turn off builtin functions.
39560no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
39561
39562# Additional compiler flags for building library objects.
39563pic_flag=$lt_lt_prog_compiler_pic_CXX
39564
39565# How to pass a linker flag through the compiler.
39566wl=$lt_lt_prog_compiler_wl_CXX
39567
39568# Compiler flag to prevent dynamic linking.
39569link_static_flag=$lt_lt_prog_compiler_static_CXX
39570
39571# Does compiler simultaneously support -c and -o options?
39572compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
39573
39574# Whether or not to add -lc for building shared libraries.
39575build_libtool_need_lc=$archive_cmds_need_lc_CXX
39576
39577# Whether or not to disallow shared libs when runtime libs are static.
39578allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
39579
39580# Compiler flag to allow reflexive dlopens.
39581export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
39582
39583# Compiler flag to generate shared objects directly from archives.
39584whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
39585
39586# Whether the compiler copes with passing no objects directly.
39587compiler_needs_object=$lt_compiler_needs_object_CXX
39588
39589# Create an old-style archive from a shared archive.
39590old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
39591
39592# Create a temporary old-style archive to link instead of a shared archive.
39593old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
39594
39595# Commands used to build a shared archive.
39596archive_cmds=$lt_archive_cmds_CXX
39597archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
39598
39599# Commands used to build a loadable module if different from building
39600# a shared archive.
39601module_cmds=$lt_module_cmds_CXX
39602module_expsym_cmds=$lt_module_expsym_cmds_CXX
39603
39604# Whether we are building with GNU ld or not.
39605with_gnu_ld=$lt_with_gnu_ld_CXX
39606
39607# Flag that allows shared libraries with undefined symbols to be built.
39608allow_undefined_flag=$lt_allow_undefined_flag_CXX
39609
39610# Flag that enforces no undefined symbols.
39611no_undefined_flag=$lt_no_undefined_flag_CXX
39612
39613# Flag to hardcode \$libdir into a binary during linking.
39614# This must work even if \$libdir does not exist
39615hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
39616
39617# Whether we need a single "-rpath" flag with a separated argument.
39618hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
39619
39620# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39621# DIR into the resulting binary.
39622hardcode_direct=$hardcode_direct_CXX
39623
39624# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39625# DIR into the resulting binary and the resulting library dependency is
39626# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39627# library is relocated.
39628hardcode_direct_absolute=$hardcode_direct_absolute_CXX
39629
39630# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39631# into the resulting binary.
39632hardcode_minus_L=$hardcode_minus_L_CXX
39633
39634# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39635# into the resulting binary.
39636hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
39637
39638# Set to "yes" if building a shared library automatically hardcodes DIR
39639# into the library and all subsequent libraries and executables linked
39640# against it.
39641hardcode_automatic=$hardcode_automatic_CXX
39642
39643# Set to yes if linker adds runtime paths of dependent libraries
39644# to runtime path list.
39645inherit_rpath=$inherit_rpath_CXX
39646
39647# Whether libtool must link a program against all its dependency libraries.
39648link_all_deplibs=$link_all_deplibs_CXX
39649
39650# Set to "yes" if exported symbols are required.
39651always_export_symbols=$always_export_symbols_CXX
39652
39653# The commands to list exported symbols.
39654export_symbols_cmds=$lt_export_symbols_cmds_CXX
39655
39656# Symbols that should not be listed in the preloaded symbols.
39657exclude_expsyms=$lt_exclude_expsyms_CXX
39658
39659# Symbols that must always be exported.
39660include_expsyms=$lt_include_expsyms_CXX
39661
39662# Commands necessary for linking programs (against libraries) with templates.
39663prelink_cmds=$lt_prelink_cmds_CXX
39664
39665# Commands necessary for finishing linking programs.
39666postlink_cmds=$lt_postlink_cmds_CXX
39667
39668# Specify filename containing input files.
39669file_list_spec=$lt_file_list_spec_CXX
39670
39671# How to hardcode a shared library path into an executable.
39672hardcode_action=$hardcode_action_CXX
39673
39674# The directories searched by this compiler when creating a shared library.
39675compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
39676
39677# Dependencies to place before and after the objects being linked to
39678# create a shared library.
39679predep_objects=$lt_predep_objects_CXX
39680postdep_objects=$lt_postdep_objects_CXX
39681predeps=$lt_predeps_CXX
39682postdeps=$lt_postdeps_CXX
39683
39684# The library search path used internally by the compiler when linking
39685# a shared library.
39686compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
39687
39688# ### END LIBTOOL TAG CONFIG: CXX
39689_LT_EOF
39690
39691 ;;
39692
39693  esac
39694done # for ac_tag
39695
39696
39697as_fn_exit 0
39698_ACEOF
39699ac_clean_files=$ac_clean_files_save
39700
39701test $ac_write_fail = 0 ||
39702  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
39703
39704
39705# configure is writing to config.log, and then calls config.status.
39706# config.status does its own redirection, appending to config.log.
39707# Unfortunately, on DOS this fails, as config.log is still kept open
39708# by configure, so config.status won't be able to write to it; its
39709# output is simply discarded.  So we exec the FD to /dev/null,
39710# effectively closing config.log, so it can be properly (re)opened and
39711# appended to by config.status.  When coming back to configure, we
39712# need to make the FD available again.
39713if test "$no_create" != yes; then
39714  ac_cs_success=:
39715  ac_config_status_args=
39716  test "$silent" = yes &&
39717    ac_config_status_args="$ac_config_status_args --quiet"
39718  exec 5>/dev/null
39719  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39720  exec 5>>config.log
39721  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39722  # would make configure fail if this is the last instruction.
39723  $ac_cs_success || as_fn_exit 1
39724fi
39725if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
39726  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
39727$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
39728fi
39729
39730
39731echo "---"
39732echo "Configuration summary for $PACKAGE_NAME version $VERSION"
39733echo ""
39734echo "   * Installation prefix:       $prefix"
39735echo "   * System type:               $host_vendor-$host_os"
39736echo "   * Host CPU:                  $host_cpu"
39737echo "   * C Compiler:                $CC_VERSION"
39738echo "   * C Flags:                   $CFLAGS"
39739echo "   * C++ Compiler:              $CXX_VERSION"
39740echo "   * C++ Flags:                 $CXXFLAGS"
39741echo "   * CPP Flags:                 $CPPFLAGS"
39742echo "   * LIBS:                      $LIBS"
39743echo "   * LDFLAGS Flags:             $LDFLAGS"
39744echo "   * Assertions enabled:        $ax_enable_assert"
39745echo "   * Debug enabled:             $ax_enable_debug"
39746echo "   * Warnings as failure:       $ac_cv_warnings_as_errors"
39747echo "   * Building with libsqlite3   $WANT_SQLITE3"
39748echo "   * Building with libdrizzle   $ac_enable_libdrizzle"
39749echo "   * Building with libmemcached $ax_enable_libmemcached"
39750echo "   * Building with libpq        $ac_cv_libpq"
39751echo "   * Building with tokyocabinet $ac_enable_libtokyocabinet"
39752echo "   * Building with libmysql     $found_mysql"
39753echo "   * make -j:                   $enable_jobserver"
39754echo "   * VCS checkout:              $ac_cv_vcs_checkout"
39755echo ""
39756echo "---"
39757
39758case "$host_os" in
39759  *freebsd*)
39760    echo "*****"
39761    echo "*"
39762    echo "*  NOTE: You are on FreeBSD. BSD 'make' will not work."
39763    echo "*"
39764    echo "*   use 'gmake' To build gearmand"
39765    echo "*"
39766    echo "*****"
39767  ;;
39768esac
39769
39770