1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for thrift 0.14.0.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    PATH=/empty FPATH=/empty; export PATH FPATH
205    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='thrift'
589PACKAGE_TARNAME='thrift'
590PACKAGE_VERSION='0.14.0'
591PACKAGE_STRING='thrift 0.14.0'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595# Factoring default headers for most tests.
596ac_includes_default="\
597#include <stdio.h>
598#ifdef HAVE_SYS_TYPES_H
599# include <sys/types.h>
600#endif
601#ifdef HAVE_SYS_STAT_H
602# include <sys/stat.h>
603#endif
604#ifdef STDC_HEADERS
605# include <stdlib.h>
606# include <stddef.h>
607#else
608# ifdef HAVE_STDLIB_H
609#  include <stdlib.h>
610# endif
611#endif
612#ifdef HAVE_STRING_H
613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614#  include <memory.h>
615# endif
616# include <string.h>
617#endif
618#ifdef HAVE_STRINGS_H
619# include <strings.h>
620#endif
621#ifdef HAVE_INTTYPES_H
622# include <inttypes.h>
623#endif
624#ifdef HAVE_STDINT_H
625# include <stdint.h>
626#endif
627#ifdef HAVE_UNISTD_H
628# include <unistd.h>
629#endif"
630
631enable_option_checking=no
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635MAYBE_CL
636MAYBE_NETSTD
637MAYBE_SWIFT
638MAYBE_RS
639MAYBE_LUA
640MAYBE_ERLANG
641MAYBE_NODETS
642MAYBE_NODEJS
643MAYBE_GO
644MAYBE_DART
645MAYBE_PHP
646MAYBE_PERL
647MAYBE_HASKELL
648MAYBE_RUBY
649MAYBE_PY3
650MAYBE_PYTHON
651MAYBE_JAVA
652MAYBE_D
653MAYBE_C_GLIB
654MAYBE_CPP
655MAYBE_AS3
656GCOV_LDFLAGS
657GCOV_CXXFLAGS
658GCOV_CFLAGS
659ENABLE_COVERAGE
660LIBOBJS
661ALLOCA
662MINGW_FALSE
663MINGW_TRUE
664WITH_TUTORIAL_FALSE
665WITH_TUTORIAL_TRUE
666WITH_TESTS_FALSE
667WITH_TESTS_TRUE
668WITH_D_SSL_TESTS_FALSE
669WITH_D_SSL_TESTS_TRUE
670HAVE_DEIMOS_OPENSSL_FALSE
671HAVE_DEIMOS_OPENSSL_TRUE
672WITH_D_EVENT_TESTS_FALSE
673WITH_D_EVENT_TESTS_TRUE
674HAVE_DEIMOS_EVENT2_FALSE
675HAVE_DEIMOS_EVENT2_TRUE
676DMD_OF_DIRSEP
677DMD_OPTLINK_FALSE
678DMD_OPTLINK_TRUE
679WITH_D_FALSE
680WITH_D_TRUE
681D_SSL_LIB_NAME
682D_EVENT_LIB_NAME
683D_LIB_NAME
684DMD
685WITH_DOTNET_FALSE
686WITH_DOTNET_TRUE
687DOTNETCORE_VERSION
688DOTNETCORE
689WITH_HAXE_FALSE
690WITH_HAXE_TRUE
691HAXE_VERSION
692HAXE
693WITH_CL_FALSE
694WITH_CL_TRUE
695SBCL
696WITH_RS_FALSE
697WITH_RS_TRUE
698rustc_version
699RUSTC
700CARGO
701WITH_SWIFT_FALSE
702WITH_SWIFT_TRUE
703SWIFT
704GOVERSION_LT_17_FALSE
705GOVERSION_LT_17_TRUE
706WITH_GO_FALSE
707WITH_GO_TRUE
708golang_version
709GO
710WITH_HASKELL_FALSE
711WITH_HASKELL_TRUE
712RUNHASKELL
713CABAL
714HAVE_BUNDLER_FALSE
715HAVE_BUNDLER_TRUE
716WITH_RUBY_FALSE
717WITH_RUBY_TRUE
718BUNDLER
719RUBY
720WITH_DART_FALSE
721WITH_DART_TRUE
722DARTPUB
723DART
724WITH_PHP_EXTENSION_FALSE
725WITH_PHP_EXTENSION_TRUE
726subdirs
727PHP_CONFIG
728WITH_PHP_FALSE
729WITH_PHP_TRUE
730PHP
731WITH_PERL_FALSE
732WITH_PERL_TRUE
733PERL
734WITH_PY3_FALSE
735WITH_PY3_TRUE
736PYTHON3
737WITH_TWISTED_TEST_FALSE
738WITH_TWISTED_TEST_TRUE
739WITH_PYTHON_FALSE
740WITH_PYTHON_TRUE
741TRIAL
742pkgpyexecdir
743pyexecdir
744pkgpythondir
745pythondir
746PYTHON_PLATFORM
747PYTHON_EXEC_PREFIX
748PYTHON_PREFIX
749PYTHON_VERSION
750PYTHON
751WITH_LUA_FALSE
752WITH_LUA_TRUE
753LUA_LIB
754LUA_INCLUDE
755pkgluaexecdir
756luaexecdir
757pkgluadir
758luadir
759LUA_EXEC_PREFIX
760LUA_PREFIX
761LUA_PLATFORM
762LUA_SHORT_VERSION
763LUA_VERSION
764LUA
765WITH_NODETS_FALSE
766WITH_NODETS_TRUE
767NODETS
768HAVE_NPM_FALSE
769HAVE_NPM_TRUE
770WITH_NODEJS_FALSE
771WITH_NODEJS_TRUE
772NPM
773NODEJS
774ERLANG_OTP16_FALSE
775ERLANG_OTP16_TRUE
776WITH_ERLANG_FALSE
777WITH_ERLANG_TRUE
778ERLANG_INSTALL_LIB_DIR_thrift
779ERLANG_INSTALL_LIB_DIR
780ERLANG_LIB_DIR
781REBAR
782ERLCFLAGS
783ERLC
784ERL
785WITH_JAVA_FALSE
786WITH_JAVA_TRUE
787GRADLE_OPTS
788ANT_FLAGS
789CLASSPATH
790ANT
791OPENSSL_LDFLAGS
792OPENSSL_LIBS
793OPENSSL_INCLUDES
794WITH_C_GLIB_FALSE
795WITH_C_GLIB_TRUE
796GSETTINGS
797GOBJECT_LIBS
798GOBJECT_CFLAGS
799GLIB_LIBS
800GLIB_CFLAGS
801QT5_REDUCE_RELOCATIONS_FALSE
802QT5_REDUCE_RELOCATIONS_TRUE
803AMX_HAVE_QT5_FALSE
804AMX_HAVE_QT5_TRUE
805AMX_HAVE_ZLIB_FALSE
806AMX_HAVE_ZLIB_TRUE
807AMX_HAVE_LIBEVENT_FALSE
808AMX_HAVE_LIBEVENT_TRUE
809WITH_CPP_FALSE
810WITH_CPP_TRUE
811QT5_MOC
812QT5_LIBS
813QT5_CFLAGS
814ZLIB_LIBS
815ZLIB_LDFLAGS
816ZLIB_CPPFLAGS
817LIBEVENT_LIBS
818LIBEVENT_LDFLAGS
819LIBEVENT_CPPFLAGS
820BOOST_THREAD_LDADD
821BOOST_TEST_LDADD
822BOOST_SYSTEM_LDADD
823BOOST_FILESYSTEM_LDADD
824BOOST_CHRONO_LDADD
825BOOST_LIB_DIR
826BOOST_LDFLAGS
827BOOST_CPPFLAGS
828WITH_AS3_FALSE
829WITH_AS3_TRUE
830FLEX_COMPC
831CPPSTYLE_CMD
832HAVE_CXX11
833LEXLIB
834LEX_OUTPUT_ROOT
835LEX
836YFLAGS
837YACC
838BISON_USE_PARSER_H_EXTENSION_FALSE
839BISON_USE_PARSER_H_EXTENSION_TRUE
840BISON
841have_prog_bison
842CXXCPP
843LT_SYS_LIBRARY_PATH
844OTOOL64
845OTOOL
846LIPO
847NMEDIT
848DSYMUTIL
849MANIFEST_TOOL
850RANLIB
851ac_ct_AR
852AR
853DLLTOOL
854OBJDUMP
855LN_S
856NM
857ac_ct_DUMPBIN
858DUMPBIN
859LD
860FGREP
861EGREP
862GREP
863SED
864host_os
865host_vendor
866host_cpu
867host
868build_os
869build_vendor
870build_cpu
871build
872LIBTOOL
873am__fastdepCXX_FALSE
874am__fastdepCXX_TRUE
875CXXDEPMODE
876ac_ct_CXX
877CXXFLAGS
878CXX
879CPP
880am__fastdepCC_FALSE
881am__fastdepCC_TRUE
882CCDEPMODE
883am__nodep
884AMDEPBACKSLASH
885AMDEP_FALSE
886AMDEP_TRUE
887am__quote
888am__include
889DEPDIR
890OBJEXT
891EXEEXT
892ac_ct_CC
893CPPFLAGS
894LDFLAGS
895CFLAGS
896CC
897THRIFT
898DMD_OPENSSL_FLAGS
899DMD_LIBEVENT_FLAGS
900D_IMPORT_PREFIX
901CABAL_CONFIGURE_FLAGS
902PERL_PREFIX
903INSTALLDIRS
904PHP_CONFIG_PREFIX
905PHP_PREFIX
906RUBY_PREFIX
907JAVA_PREFIX
908PY_PREFIX
909PKG_CONFIG_LIBDIR
910PKG_CONFIG_PATH
911PKG_CONFIG
912AM_BACKSLASH
913AM_DEFAULT_VERBOSITY
914AM_DEFAULT_V
915AM_V
916am__untar
917am__tar
918AMTAR
919am__leading_dot
920SET_MAKE
921AWK
922mkdir_p
923MKDIR_P
924INSTALL_STRIP_PROGRAM
925STRIP
926install_sh
927MAKEINFO
928AUTOHEADER
929AUTOMAKE
930AUTOCONF
931ACLOCAL
932VERSION
933PACKAGE
934CYGPATH_W
935am__isrc
936INSTALL_DATA
937INSTALL_SCRIPT
938INSTALL_PROGRAM
939target_alias
940host_alias
941build_alias
942LIBS
943ECHO_T
944ECHO_N
945ECHO_C
946DEFS
947mandir
948localedir
949libdir
950psdir
951pdfdir
952dvidir
953htmldir
954infodir
955docdir
956oldincludedir
957includedir
958runstatedir
959localstatedir
960sharedstatedir
961sysconfdir
962datadir
963datarootdir
964libexecdir
965sbindir
966bindir
967program_transform_name
968prefix
969exec_prefix
970PACKAGE_URL
971PACKAGE_BUGREPORT
972PACKAGE_STRING
973PACKAGE_VERSION
974PACKAGE_TARNAME
975PACKAGE_NAME
976PATH_SEPARATOR
977SHELL'
978ac_subst_files=''
979ac_user_opts='
980enable_option_checking
981enable_silent_rules
982enable_dependency_tracking
983enable_shared
984enable_static
985with_pic
986enable_fast_install
987with_aix_soname
988with_gnu_ld
989with_sysroot
990enable_libtool_lock
991enable_libs
992with_as3
993with_cpp
994with_boost
995with_boost_libdir
996with_libevent
997with_zlib
998with_qt5
999with_c_glib
1000with_openssl
1001with_java
1002with_erlang
1003with_nodejs
1004with_nodets
1005with_lua
1006with_python
1007with_py3
1008with_perl
1009with_php
1010with_php_extension
1011with_dart
1012with_ruby
1013with_haskell
1014with_go
1015with_swift
1016with_rs
1017with_cl
1018with_haxe
1019with_netstd
1020with_d
1021enable_tests
1022enable_tutorial
1023enable_coverage
1024'
1025      ac_precious_vars='build_alias
1026host_alias
1027target_alias
1028PKG_CONFIG
1029PKG_CONFIG_PATH
1030PKG_CONFIG_LIBDIR
1031PY_PREFIX
1032JAVA_PREFIX
1033RUBY_PREFIX
1034PHP_PREFIX
1035PHP_CONFIG_PREFIX
1036INSTALLDIRS
1037PERL_PREFIX
1038CABAL_CONFIGURE_FLAGS
1039D_IMPORT_PREFIX
1040DMD_LIBEVENT_FLAGS
1041DMD_OPENSSL_FLAGS
1042THRIFT
1043CC
1044CFLAGS
1045LDFLAGS
1046LIBS
1047CPPFLAGS
1048CPP
1049CXX
1050CXXFLAGS
1051CCC
1052LT_SYS_LIBRARY_PATH
1053CXXCPP
1054YACC
1055YFLAGS
1056QT5_CFLAGS
1057QT5_LIBS
1058GLIB_CFLAGS
1059GLIB_LIBS
1060GOBJECT_CFLAGS
1061GOBJECT_LIBS
1062ERL
1063ERLC
1064ERLCFLAGS
1065ERLANG_INSTALL_LIB_DIR
1066ERLANG_INSTALL_LIB_DIR_thrift
1067LUA
1068LUA_INCLUDE
1069LUA_LIB
1070PYTHON'
1071ac_subdirs_all='lib/php/src/ext/thrift_protocol'
1072
1073# Initialize some variables set by options.
1074ac_init_help=
1075ac_init_version=false
1076ac_unrecognized_opts=
1077ac_unrecognized_sep=
1078# The variables have the same names as the options, with
1079# dashes changed to underlines.
1080cache_file=/dev/null
1081exec_prefix=NONE
1082no_create=
1083no_recursion=
1084prefix=NONE
1085program_prefix=NONE
1086program_suffix=NONE
1087program_transform_name=s,x,x,
1088silent=
1089site=
1090srcdir=
1091verbose=
1092x_includes=NONE
1093x_libraries=NONE
1094
1095# Installation directory options.
1096# These are left unexpanded so users can "make install exec_prefix=/foo"
1097# and all the variables that are supposed to be based on exec_prefix
1098# by default will actually change.
1099# Use braces instead of parens because sh, perl, etc. also accept them.
1100# (The list follows the same order as the GNU Coding Standards.)
1101bindir='${exec_prefix}/bin'
1102sbindir='${exec_prefix}/sbin'
1103libexecdir='${exec_prefix}/libexec'
1104datarootdir='${prefix}/share'
1105datadir='${datarootdir}'
1106sysconfdir='${prefix}/etc'
1107sharedstatedir='${prefix}/com'
1108localstatedir='${prefix}/var'
1109runstatedir='${localstatedir}/run'
1110includedir='${prefix}/include'
1111oldincludedir='/usr/include'
1112docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1113infodir='${datarootdir}/info'
1114htmldir='${docdir}'
1115dvidir='${docdir}'
1116pdfdir='${docdir}'
1117psdir='${docdir}'
1118libdir='${exec_prefix}/lib'
1119localedir='${datarootdir}/locale'
1120mandir='${datarootdir}/man'
1121
1122ac_prev=
1123ac_dashdash=
1124for ac_option
1125do
1126  # If the previous option needs an argument, assign it.
1127  if test -n "$ac_prev"; then
1128    eval $ac_prev=\$ac_option
1129    ac_prev=
1130    continue
1131  fi
1132
1133  case $ac_option in
1134  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1135  *=)   ac_optarg= ;;
1136  *)    ac_optarg=yes ;;
1137  esac
1138
1139  # Accept the important Cygnus configure options, so we can diagnose typos.
1140
1141  case $ac_dashdash$ac_option in
1142  --)
1143    ac_dashdash=yes ;;
1144
1145  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1146    ac_prev=bindir ;;
1147  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1148    bindir=$ac_optarg ;;
1149
1150  -build | --build | --buil | --bui | --bu)
1151    ac_prev=build_alias ;;
1152  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1153    build_alias=$ac_optarg ;;
1154
1155  -cache-file | --cache-file | --cache-fil | --cache-fi \
1156  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1157    ac_prev=cache_file ;;
1158  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1159  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1160    cache_file=$ac_optarg ;;
1161
1162  --config-cache | -C)
1163    cache_file=config.cache ;;
1164
1165  -datadir | --datadir | --datadi | --datad)
1166    ac_prev=datadir ;;
1167  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1168    datadir=$ac_optarg ;;
1169
1170  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1171  | --dataroo | --dataro | --datar)
1172    ac_prev=datarootdir ;;
1173  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1174  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1175    datarootdir=$ac_optarg ;;
1176
1177  -disable-* | --disable-*)
1178    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1179    # Reject names that are not valid shell variable names.
1180    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181      as_fn_error $? "invalid feature name: $ac_useropt"
1182    ac_useropt_orig=$ac_useropt
1183    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184    case $ac_user_opts in
1185      *"
1186"enable_$ac_useropt"
1187"*) ;;
1188      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1189	 ac_unrecognized_sep=', ';;
1190    esac
1191    eval enable_$ac_useropt=no ;;
1192
1193  -docdir | --docdir | --docdi | --doc | --do)
1194    ac_prev=docdir ;;
1195  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1196    docdir=$ac_optarg ;;
1197
1198  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1199    ac_prev=dvidir ;;
1200  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1201    dvidir=$ac_optarg ;;
1202
1203  -enable-* | --enable-*)
1204    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1205    # Reject names that are not valid shell variable names.
1206    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207      as_fn_error $? "invalid feature name: $ac_useropt"
1208    ac_useropt_orig=$ac_useropt
1209    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210    case $ac_user_opts in
1211      *"
1212"enable_$ac_useropt"
1213"*) ;;
1214      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1215	 ac_unrecognized_sep=', ';;
1216    esac
1217    eval enable_$ac_useropt=\$ac_optarg ;;
1218
1219  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1220  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1221  | --exec | --exe | --ex)
1222    ac_prev=exec_prefix ;;
1223  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1224  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1225  | --exec=* | --exe=* | --ex=*)
1226    exec_prefix=$ac_optarg ;;
1227
1228  -gas | --gas | --ga | --g)
1229    # Obsolete; use --with-gas.
1230    with_gas=yes ;;
1231
1232  -help | --help | --hel | --he | -h)
1233    ac_init_help=long ;;
1234  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1235    ac_init_help=recursive ;;
1236  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1237    ac_init_help=short ;;
1238
1239  -host | --host | --hos | --ho)
1240    ac_prev=host_alias ;;
1241  -host=* | --host=* | --hos=* | --ho=*)
1242    host_alias=$ac_optarg ;;
1243
1244  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1245    ac_prev=htmldir ;;
1246  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1247  | --ht=*)
1248    htmldir=$ac_optarg ;;
1249
1250  -includedir | --includedir | --includedi | --included | --include \
1251  | --includ | --inclu | --incl | --inc)
1252    ac_prev=includedir ;;
1253  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1254  | --includ=* | --inclu=* | --incl=* | --inc=*)
1255    includedir=$ac_optarg ;;
1256
1257  -infodir | --infodir | --infodi | --infod | --info | --inf)
1258    ac_prev=infodir ;;
1259  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1260    infodir=$ac_optarg ;;
1261
1262  -libdir | --libdir | --libdi | --libd)
1263    ac_prev=libdir ;;
1264  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1265    libdir=$ac_optarg ;;
1266
1267  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1268  | --libexe | --libex | --libe)
1269    ac_prev=libexecdir ;;
1270  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1271  | --libexe=* | --libex=* | --libe=*)
1272    libexecdir=$ac_optarg ;;
1273
1274  -localedir | --localedir | --localedi | --localed | --locale)
1275    ac_prev=localedir ;;
1276  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1277    localedir=$ac_optarg ;;
1278
1279  -localstatedir | --localstatedir | --localstatedi | --localstated \
1280  | --localstate | --localstat | --localsta | --localst | --locals)
1281    ac_prev=localstatedir ;;
1282  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1283  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1284    localstatedir=$ac_optarg ;;
1285
1286  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1287    ac_prev=mandir ;;
1288  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1289    mandir=$ac_optarg ;;
1290
1291  -nfp | --nfp | --nf)
1292    # Obsolete; use --without-fp.
1293    with_fp=no ;;
1294
1295  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1296  | --no-cr | --no-c | -n)
1297    no_create=yes ;;
1298
1299  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1300  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1301    no_recursion=yes ;;
1302
1303  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1304  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1305  | --oldin | --oldi | --old | --ol | --o)
1306    ac_prev=oldincludedir ;;
1307  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1308  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1309  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1310    oldincludedir=$ac_optarg ;;
1311
1312  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1313    ac_prev=prefix ;;
1314  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1315    prefix=$ac_optarg ;;
1316
1317  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1318  | --program-pre | --program-pr | --program-p)
1319    ac_prev=program_prefix ;;
1320  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1321  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1322    program_prefix=$ac_optarg ;;
1323
1324  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1325  | --program-suf | --program-su | --program-s)
1326    ac_prev=program_suffix ;;
1327  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1328  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1329    program_suffix=$ac_optarg ;;
1330
1331  -program-transform-name | --program-transform-name \
1332  | --program-transform-nam | --program-transform-na \
1333  | --program-transform-n | --program-transform- \
1334  | --program-transform | --program-transfor \
1335  | --program-transfo | --program-transf \
1336  | --program-trans | --program-tran \
1337  | --progr-tra | --program-tr | --program-t)
1338    ac_prev=program_transform_name ;;
1339  -program-transform-name=* | --program-transform-name=* \
1340  | --program-transform-nam=* | --program-transform-na=* \
1341  | --program-transform-n=* | --program-transform-=* \
1342  | --program-transform=* | --program-transfor=* \
1343  | --program-transfo=* | --program-transf=* \
1344  | --program-trans=* | --program-tran=* \
1345  | --progr-tra=* | --program-tr=* | --program-t=*)
1346    program_transform_name=$ac_optarg ;;
1347
1348  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1349    ac_prev=pdfdir ;;
1350  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1351    pdfdir=$ac_optarg ;;
1352
1353  -psdir | --psdir | --psdi | --psd | --ps)
1354    ac_prev=psdir ;;
1355  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1356    psdir=$ac_optarg ;;
1357
1358  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1359  | -silent | --silent | --silen | --sile | --sil)
1360    silent=yes ;;
1361
1362  -runstatedir | --runstatedir | --runstatedi | --runstated \
1363  | --runstate | --runstat | --runsta | --runst | --runs \
1364  | --run | --ru | --r)
1365    ac_prev=runstatedir ;;
1366  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1367  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1368  | --run=* | --ru=* | --r=*)
1369    runstatedir=$ac_optarg ;;
1370
1371  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1372    ac_prev=sbindir ;;
1373  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1374  | --sbi=* | --sb=*)
1375    sbindir=$ac_optarg ;;
1376
1377  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1378  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1379  | --sharedst | --shareds | --shared | --share | --shar \
1380  | --sha | --sh)
1381    ac_prev=sharedstatedir ;;
1382  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1383  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1384  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1385  | --sha=* | --sh=*)
1386    sharedstatedir=$ac_optarg ;;
1387
1388  -site | --site | --sit)
1389    ac_prev=site ;;
1390  -site=* | --site=* | --sit=*)
1391    site=$ac_optarg ;;
1392
1393  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1394    ac_prev=srcdir ;;
1395  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1396    srcdir=$ac_optarg ;;
1397
1398  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1399  | --syscon | --sysco | --sysc | --sys | --sy)
1400    ac_prev=sysconfdir ;;
1401  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1402  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1403    sysconfdir=$ac_optarg ;;
1404
1405  -target | --target | --targe | --targ | --tar | --ta | --t)
1406    ac_prev=target_alias ;;
1407  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1408    target_alias=$ac_optarg ;;
1409
1410  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1411    verbose=yes ;;
1412
1413  -version | --version | --versio | --versi | --vers | -V)
1414    ac_init_version=: ;;
1415
1416  -with-* | --with-*)
1417    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1418    # Reject names that are not valid shell variable names.
1419    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1420      as_fn_error $? "invalid package name: $ac_useropt"
1421    ac_useropt_orig=$ac_useropt
1422    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1423    case $ac_user_opts in
1424      *"
1425"with_$ac_useropt"
1426"*) ;;
1427      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1428	 ac_unrecognized_sep=', ';;
1429    esac
1430    eval with_$ac_useropt=\$ac_optarg ;;
1431
1432  -without-* | --without-*)
1433    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1434    # Reject names that are not valid shell variable names.
1435    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1436      as_fn_error $? "invalid package name: $ac_useropt"
1437    ac_useropt_orig=$ac_useropt
1438    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1439    case $ac_user_opts in
1440      *"
1441"with_$ac_useropt"
1442"*) ;;
1443      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1444	 ac_unrecognized_sep=', ';;
1445    esac
1446    eval with_$ac_useropt=no ;;
1447
1448  --x)
1449    # Obsolete; use --with-x.
1450    with_x=yes ;;
1451
1452  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1453  | --x-incl | --x-inc | --x-in | --x-i)
1454    ac_prev=x_includes ;;
1455  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1456  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1457    x_includes=$ac_optarg ;;
1458
1459  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1460  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1461    ac_prev=x_libraries ;;
1462  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1463  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1464    x_libraries=$ac_optarg ;;
1465
1466  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1467Try \`$0 --help' for more information"
1468    ;;
1469
1470  *=*)
1471    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1472    # Reject names that are not valid shell variable names.
1473    case $ac_envvar in #(
1474      '' | [0-9]* | *[!_$as_cr_alnum]* )
1475      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1476    esac
1477    eval $ac_envvar=\$ac_optarg
1478    export $ac_envvar ;;
1479
1480  *)
1481    # FIXME: should be removed in autoconf 3.0.
1482    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1483    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1484      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1485    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1486    ;;
1487
1488  esac
1489done
1490
1491if test -n "$ac_prev"; then
1492  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1493  as_fn_error $? "missing argument to $ac_option"
1494fi
1495
1496if test -n "$ac_unrecognized_opts"; then
1497  case $enable_option_checking in
1498    no) ;;
1499    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1500    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1501  esac
1502fi
1503
1504# Check all directory arguments for consistency.
1505for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1506		datadir sysconfdir sharedstatedir localstatedir includedir \
1507		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1508		libdir localedir mandir runstatedir
1509do
1510  eval ac_val=\$$ac_var
1511  # Remove trailing slashes.
1512  case $ac_val in
1513    */ )
1514      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1515      eval $ac_var=\$ac_val;;
1516  esac
1517  # Be sure to have absolute directory names.
1518  case $ac_val in
1519    [\\/$]* | ?:[\\/]* )  continue;;
1520    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1521  esac
1522  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1523done
1524
1525# There might be people who depend on the old broken behavior: `$host'
1526# used to hold the argument of --host etc.
1527# FIXME: To remove some day.
1528build=$build_alias
1529host=$host_alias
1530target=$target_alias
1531
1532# FIXME: To remove some day.
1533if test "x$host_alias" != x; then
1534  if test "x$build_alias" = x; then
1535    cross_compiling=maybe
1536  elif test "x$build_alias" != "x$host_alias"; then
1537    cross_compiling=yes
1538  fi
1539fi
1540
1541ac_tool_prefix=
1542test -n "$host_alias" && ac_tool_prefix=$host_alias-
1543
1544test "$silent" = yes && exec 6>/dev/null
1545
1546
1547ac_pwd=`pwd` && test -n "$ac_pwd" &&
1548ac_ls_di=`ls -di .` &&
1549ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1550  as_fn_error $? "working directory cannot be determined"
1551test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1552  as_fn_error $? "pwd does not report name of working directory"
1553
1554
1555# Find the source files, if location was not specified.
1556if test -z "$srcdir"; then
1557  ac_srcdir_defaulted=yes
1558  # Try the directory containing this script, then the parent directory.
1559  ac_confdir=`$as_dirname -- "$as_myself" ||
1560$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1561	 X"$as_myself" : 'X\(//\)[^/]' \| \
1562	 X"$as_myself" : 'X\(//\)$' \| \
1563	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1564$as_echo X"$as_myself" |
1565    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1566	    s//\1/
1567	    q
1568	  }
1569	  /^X\(\/\/\)[^/].*/{
1570	    s//\1/
1571	    q
1572	  }
1573	  /^X\(\/\/\)$/{
1574	    s//\1/
1575	    q
1576	  }
1577	  /^X\(\/\).*/{
1578	    s//\1/
1579	    q
1580	  }
1581	  s/.*/./; q'`
1582  srcdir=$ac_confdir
1583  if test ! -r "$srcdir/$ac_unique_file"; then
1584    srcdir=..
1585  fi
1586else
1587  ac_srcdir_defaulted=no
1588fi
1589if test ! -r "$srcdir/$ac_unique_file"; then
1590  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1591  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1592fi
1593ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1594ac_abs_confdir=`(
1595	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1596	pwd)`
1597# When building in place, set srcdir=.
1598if test "$ac_abs_confdir" = "$ac_pwd"; then
1599  srcdir=.
1600fi
1601# Remove unnecessary trailing slashes from srcdir.
1602# Double slashes in file names in object file debugging info
1603# mess up M-x gdb in Emacs.
1604case $srcdir in
1605*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1606esac
1607for ac_var in $ac_precious_vars; do
1608  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1609  eval ac_env_${ac_var}_value=\$${ac_var}
1610  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1611  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1612done
1613
1614#
1615# Report the --help message.
1616#
1617if test "$ac_init_help" = "long"; then
1618  # Omit some internal or obsolete options to make the list less imposing.
1619  # This message is too long to be a string in the A/UX 3.1 sh.
1620  cat <<_ACEOF
1621\`configure' configures thrift 0.14.0 to adapt to many kinds of systems.
1622
1623Usage: $0 [OPTION]... [VAR=VALUE]...
1624
1625To assign environment variables (e.g., CC, CFLAGS...), specify them as
1626VAR=VALUE.  See below for descriptions of some of the useful variables.
1627
1628Defaults for the options are specified in brackets.
1629
1630Configuration:
1631  -h, --help              display this help and exit
1632      --help=short        display options specific to this package
1633      --help=recursive    display the short help of all the included packages
1634  -V, --version           display version information and exit
1635  -q, --quiet, --silent   do not print \`checking ...' messages
1636      --cache-file=FILE   cache test results in FILE [disabled]
1637  -C, --config-cache      alias for \`--cache-file=config.cache'
1638  -n, --no-create         do not create output files
1639      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1640
1641Installation directories:
1642  --prefix=PREFIX         install architecture-independent files in PREFIX
1643                          [$ac_default_prefix]
1644  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1645                          [PREFIX]
1646
1647By default, \`make install' will install all the files in
1648\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1649an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1650for instance \`--prefix=\$HOME'.
1651
1652For better control, use the options below.
1653
1654Fine tuning of the installation directories:
1655  --bindir=DIR            user executables [EPREFIX/bin]
1656  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1657  --libexecdir=DIR        program executables [EPREFIX/libexec]
1658  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1659  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1660  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1661  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1662  --libdir=DIR            object code libraries [EPREFIX/lib]
1663  --includedir=DIR        C header files [PREFIX/include]
1664  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1665  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1666  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1667  --infodir=DIR           info documentation [DATAROOTDIR/info]
1668  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1669  --mandir=DIR            man documentation [DATAROOTDIR/man]
1670  --docdir=DIR            documentation root [DATAROOTDIR/doc/thrift]
1671  --htmldir=DIR           html documentation [DOCDIR]
1672  --dvidir=DIR            dvi documentation [DOCDIR]
1673  --pdfdir=DIR            pdf documentation [DOCDIR]
1674  --psdir=DIR             ps documentation [DOCDIR]
1675_ACEOF
1676
1677  cat <<\_ACEOF
1678
1679Program names:
1680  --program-prefix=PREFIX            prepend PREFIX to installed program names
1681  --program-suffix=SUFFIX            append SUFFIX to installed program names
1682  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1683
1684System types:
1685  --build=BUILD     configure for building on BUILD [guessed]
1686  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1687_ACEOF
1688fi
1689
1690if test -n "$ac_init_help"; then
1691  case $ac_init_help in
1692     short | recursive ) echo "Configuration of thrift 0.14.0:";;
1693   esac
1694  cat <<\_ACEOF
1695
1696Optional Features:
1697  --disable-option-checking  ignore unrecognized --enable/--with options
1698  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1699  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1700  --enable-silent-rules   less verbose build output (undo: "make V=1")
1701  --disable-silent-rules  verbose build output (undo: "make V=0")
1702  --enable-dependency-tracking
1703                          do not reject slow dependency extractors
1704  --disable-dependency-tracking
1705                          speeds up one-time build
1706  --enable-shared[=PKGS]  build shared libraries [default=yes]
1707  --enable-static[=PKGS]  build static libraries [default=yes]
1708  --enable-fast-install[=PKGS]
1709                          optimize for fast installation [default=yes]
1710  --disable-libtool-lock  avoid locking (might break parallel builds)
1711  --enable-libs           build the Apache Thrift libraries [default=yes]
1712  --enable-tests          build tests [default=yes]
1713  --enable-tutorial       build tutorial [default=yes]
1714  --enable-coverage      turn on -fprofile-arcs -ftest-coverage
1715
1716Optional Packages:
1717  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1718  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1719  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1720                          both]
1721  --with-aix-soname=aix|svr4|both
1722                          shared library versioning (aka "SONAME") variant to
1723                          provide on AIX, [default=aix].
1724  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1725  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1726                          compiler's sysroot if not specified).
1727  --with-as3              build the as3 library [default=yes]
1728  --with-cpp              build the C++ library [default=yes]
1729  --with-boost[=ARG]      use Boost library from a standard location
1730                          (ARG=yes), from the specified location (ARG=<path>),
1731                          or disable it (ARG=no) [ARG=yes]
1732  --with-boost-libdir=LIB_DIR
1733                          Force given directory for boost libraries. Note that
1734                          this will override library path detection, so use
1735                          this parameter only if default library detection
1736                          fails and you know exactly where your boost
1737                          libraries are located.
1738  --with-libevent[=DIR]   use libevent [default=yes]. Optionally specify the
1739                          root prefix dir where libevent is installed
1740  --with-zlib[=DIR]       use zlib (default is yes) - it is possible to
1741                          specify an alternate root directory for zlib
1742  --with-qt5              build the Qt5 library [default=yes]
1743  --with-c_glib           build the C (GLib) library [default=yes]
1744  --with-openssl=DIR      root of the OpenSSL directory
1745  --with-java             build the Java library [default=yes]
1746  --with-erlang           build the Erlang library [default=yes]
1747  --with-nodejs           build the Nodejs library [default=yes]
1748  --with-nodets           build the Nodets library [default=yes]
1749  --with-lua              build the Lua library [default=yes]
1750  --with-python           build the Python library [default=yes]
1751  --with-py3              build the Py3 library [default=yes]
1752  --with-perl             build the Perl library [default=yes]
1753  --with-php              build the PHP library [default=yes]
1754  --with-php_extension    build the PHP_EXTENSION library [default=yes]
1755  --with-dart             build the DART library [default=yes]
1756  --with-ruby             build the Ruby library [default=yes]
1757  --with-haskell          build the Haskell library [default=yes]
1758  --with-go               build the Go library [default=yes]
1759  --with-swift            build the Swift library [default=yes]
1760  --with-rs               build the Rust library [default=yes]
1761  --with-cl               build the Common Lisp library [default=yes]
1762  --with-haxe             build the Haxe library [default=yes]
1763  --with-netstd           build the .NET Core library [default=yes]
1764  --with-d                build the D library [default=yes]
1765
1766Some influential environment variables:
1767  PKG_CONFIG  path to pkg-config utility
1768  PKG_CONFIG_PATH
1769              directories to add to pkg-config's search path
1770  PKG_CONFIG_LIBDIR
1771              path overriding pkg-config's built-in search path
1772  PY_PREFIX   Prefix for installing Python modules. (Normal --prefix is
1773              ignored for Python because Python has different conventions.)
1774              Default = "/usr"
1775  JAVA_PREFIX Prefix for installing the Java lib jar. Default =
1776              "/usr/local/lib"
1777  RUBY_PREFIX Prefix for installing Ruby modules. (Normal --prefix is ignored
1778              for Ruby because Ruby has different conventions.) Default =
1779              none, let ruby setup decide
1780  PHP_PREFIX  Prefix for installing PHP modules. (Normal --prefix is ignored
1781              for PHP because PHP has different conventions.) Default =
1782              "/usr/lib/php"
1783  PHP_CONFIG_PREFIX
1784              Prefix for installing PHP extension module .ini file. (Normal
1785              --prefix is ignored for PHP because PHP has different
1786              conventions.) Default = "/etc/php.d"
1787  INSTALLDIRS When installing Perl modules, specifies which of the sets of
1788              installation directories to choose: perl, site or vendor.
1789              Default = "vendor"
1790  PERL_PREFIX Prefix for installing Perl modules. (Normal --prefix is ignored
1791              for Perl because Perl has different conventions.) Ignored, when
1792              INSTALLDIRS set to site or vendor. Default = "/usr/local/lib"
1793  CABAL_CONFIGURE_FLAGS
1794              Extra flags to pass to cabal: "cabal Setup.lhs configure
1795              $CABAL_CONFIGURE_FLAGS". (Typically used to set --user or force
1796              --global.)
1797  D_IMPORT_PREFIX
1798              Prefix for installing D modules. [INCLUDEDIR/d2]
1799  DMD_LIBEVENT_FLAGS
1800              DMD flags for linking libevent (auto-detected if not set).
1801  DMD_OPENSSL_FLAGS
1802              DMD flags for linking OpenSSL (auto-detected if not set).
1803  THRIFT      Path to the thrift tool (needed for cross-compilation).
1804  CC          C compiler command
1805  CFLAGS      C compiler flags
1806  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1807              nonstandard directory <lib dir>
1808  LIBS        libraries to pass to the linker, e.g. -l<library>
1809  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1810              you have headers in a nonstandard directory <include dir>
1811  CPP         C preprocessor
1812  CXX         C++ compiler command
1813  CXXFLAGS    C++ compiler flags
1814  LT_SYS_LIBRARY_PATH
1815              User-defined run-time library search path.
1816  CXXCPP      C++ preprocessor
1817  YACC        The `Yet Another Compiler Compiler' implementation to use.
1818              Defaults to the first program found out of: `bison -y', `byacc',
1819              `yacc'.
1820  YFLAGS      The list of arguments that will be passed by default to $YACC.
1821              This script will default YFLAGS to the empty string to avoid a
1822              default value of `-d' given by some make applications.
1823  QT5_CFLAGS  C compiler flags for QT5, overriding pkg-config
1824  QT5_LIBS    linker flags for QT5, overriding pkg-config
1825  GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1826  GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1827  GOBJECT_CFLAGS
1828              C compiler flags for GOBJECT, overriding pkg-config
1829  GOBJECT_LIBS
1830              linker flags for GOBJECT, overriding pkg-config
1831  ERL         Erlang/OTP interpreter command [autodetected]
1832  ERLC        Erlang/OTP compiler command [autodetected]
1833  ERLCFLAGS   Erlang/OTP compiler flags [none]
1834  ERLANG_INSTALL_LIB_DIR
1835              Erlang/OTP library installation base directory
1836              [LIBDIR/erlang/lib]
1837  ERLANG_INSTALL_LIB_DIR_thrift
1838              Erlang/OTP 'thrift' library installation subdirectory
1839              [ERLANG_INSTALL_LIB_DIR/thrift-0.14.0]
1840  LUA         The Lua interpreter, e.g. /usr/bin/lua5.1
1841  LUA_INCLUDE The Lua includes, e.g. -I/usr/include/lua5.1
1842  LUA_LIB     The Lua library, e.g. -llua5.1
1843  PYTHON      the Python interpreter
1844
1845Use these variables to override the choices made by `configure' or to help
1846it to find libraries and programs with nonstandard names/locations.
1847
1848Report bugs to the package provider.
1849_ACEOF
1850ac_status=$?
1851fi
1852
1853if test "$ac_init_help" = "recursive"; then
1854  # If there are subdirs, report their specific --help.
1855  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1856    test -d "$ac_dir" ||
1857      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1858      continue
1859    ac_builddir=.
1860
1861case "$ac_dir" in
1862.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1863*)
1864  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1865  # A ".." for each directory in $ac_dir_suffix.
1866  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1867  case $ac_top_builddir_sub in
1868  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1869  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1870  esac ;;
1871esac
1872ac_abs_top_builddir=$ac_pwd
1873ac_abs_builddir=$ac_pwd$ac_dir_suffix
1874# for backward compatibility:
1875ac_top_builddir=$ac_top_build_prefix
1876
1877case $srcdir in
1878  .)  # We are building in place.
1879    ac_srcdir=.
1880    ac_top_srcdir=$ac_top_builddir_sub
1881    ac_abs_top_srcdir=$ac_pwd ;;
1882  [\\/]* | ?:[\\/]* )  # Absolute name.
1883    ac_srcdir=$srcdir$ac_dir_suffix;
1884    ac_top_srcdir=$srcdir
1885    ac_abs_top_srcdir=$srcdir ;;
1886  *) # Relative name.
1887    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1888    ac_top_srcdir=$ac_top_build_prefix$srcdir
1889    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1890esac
1891ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1892
1893    cd "$ac_dir" || { ac_status=$?; continue; }
1894    # Check for guested configure.
1895    if test -f "$ac_srcdir/configure.gnu"; then
1896      echo &&
1897      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1898    elif test -f "$ac_srcdir/configure"; then
1899      echo &&
1900      $SHELL "$ac_srcdir/configure" --help=recursive
1901    else
1902      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1903    fi || ac_status=$?
1904    cd "$ac_pwd" || { ac_status=$?; break; }
1905  done
1906fi
1907
1908test -n "$ac_init_help" && exit $ac_status
1909if $ac_init_version; then
1910  cat <<\_ACEOF
1911thrift configure 0.14.0
1912generated by GNU Autoconf 2.69
1913
1914Copyright (C) 2012 Free Software Foundation, Inc.
1915This configure script is free software; the Free Software Foundation
1916gives unlimited permission to copy, distribute and modify it.
1917_ACEOF
1918  exit
1919fi
1920
1921## ------------------------ ##
1922## Autoconf initialization. ##
1923## ------------------------ ##
1924
1925# ac_fn_c_try_compile LINENO
1926# --------------------------
1927# Try to compile conftest.$ac_ext, and return whether this succeeded.
1928ac_fn_c_try_compile ()
1929{
1930  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931  rm -f conftest.$ac_objext
1932  if { { ac_try="$ac_compile"
1933case "(($ac_try" in
1934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935  *) ac_try_echo=$ac_try;;
1936esac
1937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938$as_echo "$ac_try_echo"; } >&5
1939  (eval "$ac_compile") 2>conftest.err
1940  ac_status=$?
1941  if test -s conftest.err; then
1942    grep -v '^ *+' conftest.err >conftest.er1
1943    cat conftest.er1 >&5
1944    mv -f conftest.er1 conftest.err
1945  fi
1946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947  test $ac_status = 0; } && {
1948	 test -z "$ac_c_werror_flag" ||
1949	 test ! -s conftest.err
1950       } && test -s conftest.$ac_objext; then :
1951  ac_retval=0
1952else
1953  $as_echo "$as_me: failed program was:" >&5
1954sed 's/^/| /' conftest.$ac_ext >&5
1955
1956	ac_retval=1
1957fi
1958  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959  as_fn_set_status $ac_retval
1960
1961} # ac_fn_c_try_compile
1962
1963# ac_fn_c_try_cpp LINENO
1964# ----------------------
1965# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1966ac_fn_c_try_cpp ()
1967{
1968  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969  if { { ac_try="$ac_cpp conftest.$ac_ext"
1970case "(($ac_try" in
1971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972  *) ac_try_echo=$ac_try;;
1973esac
1974eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975$as_echo "$ac_try_echo"; } >&5
1976  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1977  ac_status=$?
1978  if test -s conftest.err; then
1979    grep -v '^ *+' conftest.err >conftest.er1
1980    cat conftest.er1 >&5
1981    mv -f conftest.er1 conftest.err
1982  fi
1983  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984  test $ac_status = 0; } > conftest.i && {
1985	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1986	 test ! -s conftest.err
1987       }; then :
1988  ac_retval=0
1989else
1990  $as_echo "$as_me: failed program was:" >&5
1991sed 's/^/| /' conftest.$ac_ext >&5
1992
1993    ac_retval=1
1994fi
1995  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996  as_fn_set_status $ac_retval
1997
1998} # ac_fn_c_try_cpp
1999
2000# ac_fn_cxx_try_compile LINENO
2001# ----------------------------
2002# Try to compile conftest.$ac_ext, and return whether this succeeded.
2003ac_fn_cxx_try_compile ()
2004{
2005  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006  rm -f conftest.$ac_objext
2007  if { { ac_try="$ac_compile"
2008case "(($ac_try" in
2009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2010  *) ac_try_echo=$ac_try;;
2011esac
2012eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2013$as_echo "$ac_try_echo"; } >&5
2014  (eval "$ac_compile") 2>conftest.err
2015  ac_status=$?
2016  if test -s conftest.err; then
2017    grep -v '^ *+' conftest.err >conftest.er1
2018    cat conftest.er1 >&5
2019    mv -f conftest.er1 conftest.err
2020  fi
2021  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2022  test $ac_status = 0; } && {
2023	 test -z "$ac_cxx_werror_flag" ||
2024	 test ! -s conftest.err
2025       } && test -s conftest.$ac_objext; then :
2026  ac_retval=0
2027else
2028  $as_echo "$as_me: failed program was:" >&5
2029sed 's/^/| /' conftest.$ac_ext >&5
2030
2031	ac_retval=1
2032fi
2033  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034  as_fn_set_status $ac_retval
2035
2036} # ac_fn_cxx_try_compile
2037
2038# ac_fn_c_try_link LINENO
2039# -----------------------
2040# Try to link conftest.$ac_ext, and return whether this succeeded.
2041ac_fn_c_try_link ()
2042{
2043  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044  rm -f conftest.$ac_objext conftest$ac_exeext
2045  if { { ac_try="$ac_link"
2046case "(($ac_try" in
2047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048  *) ac_try_echo=$ac_try;;
2049esac
2050eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2051$as_echo "$ac_try_echo"; } >&5
2052  (eval "$ac_link") 2>conftest.err
2053  ac_status=$?
2054  if test -s conftest.err; then
2055    grep -v '^ *+' conftest.err >conftest.er1
2056    cat conftest.er1 >&5
2057    mv -f conftest.er1 conftest.err
2058  fi
2059  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2060  test $ac_status = 0; } && {
2061	 test -z "$ac_c_werror_flag" ||
2062	 test ! -s conftest.err
2063       } && test -s conftest$ac_exeext && {
2064	 test "$cross_compiling" = yes ||
2065	 test -x conftest$ac_exeext
2066       }; then :
2067  ac_retval=0
2068else
2069  $as_echo "$as_me: failed program was:" >&5
2070sed 's/^/| /' conftest.$ac_ext >&5
2071
2072	ac_retval=1
2073fi
2074  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2075  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2076  # interfere with the next link command; also delete a directory that is
2077  # left behind by Apple's compiler.  We do this before executing the actions.
2078  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2079  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080  as_fn_set_status $ac_retval
2081
2082} # ac_fn_c_try_link
2083
2084# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2085# -------------------------------------------------------
2086# Tests whether HEADER exists and can be compiled using the include files in
2087# INCLUDES, setting the cache variable VAR accordingly.
2088ac_fn_c_check_header_compile ()
2089{
2090  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2092$as_echo_n "checking for $2... " >&6; }
2093if eval \${$3+:} false; then :
2094  $as_echo_n "(cached) " >&6
2095else
2096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097/* end confdefs.h.  */
2098$4
2099#include <$2>
2100_ACEOF
2101if ac_fn_c_try_compile "$LINENO"; then :
2102  eval "$3=yes"
2103else
2104  eval "$3=no"
2105fi
2106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107fi
2108eval ac_res=\$$3
2109	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110$as_echo "$ac_res" >&6; }
2111  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2112
2113} # ac_fn_c_check_header_compile
2114
2115# ac_fn_c_try_run LINENO
2116# ----------------------
2117# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2118# that executables *can* be run.
2119ac_fn_c_try_run ()
2120{
2121  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122  if { { ac_try="$ac_link"
2123case "(($ac_try" in
2124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125  *) ac_try_echo=$ac_try;;
2126esac
2127eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2128$as_echo "$ac_try_echo"; } >&5
2129  (eval "$ac_link") 2>&5
2130  ac_status=$?
2131  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2132  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2133  { { case "(($ac_try" in
2134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135  *) ac_try_echo=$ac_try;;
2136esac
2137eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2138$as_echo "$ac_try_echo"; } >&5
2139  (eval "$ac_try") 2>&5
2140  ac_status=$?
2141  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2142  test $ac_status = 0; }; }; then :
2143  ac_retval=0
2144else
2145  $as_echo "$as_me: program exited with status $ac_status" >&5
2146       $as_echo "$as_me: failed program was:" >&5
2147sed 's/^/| /' conftest.$ac_ext >&5
2148
2149       ac_retval=$ac_status
2150fi
2151  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2152  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2153  as_fn_set_status $ac_retval
2154
2155} # ac_fn_c_try_run
2156
2157# ac_fn_c_check_func LINENO FUNC VAR
2158# ----------------------------------
2159# Tests whether FUNC exists, setting the cache variable VAR accordingly
2160ac_fn_c_check_func ()
2161{
2162  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2164$as_echo_n "checking for $2... " >&6; }
2165if eval \${$3+:} false; then :
2166  $as_echo_n "(cached) " >&6
2167else
2168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169/* end confdefs.h.  */
2170/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2171   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2172#define $2 innocuous_$2
2173
2174/* System header to define __stub macros and hopefully few prototypes,
2175    which can conflict with char $2 (); below.
2176    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2177    <limits.h> exists even on freestanding compilers.  */
2178
2179#ifdef __STDC__
2180# include <limits.h>
2181#else
2182# include <assert.h>
2183#endif
2184
2185#undef $2
2186
2187/* Override any GCC internal prototype to avoid an error.
2188   Use char because int might match the return type of a GCC
2189   builtin and then its argument prototype would still apply.  */
2190#ifdef __cplusplus
2191extern "C"
2192#endif
2193char $2 ();
2194/* The GNU C library defines this for functions which it implements
2195    to always fail with ENOSYS.  Some functions are actually named
2196    something starting with __ and the normal name is an alias.  */
2197#if defined __stub_$2 || defined __stub___$2
2198choke me
2199#endif
2200
2201int
2202main ()
2203{
2204return $2 ();
2205  ;
2206  return 0;
2207}
2208_ACEOF
2209if ac_fn_c_try_link "$LINENO"; then :
2210  eval "$3=yes"
2211else
2212  eval "$3=no"
2213fi
2214rm -f core conftest.err conftest.$ac_objext \
2215    conftest$ac_exeext conftest.$ac_ext
2216fi
2217eval ac_res=\$$3
2218	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2219$as_echo "$ac_res" >&6; }
2220  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2221
2222} # ac_fn_c_check_func
2223
2224# ac_fn_cxx_try_cpp LINENO
2225# ------------------------
2226# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2227ac_fn_cxx_try_cpp ()
2228{
2229  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2230  if { { ac_try="$ac_cpp conftest.$ac_ext"
2231case "(($ac_try" in
2232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233  *) ac_try_echo=$ac_try;;
2234esac
2235eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2236$as_echo "$ac_try_echo"; } >&5
2237  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2238  ac_status=$?
2239  if test -s conftest.err; then
2240    grep -v '^ *+' conftest.err >conftest.er1
2241    cat conftest.er1 >&5
2242    mv -f conftest.er1 conftest.err
2243  fi
2244  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2245  test $ac_status = 0; } > conftest.i && {
2246	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2247	 test ! -s conftest.err
2248       }; then :
2249  ac_retval=0
2250else
2251  $as_echo "$as_me: failed program was:" >&5
2252sed 's/^/| /' conftest.$ac_ext >&5
2253
2254    ac_retval=1
2255fi
2256  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2257  as_fn_set_status $ac_retval
2258
2259} # ac_fn_cxx_try_cpp
2260
2261# ac_fn_cxx_try_link LINENO
2262# -------------------------
2263# Try to link conftest.$ac_ext, and return whether this succeeded.
2264ac_fn_cxx_try_link ()
2265{
2266  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267  rm -f conftest.$ac_objext conftest$ac_exeext
2268  if { { ac_try="$ac_link"
2269case "(($ac_try" in
2270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271  *) ac_try_echo=$ac_try;;
2272esac
2273eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2274$as_echo "$ac_try_echo"; } >&5
2275  (eval "$ac_link") 2>conftest.err
2276  ac_status=$?
2277  if test -s conftest.err; then
2278    grep -v '^ *+' conftest.err >conftest.er1
2279    cat conftest.er1 >&5
2280    mv -f conftest.er1 conftest.err
2281  fi
2282  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2283  test $ac_status = 0; } && {
2284	 test -z "$ac_cxx_werror_flag" ||
2285	 test ! -s conftest.err
2286       } && test -s conftest$ac_exeext && {
2287	 test "$cross_compiling" = yes ||
2288	 test -x conftest$ac_exeext
2289       }; then :
2290  ac_retval=0
2291else
2292  $as_echo "$as_me: failed program was:" >&5
2293sed 's/^/| /' conftest.$ac_ext >&5
2294
2295	ac_retval=1
2296fi
2297  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2298  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2299  # interfere with the next link command; also delete a directory that is
2300  # left behind by Apple's compiler.  We do this before executing the actions.
2301  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2302  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2303  as_fn_set_status $ac_retval
2304
2305} # ac_fn_cxx_try_link
2306
2307# ac_fn_erl_try_run LINENO
2308# ------------------------
2309# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2310# that executables *can* be run.
2311ac_fn_erl_try_run ()
2312{
2313  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2314  if { { ac_try="$ac_link"
2315case "(($ac_try" in
2316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2317  *) ac_try_echo=$ac_try;;
2318esac
2319eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2320$as_echo "$ac_try_echo"; } >&5
2321  (eval "$ac_link") 2>&5
2322  ac_status=$?
2323  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2324  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2325  { { case "(($ac_try" in
2326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327  *) ac_try_echo=$ac_try;;
2328esac
2329eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2330$as_echo "$ac_try_echo"; } >&5
2331  (eval "$ac_try") 2>&5
2332  ac_status=$?
2333  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2334  test $ac_status = 0; }; }; then :
2335  ac_retval=0
2336else
2337  $as_echo "$as_me: program exited with status $ac_status" >&5
2338       $as_echo "$as_me: failed program was:" >&5
2339sed 's/^/| /' conftest.$ac_ext >&5
2340
2341       ac_retval=$ac_status
2342fi
2343  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2344  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2345  as_fn_set_status $ac_retval
2346
2347} # ac_fn_erl_try_run
2348
2349# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2350# ---------------------------------------------------------
2351# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2352# the include files in INCLUDES and setting the cache variable VAR
2353# accordingly.
2354ac_fn_cxx_check_header_mongrel ()
2355{
2356  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2357  if eval \${$3+:} false; then :
2358  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2359$as_echo_n "checking for $2... " >&6; }
2360if eval \${$3+:} false; then :
2361  $as_echo_n "(cached) " >&6
2362fi
2363eval ac_res=\$$3
2364	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2365$as_echo "$ac_res" >&6; }
2366else
2367  # Is the header compilable?
2368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2369$as_echo_n "checking $2 usability... " >&6; }
2370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371/* end confdefs.h.  */
2372$4
2373#include <$2>
2374_ACEOF
2375if ac_fn_cxx_try_compile "$LINENO"; then :
2376  ac_header_compiler=yes
2377else
2378  ac_header_compiler=no
2379fi
2380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2382$as_echo "$ac_header_compiler" >&6; }
2383
2384# Is the header present?
2385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2386$as_echo_n "checking $2 presence... " >&6; }
2387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2388/* end confdefs.h.  */
2389#include <$2>
2390_ACEOF
2391if ac_fn_cxx_try_cpp "$LINENO"; then :
2392  ac_header_preproc=yes
2393else
2394  ac_header_preproc=no
2395fi
2396rm -f conftest.err conftest.i conftest.$ac_ext
2397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2398$as_echo "$ac_header_preproc" >&6; }
2399
2400# So?  What about this header?
2401case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2402  yes:no: )
2403    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2404$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2405    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2406$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2407    ;;
2408  no:yes:* )
2409    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2410$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2411    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2412$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2413    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2414$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2415    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2416$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2417    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2418$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2419    ;;
2420esac
2421  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2422$as_echo_n "checking for $2... " >&6; }
2423if eval \${$3+:} false; then :
2424  $as_echo_n "(cached) " >&6
2425else
2426  eval "$3=\$ac_header_compiler"
2427fi
2428eval ac_res=\$$3
2429	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2430$as_echo "$ac_res" >&6; }
2431fi
2432  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2433
2434} # ac_fn_cxx_check_header_mongrel
2435
2436# ac_fn_cxx_try_run LINENO
2437# ------------------------
2438# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2439# that executables *can* be run.
2440ac_fn_cxx_try_run ()
2441{
2442  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2443  if { { ac_try="$ac_link"
2444case "(($ac_try" in
2445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2446  *) ac_try_echo=$ac_try;;
2447esac
2448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2449$as_echo "$ac_try_echo"; } >&5
2450  (eval "$ac_link") 2>&5
2451  ac_status=$?
2452  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2453  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2454  { { case "(($ac_try" in
2455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2456  *) ac_try_echo=$ac_try;;
2457esac
2458eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2459$as_echo "$ac_try_echo"; } >&5
2460  (eval "$ac_try") 2>&5
2461  ac_status=$?
2462  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2463  test $ac_status = 0; }; }; then :
2464  ac_retval=0
2465else
2466  $as_echo "$as_me: program exited with status $ac_status" >&5
2467       $as_echo "$as_me: failed program was:" >&5
2468sed 's/^/| /' conftest.$ac_ext >&5
2469
2470       ac_retval=$ac_status
2471fi
2472  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2473  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2474  as_fn_set_status $ac_retval
2475
2476} # ac_fn_cxx_try_run
2477
2478# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2479# ---------------------------------------------
2480# Tests whether TYPE exists after having included INCLUDES, setting cache
2481# variable VAR accordingly.
2482ac_fn_cxx_check_type ()
2483{
2484  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2485  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2486$as_echo_n "checking for $2... " >&6; }
2487if eval \${$3+:} false; then :
2488  $as_echo_n "(cached) " >&6
2489else
2490  eval "$3=no"
2491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2492/* end confdefs.h.  */
2493$4
2494int
2495main ()
2496{
2497if (sizeof ($2))
2498	 return 0;
2499  ;
2500  return 0;
2501}
2502_ACEOF
2503if ac_fn_cxx_try_compile "$LINENO"; then :
2504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505/* end confdefs.h.  */
2506$4
2507int
2508main ()
2509{
2510if (sizeof (($2)))
2511	    return 0;
2512  ;
2513  return 0;
2514}
2515_ACEOF
2516if ac_fn_cxx_try_compile "$LINENO"; then :
2517
2518else
2519  eval "$3=yes"
2520fi
2521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2522fi
2523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2524fi
2525eval ac_res=\$$3
2526	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2527$as_echo "$ac_res" >&6; }
2528  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2529
2530} # ac_fn_cxx_check_type
2531
2532# ac_fn_c_find_intX_t LINENO BITS VAR
2533# -----------------------------------
2534# Finds a signed integer type with width BITS, setting cache variable VAR
2535# accordingly.
2536ac_fn_c_find_intX_t ()
2537{
2538  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2539  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2540$as_echo_n "checking for int$2_t... " >&6; }
2541if eval \${$3+:} false; then :
2542  $as_echo_n "(cached) " >&6
2543else
2544  eval "$3=no"
2545     # Order is important - never check a type that is potentially smaller
2546     # than half of the expected target width.
2547     for ac_type in int$2_t 'int' 'long int' \
2548	 'long long int' 'short int' 'signed char'; do
2549       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550/* end confdefs.h.  */
2551$ac_includes_default
2552	     enum { N = $2 / 2 - 1 };
2553int
2554main ()
2555{
2556static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2557test_array [0] = 0;
2558return test_array [0];
2559
2560  ;
2561  return 0;
2562}
2563_ACEOF
2564if ac_fn_cxx_try_compile "$LINENO"; then :
2565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566/* end confdefs.h.  */
2567$ac_includes_default
2568	        enum { N = $2 / 2 - 1 };
2569int
2570main ()
2571{
2572static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2573		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2574test_array [0] = 0;
2575return test_array [0];
2576
2577  ;
2578  return 0;
2579}
2580_ACEOF
2581if ac_fn_cxx_try_compile "$LINENO"; then :
2582
2583else
2584  case $ac_type in #(
2585  int$2_t) :
2586    eval "$3=yes" ;; #(
2587  *) :
2588    eval "$3=\$ac_type" ;;
2589esac
2590fi
2591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592fi
2593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594       if eval test \"x\$"$3"\" = x"no"; then :
2595
2596else
2597  break
2598fi
2599     done
2600fi
2601eval ac_res=\$$3
2602	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2603$as_echo "$ac_res" >&6; }
2604  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2605
2606} # ac_fn_c_find_intX_t
2607
2608# ac_fn_c_find_uintX_t LINENO BITS VAR
2609# ------------------------------------
2610# Finds an unsigned integer type with width BITS, setting cache variable VAR
2611# accordingly.
2612ac_fn_c_find_uintX_t ()
2613{
2614  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2615  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2616$as_echo_n "checking for uint$2_t... " >&6; }
2617if eval \${$3+:} false; then :
2618  $as_echo_n "(cached) " >&6
2619else
2620  eval "$3=no"
2621     # Order is important - never check a type that is potentially smaller
2622     # than half of the expected target width.
2623     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2624	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2625       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2626/* end confdefs.h.  */
2627$ac_includes_default
2628int
2629main ()
2630{
2631static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2632test_array [0] = 0;
2633return test_array [0];
2634
2635  ;
2636  return 0;
2637}
2638_ACEOF
2639if ac_fn_cxx_try_compile "$LINENO"; then :
2640  case $ac_type in #(
2641  uint$2_t) :
2642    eval "$3=yes" ;; #(
2643  *) :
2644    eval "$3=\$ac_type" ;;
2645esac
2646fi
2647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2648       if eval test \"x\$"$3"\" = x"no"; then :
2649
2650else
2651  break
2652fi
2653     done
2654fi
2655eval ac_res=\$$3
2656	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2657$as_echo "$ac_res" >&6; }
2658  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2659
2660} # ac_fn_c_find_uintX_t
2661
2662# ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2663# -----------------------------------------------
2664# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2665# accordingly.
2666ac_fn_cxx_check_decl ()
2667{
2668  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2669  as_decl_name=`echo $2|sed 's/ *(.*//'`
2670  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2671  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2672$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2673if eval \${$3+:} false; then :
2674  $as_echo_n "(cached) " >&6
2675else
2676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2677/* end confdefs.h.  */
2678$4
2679int
2680main ()
2681{
2682#ifndef $as_decl_name
2683#ifdef __cplusplus
2684  (void) $as_decl_use;
2685#else
2686  (void) $as_decl_name;
2687#endif
2688#endif
2689
2690  ;
2691  return 0;
2692}
2693_ACEOF
2694if ac_fn_cxx_try_compile "$LINENO"; then :
2695  eval "$3=yes"
2696else
2697  eval "$3=no"
2698fi
2699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700fi
2701eval ac_res=\$$3
2702	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2703$as_echo "$ac_res" >&6; }
2704  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2705
2706} # ac_fn_cxx_check_decl
2707
2708# ac_fn_cxx_check_func LINENO FUNC VAR
2709# ------------------------------------
2710# Tests whether FUNC exists, setting the cache variable VAR accordingly
2711ac_fn_cxx_check_func ()
2712{
2713  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2715$as_echo_n "checking for $2... " >&6; }
2716if eval \${$3+:} false; then :
2717  $as_echo_n "(cached) " >&6
2718else
2719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720/* end confdefs.h.  */
2721/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2722   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2723#define $2 innocuous_$2
2724
2725/* System header to define __stub macros and hopefully few prototypes,
2726    which can conflict with char $2 (); below.
2727    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2728    <limits.h> exists even on freestanding compilers.  */
2729
2730#ifdef __STDC__
2731# include <limits.h>
2732#else
2733# include <assert.h>
2734#endif
2735
2736#undef $2
2737
2738/* Override any GCC internal prototype to avoid an error.
2739   Use char because int might match the return type of a GCC
2740   builtin and then its argument prototype would still apply.  */
2741#ifdef __cplusplus
2742extern "C"
2743#endif
2744char $2 ();
2745/* The GNU C library defines this for functions which it implements
2746    to always fail with ENOSYS.  Some functions are actually named
2747    something starting with __ and the normal name is an alias.  */
2748#if defined __stub_$2 || defined __stub___$2
2749choke me
2750#endif
2751
2752int
2753main ()
2754{
2755return $2 ();
2756  ;
2757  return 0;
2758}
2759_ACEOF
2760if ac_fn_cxx_try_link "$LINENO"; then :
2761  eval "$3=yes"
2762else
2763  eval "$3=no"
2764fi
2765rm -f core conftest.err conftest.$ac_objext \
2766    conftest$ac_exeext conftest.$ac_ext
2767fi
2768eval ac_res=\$$3
2769	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2770$as_echo "$ac_res" >&6; }
2771  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2772
2773} # ac_fn_cxx_check_func
2774cat >config.log <<_ACEOF
2775This file contains any messages produced by compilers while
2776running configure, to aid debugging if configure makes a mistake.
2777
2778It was created by thrift $as_me 0.14.0, which was
2779generated by GNU Autoconf 2.69.  Invocation command line was
2780
2781  $ $0 $@
2782
2783_ACEOF
2784exec 5>>config.log
2785{
2786cat <<_ASUNAME
2787## --------- ##
2788## Platform. ##
2789## --------- ##
2790
2791hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2792uname -m = `(uname -m) 2>/dev/null || echo unknown`
2793uname -r = `(uname -r) 2>/dev/null || echo unknown`
2794uname -s = `(uname -s) 2>/dev/null || echo unknown`
2795uname -v = `(uname -v) 2>/dev/null || echo unknown`
2796
2797/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2798/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2799
2800/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2801/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2802/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2803/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2804/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2805/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2806/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2807
2808_ASUNAME
2809
2810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811for as_dir in $PATH
2812do
2813  IFS=$as_save_IFS
2814  test -z "$as_dir" && as_dir=.
2815    $as_echo "PATH: $as_dir"
2816  done
2817IFS=$as_save_IFS
2818
2819} >&5
2820
2821cat >&5 <<_ACEOF
2822
2823
2824## ----------- ##
2825## Core tests. ##
2826## ----------- ##
2827
2828_ACEOF
2829
2830
2831# Keep a trace of the command line.
2832# Strip out --no-create and --no-recursion so they do not pile up.
2833# Strip out --silent because we don't want to record it for future runs.
2834# Also quote any args containing shell meta-characters.
2835# Make two passes to allow for proper duplicate-argument suppression.
2836ac_configure_args=
2837ac_configure_args0=
2838ac_configure_args1=
2839ac_must_keep_next=false
2840for ac_pass in 1 2
2841do
2842  for ac_arg
2843  do
2844    case $ac_arg in
2845    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2846    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2847    | -silent | --silent | --silen | --sile | --sil)
2848      continue ;;
2849    *\'*)
2850      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2851    esac
2852    case $ac_pass in
2853    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2854    2)
2855      as_fn_append ac_configure_args1 " '$ac_arg'"
2856      if test $ac_must_keep_next = true; then
2857	ac_must_keep_next=false # Got value, back to normal.
2858      else
2859	case $ac_arg in
2860	  *=* | --config-cache | -C | -disable-* | --disable-* \
2861	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2862	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2863	  | -with-* | --with-* | -without-* | --without-* | --x)
2864	    case "$ac_configure_args0 " in
2865	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2866	    esac
2867	    ;;
2868	  -* ) ac_must_keep_next=true ;;
2869	esac
2870      fi
2871      as_fn_append ac_configure_args " '$ac_arg'"
2872      ;;
2873    esac
2874  done
2875done
2876{ ac_configure_args0=; unset ac_configure_args0;}
2877{ ac_configure_args1=; unset ac_configure_args1;}
2878
2879# When interrupted or exit'd, cleanup temporary files, and complete
2880# config.log.  We remove comments because anyway the quotes in there
2881# would cause problems or look ugly.
2882# WARNING: Use '\'' to represent an apostrophe within the trap.
2883# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2884trap 'exit_status=$?
2885  # Save into config.log some information that might help in debugging.
2886  {
2887    echo
2888
2889    $as_echo "## ---------------- ##
2890## Cache variables. ##
2891## ---------------- ##"
2892    echo
2893    # The following way of writing the cache mishandles newlines in values,
2894(
2895  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2896    eval ac_val=\$$ac_var
2897    case $ac_val in #(
2898    *${as_nl}*)
2899      case $ac_var in #(
2900      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2901$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2902      esac
2903      case $ac_var in #(
2904      _ | IFS | as_nl) ;; #(
2905      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2906      *) { eval $ac_var=; unset $ac_var;} ;;
2907      esac ;;
2908    esac
2909  done
2910  (set) 2>&1 |
2911    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2912    *${as_nl}ac_space=\ *)
2913      sed -n \
2914	"s/'\''/'\''\\\\'\'''\''/g;
2915	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2916      ;; #(
2917    *)
2918      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2919      ;;
2920    esac |
2921    sort
2922)
2923    echo
2924
2925    $as_echo "## ----------------- ##
2926## Output variables. ##
2927## ----------------- ##"
2928    echo
2929    for ac_var in $ac_subst_vars
2930    do
2931      eval ac_val=\$$ac_var
2932      case $ac_val in
2933      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2934      esac
2935      $as_echo "$ac_var='\''$ac_val'\''"
2936    done | sort
2937    echo
2938
2939    if test -n "$ac_subst_files"; then
2940      $as_echo "## ------------------- ##
2941## File substitutions. ##
2942## ------------------- ##"
2943      echo
2944      for ac_var in $ac_subst_files
2945      do
2946	eval ac_val=\$$ac_var
2947	case $ac_val in
2948	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2949	esac
2950	$as_echo "$ac_var='\''$ac_val'\''"
2951      done | sort
2952      echo
2953    fi
2954
2955    if test -s confdefs.h; then
2956      $as_echo "## ----------- ##
2957## confdefs.h. ##
2958## ----------- ##"
2959      echo
2960      cat confdefs.h
2961      echo
2962    fi
2963    test "$ac_signal" != 0 &&
2964      $as_echo "$as_me: caught signal $ac_signal"
2965    $as_echo "$as_me: exit $exit_status"
2966  } >&5
2967  rm -f core *.core core.conftest.* &&
2968    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2969    exit $exit_status
2970' 0
2971for ac_signal in 1 2 13 15; do
2972  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2973done
2974ac_signal=0
2975
2976# confdefs.h avoids OS command line length limits that DEFS can exceed.
2977rm -f -r conftest* confdefs.h
2978
2979$as_echo "/* confdefs.h */" > confdefs.h
2980
2981# Predefined preprocessor variables.
2982
2983cat >>confdefs.h <<_ACEOF
2984#define PACKAGE_NAME "$PACKAGE_NAME"
2985_ACEOF
2986
2987cat >>confdefs.h <<_ACEOF
2988#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2989_ACEOF
2990
2991cat >>confdefs.h <<_ACEOF
2992#define PACKAGE_VERSION "$PACKAGE_VERSION"
2993_ACEOF
2994
2995cat >>confdefs.h <<_ACEOF
2996#define PACKAGE_STRING "$PACKAGE_STRING"
2997_ACEOF
2998
2999cat >>confdefs.h <<_ACEOF
3000#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3001_ACEOF
3002
3003cat >>confdefs.h <<_ACEOF
3004#define PACKAGE_URL "$PACKAGE_URL"
3005_ACEOF
3006
3007
3008# Let the site file select an alternate cache file if it wants to.
3009# Prefer an explicitly selected file to automatically selected ones.
3010ac_site_file1=NONE
3011ac_site_file2=NONE
3012if test -n "$CONFIG_SITE"; then
3013  # We do not want a PATH search for config.site.
3014  case $CONFIG_SITE in #((
3015    -*)  ac_site_file1=./$CONFIG_SITE;;
3016    */*) ac_site_file1=$CONFIG_SITE;;
3017    *)   ac_site_file1=./$CONFIG_SITE;;
3018  esac
3019elif test "x$prefix" != xNONE; then
3020  ac_site_file1=$prefix/share/config.site
3021  ac_site_file2=$prefix/etc/config.site
3022else
3023  ac_site_file1=$ac_default_prefix/share/config.site
3024  ac_site_file2=$ac_default_prefix/etc/config.site
3025fi
3026for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3027do
3028  test "x$ac_site_file" = xNONE && continue
3029  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3030    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3031$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3032    sed 's/^/| /' "$ac_site_file" >&5
3033    . "$ac_site_file" \
3034      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3035$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3036as_fn_error $? "failed to load site script $ac_site_file
3037See \`config.log' for more details" "$LINENO" 5; }
3038  fi
3039done
3040
3041if test -r "$cache_file"; then
3042  # Some versions of bash will fail to source /dev/null (special files
3043  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3044  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3045    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3046$as_echo "$as_me: loading cache $cache_file" >&6;}
3047    case $cache_file in
3048      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3049      *)                      . "./$cache_file";;
3050    esac
3051  fi
3052else
3053  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3054$as_echo "$as_me: creating cache $cache_file" >&6;}
3055  >$cache_file
3056fi
3057
3058# Check that the precious variables saved in the cache have kept the same
3059# value.
3060ac_cache_corrupted=false
3061for ac_var in $ac_precious_vars; do
3062  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3063  eval ac_new_set=\$ac_env_${ac_var}_set
3064  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3065  eval ac_new_val=\$ac_env_${ac_var}_value
3066  case $ac_old_set,$ac_new_set in
3067    set,)
3068      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3069$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3070      ac_cache_corrupted=: ;;
3071    ,set)
3072      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3073$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3074      ac_cache_corrupted=: ;;
3075    ,);;
3076    *)
3077      if test "x$ac_old_val" != "x$ac_new_val"; then
3078	# differences in whitespace do not lead to failure.
3079	ac_old_val_w=`echo x $ac_old_val`
3080	ac_new_val_w=`echo x $ac_new_val`
3081	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3082	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3083$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3084	  ac_cache_corrupted=:
3085	else
3086	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3087$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3088	  eval $ac_var=\$ac_old_val
3089	fi
3090	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3091$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3092	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3093$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3094      fi;;
3095  esac
3096  # Pass precious variables to config.status.
3097  if test "$ac_new_set" = set; then
3098    case $ac_new_val in
3099    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3100    *) ac_arg=$ac_var=$ac_new_val ;;
3101    esac
3102    case " $ac_configure_args " in
3103      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3104      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3105    esac
3106  fi
3107done
3108if $ac_cache_corrupted; then
3109  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3111  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3112$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3113  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3114fi
3115## -------------------- ##
3116## Main body of script. ##
3117## -------------------- ##
3118
3119ac_ext=c
3120ac_cpp='$CPP $CPPFLAGS'
3121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3123ac_compiler_gnu=$ac_cv_c_compiler_gnu
3124
3125
3126
3127ac_aux_dir=
3128for ac_dir in . "$srcdir"/.; do
3129  if test -f "$ac_dir/install-sh"; then
3130    ac_aux_dir=$ac_dir
3131    ac_install_sh="$ac_aux_dir/install-sh -c"
3132    break
3133  elif test -f "$ac_dir/install.sh"; then
3134    ac_aux_dir=$ac_dir
3135    ac_install_sh="$ac_aux_dir/install.sh -c"
3136    break
3137  elif test -f "$ac_dir/shtool"; then
3138    ac_aux_dir=$ac_dir
3139    ac_install_sh="$ac_aux_dir/shtool install -c"
3140    break
3141  fi
3142done
3143if test -z "$ac_aux_dir"; then
3144  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
3145fi
3146
3147# These three variables are undocumented and unsupported,
3148# and are intended to be withdrawn in a future Autoconf release.
3149# They can cause serious problems if a builder's source tree is in a directory
3150# whose full name contains unusual characters.
3151ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3152ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3153ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3154
3155
3156
3157am__api_version='1.15'
3158
3159# Find a good install program.  We prefer a C program (faster),
3160# so one script is as good as another.  But avoid the broken or
3161# incompatible versions:
3162# SysV /etc/install, /usr/sbin/install
3163# SunOS /usr/etc/install
3164# IRIX /sbin/install
3165# AIX /bin/install
3166# AmigaOS /C/install, which installs bootblocks on floppy discs
3167# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3168# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3169# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3170# OS/2's system install, which has a completely different semantic
3171# ./install, which can be erroneously created by make from ./install.sh.
3172# Reject install programs that cannot install multiple files.
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3174$as_echo_n "checking for a BSD-compatible install... " >&6; }
3175if test -z "$INSTALL"; then
3176if ${ac_cv_path_install+:} false; then :
3177  $as_echo_n "(cached) " >&6
3178else
3179  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180for as_dir in $PATH
3181do
3182  IFS=$as_save_IFS
3183  test -z "$as_dir" && as_dir=.
3184    # Account for people who put trailing slashes in PATH elements.
3185case $as_dir/ in #((
3186  ./ | .// | /[cC]/* | \
3187  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3188  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3189  /usr/ucb/* ) ;;
3190  *)
3191    # OSF1 and SCO ODT 3.0 have their own names for install.
3192    # Don't use installbsd from OSF since it installs stuff as root
3193    # by default.
3194    for ac_prog in ginstall scoinst install; do
3195      for ac_exec_ext in '' $ac_executable_extensions; do
3196	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3197	  if test $ac_prog = install &&
3198	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3199	    # AIX install.  It has an incompatible calling convention.
3200	    :
3201	  elif test $ac_prog = install &&
3202	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3203	    # program-specific install script used by HP pwplus--don't use.
3204	    :
3205	  else
3206	    rm -rf conftest.one conftest.two conftest.dir
3207	    echo one > conftest.one
3208	    echo two > conftest.two
3209	    mkdir conftest.dir
3210	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3211	      test -s conftest.one && test -s conftest.two &&
3212	      test -s conftest.dir/conftest.one &&
3213	      test -s conftest.dir/conftest.two
3214	    then
3215	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3216	      break 3
3217	    fi
3218	  fi
3219	fi
3220      done
3221    done
3222    ;;
3223esac
3224
3225  done
3226IFS=$as_save_IFS
3227
3228rm -rf conftest.one conftest.two conftest.dir
3229
3230fi
3231  if test "${ac_cv_path_install+set}" = set; then
3232    INSTALL=$ac_cv_path_install
3233  else
3234    # As a last resort, use the slow shell script.  Don't cache a
3235    # value for INSTALL within a source directory, because that will
3236    # break other packages using the cache if that directory is
3237    # removed, or if the value is a relative name.
3238    INSTALL=$ac_install_sh
3239  fi
3240fi
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3242$as_echo "$INSTALL" >&6; }
3243
3244# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3245# It thinks the first close brace ends the variable substitution.
3246test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3247
3248test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3249
3250test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3251
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3253$as_echo_n "checking whether build environment is sane... " >&6; }
3254# Reject unsafe characters in $srcdir or the absolute working directory
3255# name.  Accept space and tab only in the latter.
3256am_lf='
3257'
3258case `pwd` in
3259  *[\\\"\#\$\&\'\`$am_lf]*)
3260    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3261esac
3262case $srcdir in
3263  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3264    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3265esac
3266
3267# Do 'set' in a subshell so we don't clobber the current shell's
3268# arguments.  Must try -L first in case configure is actually a
3269# symlink; some systems play weird games with the mod time of symlinks
3270# (eg FreeBSD returns the mod time of the symlink's containing
3271# directory).
3272if (
3273   am_has_slept=no
3274   for am_try in 1 2; do
3275     echo "timestamp, slept: $am_has_slept" > conftest.file
3276     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3277     if test "$*" = "X"; then
3278	# -L didn't work.
3279	set X `ls -t "$srcdir/configure" conftest.file`
3280     fi
3281     if test "$*" != "X $srcdir/configure conftest.file" \
3282	&& test "$*" != "X conftest.file $srcdir/configure"; then
3283
3284	# If neither matched, then we have a broken ls.  This can happen
3285	# if, for instance, CONFIG_SHELL is bash and it inherits a
3286	# broken ls alias from the environment.  This has actually
3287	# happened.  Such a system could not be considered "sane".
3288	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3289  alias in your environment" "$LINENO" 5
3290     fi
3291     if test "$2" = conftest.file || test $am_try -eq 2; then
3292       break
3293     fi
3294     # Just in case.
3295     sleep 1
3296     am_has_slept=yes
3297   done
3298   test "$2" = conftest.file
3299   )
3300then
3301   # Ok.
3302   :
3303else
3304   as_fn_error $? "newly created file is older than distributed files!
3305Check your system clock" "$LINENO" 5
3306fi
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3308$as_echo "yes" >&6; }
3309# If we didn't sleep, we still need to ensure time stamps of config.status and
3310# generated files are strictly newer.
3311am_sleep_pid=
3312if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3313  ( sleep 1 ) &
3314  am_sleep_pid=$!
3315fi
3316
3317rm -f conftest.file
3318
3319test "$program_prefix" != NONE &&
3320  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3321# Use a double $ so make ignores it.
3322test "$program_suffix" != NONE &&
3323  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3324# Double any \ or $.
3325# By default was `s,x,x', remove it if useless.
3326ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3327program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3328
3329# Expand $ac_aux_dir to an absolute path.
3330am_aux_dir=`cd "$ac_aux_dir" && pwd`
3331
3332if test x"${MISSING+set}" != xset; then
3333  case $am_aux_dir in
3334  *\ * | *\	*)
3335    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3336  *)
3337    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3338  esac
3339fi
3340# Use eval to expand $SHELL
3341if eval "$MISSING --is-lightweight"; then
3342  am_missing_run="$MISSING "
3343else
3344  am_missing_run=
3345  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3346$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3347fi
3348
3349if test x"${install_sh+set}" != xset; then
3350  case $am_aux_dir in
3351  *\ * | *\	*)
3352    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3353  *)
3354    install_sh="\${SHELL} $am_aux_dir/install-sh"
3355  esac
3356fi
3357
3358# Installed binaries are usually stripped using 'strip' when the user
3359# run "make install-strip".  However 'strip' might not be the right
3360# tool to use in cross-compilation environments, therefore Automake
3361# will honor the 'STRIP' environment variable to overrule this program.
3362if test "$cross_compiling" != no; then
3363  if test -n "$ac_tool_prefix"; then
3364  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3365set dummy ${ac_tool_prefix}strip; ac_word=$2
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367$as_echo_n "checking for $ac_word... " >&6; }
3368if ${ac_cv_prog_STRIP+:} false; then :
3369  $as_echo_n "(cached) " >&6
3370else
3371  if test -n "$STRIP"; then
3372  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3373else
3374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375for as_dir in $PATH
3376do
3377  IFS=$as_save_IFS
3378  test -z "$as_dir" && as_dir=.
3379    for ac_exec_ext in '' $ac_executable_extensions; do
3380  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383    break 2
3384  fi
3385done
3386  done
3387IFS=$as_save_IFS
3388
3389fi
3390fi
3391STRIP=$ac_cv_prog_STRIP
3392if test -n "$STRIP"; then
3393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3394$as_echo "$STRIP" >&6; }
3395else
3396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397$as_echo "no" >&6; }
3398fi
3399
3400
3401fi
3402if test -z "$ac_cv_prog_STRIP"; then
3403  ac_ct_STRIP=$STRIP
3404  # Extract the first word of "strip", so it can be a program name with args.
3405set dummy strip; ac_word=$2
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407$as_echo_n "checking for $ac_word... " >&6; }
3408if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3409  $as_echo_n "(cached) " >&6
3410else
3411  if test -n "$ac_ct_STRIP"; then
3412  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3413else
3414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415for as_dir in $PATH
3416do
3417  IFS=$as_save_IFS
3418  test -z "$as_dir" && as_dir=.
3419    for ac_exec_ext in '' $ac_executable_extensions; do
3420  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3421    ac_cv_prog_ac_ct_STRIP="strip"
3422    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3423    break 2
3424  fi
3425done
3426  done
3427IFS=$as_save_IFS
3428
3429fi
3430fi
3431ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3432if test -n "$ac_ct_STRIP"; then
3433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3434$as_echo "$ac_ct_STRIP" >&6; }
3435else
3436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437$as_echo "no" >&6; }
3438fi
3439
3440  if test "x$ac_ct_STRIP" = x; then
3441    STRIP=":"
3442  else
3443    case $cross_compiling:$ac_tool_warned in
3444yes:)
3445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3447ac_tool_warned=yes ;;
3448esac
3449    STRIP=$ac_ct_STRIP
3450  fi
3451else
3452  STRIP="$ac_cv_prog_STRIP"
3453fi
3454
3455fi
3456INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3457
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3459$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3460if test -z "$MKDIR_P"; then
3461  if ${ac_cv_path_mkdir+:} false; then :
3462  $as_echo_n "(cached) " >&6
3463else
3464  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3466do
3467  IFS=$as_save_IFS
3468  test -z "$as_dir" && as_dir=.
3469    for ac_prog in mkdir gmkdir; do
3470	 for ac_exec_ext in '' $ac_executable_extensions; do
3471	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3472	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3473	     'mkdir (GNU coreutils) '* | \
3474	     'mkdir (coreutils) '* | \
3475	     'mkdir (fileutils) '4.1*)
3476	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3477	       break 3;;
3478	   esac
3479	 done
3480       done
3481  done
3482IFS=$as_save_IFS
3483
3484fi
3485
3486  test -d ./--version && rmdir ./--version
3487  if test "${ac_cv_path_mkdir+set}" = set; then
3488    MKDIR_P="$ac_cv_path_mkdir -p"
3489  else
3490    # As a last resort, use the slow shell script.  Don't cache a
3491    # value for MKDIR_P within a source directory, because that will
3492    # break other packages using the cache if that directory is
3493    # removed, or if the value is a relative name.
3494    MKDIR_P="$ac_install_sh -d"
3495  fi
3496fi
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3498$as_echo "$MKDIR_P" >&6; }
3499
3500for ac_prog in gawk mawk nawk awk
3501do
3502  # Extract the first word of "$ac_prog", so it can be a program name with args.
3503set dummy $ac_prog; ac_word=$2
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3505$as_echo_n "checking for $ac_word... " >&6; }
3506if ${ac_cv_prog_AWK+:} false; then :
3507  $as_echo_n "(cached) " >&6
3508else
3509  if test -n "$AWK"; then
3510  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3511else
3512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513for as_dir in $PATH
3514do
3515  IFS=$as_save_IFS
3516  test -z "$as_dir" && as_dir=.
3517    for ac_exec_ext in '' $ac_executable_extensions; do
3518  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3519    ac_cv_prog_AWK="$ac_prog"
3520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3521    break 2
3522  fi
3523done
3524  done
3525IFS=$as_save_IFS
3526
3527fi
3528fi
3529AWK=$ac_cv_prog_AWK
3530if test -n "$AWK"; then
3531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3532$as_echo "$AWK" >&6; }
3533else
3534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535$as_echo "no" >&6; }
3536fi
3537
3538
3539  test -n "$AWK" && break
3540done
3541
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3543$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3544set x ${MAKE-make}
3545ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3546if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3547  $as_echo_n "(cached) " >&6
3548else
3549  cat >conftest.make <<\_ACEOF
3550SHELL = /bin/sh
3551all:
3552	@echo '@@@%%%=$(MAKE)=@@@%%%'
3553_ACEOF
3554# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3555case `${MAKE-make} -f conftest.make 2>/dev/null` in
3556  *@@@%%%=?*=@@@%%%*)
3557    eval ac_cv_prog_make_${ac_make}_set=yes;;
3558  *)
3559    eval ac_cv_prog_make_${ac_make}_set=no;;
3560esac
3561rm -f conftest.make
3562fi
3563if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3565$as_echo "yes" >&6; }
3566  SET_MAKE=
3567else
3568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569$as_echo "no" >&6; }
3570  SET_MAKE="MAKE=${MAKE-make}"
3571fi
3572
3573rm -rf .tst 2>/dev/null
3574mkdir .tst 2>/dev/null
3575if test -d .tst; then
3576  am__leading_dot=.
3577else
3578  am__leading_dot=_
3579fi
3580rmdir .tst 2>/dev/null
3581
3582# Check whether --enable-silent-rules was given.
3583if test "${enable_silent_rules+set}" = set; then :
3584  enableval=$enable_silent_rules;
3585fi
3586
3587case $enable_silent_rules in # (((
3588  yes) AM_DEFAULT_VERBOSITY=0;;
3589   no) AM_DEFAULT_VERBOSITY=1;;
3590    *) AM_DEFAULT_VERBOSITY=1;;
3591esac
3592am_make=${MAKE-make}
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3594$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3595if ${am_cv_make_support_nested_variables+:} false; then :
3596  $as_echo_n "(cached) " >&6
3597else
3598  if $as_echo 'TRUE=$(BAR$(V))
3599BAR0=false
3600BAR1=true
3601V=1
3602am__doit:
3603	@$(TRUE)
3604.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3605  am_cv_make_support_nested_variables=yes
3606else
3607  am_cv_make_support_nested_variables=no
3608fi
3609fi
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3611$as_echo "$am_cv_make_support_nested_variables" >&6; }
3612if test $am_cv_make_support_nested_variables = yes; then
3613    AM_V='$(V)'
3614  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3615else
3616  AM_V=$AM_DEFAULT_VERBOSITY
3617  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3618fi
3619AM_BACKSLASH='\'
3620
3621if test "`cd $srcdir && pwd`" != "`pwd`"; then
3622  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3623  # is not polluted with repeated "-I."
3624  am__isrc=' -I$(srcdir)'
3625  # test to see if srcdir already configured
3626  if test -f $srcdir/config.status; then
3627    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3628  fi
3629fi
3630
3631# test whether we have cygpath
3632if test -z "$CYGPATH_W"; then
3633  if (cygpath --version) >/dev/null 2>/dev/null; then
3634    CYGPATH_W='cygpath -w'
3635  else
3636    CYGPATH_W=echo
3637  fi
3638fi
3639
3640
3641# Define the identity of the package.
3642 PACKAGE='thrift'
3643 VERSION='0.14.0'
3644
3645
3646cat >>confdefs.h <<_ACEOF
3647#define PACKAGE "$PACKAGE"
3648_ACEOF
3649
3650
3651cat >>confdefs.h <<_ACEOF
3652#define VERSION "$VERSION"
3653_ACEOF
3654
3655# Some tools Automake needs.
3656
3657ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3658
3659
3660AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3661
3662
3663AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3664
3665
3666AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3667
3668
3669MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3670
3671# For better backward compatibility.  To be removed once Automake 1.9.x
3672# dies out for good.  For more background, see:
3673# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3674# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3675mkdir_p='$(MKDIR_P)'
3676
3677# We need awk for the "check" target (and possibly the TAP driver).  The
3678# system "awk" is bad on some platforms.
3679# Always define AMTAR for backward compatibility.  Yes, it's still used
3680# in the wild :-(  We should find a proper way to deprecate it ...
3681AMTAR='$${TAR-tar}'
3682
3683
3684# We'll loop over all known methods to create a tar archive until one works.
3685_am_tools='gnutar plaintar pax cpio none'
3686
3687# The POSIX 1988 'ustar' format is defined with fixed-size fields.
3688      # There is notably a 21 bits limit for the UID and the GID.  In fact,
3689      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3690      # and bug#13588).
3691      am_max_uid=2097151 # 2^21 - 1
3692      am_max_gid=$am_max_uid
3693      # The $UID and $GID variables are not portable, so we need to resort
3694      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3695      # below are definitely unexpected, so allow the users to see them
3696      # (that is, avoid stderr redirection).
3697      am_uid=`id -u || echo unknown`
3698      am_gid=`id -g || echo unknown`
3699      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3700$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3701      if test $am_uid -le $am_max_uid; then
3702         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3703$as_echo "yes" >&6; }
3704      else
3705         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3706$as_echo "no" >&6; }
3707         _am_tools=none
3708      fi
3709      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3710$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3711      if test $am_gid -le $am_max_gid; then
3712         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3713$as_echo "yes" >&6; }
3714      else
3715        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3716$as_echo "no" >&6; }
3717        _am_tools=none
3718      fi
3719
3720  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3721$as_echo_n "checking how to create a ustar tar archive... " >&6; }
3722
3723  # Go ahead even if we have the value already cached.  We do so because we
3724  # need to set the values for the 'am__tar' and 'am__untar' variables.
3725  _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3726
3727  for _am_tool in $_am_tools; do
3728    case $_am_tool in
3729    gnutar)
3730      for _am_tar in tar gnutar gtar; do
3731        { echo "$as_me:$LINENO: $_am_tar --version" >&5
3732   ($_am_tar --version) >&5 2>&5
3733   ac_status=$?
3734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735   (exit $ac_status); } && break
3736      done
3737      am__tar="$_am_tar --hard-dereference --format=ustar -chf - "'"$$tardir"'
3738      am__tar_="$_am_tar --hard-dereference --format=ustar -chf - "'"$tardir"'
3739      am__untar="$_am_tar -xf -"
3740      ;;
3741    plaintar)
3742      # Must skip GNU tar: if it does not support --format= it doesn't create
3743      # ustar tarball either.
3744      (tar --version) >/dev/null 2>&1 && continue
3745      am__tar='tar chf --hard-dereference - "$$tardir"'
3746      am__tar_='tar chf --hard-dereference - "$tardir"'
3747      am__untar='tar xf -'
3748      ;;
3749    pax)
3750      am__tar='pax -L -x ustar -w "$$tardir"'
3751      am__tar_='pax -L -x ustar -w "$tardir"'
3752      am__untar='pax -r'
3753      ;;
3754    cpio)
3755      am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3756      am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3757      am__untar='cpio -i -H ustar -d'
3758      ;;
3759    none)
3760      am__tar=false
3761      am__tar_=false
3762      am__untar=false
3763      ;;
3764    esac
3765
3766    # If the value was cached, stop now.  We just wanted to have am__tar
3767    # and am__untar set.
3768    test -n "${am_cv_prog_tar_ustar}" && break
3769
3770    # tar/untar a dummy directory, and stop if the command works.
3771    rm -rf conftest.dir
3772    mkdir conftest.dir
3773    echo GrepMe > conftest.dir/file
3774    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3775   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3776   ac_status=$?
3777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778   (exit $ac_status); }
3779    rm -rf conftest.dir
3780    if test -s conftest.tar; then
3781      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3782   ($am__untar <conftest.tar) >&5 2>&5
3783   ac_status=$?
3784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785   (exit $ac_status); }
3786      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3787   (cat conftest.dir/file) >&5 2>&5
3788   ac_status=$?
3789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790   (exit $ac_status); }
3791      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3792    fi
3793  done
3794  rm -rf conftest.dir
3795
3796  if ${am_cv_prog_tar_ustar+:} false; then :
3797  $as_echo_n "(cached) " >&6
3798else
3799  am_cv_prog_tar_ustar=$_am_tool
3800fi
3801
3802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3803$as_echo "$am_cv_prog_tar_ustar" >&6; }
3804
3805
3806
3807
3808
3809
3810# POSIX will say in a future version that running "rm -f" with no argument
3811# is OK; and we want to be able to make that assumption in our Makefile
3812# recipes.  So use an aggressive probe to check that the usage we want is
3813# actually supported "in the wild" to an acceptable degree.
3814# See automake bug#10828.
3815# To make any issue more visible, cause the running configure to be aborted
3816# by default if the 'rm' program in use doesn't match our expectations; the
3817# user can still override this though.
3818if rm -f && rm -fr && rm -rf; then : OK; else
3819  cat >&2 <<'END'
3820Oops!
3821
3822Your 'rm' program seems unable to run without file operands specified
3823on the command line, even when the '-f' option is present.  This is contrary
3824to the behaviour of most rm programs out there, and not conforming with
3825the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3826
3827Please tell bug-automake@gnu.org about your system, including the value
3828of your $PATH and any error possibly output before this message.  This
3829can help us improve future automake versions.
3830
3831END
3832  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3833    echo 'Configuration will proceed anyway, since you have set the' >&2
3834    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3835    echo >&2
3836  else
3837    cat >&2 <<'END'
3838Aborting the configuration process, to ensure you take notice of the issue.
3839
3840You can download and install GNU coreutils to get an 'rm' implementation
3841that behaves properly: <http://www.gnu.org/software/coreutils/>.
3842
3843If you want to complete the configuration process using your problematic
3844'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3845to "yes", and re-run configure.
3846
3847END
3848    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3849  fi
3850fi
3851
3852
3853
3854
3855
3856
3857
3858
3859if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3860	if test -n "$ac_tool_prefix"; then
3861  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3862set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3864$as_echo_n "checking for $ac_word... " >&6; }
3865if ${ac_cv_path_PKG_CONFIG+:} false; then :
3866  $as_echo_n "(cached) " >&6
3867else
3868  case $PKG_CONFIG in
3869  [\\/]* | ?:[\\/]*)
3870  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3871  ;;
3872  *)
3873  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874for as_dir in $PATH
3875do
3876  IFS=$as_save_IFS
3877  test -z "$as_dir" && as_dir=.
3878    for ac_exec_ext in '' $ac_executable_extensions; do
3879  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3880    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3881    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3882    break 2
3883  fi
3884done
3885  done
3886IFS=$as_save_IFS
3887
3888  ;;
3889esac
3890fi
3891PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3892if test -n "$PKG_CONFIG"; then
3893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3894$as_echo "$PKG_CONFIG" >&6; }
3895else
3896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897$as_echo "no" >&6; }
3898fi
3899
3900
3901fi
3902if test -z "$ac_cv_path_PKG_CONFIG"; then
3903  ac_pt_PKG_CONFIG=$PKG_CONFIG
3904  # Extract the first word of "pkg-config", so it can be a program name with args.
3905set dummy pkg-config; ac_word=$2
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3907$as_echo_n "checking for $ac_word... " >&6; }
3908if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3909  $as_echo_n "(cached) " >&6
3910else
3911  case $ac_pt_PKG_CONFIG in
3912  [\\/]* | ?:[\\/]*)
3913  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3914  ;;
3915  *)
3916  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917for as_dir in $PATH
3918do
3919  IFS=$as_save_IFS
3920  test -z "$as_dir" && as_dir=.
3921    for ac_exec_ext in '' $ac_executable_extensions; do
3922  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3923    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3924    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3925    break 2
3926  fi
3927done
3928  done
3929IFS=$as_save_IFS
3930
3931  ;;
3932esac
3933fi
3934ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3935if test -n "$ac_pt_PKG_CONFIG"; then
3936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3937$as_echo "$ac_pt_PKG_CONFIG" >&6; }
3938else
3939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3940$as_echo "no" >&6; }
3941fi
3942
3943  if test "x$ac_pt_PKG_CONFIG" = x; then
3944    PKG_CONFIG=""
3945  else
3946    case $cross_compiling:$ac_tool_warned in
3947yes:)
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3949$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3950ac_tool_warned=yes ;;
3951esac
3952    PKG_CONFIG=$ac_pt_PKG_CONFIG
3953  fi
3954else
3955  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3956fi
3957
3958fi
3959if test -n "$PKG_CONFIG"; then
3960	_pkg_min_version=0.9.0
3961	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3962$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3963	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3964		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3965$as_echo "yes" >&6; }
3966	else
3967		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968$as_echo "no" >&6; }
3969		PKG_CONFIG=""
3970	fi
3971fi
3972
3973
3974if test "x$PY_PREFIX" = x; then :
3975  PY_PREFIX="/usr"
3976fi
3977
3978
3979if test "x$JAVA_PREFIX" != x; then :
3980  JAVA_PREFIX="$JAVA_PREFIX/usr/local/lib"
3981elif test "x$PREFIX" != x; then :
3982  JAVA_PREFIX="$PREFIX/usr/local/lib"
3983else
3984  JAVA_PREFIX="/usr/local/lib"
3985fi
3986
3987
3988
3989
3990if test "x$PHP_PREFIX" = x; then :
3991  PHP_PREFIX="/usr/lib/php"
3992fi
3993
3994
3995if test "x$PHP_CONFIG_PREFIX" = x; then :
3996  PHP_CONFIG_PREFIX="/etc/php.d"
3997fi
3998
3999
4000if test "x$INSTALLDIRS" = x; then :
4001  INSTALLDIRS="vendor"
4002fi
4003
4004
4005if test "x$PERL_PREFIX" = x; then :
4006  PERL_PREFIX="/usr/local"
4007fi
4008
4009
4010
4011
4012
4013
4014if test "x$D_IMPORT_PREFIX" = x; then :
4015  D_IMPORT_PREFIX="${includedir}/d2"
4016fi
4017
4018
4019
4020
4021
4022if test "x$THRIFT" = x; then :
4023  THRIFT=`pwd`/compiler/cpp/thrift
4024fi
4025
4026ac_ext=c
4027ac_cpp='$CPP $CPPFLAGS'
4028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4030ac_compiler_gnu=$ac_cv_c_compiler_gnu
4031if test -n "$ac_tool_prefix"; then
4032  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4033set dummy ${ac_tool_prefix}gcc; ac_word=$2
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4035$as_echo_n "checking for $ac_word... " >&6; }
4036if ${ac_cv_prog_CC+:} false; then :
4037  $as_echo_n "(cached) " >&6
4038else
4039  if test -n "$CC"; then
4040  ac_cv_prog_CC="$CC" # Let the user override the test.
4041else
4042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043for as_dir in $PATH
4044do
4045  IFS=$as_save_IFS
4046  test -z "$as_dir" && as_dir=.
4047    for ac_exec_ext in '' $ac_executable_extensions; do
4048  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4049    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4051    break 2
4052  fi
4053done
4054  done
4055IFS=$as_save_IFS
4056
4057fi
4058fi
4059CC=$ac_cv_prog_CC
4060if test -n "$CC"; then
4061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4062$as_echo "$CC" >&6; }
4063else
4064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065$as_echo "no" >&6; }
4066fi
4067
4068
4069fi
4070if test -z "$ac_cv_prog_CC"; then
4071  ac_ct_CC=$CC
4072  # Extract the first word of "gcc", so it can be a program name with args.
4073set dummy gcc; ac_word=$2
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4075$as_echo_n "checking for $ac_word... " >&6; }
4076if ${ac_cv_prog_ac_ct_CC+:} false; then :
4077  $as_echo_n "(cached) " >&6
4078else
4079  if test -n "$ac_ct_CC"; then
4080  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4081else
4082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083for as_dir in $PATH
4084do
4085  IFS=$as_save_IFS
4086  test -z "$as_dir" && as_dir=.
4087    for ac_exec_ext in '' $ac_executable_extensions; do
4088  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4089    ac_cv_prog_ac_ct_CC="gcc"
4090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4091    break 2
4092  fi
4093done
4094  done
4095IFS=$as_save_IFS
4096
4097fi
4098fi
4099ac_ct_CC=$ac_cv_prog_ac_ct_CC
4100if test -n "$ac_ct_CC"; then
4101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4102$as_echo "$ac_ct_CC" >&6; }
4103else
4104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4105$as_echo "no" >&6; }
4106fi
4107
4108  if test "x$ac_ct_CC" = x; then
4109    CC=""
4110  else
4111    case $cross_compiling:$ac_tool_warned in
4112yes:)
4113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4115ac_tool_warned=yes ;;
4116esac
4117    CC=$ac_ct_CC
4118  fi
4119else
4120  CC="$ac_cv_prog_CC"
4121fi
4122
4123if test -z "$CC"; then
4124          if test -n "$ac_tool_prefix"; then
4125    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4126set dummy ${ac_tool_prefix}cc; ac_word=$2
4127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4128$as_echo_n "checking for $ac_word... " >&6; }
4129if ${ac_cv_prog_CC+:} false; then :
4130  $as_echo_n "(cached) " >&6
4131else
4132  if test -n "$CC"; then
4133  ac_cv_prog_CC="$CC" # Let the user override the test.
4134else
4135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136for as_dir in $PATH
4137do
4138  IFS=$as_save_IFS
4139  test -z "$as_dir" && as_dir=.
4140    for ac_exec_ext in '' $ac_executable_extensions; do
4141  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142    ac_cv_prog_CC="${ac_tool_prefix}cc"
4143    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4144    break 2
4145  fi
4146done
4147  done
4148IFS=$as_save_IFS
4149
4150fi
4151fi
4152CC=$ac_cv_prog_CC
4153if test -n "$CC"; then
4154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4155$as_echo "$CC" >&6; }
4156else
4157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158$as_echo "no" >&6; }
4159fi
4160
4161
4162  fi
4163fi
4164if test -z "$CC"; then
4165  # Extract the first word of "cc", so it can be a program name with args.
4166set dummy cc; ac_word=$2
4167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168$as_echo_n "checking for $ac_word... " >&6; }
4169if ${ac_cv_prog_CC+:} false; then :
4170  $as_echo_n "(cached) " >&6
4171else
4172  if test -n "$CC"; then
4173  ac_cv_prog_CC="$CC" # Let the user override the test.
4174else
4175  ac_prog_rejected=no
4176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177for as_dir in $PATH
4178do
4179  IFS=$as_save_IFS
4180  test -z "$as_dir" && as_dir=.
4181    for ac_exec_ext in '' $ac_executable_extensions; do
4182  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4183    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4184       ac_prog_rejected=yes
4185       continue
4186     fi
4187    ac_cv_prog_CC="cc"
4188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189    break 2
4190  fi
4191done
4192  done
4193IFS=$as_save_IFS
4194
4195if test $ac_prog_rejected = yes; then
4196  # We found a bogon in the path, so make sure we never use it.
4197  set dummy $ac_cv_prog_CC
4198  shift
4199  if test $# != 0; then
4200    # We chose a different compiler from the bogus one.
4201    # However, it has the same basename, so the bogon will be chosen
4202    # first if we set CC to just the basename; use the full file name.
4203    shift
4204    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4205  fi
4206fi
4207fi
4208fi
4209CC=$ac_cv_prog_CC
4210if test -n "$CC"; then
4211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4212$as_echo "$CC" >&6; }
4213else
4214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215$as_echo "no" >&6; }
4216fi
4217
4218
4219fi
4220if test -z "$CC"; then
4221  if test -n "$ac_tool_prefix"; then
4222  for ac_prog in cl.exe
4223  do
4224    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4225set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227$as_echo_n "checking for $ac_word... " >&6; }
4228if ${ac_cv_prog_CC+:} false; then :
4229  $as_echo_n "(cached) " >&6
4230else
4231  if test -n "$CC"; then
4232  ac_cv_prog_CC="$CC" # Let the user override the test.
4233else
4234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235for as_dir in $PATH
4236do
4237  IFS=$as_save_IFS
4238  test -z "$as_dir" && as_dir=.
4239    for ac_exec_ext in '' $ac_executable_extensions; do
4240  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4241    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243    break 2
4244  fi
4245done
4246  done
4247IFS=$as_save_IFS
4248
4249fi
4250fi
4251CC=$ac_cv_prog_CC
4252if test -n "$CC"; then
4253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4254$as_echo "$CC" >&6; }
4255else
4256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257$as_echo "no" >&6; }
4258fi
4259
4260
4261    test -n "$CC" && break
4262  done
4263fi
4264if test -z "$CC"; then
4265  ac_ct_CC=$CC
4266  for ac_prog in cl.exe
4267do
4268  # Extract the first word of "$ac_prog", so it can be a program name with args.
4269set dummy $ac_prog; ac_word=$2
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4271$as_echo_n "checking for $ac_word... " >&6; }
4272if ${ac_cv_prog_ac_ct_CC+:} false; then :
4273  $as_echo_n "(cached) " >&6
4274else
4275  if test -n "$ac_ct_CC"; then
4276  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4277else
4278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279for as_dir in $PATH
4280do
4281  IFS=$as_save_IFS
4282  test -z "$as_dir" && as_dir=.
4283    for ac_exec_ext in '' $ac_executable_extensions; do
4284  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285    ac_cv_prog_ac_ct_CC="$ac_prog"
4286    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4287    break 2
4288  fi
4289done
4290  done
4291IFS=$as_save_IFS
4292
4293fi
4294fi
4295ac_ct_CC=$ac_cv_prog_ac_ct_CC
4296if test -n "$ac_ct_CC"; then
4297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4298$as_echo "$ac_ct_CC" >&6; }
4299else
4300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301$as_echo "no" >&6; }
4302fi
4303
4304
4305  test -n "$ac_ct_CC" && break
4306done
4307
4308  if test "x$ac_ct_CC" = x; then
4309    CC=""
4310  else
4311    case $cross_compiling:$ac_tool_warned in
4312yes:)
4313{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4314$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4315ac_tool_warned=yes ;;
4316esac
4317    CC=$ac_ct_CC
4318  fi
4319fi
4320
4321fi
4322
4323
4324test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4326as_fn_error $? "no acceptable C compiler found in \$PATH
4327See \`config.log' for more details" "$LINENO" 5; }
4328
4329# Provide some information about the compiler.
4330$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4331set X $ac_compile
4332ac_compiler=$2
4333for ac_option in --version -v -V -qversion; do
4334  { { ac_try="$ac_compiler $ac_option >&5"
4335case "(($ac_try" in
4336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337  *) ac_try_echo=$ac_try;;
4338esac
4339eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4340$as_echo "$ac_try_echo"; } >&5
4341  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4342  ac_status=$?
4343  if test -s conftest.err; then
4344    sed '10a\
4345... rest of stderr output deleted ...
4346         10q' conftest.err >conftest.er1
4347    cat conftest.er1 >&5
4348  fi
4349  rm -f conftest.er1 conftest.err
4350  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4351  test $ac_status = 0; }
4352done
4353
4354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355/* end confdefs.h.  */
4356
4357int
4358main ()
4359{
4360
4361  ;
4362  return 0;
4363}
4364_ACEOF
4365ac_clean_files_save=$ac_clean_files
4366ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4367# Try to create an executable without -o first, disregard a.out.
4368# It will help us diagnose broken compilers, and finding out an intuition
4369# of exeext.
4370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4371$as_echo_n "checking whether the C compiler works... " >&6; }
4372ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4373
4374# The possible output files:
4375ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4376
4377ac_rmfiles=
4378for ac_file in $ac_files
4379do
4380  case $ac_file in
4381    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4382    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4383  esac
4384done
4385rm -f $ac_rmfiles
4386
4387if { { ac_try="$ac_link_default"
4388case "(($ac_try" in
4389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390  *) ac_try_echo=$ac_try;;
4391esac
4392eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4393$as_echo "$ac_try_echo"; } >&5
4394  (eval "$ac_link_default") 2>&5
4395  ac_status=$?
4396  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4397  test $ac_status = 0; }; then :
4398  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4399# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4400# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4401# so that the user can short-circuit this test for compilers unknown to
4402# Autoconf.
4403for ac_file in $ac_files ''
4404do
4405  test -f "$ac_file" || continue
4406  case $ac_file in
4407    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4408	;;
4409    [ab].out )
4410	# We found the default executable, but exeext='' is most
4411	# certainly right.
4412	break;;
4413    *.* )
4414	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4415	then :; else
4416	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4417	fi
4418	# We set ac_cv_exeext here because the later test for it is not
4419	# safe: cross compilers may not add the suffix if given an `-o'
4420	# argument, so we may need to know it at that point already.
4421	# Even if this section looks crufty: it has the advantage of
4422	# actually working.
4423	break;;
4424    * )
4425	break;;
4426  esac
4427done
4428test "$ac_cv_exeext" = no && ac_cv_exeext=
4429
4430else
4431  ac_file=''
4432fi
4433if test -z "$ac_file"; then :
4434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435$as_echo "no" >&6; }
4436$as_echo "$as_me: failed program was:" >&5
4437sed 's/^/| /' conftest.$ac_ext >&5
4438
4439{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4441as_fn_error 77 "C compiler cannot create executables
4442See \`config.log' for more details" "$LINENO" 5; }
4443else
4444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4445$as_echo "yes" >&6; }
4446fi
4447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4448$as_echo_n "checking for C compiler default output file name... " >&6; }
4449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4450$as_echo "$ac_file" >&6; }
4451ac_exeext=$ac_cv_exeext
4452
4453rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4454ac_clean_files=$ac_clean_files_save
4455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4456$as_echo_n "checking for suffix of executables... " >&6; }
4457if { { ac_try="$ac_link"
4458case "(($ac_try" in
4459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460  *) ac_try_echo=$ac_try;;
4461esac
4462eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4463$as_echo "$ac_try_echo"; } >&5
4464  (eval "$ac_link") 2>&5
4465  ac_status=$?
4466  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4467  test $ac_status = 0; }; then :
4468  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4469# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4470# work properly (i.e., refer to `conftest.exe'), while it won't with
4471# `rm'.
4472for ac_file in conftest.exe conftest conftest.*; do
4473  test -f "$ac_file" || continue
4474  case $ac_file in
4475    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4476    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4477	  break;;
4478    * ) break;;
4479  esac
4480done
4481else
4482  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4483$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4484as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4485See \`config.log' for more details" "$LINENO" 5; }
4486fi
4487rm -f conftest conftest$ac_cv_exeext
4488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4489$as_echo "$ac_cv_exeext" >&6; }
4490
4491rm -f conftest.$ac_ext
4492EXEEXT=$ac_cv_exeext
4493ac_exeext=$EXEEXT
4494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495/* end confdefs.h.  */
4496#include <stdio.h>
4497int
4498main ()
4499{
4500FILE *f = fopen ("conftest.out", "w");
4501 return ferror (f) || fclose (f) != 0;
4502
4503  ;
4504  return 0;
4505}
4506_ACEOF
4507ac_clean_files="$ac_clean_files conftest.out"
4508# Check that the compiler produces executables we can run.  If not, either
4509# the compiler is broken, or we cross compile.
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4511$as_echo_n "checking whether we are cross compiling... " >&6; }
4512if test "$cross_compiling" != yes; then
4513  { { ac_try="$ac_link"
4514case "(($ac_try" in
4515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516  *) ac_try_echo=$ac_try;;
4517esac
4518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4519$as_echo "$ac_try_echo"; } >&5
4520  (eval "$ac_link") 2>&5
4521  ac_status=$?
4522  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4523  test $ac_status = 0; }
4524  if { ac_try='./conftest$ac_cv_exeext'
4525  { { case "(($ac_try" in
4526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527  *) ac_try_echo=$ac_try;;
4528esac
4529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4530$as_echo "$ac_try_echo"; } >&5
4531  (eval "$ac_try") 2>&5
4532  ac_status=$?
4533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4534  test $ac_status = 0; }; }; then
4535    cross_compiling=no
4536  else
4537    if test "$cross_compiling" = maybe; then
4538	cross_compiling=yes
4539    else
4540	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4542as_fn_error $? "cannot run C compiled programs.
4543If you meant to cross compile, use \`--host'.
4544See \`config.log' for more details" "$LINENO" 5; }
4545    fi
4546  fi
4547fi
4548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4549$as_echo "$cross_compiling" >&6; }
4550
4551rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4552ac_clean_files=$ac_clean_files_save
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4554$as_echo_n "checking for suffix of object files... " >&6; }
4555if ${ac_cv_objext+:} false; then :
4556  $as_echo_n "(cached) " >&6
4557else
4558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559/* end confdefs.h.  */
4560
4561int
4562main ()
4563{
4564
4565  ;
4566  return 0;
4567}
4568_ACEOF
4569rm -f conftest.o conftest.obj
4570if { { ac_try="$ac_compile"
4571case "(($ac_try" in
4572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573  *) ac_try_echo=$ac_try;;
4574esac
4575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4576$as_echo "$ac_try_echo"; } >&5
4577  (eval "$ac_compile") 2>&5
4578  ac_status=$?
4579  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4580  test $ac_status = 0; }; then :
4581  for ac_file in conftest.o conftest.obj conftest.*; do
4582  test -f "$ac_file" || continue;
4583  case $ac_file in
4584    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4585    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4586       break;;
4587  esac
4588done
4589else
4590  $as_echo "$as_me: failed program was:" >&5
4591sed 's/^/| /' conftest.$ac_ext >&5
4592
4593{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4594$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4595as_fn_error $? "cannot compute suffix of object files: cannot compile
4596See \`config.log' for more details" "$LINENO" 5; }
4597fi
4598rm -f conftest.$ac_cv_objext conftest.$ac_ext
4599fi
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4601$as_echo "$ac_cv_objext" >&6; }
4602OBJEXT=$ac_cv_objext
4603ac_objext=$OBJEXT
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4605$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4606if ${ac_cv_c_compiler_gnu+:} false; then :
4607  $as_echo_n "(cached) " >&6
4608else
4609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610/* end confdefs.h.  */
4611
4612int
4613main ()
4614{
4615#ifndef __GNUC__
4616       choke me
4617#endif
4618
4619  ;
4620  return 0;
4621}
4622_ACEOF
4623if ac_fn_c_try_compile "$LINENO"; then :
4624  ac_compiler_gnu=yes
4625else
4626  ac_compiler_gnu=no
4627fi
4628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4629ac_cv_c_compiler_gnu=$ac_compiler_gnu
4630
4631fi
4632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4633$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4634if test $ac_compiler_gnu = yes; then
4635  GCC=yes
4636else
4637  GCC=
4638fi
4639ac_test_CFLAGS=${CFLAGS+set}
4640ac_save_CFLAGS=$CFLAGS
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4642$as_echo_n "checking whether $CC accepts -g... " >&6; }
4643if ${ac_cv_prog_cc_g+:} false; then :
4644  $as_echo_n "(cached) " >&6
4645else
4646  ac_save_c_werror_flag=$ac_c_werror_flag
4647   ac_c_werror_flag=yes
4648   ac_cv_prog_cc_g=no
4649   CFLAGS="-g"
4650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651/* end confdefs.h.  */
4652
4653int
4654main ()
4655{
4656
4657  ;
4658  return 0;
4659}
4660_ACEOF
4661if ac_fn_c_try_compile "$LINENO"; then :
4662  ac_cv_prog_cc_g=yes
4663else
4664  CFLAGS=""
4665      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666/* end confdefs.h.  */
4667
4668int
4669main ()
4670{
4671
4672  ;
4673  return 0;
4674}
4675_ACEOF
4676if ac_fn_c_try_compile "$LINENO"; then :
4677
4678else
4679  ac_c_werror_flag=$ac_save_c_werror_flag
4680	 CFLAGS="-g"
4681	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682/* end confdefs.h.  */
4683
4684int
4685main ()
4686{
4687
4688  ;
4689  return 0;
4690}
4691_ACEOF
4692if ac_fn_c_try_compile "$LINENO"; then :
4693  ac_cv_prog_cc_g=yes
4694fi
4695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4696fi
4697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4698fi
4699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4700   ac_c_werror_flag=$ac_save_c_werror_flag
4701fi
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4703$as_echo "$ac_cv_prog_cc_g" >&6; }
4704if test "$ac_test_CFLAGS" = set; then
4705  CFLAGS=$ac_save_CFLAGS
4706elif test $ac_cv_prog_cc_g = yes; then
4707  if test "$GCC" = yes; then
4708    CFLAGS="-g -O2"
4709  else
4710    CFLAGS="-g"
4711  fi
4712else
4713  if test "$GCC" = yes; then
4714    CFLAGS="-O2"
4715  else
4716    CFLAGS=
4717  fi
4718fi
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4720$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4721if ${ac_cv_prog_cc_c89+:} false; then :
4722  $as_echo_n "(cached) " >&6
4723else
4724  ac_cv_prog_cc_c89=no
4725ac_save_CC=$CC
4726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727/* end confdefs.h.  */
4728#include <stdarg.h>
4729#include <stdio.h>
4730struct stat;
4731/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4732struct buf { int x; };
4733FILE * (*rcsopen) (struct buf *, struct stat *, int);
4734static char *e (p, i)
4735     char **p;
4736     int i;
4737{
4738  return p[i];
4739}
4740static char *f (char * (*g) (char **, int), char **p, ...)
4741{
4742  char *s;
4743  va_list v;
4744  va_start (v,p);
4745  s = g (p, va_arg (v,int));
4746  va_end (v);
4747  return s;
4748}
4749
4750/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4751   function prototypes and stuff, but not '\xHH' hex character constants.
4752   These don't provoke an error unfortunately, instead are silently treated
4753   as 'x'.  The following induces an error, until -std is added to get
4754   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4755   array size at least.  It's necessary to write '\x00'==0 to get something
4756   that's true only with -std.  */
4757int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4758
4759/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4760   inside strings and character constants.  */
4761#define FOO(x) 'x'
4762int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4763
4764int test (int i, double x);
4765struct s1 {int (*f) (int a);};
4766struct s2 {int (*f) (double a);};
4767int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4768int argc;
4769char **argv;
4770int
4771main ()
4772{
4773return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4774  ;
4775  return 0;
4776}
4777_ACEOF
4778for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4779	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4780do
4781  CC="$ac_save_CC $ac_arg"
4782  if ac_fn_c_try_compile "$LINENO"; then :
4783  ac_cv_prog_cc_c89=$ac_arg
4784fi
4785rm -f core conftest.err conftest.$ac_objext
4786  test "x$ac_cv_prog_cc_c89" != "xno" && break
4787done
4788rm -f conftest.$ac_ext
4789CC=$ac_save_CC
4790
4791fi
4792# AC_CACHE_VAL
4793case "x$ac_cv_prog_cc_c89" in
4794  x)
4795    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4796$as_echo "none needed" >&6; } ;;
4797  xno)
4798    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4799$as_echo "unsupported" >&6; } ;;
4800  *)
4801    CC="$CC $ac_cv_prog_cc_c89"
4802    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4803$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4804esac
4805if test "x$ac_cv_prog_cc_c89" != xno; then :
4806
4807fi
4808
4809ac_ext=c
4810ac_cpp='$CPP $CPPFLAGS'
4811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4813ac_compiler_gnu=$ac_cv_c_compiler_gnu
4814
4815ac_ext=c
4816ac_cpp='$CPP $CPPFLAGS'
4817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4819ac_compiler_gnu=$ac_cv_c_compiler_gnu
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4821$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4822if ${am_cv_prog_cc_c_o+:} false; then :
4823  $as_echo_n "(cached) " >&6
4824else
4825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826/* end confdefs.h.  */
4827
4828int
4829main ()
4830{
4831
4832  ;
4833  return 0;
4834}
4835_ACEOF
4836  # Make sure it works both with $CC and with simple cc.
4837  # Following AC_PROG_CC_C_O, we do the test twice because some
4838  # compilers refuse to overwrite an existing .o file with -o,
4839  # though they will create one.
4840  am_cv_prog_cc_c_o=yes
4841  for am_i in 1 2; do
4842    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4843   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4844   ac_status=$?
4845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846   (exit $ac_status); } \
4847         && test -f conftest2.$ac_objext; then
4848      : OK
4849    else
4850      am_cv_prog_cc_c_o=no
4851      break
4852    fi
4853  done
4854  rm -f core conftest*
4855  unset am_i
4856fi
4857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4858$as_echo "$am_cv_prog_cc_c_o" >&6; }
4859if test "$am_cv_prog_cc_c_o" != yes; then
4860   # Losing compiler, so override with the script.
4861   # FIXME: It is wrong to rewrite CC.
4862   # But if we don't then we get into trouble of one sort or another.
4863   # A longer-term fix would be to have automake use am__CC in this case,
4864   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4865   CC="$am_aux_dir/compile $CC"
4866fi
4867ac_ext=c
4868ac_cpp='$CPP $CPPFLAGS'
4869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4871ac_compiler_gnu=$ac_cv_c_compiler_gnu
4872
4873DEPDIR="${am__leading_dot}deps"
4874
4875ac_config_commands="$ac_config_commands depfiles"
4876
4877
4878am_make=${MAKE-make}
4879cat > confinc << 'END'
4880am__doit:
4881	@echo this is the am__doit target
4882.PHONY: am__doit
4883END
4884# If we don't find an include directive, just comment out the code.
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4886$as_echo_n "checking for style of include used by $am_make... " >&6; }
4887am__include="#"
4888am__quote=
4889_am_result=none
4890# First try GNU make style include.
4891echo "include confinc" > confmf
4892# Ignore all kinds of additional output from 'make'.
4893case `$am_make -s -f confmf 2> /dev/null` in #(
4894*the\ am__doit\ target*)
4895  am__include=include
4896  am__quote=
4897  _am_result=GNU
4898  ;;
4899esac
4900# Now try BSD make style include.
4901if test "$am__include" = "#"; then
4902   echo '.include "confinc"' > confmf
4903   case `$am_make -s -f confmf 2> /dev/null` in #(
4904   *the\ am__doit\ target*)
4905     am__include=.include
4906     am__quote="\""
4907     _am_result=BSD
4908     ;;
4909   esac
4910fi
4911
4912
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4914$as_echo "$_am_result" >&6; }
4915rm -f confinc confmf
4916
4917# Check whether --enable-dependency-tracking was given.
4918if test "${enable_dependency_tracking+set}" = set; then :
4919  enableval=$enable_dependency_tracking;
4920fi
4921
4922if test "x$enable_dependency_tracking" != xno; then
4923  am_depcomp="$ac_aux_dir/depcomp"
4924  AMDEPBACKSLASH='\'
4925  am__nodep='_no'
4926fi
4927 if test "x$enable_dependency_tracking" != xno; then
4928  AMDEP_TRUE=
4929  AMDEP_FALSE='#'
4930else
4931  AMDEP_TRUE='#'
4932  AMDEP_FALSE=
4933fi
4934
4935
4936
4937depcc="$CC"   am_compiler_list=
4938
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4940$as_echo_n "checking dependency style of $depcc... " >&6; }
4941if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4942  $as_echo_n "(cached) " >&6
4943else
4944  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4945  # We make a subdir and do the tests there.  Otherwise we can end up
4946  # making bogus files that we don't know about and never remove.  For
4947  # instance it was reported that on HP-UX the gcc test will end up
4948  # making a dummy file named 'D' -- because '-MD' means "put the output
4949  # in D".
4950  rm -rf conftest.dir
4951  mkdir conftest.dir
4952  # Copy depcomp to subdir because otherwise we won't find it if we're
4953  # using a relative directory.
4954  cp "$am_depcomp" conftest.dir
4955  cd conftest.dir
4956  # We will build objects and dependencies in a subdirectory because
4957  # it helps to detect inapplicable dependency modes.  For instance
4958  # both Tru64's cc and ICC support -MD to output dependencies as a
4959  # side effect of compilation, but ICC will put the dependencies in
4960  # the current directory while Tru64 will put them in the object
4961  # directory.
4962  mkdir sub
4963
4964  am_cv_CC_dependencies_compiler_type=none
4965  if test "$am_compiler_list" = ""; then
4966     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4967  fi
4968  am__universal=false
4969  case " $depcc " in #(
4970     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4971     esac
4972
4973  for depmode in $am_compiler_list; do
4974    # Setup a source with many dependencies, because some compilers
4975    # like to wrap large dependency lists on column 80 (with \), and
4976    # we should not choose a depcomp mode which is confused by this.
4977    #
4978    # We need to recreate these files for each test, as the compiler may
4979    # overwrite some of them when testing with obscure command lines.
4980    # This happens at least with the AIX C compiler.
4981    : > sub/conftest.c
4982    for i in 1 2 3 4 5 6; do
4983      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4984      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4985      # Solaris 10 /bin/sh.
4986      echo '/* dummy */' > sub/conftst$i.h
4987    done
4988    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4989
4990    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4991    # mode.  It turns out that the SunPro C++ compiler does not properly
4992    # handle '-M -o', and we need to detect this.  Also, some Intel
4993    # versions had trouble with output in subdirs.
4994    am__obj=sub/conftest.${OBJEXT-o}
4995    am__minus_obj="-o $am__obj"
4996    case $depmode in
4997    gcc)
4998      # This depmode causes a compiler race in universal mode.
4999      test "$am__universal" = false || continue
5000      ;;
5001    nosideeffect)
5002      # After this tag, mechanisms are not by side-effect, so they'll
5003      # only be used when explicitly requested.
5004      if test "x$enable_dependency_tracking" = xyes; then
5005	continue
5006      else
5007	break
5008      fi
5009      ;;
5010    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5011      # This compiler won't grok '-c -o', but also, the minuso test has
5012      # not run yet.  These depmodes are late enough in the game, and
5013      # so weak that their functioning should not be impacted.
5014      am__obj=conftest.${OBJEXT-o}
5015      am__minus_obj=
5016      ;;
5017    none) break ;;
5018    esac
5019    if depmode=$depmode \
5020       source=sub/conftest.c object=$am__obj \
5021       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5022       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5023         >/dev/null 2>conftest.err &&
5024       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5025       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5026       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5027       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5028      # icc doesn't choke on unknown options, it will just issue warnings
5029      # or remarks (even with -Werror).  So we grep stderr for any message
5030      # that says an option was ignored or not supported.
5031      # When given -MP, icc 7.0 and 7.1 complain thusly:
5032      #   icc: Command line warning: ignoring option '-M'; no argument required
5033      # The diagnosis changed in icc 8.0:
5034      #   icc: Command line remark: option '-MP' not supported
5035      if (grep 'ignoring option' conftest.err ||
5036          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5037        am_cv_CC_dependencies_compiler_type=$depmode
5038        break
5039      fi
5040    fi
5041  done
5042
5043  cd ..
5044  rm -rf conftest.dir
5045else
5046  am_cv_CC_dependencies_compiler_type=none
5047fi
5048
5049fi
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5051$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5052CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5053
5054 if
5055  test "x$enable_dependency_tracking" != xno \
5056  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5057  am__fastdepCC_TRUE=
5058  am__fastdepCC_FALSE='#'
5059else
5060  am__fastdepCC_TRUE='#'
5061  am__fastdepCC_FALSE=
5062fi
5063
5064
5065ac_ext=c
5066ac_cpp='$CPP $CPPFLAGS'
5067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5069ac_compiler_gnu=$ac_cv_c_compiler_gnu
5070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5071$as_echo_n "checking how to run the C preprocessor... " >&6; }
5072# On Suns, sometimes $CPP names a directory.
5073if test -n "$CPP" && test -d "$CPP"; then
5074  CPP=
5075fi
5076if test -z "$CPP"; then
5077  if ${ac_cv_prog_CPP+:} false; then :
5078  $as_echo_n "(cached) " >&6
5079else
5080      # Double quotes because CPP needs to be expanded
5081    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5082    do
5083      ac_preproc_ok=false
5084for ac_c_preproc_warn_flag in '' yes
5085do
5086  # Use a header file that comes with gcc, so configuring glibc
5087  # with a fresh cross-compiler works.
5088  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5089  # <limits.h> exists even on freestanding compilers.
5090  # On the NeXT, cc -E runs the code through the compiler's parser,
5091  # not just through cpp. "Syntax error" is here to catch this case.
5092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093/* end confdefs.h.  */
5094#ifdef __STDC__
5095# include <limits.h>
5096#else
5097# include <assert.h>
5098#endif
5099		     Syntax error
5100_ACEOF
5101if ac_fn_c_try_cpp "$LINENO"; then :
5102
5103else
5104  # Broken: fails on valid input.
5105continue
5106fi
5107rm -f conftest.err conftest.i conftest.$ac_ext
5108
5109  # OK, works on sane cases.  Now check whether nonexistent headers
5110  # can be detected and how.
5111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112/* end confdefs.h.  */
5113#include <ac_nonexistent.h>
5114_ACEOF
5115if ac_fn_c_try_cpp "$LINENO"; then :
5116  # Broken: success on invalid input.
5117continue
5118else
5119  # Passes both tests.
5120ac_preproc_ok=:
5121break
5122fi
5123rm -f conftest.err conftest.i conftest.$ac_ext
5124
5125done
5126# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5127rm -f conftest.i conftest.err conftest.$ac_ext
5128if $ac_preproc_ok; then :
5129  break
5130fi
5131
5132    done
5133    ac_cv_prog_CPP=$CPP
5134
5135fi
5136  CPP=$ac_cv_prog_CPP
5137else
5138  ac_cv_prog_CPP=$CPP
5139fi
5140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5141$as_echo "$CPP" >&6; }
5142ac_preproc_ok=false
5143for ac_c_preproc_warn_flag in '' yes
5144do
5145  # Use a header file that comes with gcc, so configuring glibc
5146  # with a fresh cross-compiler works.
5147  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5148  # <limits.h> exists even on freestanding compilers.
5149  # On the NeXT, cc -E runs the code through the compiler's parser,
5150  # not just through cpp. "Syntax error" is here to catch this case.
5151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152/* end confdefs.h.  */
5153#ifdef __STDC__
5154# include <limits.h>
5155#else
5156# include <assert.h>
5157#endif
5158		     Syntax error
5159_ACEOF
5160if ac_fn_c_try_cpp "$LINENO"; then :
5161
5162else
5163  # Broken: fails on valid input.
5164continue
5165fi
5166rm -f conftest.err conftest.i conftest.$ac_ext
5167
5168  # OK, works on sane cases.  Now check whether nonexistent headers
5169  # can be detected and how.
5170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171/* end confdefs.h.  */
5172#include <ac_nonexistent.h>
5173_ACEOF
5174if ac_fn_c_try_cpp "$LINENO"; then :
5175  # Broken: success on invalid input.
5176continue
5177else
5178  # Passes both tests.
5179ac_preproc_ok=:
5180break
5181fi
5182rm -f conftest.err conftest.i conftest.$ac_ext
5183
5184done
5185# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5186rm -f conftest.i conftest.err conftest.$ac_ext
5187if $ac_preproc_ok; then :
5188
5189else
5190  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5192as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5193See \`config.log' for more details" "$LINENO" 5; }
5194fi
5195
5196ac_ext=c
5197ac_cpp='$CPP $CPPFLAGS'
5198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5200ac_compiler_gnu=$ac_cv_c_compiler_gnu
5201
5202ac_ext=cpp
5203ac_cpp='$CXXCPP $CPPFLAGS'
5204ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5205ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5206ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5207if test -z "$CXX"; then
5208  if test -n "$CCC"; then
5209    CXX=$CCC
5210  else
5211    if test -n "$ac_tool_prefix"; then
5212  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5213  do
5214    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5215set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5217$as_echo_n "checking for $ac_word... " >&6; }
5218if ${ac_cv_prog_CXX+:} false; then :
5219  $as_echo_n "(cached) " >&6
5220else
5221  if test -n "$CXX"; then
5222  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5223else
5224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225for as_dir in $PATH
5226do
5227  IFS=$as_save_IFS
5228  test -z "$as_dir" && as_dir=.
5229    for ac_exec_ext in '' $ac_executable_extensions; do
5230  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5231    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5232    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5233    break 2
5234  fi
5235done
5236  done
5237IFS=$as_save_IFS
5238
5239fi
5240fi
5241CXX=$ac_cv_prog_CXX
5242if test -n "$CXX"; then
5243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5244$as_echo "$CXX" >&6; }
5245else
5246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5247$as_echo "no" >&6; }
5248fi
5249
5250
5251    test -n "$CXX" && break
5252  done
5253fi
5254if test -z "$CXX"; then
5255  ac_ct_CXX=$CXX
5256  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5257do
5258  # Extract the first word of "$ac_prog", so it can be a program name with args.
5259set dummy $ac_prog; ac_word=$2
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5261$as_echo_n "checking for $ac_word... " >&6; }
5262if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5263  $as_echo_n "(cached) " >&6
5264else
5265  if test -n "$ac_ct_CXX"; then
5266  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5267else
5268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269for as_dir in $PATH
5270do
5271  IFS=$as_save_IFS
5272  test -z "$as_dir" && as_dir=.
5273    for ac_exec_ext in '' $ac_executable_extensions; do
5274  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5275    ac_cv_prog_ac_ct_CXX="$ac_prog"
5276    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5277    break 2
5278  fi
5279done
5280  done
5281IFS=$as_save_IFS
5282
5283fi
5284fi
5285ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5286if test -n "$ac_ct_CXX"; then
5287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5288$as_echo "$ac_ct_CXX" >&6; }
5289else
5290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291$as_echo "no" >&6; }
5292fi
5293
5294
5295  test -n "$ac_ct_CXX" && break
5296done
5297
5298  if test "x$ac_ct_CXX" = x; then
5299    CXX="g++"
5300  else
5301    case $cross_compiling:$ac_tool_warned in
5302yes:)
5303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5305ac_tool_warned=yes ;;
5306esac
5307    CXX=$ac_ct_CXX
5308  fi
5309fi
5310
5311  fi
5312fi
5313# Provide some information about the compiler.
5314$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5315set X $ac_compile
5316ac_compiler=$2
5317for ac_option in --version -v -V -qversion; do
5318  { { ac_try="$ac_compiler $ac_option >&5"
5319case "(($ac_try" in
5320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321  *) ac_try_echo=$ac_try;;
5322esac
5323eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5324$as_echo "$ac_try_echo"; } >&5
5325  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5326  ac_status=$?
5327  if test -s conftest.err; then
5328    sed '10a\
5329... rest of stderr output deleted ...
5330         10q' conftest.err >conftest.er1
5331    cat conftest.er1 >&5
5332  fi
5333  rm -f conftest.er1 conftest.err
5334  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5335  test $ac_status = 0; }
5336done
5337
5338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5339$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5340if ${ac_cv_cxx_compiler_gnu+:} false; then :
5341  $as_echo_n "(cached) " >&6
5342else
5343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344/* end confdefs.h.  */
5345
5346int
5347main ()
5348{
5349#ifndef __GNUC__
5350       choke me
5351#endif
5352
5353  ;
5354  return 0;
5355}
5356_ACEOF
5357if ac_fn_cxx_try_compile "$LINENO"; then :
5358  ac_compiler_gnu=yes
5359else
5360  ac_compiler_gnu=no
5361fi
5362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5363ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5364
5365fi
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5367$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5368if test $ac_compiler_gnu = yes; then
5369  GXX=yes
5370else
5371  GXX=
5372fi
5373ac_test_CXXFLAGS=${CXXFLAGS+set}
5374ac_save_CXXFLAGS=$CXXFLAGS
5375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5376$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5377if ${ac_cv_prog_cxx_g+:} false; then :
5378  $as_echo_n "(cached) " >&6
5379else
5380  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5381   ac_cxx_werror_flag=yes
5382   ac_cv_prog_cxx_g=no
5383   CXXFLAGS="-g"
5384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385/* end confdefs.h.  */
5386
5387int
5388main ()
5389{
5390
5391  ;
5392  return 0;
5393}
5394_ACEOF
5395if ac_fn_cxx_try_compile "$LINENO"; then :
5396  ac_cv_prog_cxx_g=yes
5397else
5398  CXXFLAGS=""
5399      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400/* end confdefs.h.  */
5401
5402int
5403main ()
5404{
5405
5406  ;
5407  return 0;
5408}
5409_ACEOF
5410if ac_fn_cxx_try_compile "$LINENO"; then :
5411
5412else
5413  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5414	 CXXFLAGS="-g"
5415	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416/* end confdefs.h.  */
5417
5418int
5419main ()
5420{
5421
5422  ;
5423  return 0;
5424}
5425_ACEOF
5426if ac_fn_cxx_try_compile "$LINENO"; then :
5427  ac_cv_prog_cxx_g=yes
5428fi
5429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5430fi
5431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432fi
5433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5434   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5435fi
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5437$as_echo "$ac_cv_prog_cxx_g" >&6; }
5438if test "$ac_test_CXXFLAGS" = set; then
5439  CXXFLAGS=$ac_save_CXXFLAGS
5440elif test $ac_cv_prog_cxx_g = yes; then
5441  if test "$GXX" = yes; then
5442    CXXFLAGS="-g -O2"
5443  else
5444    CXXFLAGS="-g"
5445  fi
5446else
5447  if test "$GXX" = yes; then
5448    CXXFLAGS="-O2"
5449  else
5450    CXXFLAGS=
5451  fi
5452fi
5453ac_ext=c
5454ac_cpp='$CPP $CPPFLAGS'
5455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5457ac_compiler_gnu=$ac_cv_c_compiler_gnu
5458
5459depcc="$CXX"  am_compiler_list=
5460
5461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5462$as_echo_n "checking dependency style of $depcc... " >&6; }
5463if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5464  $as_echo_n "(cached) " >&6
5465else
5466  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5467  # We make a subdir and do the tests there.  Otherwise we can end up
5468  # making bogus files that we don't know about and never remove.  For
5469  # instance it was reported that on HP-UX the gcc test will end up
5470  # making a dummy file named 'D' -- because '-MD' means "put the output
5471  # in D".
5472  rm -rf conftest.dir
5473  mkdir conftest.dir
5474  # Copy depcomp to subdir because otherwise we won't find it if we're
5475  # using a relative directory.
5476  cp "$am_depcomp" conftest.dir
5477  cd conftest.dir
5478  # We will build objects and dependencies in a subdirectory because
5479  # it helps to detect inapplicable dependency modes.  For instance
5480  # both Tru64's cc and ICC support -MD to output dependencies as a
5481  # side effect of compilation, but ICC will put the dependencies in
5482  # the current directory while Tru64 will put them in the object
5483  # directory.
5484  mkdir sub
5485
5486  am_cv_CXX_dependencies_compiler_type=none
5487  if test "$am_compiler_list" = ""; then
5488     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5489  fi
5490  am__universal=false
5491  case " $depcc " in #(
5492     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5493     esac
5494
5495  for depmode in $am_compiler_list; do
5496    # Setup a source with many dependencies, because some compilers
5497    # like to wrap large dependency lists on column 80 (with \), and
5498    # we should not choose a depcomp mode which is confused by this.
5499    #
5500    # We need to recreate these files for each test, as the compiler may
5501    # overwrite some of them when testing with obscure command lines.
5502    # This happens at least with the AIX C compiler.
5503    : > sub/conftest.c
5504    for i in 1 2 3 4 5 6; do
5505      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5506      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5507      # Solaris 10 /bin/sh.
5508      echo '/* dummy */' > sub/conftst$i.h
5509    done
5510    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5511
5512    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5513    # mode.  It turns out that the SunPro C++ compiler does not properly
5514    # handle '-M -o', and we need to detect this.  Also, some Intel
5515    # versions had trouble with output in subdirs.
5516    am__obj=sub/conftest.${OBJEXT-o}
5517    am__minus_obj="-o $am__obj"
5518    case $depmode in
5519    gcc)
5520      # This depmode causes a compiler race in universal mode.
5521      test "$am__universal" = false || continue
5522      ;;
5523    nosideeffect)
5524      # After this tag, mechanisms are not by side-effect, so they'll
5525      # only be used when explicitly requested.
5526      if test "x$enable_dependency_tracking" = xyes; then
5527	continue
5528      else
5529	break
5530      fi
5531      ;;
5532    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5533      # This compiler won't grok '-c -o', but also, the minuso test has
5534      # not run yet.  These depmodes are late enough in the game, and
5535      # so weak that their functioning should not be impacted.
5536      am__obj=conftest.${OBJEXT-o}
5537      am__minus_obj=
5538      ;;
5539    none) break ;;
5540    esac
5541    if depmode=$depmode \
5542       source=sub/conftest.c object=$am__obj \
5543       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5544       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5545         >/dev/null 2>conftest.err &&
5546       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5547       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5548       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5549       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5550      # icc doesn't choke on unknown options, it will just issue warnings
5551      # or remarks (even with -Werror).  So we grep stderr for any message
5552      # that says an option was ignored or not supported.
5553      # When given -MP, icc 7.0 and 7.1 complain thusly:
5554      #   icc: Command line warning: ignoring option '-M'; no argument required
5555      # The diagnosis changed in icc 8.0:
5556      #   icc: Command line remark: option '-MP' not supported
5557      if (grep 'ignoring option' conftest.err ||
5558          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5559        am_cv_CXX_dependencies_compiler_type=$depmode
5560        break
5561      fi
5562    fi
5563  done
5564
5565  cd ..
5566  rm -rf conftest.dir
5567else
5568  am_cv_CXX_dependencies_compiler_type=none
5569fi
5570
5571fi
5572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5573$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5574CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5575
5576 if
5577  test "x$enable_dependency_tracking" != xno \
5578  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5579  am__fastdepCXX_TRUE=
5580  am__fastdepCXX_FALSE='#'
5581else
5582  am__fastdepCXX_TRUE='#'
5583  am__fastdepCXX_FALSE=
5584fi
5585
5586
5587
5588case `pwd` in
5589  *\ * | *\	*)
5590    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5591$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5592esac
5593
5594
5595
5596macro_version='2.4.6'
5597macro_revision='2.4.6'
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611ltmain=$ac_aux_dir/ltmain.sh
5612
5613# Make sure we can run config.sub.
5614$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5615  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5616
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5618$as_echo_n "checking build system type... " >&6; }
5619if ${ac_cv_build+:} false; then :
5620  $as_echo_n "(cached) " >&6
5621else
5622  ac_build_alias=$build_alias
5623test "x$ac_build_alias" = x &&
5624  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5625test "x$ac_build_alias" = x &&
5626  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5627ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5628  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5629
5630fi
5631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5632$as_echo "$ac_cv_build" >&6; }
5633case $ac_cv_build in
5634*-*-*) ;;
5635*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5636esac
5637build=$ac_cv_build
5638ac_save_IFS=$IFS; IFS='-'
5639set x $ac_cv_build
5640shift
5641build_cpu=$1
5642build_vendor=$2
5643shift; shift
5644# Remember, the first character of IFS is used to create $*,
5645# except with old shells:
5646build_os=$*
5647IFS=$ac_save_IFS
5648case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5649
5650
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5652$as_echo_n "checking host system type... " >&6; }
5653if ${ac_cv_host+:} false; then :
5654  $as_echo_n "(cached) " >&6
5655else
5656  if test "x$host_alias" = x; then
5657  ac_cv_host=$ac_cv_build
5658else
5659  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5660    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5661fi
5662
5663fi
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5665$as_echo "$ac_cv_host" >&6; }
5666case $ac_cv_host in
5667*-*-*) ;;
5668*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5669esac
5670host=$ac_cv_host
5671ac_save_IFS=$IFS; IFS='-'
5672set x $ac_cv_host
5673shift
5674host_cpu=$1
5675host_vendor=$2
5676shift; shift
5677# Remember, the first character of IFS is used to create $*,
5678# except with old shells:
5679host_os=$*
5680IFS=$ac_save_IFS
5681case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5682
5683
5684# Backslashify metacharacters that are still active within
5685# double-quoted strings.
5686sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5687
5688# Same as above, but do not quote variable references.
5689double_quote_subst='s/\(["`\\]\)/\\\1/g'
5690
5691# Sed substitution to delay expansion of an escaped shell variable in a
5692# double_quote_subst'ed string.
5693delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5694
5695# Sed substitution to delay expansion of an escaped single quote.
5696delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5697
5698# Sed substitution to avoid accidental globbing in evaled expressions
5699no_glob_subst='s/\*/\\\*/g'
5700
5701ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5702ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5703ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5704
5705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5706$as_echo_n "checking how to print strings... " >&6; }
5707# Test print first, because it will be a builtin if present.
5708if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5709   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5710  ECHO='print -r --'
5711elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5712  ECHO='printf %s\n'
5713else
5714  # Use this function as a fallback that always works.
5715  func_fallback_echo ()
5716  {
5717    eval 'cat <<_LTECHO_EOF
5718$1
5719_LTECHO_EOF'
5720  }
5721  ECHO='func_fallback_echo'
5722fi
5723
5724# func_echo_all arg...
5725# Invoke $ECHO with all args, space-separated.
5726func_echo_all ()
5727{
5728    $ECHO ""
5729}
5730
5731case $ECHO in
5732  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5733$as_echo "printf" >&6; } ;;
5734  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5735$as_echo "print -r" >&6; } ;;
5736  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5737$as_echo "cat" >&6; } ;;
5738esac
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5754$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5755if ${ac_cv_path_SED+:} false; then :
5756  $as_echo_n "(cached) " >&6
5757else
5758            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5759     for ac_i in 1 2 3 4 5 6 7; do
5760       ac_script="$ac_script$as_nl$ac_script"
5761     done
5762     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5763     { ac_script=; unset ac_script;}
5764     if test -z "$SED"; then
5765  ac_path_SED_found=false
5766  # Loop through the user's path and test for each of PROGNAME-LIST
5767  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768for as_dir in $PATH
5769do
5770  IFS=$as_save_IFS
5771  test -z "$as_dir" && as_dir=.
5772    for ac_prog in sed gsed; do
5773    for ac_exec_ext in '' $ac_executable_extensions; do
5774      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5775      as_fn_executable_p "$ac_path_SED" || continue
5776# Check for GNU ac_path_SED and select it if it is found.
5777  # Check for GNU $ac_path_SED
5778case `"$ac_path_SED" --version 2>&1` in
5779*GNU*)
5780  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5781*)
5782  ac_count=0
5783  $as_echo_n 0123456789 >"conftest.in"
5784  while :
5785  do
5786    cat "conftest.in" "conftest.in" >"conftest.tmp"
5787    mv "conftest.tmp" "conftest.in"
5788    cp "conftest.in" "conftest.nl"
5789    $as_echo '' >> "conftest.nl"
5790    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5791    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5792    as_fn_arith $ac_count + 1 && ac_count=$as_val
5793    if test $ac_count -gt ${ac_path_SED_max-0}; then
5794      # Best one so far, save it but keep looking for a better one
5795      ac_cv_path_SED="$ac_path_SED"
5796      ac_path_SED_max=$ac_count
5797    fi
5798    # 10*(2^10) chars as input seems more than enough
5799    test $ac_count -gt 10 && break
5800  done
5801  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5802esac
5803
5804      $ac_path_SED_found && break 3
5805    done
5806  done
5807  done
5808IFS=$as_save_IFS
5809  if test -z "$ac_cv_path_SED"; then
5810    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5811  fi
5812else
5813  ac_cv_path_SED=$SED
5814fi
5815
5816fi
5817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5818$as_echo "$ac_cv_path_SED" >&6; }
5819 SED="$ac_cv_path_SED"
5820  rm -f conftest.sed
5821
5822test -z "$SED" && SED=sed
5823Xsed="$SED -e 1s/^X//"
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5836$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5837if ${ac_cv_path_GREP+:} false; then :
5838  $as_echo_n "(cached) " >&6
5839else
5840  if test -z "$GREP"; then
5841  ac_path_GREP_found=false
5842  # Loop through the user's path and test for each of PROGNAME-LIST
5843  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5845do
5846  IFS=$as_save_IFS
5847  test -z "$as_dir" && as_dir=.
5848    for ac_prog in grep ggrep; do
5849    for ac_exec_ext in '' $ac_executable_extensions; do
5850      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5851      as_fn_executable_p "$ac_path_GREP" || continue
5852# Check for GNU ac_path_GREP and select it if it is found.
5853  # Check for GNU $ac_path_GREP
5854case `"$ac_path_GREP" --version 2>&1` in
5855*GNU*)
5856  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5857*)
5858  ac_count=0
5859  $as_echo_n 0123456789 >"conftest.in"
5860  while :
5861  do
5862    cat "conftest.in" "conftest.in" >"conftest.tmp"
5863    mv "conftest.tmp" "conftest.in"
5864    cp "conftest.in" "conftest.nl"
5865    $as_echo 'GREP' >> "conftest.nl"
5866    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5867    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5868    as_fn_arith $ac_count + 1 && ac_count=$as_val
5869    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5870      # Best one so far, save it but keep looking for a better one
5871      ac_cv_path_GREP="$ac_path_GREP"
5872      ac_path_GREP_max=$ac_count
5873    fi
5874    # 10*(2^10) chars as input seems more than enough
5875    test $ac_count -gt 10 && break
5876  done
5877  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5878esac
5879
5880      $ac_path_GREP_found && break 3
5881    done
5882  done
5883  done
5884IFS=$as_save_IFS
5885  if test -z "$ac_cv_path_GREP"; then
5886    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5887  fi
5888else
5889  ac_cv_path_GREP=$GREP
5890fi
5891
5892fi
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5894$as_echo "$ac_cv_path_GREP" >&6; }
5895 GREP="$ac_cv_path_GREP"
5896
5897
5898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5899$as_echo_n "checking for egrep... " >&6; }
5900if ${ac_cv_path_EGREP+:} false; then :
5901  $as_echo_n "(cached) " >&6
5902else
5903  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5904   then ac_cv_path_EGREP="$GREP -E"
5905   else
5906     if test -z "$EGREP"; then
5907  ac_path_EGREP_found=false
5908  # Loop through the user's path and test for each of PROGNAME-LIST
5909  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5911do
5912  IFS=$as_save_IFS
5913  test -z "$as_dir" && as_dir=.
5914    for ac_prog in egrep; do
5915    for ac_exec_ext in '' $ac_executable_extensions; do
5916      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5917      as_fn_executable_p "$ac_path_EGREP" || continue
5918# Check for GNU ac_path_EGREP and select it if it is found.
5919  # Check for GNU $ac_path_EGREP
5920case `"$ac_path_EGREP" --version 2>&1` in
5921*GNU*)
5922  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5923*)
5924  ac_count=0
5925  $as_echo_n 0123456789 >"conftest.in"
5926  while :
5927  do
5928    cat "conftest.in" "conftest.in" >"conftest.tmp"
5929    mv "conftest.tmp" "conftest.in"
5930    cp "conftest.in" "conftest.nl"
5931    $as_echo 'EGREP' >> "conftest.nl"
5932    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5933    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5934    as_fn_arith $ac_count + 1 && ac_count=$as_val
5935    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5936      # Best one so far, save it but keep looking for a better one
5937      ac_cv_path_EGREP="$ac_path_EGREP"
5938      ac_path_EGREP_max=$ac_count
5939    fi
5940    # 10*(2^10) chars as input seems more than enough
5941    test $ac_count -gt 10 && break
5942  done
5943  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5944esac
5945
5946      $ac_path_EGREP_found && break 3
5947    done
5948  done
5949  done
5950IFS=$as_save_IFS
5951  if test -z "$ac_cv_path_EGREP"; then
5952    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5953  fi
5954else
5955  ac_cv_path_EGREP=$EGREP
5956fi
5957
5958   fi
5959fi
5960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5961$as_echo "$ac_cv_path_EGREP" >&6; }
5962 EGREP="$ac_cv_path_EGREP"
5963
5964
5965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5966$as_echo_n "checking for fgrep... " >&6; }
5967if ${ac_cv_path_FGREP+:} false; then :
5968  $as_echo_n "(cached) " >&6
5969else
5970  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5971   then ac_cv_path_FGREP="$GREP -F"
5972   else
5973     if test -z "$FGREP"; then
5974  ac_path_FGREP_found=false
5975  # Loop through the user's path and test for each of PROGNAME-LIST
5976  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5978do
5979  IFS=$as_save_IFS
5980  test -z "$as_dir" && as_dir=.
5981    for ac_prog in fgrep; do
5982    for ac_exec_ext in '' $ac_executable_extensions; do
5983      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5984      as_fn_executable_p "$ac_path_FGREP" || continue
5985# Check for GNU ac_path_FGREP and select it if it is found.
5986  # Check for GNU $ac_path_FGREP
5987case `"$ac_path_FGREP" --version 2>&1` in
5988*GNU*)
5989  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5990*)
5991  ac_count=0
5992  $as_echo_n 0123456789 >"conftest.in"
5993  while :
5994  do
5995    cat "conftest.in" "conftest.in" >"conftest.tmp"
5996    mv "conftest.tmp" "conftest.in"
5997    cp "conftest.in" "conftest.nl"
5998    $as_echo 'FGREP' >> "conftest.nl"
5999    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6000    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6001    as_fn_arith $ac_count + 1 && ac_count=$as_val
6002    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6003      # Best one so far, save it but keep looking for a better one
6004      ac_cv_path_FGREP="$ac_path_FGREP"
6005      ac_path_FGREP_max=$ac_count
6006    fi
6007    # 10*(2^10) chars as input seems more than enough
6008    test $ac_count -gt 10 && break
6009  done
6010  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6011esac
6012
6013      $ac_path_FGREP_found && break 3
6014    done
6015  done
6016  done
6017IFS=$as_save_IFS
6018  if test -z "$ac_cv_path_FGREP"; then
6019    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6020  fi
6021else
6022  ac_cv_path_FGREP=$FGREP
6023fi
6024
6025   fi
6026fi
6027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6028$as_echo "$ac_cv_path_FGREP" >&6; }
6029 FGREP="$ac_cv_path_FGREP"
6030
6031
6032test -z "$GREP" && GREP=grep
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052# Check whether --with-gnu-ld was given.
6053if test "${with_gnu_ld+set}" = set; then :
6054  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6055else
6056  with_gnu_ld=no
6057fi
6058
6059ac_prog=ld
6060if test yes = "$GCC"; then
6061  # Check if gcc -print-prog-name=ld gives a path.
6062  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6063$as_echo_n "checking for ld used by $CC... " >&6; }
6064  case $host in
6065  *-*-mingw*)
6066    # gcc leaves a trailing carriage return, which upsets mingw
6067    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6068  *)
6069    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6070  esac
6071  case $ac_prog in
6072    # Accept absolute paths.
6073    [\\/]* | ?:[\\/]*)
6074      re_direlt='/[^/][^/]*/\.\./'
6075      # Canonicalize the pathname of ld
6076      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6077      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6078	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6079      done
6080      test -z "$LD" && LD=$ac_prog
6081      ;;
6082  "")
6083    # If it fails, then pretend we aren't using GCC.
6084    ac_prog=ld
6085    ;;
6086  *)
6087    # If it is relative, then search for the first ld in PATH.
6088    with_gnu_ld=unknown
6089    ;;
6090  esac
6091elif test yes = "$with_gnu_ld"; then
6092  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6093$as_echo_n "checking for GNU ld... " >&6; }
6094else
6095  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6096$as_echo_n "checking for non-GNU ld... " >&6; }
6097fi
6098if ${lt_cv_path_LD+:} false; then :
6099  $as_echo_n "(cached) " >&6
6100else
6101  if test -z "$LD"; then
6102  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6103  for ac_dir in $PATH; do
6104    IFS=$lt_save_ifs
6105    test -z "$ac_dir" && ac_dir=.
6106    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6107      lt_cv_path_LD=$ac_dir/$ac_prog
6108      # Check to see if the program is GNU ld.  I'd rather use --version,
6109      # but apparently some variants of GNU ld only accept -v.
6110      # Break only if it was the GNU/non-GNU ld that we prefer.
6111      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6112      *GNU* | *'with BFD'*)
6113	test no != "$with_gnu_ld" && break
6114	;;
6115      *)
6116	test yes != "$with_gnu_ld" && break
6117	;;
6118      esac
6119    fi
6120  done
6121  IFS=$lt_save_ifs
6122else
6123  lt_cv_path_LD=$LD # Let the user override the test with a path.
6124fi
6125fi
6126
6127LD=$lt_cv_path_LD
6128if test -n "$LD"; then
6129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6130$as_echo "$LD" >&6; }
6131else
6132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133$as_echo "no" >&6; }
6134fi
6135test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6137$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6138if ${lt_cv_prog_gnu_ld+:} false; then :
6139  $as_echo_n "(cached) " >&6
6140else
6141  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6142case `$LD -v 2>&1 </dev/null` in
6143*GNU* | *'with BFD'*)
6144  lt_cv_prog_gnu_ld=yes
6145  ;;
6146*)
6147  lt_cv_prog_gnu_ld=no
6148  ;;
6149esac
6150fi
6151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6152$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6153with_gnu_ld=$lt_cv_prog_gnu_ld
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6164$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6165if ${lt_cv_path_NM+:} false; then :
6166  $as_echo_n "(cached) " >&6
6167else
6168  if test -n "$NM"; then
6169  # Let the user override the test.
6170  lt_cv_path_NM=$NM
6171else
6172  lt_nm_to_check=${ac_tool_prefix}nm
6173  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6174    lt_nm_to_check="$lt_nm_to_check nm"
6175  fi
6176  for lt_tmp_nm in $lt_nm_to_check; do
6177    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6178    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6179      IFS=$lt_save_ifs
6180      test -z "$ac_dir" && ac_dir=.
6181      tmp_nm=$ac_dir/$lt_tmp_nm
6182      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6183	# Check to see if the nm accepts a BSD-compat flag.
6184	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6185	#   nm: unknown option "B" ignored
6186	# Tru64's nm complains that /dev/null is an invalid object file
6187	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6188	case $build_os in
6189	mingw*) lt_bad_file=conftest.nm/nofile ;;
6190	*) lt_bad_file=/dev/null ;;
6191	esac
6192	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6193	*$lt_bad_file* | *'Invalid file or object type'*)
6194	  lt_cv_path_NM="$tmp_nm -B"
6195	  break 2
6196	  ;;
6197	*)
6198	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6199	  */dev/null*)
6200	    lt_cv_path_NM="$tmp_nm -p"
6201	    break 2
6202	    ;;
6203	  *)
6204	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6205	    continue # so that we can try to find one that supports BSD flags
6206	    ;;
6207	  esac
6208	  ;;
6209	esac
6210      fi
6211    done
6212    IFS=$lt_save_ifs
6213  done
6214  : ${lt_cv_path_NM=no}
6215fi
6216fi
6217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6218$as_echo "$lt_cv_path_NM" >&6; }
6219if test no != "$lt_cv_path_NM"; then
6220  NM=$lt_cv_path_NM
6221else
6222  # Didn't find any BSD compatible name lister, look for dumpbin.
6223  if test -n "$DUMPBIN"; then :
6224    # Let the user override the test.
6225  else
6226    if test -n "$ac_tool_prefix"; then
6227  for ac_prog in dumpbin "link -dump"
6228  do
6229    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6230set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6232$as_echo_n "checking for $ac_word... " >&6; }
6233if ${ac_cv_prog_DUMPBIN+:} false; then :
6234  $as_echo_n "(cached) " >&6
6235else
6236  if test -n "$DUMPBIN"; then
6237  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6238else
6239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240for as_dir in $PATH
6241do
6242  IFS=$as_save_IFS
6243  test -z "$as_dir" && as_dir=.
6244    for ac_exec_ext in '' $ac_executable_extensions; do
6245  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6246    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6247    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6248    break 2
6249  fi
6250done
6251  done
6252IFS=$as_save_IFS
6253
6254fi
6255fi
6256DUMPBIN=$ac_cv_prog_DUMPBIN
6257if test -n "$DUMPBIN"; then
6258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6259$as_echo "$DUMPBIN" >&6; }
6260else
6261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6262$as_echo "no" >&6; }
6263fi
6264
6265
6266    test -n "$DUMPBIN" && break
6267  done
6268fi
6269if test -z "$DUMPBIN"; then
6270  ac_ct_DUMPBIN=$DUMPBIN
6271  for ac_prog in dumpbin "link -dump"
6272do
6273  # Extract the first word of "$ac_prog", so it can be a program name with args.
6274set dummy $ac_prog; ac_word=$2
6275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6276$as_echo_n "checking for $ac_word... " >&6; }
6277if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6278  $as_echo_n "(cached) " >&6
6279else
6280  if test -n "$ac_ct_DUMPBIN"; then
6281  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6282else
6283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284for as_dir in $PATH
6285do
6286  IFS=$as_save_IFS
6287  test -z "$as_dir" && as_dir=.
6288    for ac_exec_ext in '' $ac_executable_extensions; do
6289  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6290    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6291    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6292    break 2
6293  fi
6294done
6295  done
6296IFS=$as_save_IFS
6297
6298fi
6299fi
6300ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6301if test -n "$ac_ct_DUMPBIN"; then
6302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6303$as_echo "$ac_ct_DUMPBIN" >&6; }
6304else
6305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6306$as_echo "no" >&6; }
6307fi
6308
6309
6310  test -n "$ac_ct_DUMPBIN" && break
6311done
6312
6313  if test "x$ac_ct_DUMPBIN" = x; then
6314    DUMPBIN=":"
6315  else
6316    case $cross_compiling:$ac_tool_warned in
6317yes:)
6318{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6319$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6320ac_tool_warned=yes ;;
6321esac
6322    DUMPBIN=$ac_ct_DUMPBIN
6323  fi
6324fi
6325
6326    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6327    *COFF*)
6328      DUMPBIN="$DUMPBIN -symbols -headers"
6329      ;;
6330    *)
6331      DUMPBIN=:
6332      ;;
6333    esac
6334  fi
6335
6336  if test : != "$DUMPBIN"; then
6337    NM=$DUMPBIN
6338  fi
6339fi
6340test -z "$NM" && NM=nm
6341
6342
6343
6344
6345
6346
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6348$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6349if ${lt_cv_nm_interface+:} false; then :
6350  $as_echo_n "(cached) " >&6
6351else
6352  lt_cv_nm_interface="BSD nm"
6353  echo "int some_variable = 0;" > conftest.$ac_ext
6354  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6355  (eval "$ac_compile" 2>conftest.err)
6356  cat conftest.err >&5
6357  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6358  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6359  cat conftest.err >&5
6360  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6361  cat conftest.out >&5
6362  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6363    lt_cv_nm_interface="MS dumpbin"
6364  fi
6365  rm -f conftest*
6366fi
6367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6368$as_echo "$lt_cv_nm_interface" >&6; }
6369
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6371$as_echo_n "checking whether ln -s works... " >&6; }
6372LN_S=$as_ln_s
6373if test "$LN_S" = "ln -s"; then
6374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6375$as_echo "yes" >&6; }
6376else
6377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6378$as_echo "no, using $LN_S" >&6; }
6379fi
6380
6381# find the maximum length of command line arguments
6382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6383$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6384if ${lt_cv_sys_max_cmd_len+:} false; then :
6385  $as_echo_n "(cached) " >&6
6386else
6387    i=0
6388  teststring=ABCD
6389
6390  case $build_os in
6391  msdosdjgpp*)
6392    # On DJGPP, this test can blow up pretty badly due to problems in libc
6393    # (any single argument exceeding 2000 bytes causes a buffer overrun
6394    # during glob expansion).  Even if it were fixed, the result of this
6395    # check would be larger than it should be.
6396    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6397    ;;
6398
6399  gnu*)
6400    # Under GNU Hurd, this test is not required because there is
6401    # no limit to the length of command line arguments.
6402    # Libtool will interpret -1 as no limit whatsoever
6403    lt_cv_sys_max_cmd_len=-1;
6404    ;;
6405
6406  cygwin* | mingw* | cegcc*)
6407    # On Win9x/ME, this test blows up -- it succeeds, but takes
6408    # about 5 minutes as the teststring grows exponentially.
6409    # Worse, since 9x/ME are not pre-emptively multitasking,
6410    # you end up with a "frozen" computer, even though with patience
6411    # the test eventually succeeds (with a max line length of 256k).
6412    # Instead, let's just punt: use the minimum linelength reported by
6413    # all of the supported platforms: 8192 (on NT/2K/XP).
6414    lt_cv_sys_max_cmd_len=8192;
6415    ;;
6416
6417  mint*)
6418    # On MiNT this can take a long time and run out of memory.
6419    lt_cv_sys_max_cmd_len=8192;
6420    ;;
6421
6422  amigaos*)
6423    # On AmigaOS with pdksh, this test takes hours, literally.
6424    # So we just punt and use a minimum line length of 8192.
6425    lt_cv_sys_max_cmd_len=8192;
6426    ;;
6427
6428  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6429    # This has been around since 386BSD, at least.  Likely further.
6430    if test -x /sbin/sysctl; then
6431      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6432    elif test -x /usr/sbin/sysctl; then
6433      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6434    else
6435      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6436    fi
6437    # And add a safety zone
6438    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6439    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6440    ;;
6441
6442  interix*)
6443    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6444    lt_cv_sys_max_cmd_len=196608
6445    ;;
6446
6447  os2*)
6448    # The test takes a long time on OS/2.
6449    lt_cv_sys_max_cmd_len=8192
6450    ;;
6451
6452  osf*)
6453    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6454    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6455    # nice to cause kernel panics so lets avoid the loop below.
6456    # First set a reasonable default.
6457    lt_cv_sys_max_cmd_len=16384
6458    #
6459    if test -x /sbin/sysconfig; then
6460      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6461        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6462      esac
6463    fi
6464    ;;
6465  sco3.2v5*)
6466    lt_cv_sys_max_cmd_len=102400
6467    ;;
6468  sysv5* | sco5v6* | sysv4.2uw2*)
6469    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6470    if test -n "$kargmax"; then
6471      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6472    else
6473      lt_cv_sys_max_cmd_len=32768
6474    fi
6475    ;;
6476  *)
6477    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6478    if test -n "$lt_cv_sys_max_cmd_len" && \
6479       test undefined != "$lt_cv_sys_max_cmd_len"; then
6480      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6481      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6482    else
6483      # Make teststring a little bigger before we do anything with it.
6484      # a 1K string should be a reasonable start.
6485      for i in 1 2 3 4 5 6 7 8; do
6486        teststring=$teststring$teststring
6487      done
6488      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6489      # If test is not a shell built-in, we'll probably end up computing a
6490      # maximum length that is only half of the actual maximum length, but
6491      # we can't tell.
6492      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6493	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6494	      test 17 != "$i" # 1/2 MB should be enough
6495      do
6496        i=`expr $i + 1`
6497        teststring=$teststring$teststring
6498      done
6499      # Only check the string length outside the loop.
6500      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6501      teststring=
6502      # Add a significant safety factor because C++ compilers can tack on
6503      # massive amounts of additional arguments before passing them to the
6504      # linker.  It appears as though 1/2 is a usable value.
6505      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6506    fi
6507    ;;
6508  esac
6509
6510fi
6511
6512if test -n "$lt_cv_sys_max_cmd_len"; then
6513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6514$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6515else
6516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6517$as_echo "none" >&6; }
6518fi
6519max_cmd_len=$lt_cv_sys_max_cmd_len
6520
6521
6522
6523
6524
6525
6526: ${CP="cp -f"}
6527: ${MV="mv -f"}
6528: ${RM="rm -f"}
6529
6530if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6531  lt_unset=unset
6532else
6533  lt_unset=false
6534fi
6535
6536
6537
6538
6539
6540# test EBCDIC or ASCII
6541case `echo X|tr X '\101'` in
6542 A) # ASCII based system
6543    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6544  lt_SP2NL='tr \040 \012'
6545  lt_NL2SP='tr \015\012 \040\040'
6546  ;;
6547 *) # EBCDIC based system
6548  lt_SP2NL='tr \100 \n'
6549  lt_NL2SP='tr \r\n \100\100'
6550  ;;
6551esac
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6562$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6563if ${lt_cv_to_host_file_cmd+:} false; then :
6564  $as_echo_n "(cached) " >&6
6565else
6566  case $host in
6567  *-*-mingw* )
6568    case $build in
6569      *-*-mingw* ) # actually msys
6570        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6571        ;;
6572      *-*-cygwin* )
6573        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6574        ;;
6575      * ) # otherwise, assume *nix
6576        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6577        ;;
6578    esac
6579    ;;
6580  *-*-cygwin* )
6581    case $build in
6582      *-*-mingw* ) # actually msys
6583        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6584        ;;
6585      *-*-cygwin* )
6586        lt_cv_to_host_file_cmd=func_convert_file_noop
6587        ;;
6588      * ) # otherwise, assume *nix
6589        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6590        ;;
6591    esac
6592    ;;
6593  * ) # unhandled hosts (and "normal" native builds)
6594    lt_cv_to_host_file_cmd=func_convert_file_noop
6595    ;;
6596esac
6597
6598fi
6599
6600to_host_file_cmd=$lt_cv_to_host_file_cmd
6601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6602$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6603
6604
6605
6606
6607
6608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6609$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6610if ${lt_cv_to_tool_file_cmd+:} false; then :
6611  $as_echo_n "(cached) " >&6
6612else
6613  #assume ordinary cross tools, or native build.
6614lt_cv_to_tool_file_cmd=func_convert_file_noop
6615case $host in
6616  *-*-mingw* )
6617    case $build in
6618      *-*-mingw* ) # actually msys
6619        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6620        ;;
6621    esac
6622    ;;
6623esac
6624
6625fi
6626
6627to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6629$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6630
6631
6632
6633
6634
6635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6636$as_echo_n "checking for $LD option to reload object files... " >&6; }
6637if ${lt_cv_ld_reload_flag+:} false; then :
6638  $as_echo_n "(cached) " >&6
6639else
6640  lt_cv_ld_reload_flag='-r'
6641fi
6642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6643$as_echo "$lt_cv_ld_reload_flag" >&6; }
6644reload_flag=$lt_cv_ld_reload_flag
6645case $reload_flag in
6646"" | " "*) ;;
6647*) reload_flag=" $reload_flag" ;;
6648esac
6649reload_cmds='$LD$reload_flag -o $output$reload_objs'
6650case $host_os in
6651  cygwin* | mingw* | pw32* | cegcc*)
6652    if test yes != "$GCC"; then
6653      reload_cmds=false
6654    fi
6655    ;;
6656  darwin*)
6657    if test yes = "$GCC"; then
6658      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6659    else
6660      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6661    fi
6662    ;;
6663esac
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673if test -n "$ac_tool_prefix"; then
6674  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6675set dummy ${ac_tool_prefix}objdump; ac_word=$2
6676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6677$as_echo_n "checking for $ac_word... " >&6; }
6678if ${ac_cv_prog_OBJDUMP+:} false; then :
6679  $as_echo_n "(cached) " >&6
6680else
6681  if test -n "$OBJDUMP"; then
6682  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6683else
6684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685for as_dir in $PATH
6686do
6687  IFS=$as_save_IFS
6688  test -z "$as_dir" && as_dir=.
6689    for ac_exec_ext in '' $ac_executable_extensions; do
6690  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6691    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6692    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6693    break 2
6694  fi
6695done
6696  done
6697IFS=$as_save_IFS
6698
6699fi
6700fi
6701OBJDUMP=$ac_cv_prog_OBJDUMP
6702if test -n "$OBJDUMP"; then
6703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6704$as_echo "$OBJDUMP" >&6; }
6705else
6706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707$as_echo "no" >&6; }
6708fi
6709
6710
6711fi
6712if test -z "$ac_cv_prog_OBJDUMP"; then
6713  ac_ct_OBJDUMP=$OBJDUMP
6714  # Extract the first word of "objdump", so it can be a program name with args.
6715set dummy objdump; ac_word=$2
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717$as_echo_n "checking for $ac_word... " >&6; }
6718if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6719  $as_echo_n "(cached) " >&6
6720else
6721  if test -n "$ac_ct_OBJDUMP"; then
6722  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6723else
6724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725for as_dir in $PATH
6726do
6727  IFS=$as_save_IFS
6728  test -z "$as_dir" && as_dir=.
6729    for ac_exec_ext in '' $ac_executable_extensions; do
6730  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6731    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6732    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733    break 2
6734  fi
6735done
6736  done
6737IFS=$as_save_IFS
6738
6739fi
6740fi
6741ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6742if test -n "$ac_ct_OBJDUMP"; then
6743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6744$as_echo "$ac_ct_OBJDUMP" >&6; }
6745else
6746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747$as_echo "no" >&6; }
6748fi
6749
6750  if test "x$ac_ct_OBJDUMP" = x; then
6751    OBJDUMP="false"
6752  else
6753    case $cross_compiling:$ac_tool_warned in
6754yes:)
6755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6757ac_tool_warned=yes ;;
6758esac
6759    OBJDUMP=$ac_ct_OBJDUMP
6760  fi
6761else
6762  OBJDUMP="$ac_cv_prog_OBJDUMP"
6763fi
6764
6765test -z "$OBJDUMP" && OBJDUMP=objdump
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6776$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6777if ${lt_cv_deplibs_check_method+:} false; then :
6778  $as_echo_n "(cached) " >&6
6779else
6780  lt_cv_file_magic_cmd='$MAGIC_CMD'
6781lt_cv_file_magic_test_file=
6782lt_cv_deplibs_check_method='unknown'
6783# Need to set the preceding variable on all platforms that support
6784# interlibrary dependencies.
6785# 'none' -- dependencies not supported.
6786# 'unknown' -- same as none, but documents that we really don't know.
6787# 'pass_all' -- all dependencies passed with no checks.
6788# 'test_compile' -- check by making test program.
6789# 'file_magic [[regex]]' -- check by looking for files in library path
6790# that responds to the $file_magic_cmd with a given extended regex.
6791# If you have 'file' or equivalent on your system and you're not sure
6792# whether 'pass_all' will *always* work, you probably want this one.
6793
6794case $host_os in
6795aix[4-9]*)
6796  lt_cv_deplibs_check_method=pass_all
6797  ;;
6798
6799beos*)
6800  lt_cv_deplibs_check_method=pass_all
6801  ;;
6802
6803bsdi[45]*)
6804  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6805  lt_cv_file_magic_cmd='/usr/bin/file -L'
6806  lt_cv_file_magic_test_file=/shlib/libc.so
6807  ;;
6808
6809cygwin*)
6810  # func_win32_libid is a shell function defined in ltmain.sh
6811  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6812  lt_cv_file_magic_cmd='func_win32_libid'
6813  ;;
6814
6815mingw* | pw32*)
6816  # Base MSYS/MinGW do not provide the 'file' command needed by
6817  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6818  # unless we find 'file', for example because we are cross-compiling.
6819  if ( file / ) >/dev/null 2>&1; then
6820    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6821    lt_cv_file_magic_cmd='func_win32_libid'
6822  else
6823    # Keep this pattern in sync with the one in func_win32_libid.
6824    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6825    lt_cv_file_magic_cmd='$OBJDUMP -f'
6826  fi
6827  ;;
6828
6829cegcc*)
6830  # use the weaker test based on 'objdump'. See mingw*.
6831  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6832  lt_cv_file_magic_cmd='$OBJDUMP -f'
6833  ;;
6834
6835darwin* | rhapsody*)
6836  lt_cv_deplibs_check_method=pass_all
6837  ;;
6838
6839freebsd* | dragonfly*)
6840  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6841    case $host_cpu in
6842    i*86 )
6843      # Not sure whether the presence of OpenBSD here was a mistake.
6844      # Let's accept both of them until this is cleared up.
6845      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6846      lt_cv_file_magic_cmd=/usr/bin/file
6847      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6848      ;;
6849    esac
6850  else
6851    lt_cv_deplibs_check_method=pass_all
6852  fi
6853  ;;
6854
6855haiku*)
6856  lt_cv_deplibs_check_method=pass_all
6857  ;;
6858
6859hpux10.20* | hpux11*)
6860  lt_cv_file_magic_cmd=/usr/bin/file
6861  case $host_cpu in
6862  ia64*)
6863    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6864    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6865    ;;
6866  hppa*64*)
6867    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]'
6868    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6869    ;;
6870  *)
6871    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6872    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6873    ;;
6874  esac
6875  ;;
6876
6877interix[3-9]*)
6878  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6879  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6880  ;;
6881
6882irix5* | irix6* | nonstopux*)
6883  case $LD in
6884  *-32|*"-32 ") libmagic=32-bit;;
6885  *-n32|*"-n32 ") libmagic=N32;;
6886  *-64|*"-64 ") libmagic=64-bit;;
6887  *) libmagic=never-match;;
6888  esac
6889  lt_cv_deplibs_check_method=pass_all
6890  ;;
6891
6892# This must be glibc/ELF.
6893linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6894  lt_cv_deplibs_check_method=pass_all
6895  ;;
6896
6897netbsd* | netbsdelf*-gnu)
6898  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6899    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6900  else
6901    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6902  fi
6903  ;;
6904
6905newos6*)
6906  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6907  lt_cv_file_magic_cmd=/usr/bin/file
6908  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6909  ;;
6910
6911*nto* | *qnx*)
6912  lt_cv_deplibs_check_method=pass_all
6913  ;;
6914
6915openbsd* | bitrig*)
6916  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6917    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6918  else
6919    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6920  fi
6921  ;;
6922
6923osf3* | osf4* | osf5*)
6924  lt_cv_deplibs_check_method=pass_all
6925  ;;
6926
6927rdos*)
6928  lt_cv_deplibs_check_method=pass_all
6929  ;;
6930
6931solaris*)
6932  lt_cv_deplibs_check_method=pass_all
6933  ;;
6934
6935sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6936  lt_cv_deplibs_check_method=pass_all
6937  ;;
6938
6939sysv4 | sysv4.3*)
6940  case $host_vendor in
6941  motorola)
6942    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]'
6943    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6944    ;;
6945  ncr)
6946    lt_cv_deplibs_check_method=pass_all
6947    ;;
6948  sequent)
6949    lt_cv_file_magic_cmd='/bin/file'
6950    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6951    ;;
6952  sni)
6953    lt_cv_file_magic_cmd='/bin/file'
6954    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6955    lt_cv_file_magic_test_file=/lib/libc.so
6956    ;;
6957  siemens)
6958    lt_cv_deplibs_check_method=pass_all
6959    ;;
6960  pc)
6961    lt_cv_deplibs_check_method=pass_all
6962    ;;
6963  esac
6964  ;;
6965
6966tpf*)
6967  lt_cv_deplibs_check_method=pass_all
6968  ;;
6969os2*)
6970  lt_cv_deplibs_check_method=pass_all
6971  ;;
6972esac
6973
6974fi
6975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6976$as_echo "$lt_cv_deplibs_check_method" >&6; }
6977
6978file_magic_glob=
6979want_nocaseglob=no
6980if test "$build" = "$host"; then
6981  case $host_os in
6982  mingw* | pw32*)
6983    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6984      want_nocaseglob=yes
6985    else
6986      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6987    fi
6988    ;;
6989  esac
6990fi
6991
6992file_magic_cmd=$lt_cv_file_magic_cmd
6993deplibs_check_method=$lt_cv_deplibs_check_method
6994test -z "$deplibs_check_method" && deplibs_check_method=unknown
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017if test -n "$ac_tool_prefix"; then
7018  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7019set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7021$as_echo_n "checking for $ac_word... " >&6; }
7022if ${ac_cv_prog_DLLTOOL+:} false; then :
7023  $as_echo_n "(cached) " >&6
7024else
7025  if test -n "$DLLTOOL"; then
7026  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7027else
7028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029for as_dir in $PATH
7030do
7031  IFS=$as_save_IFS
7032  test -z "$as_dir" && as_dir=.
7033    for ac_exec_ext in '' $ac_executable_extensions; do
7034  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7035    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7036    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037    break 2
7038  fi
7039done
7040  done
7041IFS=$as_save_IFS
7042
7043fi
7044fi
7045DLLTOOL=$ac_cv_prog_DLLTOOL
7046if test -n "$DLLTOOL"; then
7047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7048$as_echo "$DLLTOOL" >&6; }
7049else
7050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051$as_echo "no" >&6; }
7052fi
7053
7054
7055fi
7056if test -z "$ac_cv_prog_DLLTOOL"; then
7057  ac_ct_DLLTOOL=$DLLTOOL
7058  # Extract the first word of "dlltool", so it can be a program name with args.
7059set dummy dlltool; ac_word=$2
7060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061$as_echo_n "checking for $ac_word... " >&6; }
7062if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7063  $as_echo_n "(cached) " >&6
7064else
7065  if test -n "$ac_ct_DLLTOOL"; then
7066  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7067else
7068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069for as_dir in $PATH
7070do
7071  IFS=$as_save_IFS
7072  test -z "$as_dir" && as_dir=.
7073    for ac_exec_ext in '' $ac_executable_extensions; do
7074  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7075    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7076    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077    break 2
7078  fi
7079done
7080  done
7081IFS=$as_save_IFS
7082
7083fi
7084fi
7085ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7086if test -n "$ac_ct_DLLTOOL"; then
7087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7088$as_echo "$ac_ct_DLLTOOL" >&6; }
7089else
7090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091$as_echo "no" >&6; }
7092fi
7093
7094  if test "x$ac_ct_DLLTOOL" = x; then
7095    DLLTOOL="false"
7096  else
7097    case $cross_compiling:$ac_tool_warned in
7098yes:)
7099{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7100$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7101ac_tool_warned=yes ;;
7102esac
7103    DLLTOOL=$ac_ct_DLLTOOL
7104  fi
7105else
7106  DLLTOOL="$ac_cv_prog_DLLTOOL"
7107fi
7108
7109test -z "$DLLTOOL" && DLLTOOL=dlltool
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7121$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7122if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7123  $as_echo_n "(cached) " >&6
7124else
7125  lt_cv_sharedlib_from_linklib_cmd='unknown'
7126
7127case $host_os in
7128cygwin* | mingw* | pw32* | cegcc*)
7129  # two different shell functions defined in ltmain.sh;
7130  # decide which one to use based on capabilities of $DLLTOOL
7131  case `$DLLTOOL --help 2>&1` in
7132  *--identify-strict*)
7133    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7134    ;;
7135  *)
7136    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7137    ;;
7138  esac
7139  ;;
7140*)
7141  # fallback: assume linklib IS sharedlib
7142  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7143  ;;
7144esac
7145
7146fi
7147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7148$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7149sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7150test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7151
7152
7153
7154
7155
7156
7157
7158
7159if test -n "$ac_tool_prefix"; then
7160  for ac_prog in ar
7161  do
7162    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7163set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165$as_echo_n "checking for $ac_word... " >&6; }
7166if ${ac_cv_prog_AR+:} false; then :
7167  $as_echo_n "(cached) " >&6
7168else
7169  if test -n "$AR"; then
7170  ac_cv_prog_AR="$AR" # Let the user override the test.
7171else
7172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173for as_dir in $PATH
7174do
7175  IFS=$as_save_IFS
7176  test -z "$as_dir" && as_dir=.
7177    for ac_exec_ext in '' $ac_executable_extensions; do
7178  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7179    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7180    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181    break 2
7182  fi
7183done
7184  done
7185IFS=$as_save_IFS
7186
7187fi
7188fi
7189AR=$ac_cv_prog_AR
7190if test -n "$AR"; then
7191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7192$as_echo "$AR" >&6; }
7193else
7194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195$as_echo "no" >&6; }
7196fi
7197
7198
7199    test -n "$AR" && break
7200  done
7201fi
7202if test -z "$AR"; then
7203  ac_ct_AR=$AR
7204  for ac_prog in ar
7205do
7206  # Extract the first word of "$ac_prog", so it can be a program name with args.
7207set dummy $ac_prog; ac_word=$2
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209$as_echo_n "checking for $ac_word... " >&6; }
7210if ${ac_cv_prog_ac_ct_AR+:} false; then :
7211  $as_echo_n "(cached) " >&6
7212else
7213  if test -n "$ac_ct_AR"; then
7214  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7215else
7216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217for as_dir in $PATH
7218do
7219  IFS=$as_save_IFS
7220  test -z "$as_dir" && as_dir=.
7221    for ac_exec_ext in '' $ac_executable_extensions; do
7222  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7223    ac_cv_prog_ac_ct_AR="$ac_prog"
7224    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225    break 2
7226  fi
7227done
7228  done
7229IFS=$as_save_IFS
7230
7231fi
7232fi
7233ac_ct_AR=$ac_cv_prog_ac_ct_AR
7234if test -n "$ac_ct_AR"; then
7235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7236$as_echo "$ac_ct_AR" >&6; }
7237else
7238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239$as_echo "no" >&6; }
7240fi
7241
7242
7243  test -n "$ac_ct_AR" && break
7244done
7245
7246  if test "x$ac_ct_AR" = x; then
7247    AR="false"
7248  else
7249    case $cross_compiling:$ac_tool_warned in
7250yes:)
7251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7253ac_tool_warned=yes ;;
7254esac
7255    AR=$ac_ct_AR
7256  fi
7257fi
7258
7259: ${AR=ar}
7260: ${AR_FLAGS=cru}
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7273$as_echo_n "checking for archiver @FILE support... " >&6; }
7274if ${lt_cv_ar_at_file+:} false; then :
7275  $as_echo_n "(cached) " >&6
7276else
7277  lt_cv_ar_at_file=no
7278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279/* end confdefs.h.  */
7280
7281int
7282main ()
7283{
7284
7285  ;
7286  return 0;
7287}
7288_ACEOF
7289if ac_fn_c_try_compile "$LINENO"; then :
7290  echo conftest.$ac_objext > conftest.lst
7291      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7292      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7293  (eval $lt_ar_try) 2>&5
7294  ac_status=$?
7295  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7296  test $ac_status = 0; }
7297      if test 0 -eq "$ac_status"; then
7298	# Ensure the archiver fails upon bogus file names.
7299	rm -f conftest.$ac_objext libconftest.a
7300	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7301  (eval $lt_ar_try) 2>&5
7302  ac_status=$?
7303  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7304  test $ac_status = 0; }
7305	if test 0 -ne "$ac_status"; then
7306          lt_cv_ar_at_file=@
7307        fi
7308      fi
7309      rm -f conftest.* libconftest.a
7310
7311fi
7312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7313
7314fi
7315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7316$as_echo "$lt_cv_ar_at_file" >&6; }
7317
7318if test no = "$lt_cv_ar_at_file"; then
7319  archiver_list_spec=
7320else
7321  archiver_list_spec=$lt_cv_ar_at_file
7322fi
7323
7324
7325
7326
7327
7328
7329
7330if test -n "$ac_tool_prefix"; then
7331  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7332set dummy ${ac_tool_prefix}strip; ac_word=$2
7333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334$as_echo_n "checking for $ac_word... " >&6; }
7335if ${ac_cv_prog_STRIP+:} false; then :
7336  $as_echo_n "(cached) " >&6
7337else
7338  if test -n "$STRIP"; then
7339  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7340else
7341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342for as_dir in $PATH
7343do
7344  IFS=$as_save_IFS
7345  test -z "$as_dir" && as_dir=.
7346    for ac_exec_ext in '' $ac_executable_extensions; do
7347  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7348    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7349    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7350    break 2
7351  fi
7352done
7353  done
7354IFS=$as_save_IFS
7355
7356fi
7357fi
7358STRIP=$ac_cv_prog_STRIP
7359if test -n "$STRIP"; then
7360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7361$as_echo "$STRIP" >&6; }
7362else
7363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364$as_echo "no" >&6; }
7365fi
7366
7367
7368fi
7369if test -z "$ac_cv_prog_STRIP"; then
7370  ac_ct_STRIP=$STRIP
7371  # Extract the first word of "strip", so it can be a program name with args.
7372set dummy strip; ac_word=$2
7373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7374$as_echo_n "checking for $ac_word... " >&6; }
7375if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7376  $as_echo_n "(cached) " >&6
7377else
7378  if test -n "$ac_ct_STRIP"; then
7379  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7380else
7381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382for as_dir in $PATH
7383do
7384  IFS=$as_save_IFS
7385  test -z "$as_dir" && as_dir=.
7386    for ac_exec_ext in '' $ac_executable_extensions; do
7387  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7388    ac_cv_prog_ac_ct_STRIP="strip"
7389    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7390    break 2
7391  fi
7392done
7393  done
7394IFS=$as_save_IFS
7395
7396fi
7397fi
7398ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7399if test -n "$ac_ct_STRIP"; then
7400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7401$as_echo "$ac_ct_STRIP" >&6; }
7402else
7403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7404$as_echo "no" >&6; }
7405fi
7406
7407  if test "x$ac_ct_STRIP" = x; then
7408    STRIP=":"
7409  else
7410    case $cross_compiling:$ac_tool_warned in
7411yes:)
7412{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7414ac_tool_warned=yes ;;
7415esac
7416    STRIP=$ac_ct_STRIP
7417  fi
7418else
7419  STRIP="$ac_cv_prog_STRIP"
7420fi
7421
7422test -z "$STRIP" && STRIP=:
7423
7424
7425
7426
7427
7428
7429if test -n "$ac_tool_prefix"; then
7430  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7431set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7433$as_echo_n "checking for $ac_word... " >&6; }
7434if ${ac_cv_prog_RANLIB+:} false; then :
7435  $as_echo_n "(cached) " >&6
7436else
7437  if test -n "$RANLIB"; then
7438  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7439else
7440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441for as_dir in $PATH
7442do
7443  IFS=$as_save_IFS
7444  test -z "$as_dir" && as_dir=.
7445    for ac_exec_ext in '' $ac_executable_extensions; do
7446  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7447    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7448    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7449    break 2
7450  fi
7451done
7452  done
7453IFS=$as_save_IFS
7454
7455fi
7456fi
7457RANLIB=$ac_cv_prog_RANLIB
7458if test -n "$RANLIB"; then
7459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7460$as_echo "$RANLIB" >&6; }
7461else
7462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463$as_echo "no" >&6; }
7464fi
7465
7466
7467fi
7468if test -z "$ac_cv_prog_RANLIB"; then
7469  ac_ct_RANLIB=$RANLIB
7470  # Extract the first word of "ranlib", so it can be a program name with args.
7471set dummy ranlib; ac_word=$2
7472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473$as_echo_n "checking for $ac_word... " >&6; }
7474if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7475  $as_echo_n "(cached) " >&6
7476else
7477  if test -n "$ac_ct_RANLIB"; then
7478  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7479else
7480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481for as_dir in $PATH
7482do
7483  IFS=$as_save_IFS
7484  test -z "$as_dir" && as_dir=.
7485    for ac_exec_ext in '' $ac_executable_extensions; do
7486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7487    ac_cv_prog_ac_ct_RANLIB="ranlib"
7488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7489    break 2
7490  fi
7491done
7492  done
7493IFS=$as_save_IFS
7494
7495fi
7496fi
7497ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7498if test -n "$ac_ct_RANLIB"; then
7499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7500$as_echo "$ac_ct_RANLIB" >&6; }
7501else
7502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503$as_echo "no" >&6; }
7504fi
7505
7506  if test "x$ac_ct_RANLIB" = x; then
7507    RANLIB=":"
7508  else
7509    case $cross_compiling:$ac_tool_warned in
7510yes:)
7511{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7512$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7513ac_tool_warned=yes ;;
7514esac
7515    RANLIB=$ac_ct_RANLIB
7516  fi
7517else
7518  RANLIB="$ac_cv_prog_RANLIB"
7519fi
7520
7521test -z "$RANLIB" && RANLIB=:
7522
7523
7524
7525
7526
7527
7528# Determine commands to create old-style static archives.
7529old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7530old_postinstall_cmds='chmod 644 $oldlib'
7531old_postuninstall_cmds=
7532
7533if test -n "$RANLIB"; then
7534  case $host_os in
7535  bitrig* | openbsd*)
7536    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7537    ;;
7538  *)
7539    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7540    ;;
7541  esac
7542  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7543fi
7544
7545case $host_os in
7546  darwin*)
7547    lock_old_archive_extraction=yes ;;
7548  *)
7549    lock_old_archive_extraction=no ;;
7550esac
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590# If no C compiler was specified, use CC.
7591LTCC=${LTCC-"$CC"}
7592
7593# If no C compiler flags were specified, use CFLAGS.
7594LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7595
7596# Allow CC to be a program name with arguments.
7597compiler=$CC
7598
7599
7600# Check for command to grab the raw symbol name followed by C symbol from nm.
7601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7602$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7603if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7604  $as_echo_n "(cached) " >&6
7605else
7606
7607# These are sane defaults that work on at least a few old systems.
7608# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7609
7610# Character class describing NM global symbol codes.
7611symcode='[BCDEGRST]'
7612
7613# Regexp to match symbols that can be accessed directly from C.
7614sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7615
7616# Define system-specific variables.
7617case $host_os in
7618aix*)
7619  symcode='[BCDT]'
7620  ;;
7621cygwin* | mingw* | pw32* | cegcc*)
7622  symcode='[ABCDGISTW]'
7623  ;;
7624hpux*)
7625  if test ia64 = "$host_cpu"; then
7626    symcode='[ABCDEGRST]'
7627  fi
7628  ;;
7629irix* | nonstopux*)
7630  symcode='[BCDEGRST]'
7631  ;;
7632osf*)
7633  symcode='[BCDEGQRST]'
7634  ;;
7635solaris*)
7636  symcode='[BDRT]'
7637  ;;
7638sco3.2v5*)
7639  symcode='[DT]'
7640  ;;
7641sysv4.2uw2*)
7642  symcode='[DT]'
7643  ;;
7644sysv5* | sco5v6* | unixware* | OpenUNIX*)
7645  symcode='[ABDT]'
7646  ;;
7647sysv4)
7648  symcode='[DFNSTU]'
7649  ;;
7650esac
7651
7652# If we're using GNU nm, then use its standard symbol codes.
7653case `$NM -V 2>&1` in
7654*GNU* | *'with BFD'*)
7655  symcode='[ABCDGIRSTW]' ;;
7656esac
7657
7658if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7659  # Gets list of data symbols to import.
7660  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7661  # Adjust the below global symbol transforms to fixup imported variables.
7662  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7663  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7664  lt_c_name_lib_hook="\
7665  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7666  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7667else
7668  # Disable hooks by default.
7669  lt_cv_sys_global_symbol_to_import=
7670  lt_cdecl_hook=
7671  lt_c_name_hook=
7672  lt_c_name_lib_hook=
7673fi
7674
7675# Transform an extracted symbol line into a proper C declaration.
7676# Some systems (esp. on ia64) link data and code symbols differently,
7677# so use this general approach.
7678lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7679$lt_cdecl_hook\
7680" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7681" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7682
7683# Transform an extracted symbol line into symbol name and symbol address
7684lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7685$lt_c_name_hook\
7686" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7687" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7688
7689# Transform an extracted symbol line into symbol name with lib prefix and
7690# symbol address.
7691lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7692$lt_c_name_lib_hook\
7693" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7694" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7695" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7696
7697# Handle CRLF in mingw tool chain
7698opt_cr=
7699case $build_os in
7700mingw*)
7701  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7702  ;;
7703esac
7704
7705# Try without a prefix underscore, then with it.
7706for ac_symprfx in "" "_"; do
7707
7708  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7709  symxfrm="\\1 $ac_symprfx\\2 \\2"
7710
7711  # Write the raw and C identifiers.
7712  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7713    # Fake it for dumpbin and say T for any non-static function,
7714    # D for any global variable and I for any imported variable.
7715    # Also find C++ and __fastcall symbols from MSVC++,
7716    # which start with @ or ?.
7717    lt_cv_sys_global_symbol_pipe="$AWK '"\
7718"     {last_section=section; section=\$ 3};"\
7719"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7720"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7721"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7722"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7723"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7724"     \$ 0!~/External *\|/{next};"\
7725"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7726"     {if(hide[section]) next};"\
7727"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7728"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7729"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7730"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7731"     ' prfx=^$ac_symprfx"
7732  else
7733    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7734  fi
7735  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7736
7737  # Check to see that the pipe works correctly.
7738  pipe_works=no
7739
7740  rm -f conftest*
7741  cat > conftest.$ac_ext <<_LT_EOF
7742#ifdef __cplusplus
7743extern "C" {
7744#endif
7745char nm_test_var;
7746void nm_test_func(void);
7747void nm_test_func(void){}
7748#ifdef __cplusplus
7749}
7750#endif
7751int main(){nm_test_var='a';nm_test_func();return(0);}
7752_LT_EOF
7753
7754  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7755  (eval $ac_compile) 2>&5
7756  ac_status=$?
7757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7758  test $ac_status = 0; }; then
7759    # Now try to grab the symbols.
7760    nlist=conftest.nm
7761    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7762  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7763  ac_status=$?
7764  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7765  test $ac_status = 0; } && test -s "$nlist"; then
7766      # Try sorting and uniquifying the output.
7767      if sort "$nlist" | uniq > "$nlist"T; then
7768	mv -f "$nlist"T "$nlist"
7769      else
7770	rm -f "$nlist"T
7771      fi
7772
7773      # Make sure that we snagged all the symbols we need.
7774      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7775	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7776	  cat <<_LT_EOF > conftest.$ac_ext
7777/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7778#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7779/* DATA imports from DLLs on WIN32 can't be const, because runtime
7780   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7781# define LT_DLSYM_CONST
7782#elif defined __osf__
7783/* This system does not cope well with relocations in const data.  */
7784# define LT_DLSYM_CONST
7785#else
7786# define LT_DLSYM_CONST const
7787#endif
7788
7789#ifdef __cplusplus
7790extern "C" {
7791#endif
7792
7793_LT_EOF
7794	  # Now generate the symbol file.
7795	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7796
7797	  cat <<_LT_EOF >> conftest.$ac_ext
7798
7799/* The mapping between symbol names and symbols.  */
7800LT_DLSYM_CONST struct {
7801  const char *name;
7802  void       *address;
7803}
7804lt__PROGRAM__LTX_preloaded_symbols[] =
7805{
7806  { "@PROGRAM@", (void *) 0 },
7807_LT_EOF
7808	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7809	  cat <<\_LT_EOF >> conftest.$ac_ext
7810  {0, (void *) 0}
7811};
7812
7813/* This works around a problem in FreeBSD linker */
7814#ifdef FREEBSD_WORKAROUND
7815static const void *lt_preloaded_setup() {
7816  return lt__PROGRAM__LTX_preloaded_symbols;
7817}
7818#endif
7819
7820#ifdef __cplusplus
7821}
7822#endif
7823_LT_EOF
7824	  # Now try linking the two files.
7825	  mv conftest.$ac_objext conftstm.$ac_objext
7826	  lt_globsym_save_LIBS=$LIBS
7827	  lt_globsym_save_CFLAGS=$CFLAGS
7828	  LIBS=conftstm.$ac_objext
7829	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7830	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7831  (eval $ac_link) 2>&5
7832  ac_status=$?
7833  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7834  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7835	    pipe_works=yes
7836	  fi
7837	  LIBS=$lt_globsym_save_LIBS
7838	  CFLAGS=$lt_globsym_save_CFLAGS
7839	else
7840	  echo "cannot find nm_test_func in $nlist" >&5
7841	fi
7842      else
7843	echo "cannot find nm_test_var in $nlist" >&5
7844      fi
7845    else
7846      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7847    fi
7848  else
7849    echo "$progname: failed program was:" >&5
7850    cat conftest.$ac_ext >&5
7851  fi
7852  rm -rf conftest* conftst*
7853
7854  # Do not use the global_symbol_pipe unless it works.
7855  if test yes = "$pipe_works"; then
7856    break
7857  else
7858    lt_cv_sys_global_symbol_pipe=
7859  fi
7860done
7861
7862fi
7863
7864if test -z "$lt_cv_sys_global_symbol_pipe"; then
7865  lt_cv_sys_global_symbol_to_cdecl=
7866fi
7867if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7869$as_echo "failed" >&6; }
7870else
7871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7872$as_echo "ok" >&6; }
7873fi
7874
7875# Response file support.
7876if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7877  nm_file_list_spec='@'
7878elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7879  nm_file_list_spec='@'
7880fi
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7919$as_echo_n "checking for sysroot... " >&6; }
7920
7921# Check whether --with-sysroot was given.
7922if test "${with_sysroot+set}" = set; then :
7923  withval=$with_sysroot;
7924else
7925  with_sysroot=no
7926fi
7927
7928
7929lt_sysroot=
7930case $with_sysroot in #(
7931 yes)
7932   if test yes = "$GCC"; then
7933     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7934   fi
7935   ;; #(
7936 /*)
7937   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7938   ;; #(
7939 no|'')
7940   ;; #(
7941 *)
7942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7943$as_echo "$with_sysroot" >&6; }
7944   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7945   ;;
7946esac
7947
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7949$as_echo "${lt_sysroot:-no}" >&6; }
7950
7951
7952
7953
7954
7955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7956$as_echo_n "checking for a working dd... " >&6; }
7957if ${ac_cv_path_lt_DD+:} false; then :
7958  $as_echo_n "(cached) " >&6
7959else
7960  printf 0123456789abcdef0123456789abcdef >conftest.i
7961cat conftest.i conftest.i >conftest2.i
7962: ${lt_DD:=$DD}
7963if test -z "$lt_DD"; then
7964  ac_path_lt_DD_found=false
7965  # Loop through the user's path and test for each of PROGNAME-LIST
7966  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967for as_dir in $PATH
7968do
7969  IFS=$as_save_IFS
7970  test -z "$as_dir" && as_dir=.
7971    for ac_prog in dd; do
7972    for ac_exec_ext in '' $ac_executable_extensions; do
7973      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7974      as_fn_executable_p "$ac_path_lt_DD" || continue
7975if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7976  cmp -s conftest.i conftest.out \
7977  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7978fi
7979      $ac_path_lt_DD_found && break 3
7980    done
7981  done
7982  done
7983IFS=$as_save_IFS
7984  if test -z "$ac_cv_path_lt_DD"; then
7985    :
7986  fi
7987else
7988  ac_cv_path_lt_DD=$lt_DD
7989fi
7990
7991rm -f conftest.i conftest2.i conftest.out
7992fi
7993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7994$as_echo "$ac_cv_path_lt_DD" >&6; }
7995
7996
7997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7998$as_echo_n "checking how to truncate binary pipes... " >&6; }
7999if ${lt_cv_truncate_bin+:} false; then :
8000  $as_echo_n "(cached) " >&6
8001else
8002  printf 0123456789abcdef0123456789abcdef >conftest.i
8003cat conftest.i conftest.i >conftest2.i
8004lt_cv_truncate_bin=
8005if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8006  cmp -s conftest.i conftest.out \
8007  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8008fi
8009rm -f conftest.i conftest2.i conftest.out
8010test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8011fi
8012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8013$as_echo "$lt_cv_truncate_bin" >&6; }
8014
8015
8016
8017
8018
8019
8020
8021# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8022func_cc_basename ()
8023{
8024    for cc_temp in $*""; do
8025      case $cc_temp in
8026        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8027        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8028        \-*) ;;
8029        *) break;;
8030      esac
8031    done
8032    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8033}
8034
8035# Check whether --enable-libtool-lock was given.
8036if test "${enable_libtool_lock+set}" = set; then :
8037  enableval=$enable_libtool_lock;
8038fi
8039
8040test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8041
8042# Some flags need to be propagated to the compiler or linker for good
8043# libtool support.
8044case $host in
8045ia64-*-hpux*)
8046  # Find out what ABI is being produced by ac_compile, and set mode
8047  # options accordingly.
8048  echo 'int i;' > conftest.$ac_ext
8049  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8050  (eval $ac_compile) 2>&5
8051  ac_status=$?
8052  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8053  test $ac_status = 0; }; then
8054    case `/usr/bin/file conftest.$ac_objext` in
8055      *ELF-32*)
8056	HPUX_IA64_MODE=32
8057	;;
8058      *ELF-64*)
8059	HPUX_IA64_MODE=64
8060	;;
8061    esac
8062  fi
8063  rm -rf conftest*
8064  ;;
8065*-*-irix6*)
8066  # Find out what ABI is being produced by ac_compile, and set linker
8067  # options accordingly.
8068  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8069  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8070  (eval $ac_compile) 2>&5
8071  ac_status=$?
8072  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8073  test $ac_status = 0; }; then
8074    if test yes = "$lt_cv_prog_gnu_ld"; then
8075      case `/usr/bin/file conftest.$ac_objext` in
8076	*32-bit*)
8077	  LD="${LD-ld} -melf32bsmip"
8078	  ;;
8079	*N32*)
8080	  LD="${LD-ld} -melf32bmipn32"
8081	  ;;
8082	*64-bit*)
8083	  LD="${LD-ld} -melf64bmip"
8084	;;
8085      esac
8086    else
8087      case `/usr/bin/file conftest.$ac_objext` in
8088	*32-bit*)
8089	  LD="${LD-ld} -32"
8090	  ;;
8091	*N32*)
8092	  LD="${LD-ld} -n32"
8093	  ;;
8094	*64-bit*)
8095	  LD="${LD-ld} -64"
8096	  ;;
8097      esac
8098    fi
8099  fi
8100  rm -rf conftest*
8101  ;;
8102
8103mips64*-*linux*)
8104  # Find out what ABI is being produced by ac_compile, and set linker
8105  # options accordingly.
8106  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8107  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8108  (eval $ac_compile) 2>&5
8109  ac_status=$?
8110  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8111  test $ac_status = 0; }; then
8112    emul=elf
8113    case `/usr/bin/file conftest.$ac_objext` in
8114      *32-bit*)
8115	emul="${emul}32"
8116	;;
8117      *64-bit*)
8118	emul="${emul}64"
8119	;;
8120    esac
8121    case `/usr/bin/file conftest.$ac_objext` in
8122      *MSB*)
8123	emul="${emul}btsmip"
8124	;;
8125      *LSB*)
8126	emul="${emul}ltsmip"
8127	;;
8128    esac
8129    case `/usr/bin/file conftest.$ac_objext` in
8130      *N32*)
8131	emul="${emul}n32"
8132	;;
8133    esac
8134    LD="${LD-ld} -m $emul"
8135  fi
8136  rm -rf conftest*
8137  ;;
8138
8139x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8140s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8141  # Find out what ABI is being produced by ac_compile, and set linker
8142  # options accordingly.  Note that the listed cases only cover the
8143  # situations where additional linker options are needed (such as when
8144  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8145  # vice versa); the common cases where no linker options are needed do
8146  # not appear in the list.
8147  echo 'int i;' > conftest.$ac_ext
8148  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8149  (eval $ac_compile) 2>&5
8150  ac_status=$?
8151  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8152  test $ac_status = 0; }; then
8153    case `/usr/bin/file conftest.o` in
8154      *32-bit*)
8155	case $host in
8156	  x86_64-*kfreebsd*-gnu)
8157	    LD="${LD-ld} -m elf_i386_fbsd"
8158	    ;;
8159	  x86_64-*linux*)
8160	    case `/usr/bin/file conftest.o` in
8161	      *x86-64*)
8162		LD="${LD-ld} -m elf32_x86_64"
8163		;;
8164	      *)
8165		LD="${LD-ld} -m elf_i386"
8166		;;
8167	    esac
8168	    ;;
8169	  powerpc64le-*linux*)
8170	    LD="${LD-ld} -m elf32lppclinux"
8171	    ;;
8172	  powerpc64-*linux*)
8173	    LD="${LD-ld} -m elf32ppclinux"
8174	    ;;
8175	  s390x-*linux*)
8176	    LD="${LD-ld} -m elf_s390"
8177	    ;;
8178	  sparc64-*linux*)
8179	    LD="${LD-ld} -m elf32_sparc"
8180	    ;;
8181	esac
8182	;;
8183      *64-bit*)
8184	case $host in
8185	  x86_64-*kfreebsd*-gnu)
8186	    LD="${LD-ld} -m elf_x86_64_fbsd"
8187	    ;;
8188	  x86_64-*linux*)
8189	    LD="${LD-ld} -m elf_x86_64"
8190	    ;;
8191	  powerpcle-*linux*)
8192	    LD="${LD-ld} -m elf64lppc"
8193	    ;;
8194	  powerpc-*linux*)
8195	    LD="${LD-ld} -m elf64ppc"
8196	    ;;
8197	  s390*-*linux*|s390*-*tpf*)
8198	    LD="${LD-ld} -m elf64_s390"
8199	    ;;
8200	  sparc*-*linux*)
8201	    LD="${LD-ld} -m elf64_sparc"
8202	    ;;
8203	esac
8204	;;
8205    esac
8206  fi
8207  rm -rf conftest*
8208  ;;
8209
8210*-*-sco3.2v5*)
8211  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8212  SAVE_CFLAGS=$CFLAGS
8213  CFLAGS="$CFLAGS -belf"
8214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8215$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8216if ${lt_cv_cc_needs_belf+:} false; then :
8217  $as_echo_n "(cached) " >&6
8218else
8219  ac_ext=c
8220ac_cpp='$CPP $CPPFLAGS'
8221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8223ac_compiler_gnu=$ac_cv_c_compiler_gnu
8224
8225     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8226/* end confdefs.h.  */
8227
8228int
8229main ()
8230{
8231
8232  ;
8233  return 0;
8234}
8235_ACEOF
8236if ac_fn_c_try_link "$LINENO"; then :
8237  lt_cv_cc_needs_belf=yes
8238else
8239  lt_cv_cc_needs_belf=no
8240fi
8241rm -f core conftest.err conftest.$ac_objext \
8242    conftest$ac_exeext conftest.$ac_ext
8243     ac_ext=c
8244ac_cpp='$CPP $CPPFLAGS'
8245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8247ac_compiler_gnu=$ac_cv_c_compiler_gnu
8248
8249fi
8250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8251$as_echo "$lt_cv_cc_needs_belf" >&6; }
8252  if test yes != "$lt_cv_cc_needs_belf"; then
8253    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8254    CFLAGS=$SAVE_CFLAGS
8255  fi
8256  ;;
8257*-*solaris*)
8258  # Find out what ABI is being produced by ac_compile, and set linker
8259  # options accordingly.
8260  echo 'int i;' > conftest.$ac_ext
8261  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8262  (eval $ac_compile) 2>&5
8263  ac_status=$?
8264  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8265  test $ac_status = 0; }; then
8266    case `/usr/bin/file conftest.o` in
8267    *64-bit*)
8268      case $lt_cv_prog_gnu_ld in
8269      yes*)
8270        case $host in
8271        i?86-*-solaris*|x86_64-*-solaris*)
8272          LD="${LD-ld} -m elf_x86_64"
8273          ;;
8274        sparc*-*-solaris*)
8275          LD="${LD-ld} -m elf64_sparc"
8276          ;;
8277        esac
8278        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8279        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8280          LD=${LD-ld}_sol2
8281        fi
8282        ;;
8283      *)
8284	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8285	  LD="${LD-ld} -64"
8286	fi
8287	;;
8288      esac
8289      ;;
8290    esac
8291  fi
8292  rm -rf conftest*
8293  ;;
8294esac
8295
8296need_locks=$enable_libtool_lock
8297
8298if test -n "$ac_tool_prefix"; then
8299  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8300set dummy ${ac_tool_prefix}mt; ac_word=$2
8301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8302$as_echo_n "checking for $ac_word... " >&6; }
8303if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8304  $as_echo_n "(cached) " >&6
8305else
8306  if test -n "$MANIFEST_TOOL"; then
8307  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8308else
8309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310for as_dir in $PATH
8311do
8312  IFS=$as_save_IFS
8313  test -z "$as_dir" && as_dir=.
8314    for ac_exec_ext in '' $ac_executable_extensions; do
8315  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8316    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8318    break 2
8319  fi
8320done
8321  done
8322IFS=$as_save_IFS
8323
8324fi
8325fi
8326MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8327if test -n "$MANIFEST_TOOL"; then
8328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8329$as_echo "$MANIFEST_TOOL" >&6; }
8330else
8331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332$as_echo "no" >&6; }
8333fi
8334
8335
8336fi
8337if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8338  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8339  # Extract the first word of "mt", so it can be a program name with args.
8340set dummy mt; ac_word=$2
8341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342$as_echo_n "checking for $ac_word... " >&6; }
8343if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8344  $as_echo_n "(cached) " >&6
8345else
8346  if test -n "$ac_ct_MANIFEST_TOOL"; then
8347  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8348else
8349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350for as_dir in $PATH
8351do
8352  IFS=$as_save_IFS
8353  test -z "$as_dir" && as_dir=.
8354    for ac_exec_ext in '' $ac_executable_extensions; do
8355  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8356    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8357    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8358    break 2
8359  fi
8360done
8361  done
8362IFS=$as_save_IFS
8363
8364fi
8365fi
8366ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8367if test -n "$ac_ct_MANIFEST_TOOL"; then
8368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8369$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8370else
8371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372$as_echo "no" >&6; }
8373fi
8374
8375  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8376    MANIFEST_TOOL=":"
8377  else
8378    case $cross_compiling:$ac_tool_warned in
8379yes:)
8380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8382ac_tool_warned=yes ;;
8383esac
8384    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8385  fi
8386else
8387  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8388fi
8389
8390test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8392$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8393if ${lt_cv_path_mainfest_tool+:} false; then :
8394  $as_echo_n "(cached) " >&6
8395else
8396  lt_cv_path_mainfest_tool=no
8397  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8398  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8399  cat conftest.err >&5
8400  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8401    lt_cv_path_mainfest_tool=yes
8402  fi
8403  rm -f conftest*
8404fi
8405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8406$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8407if test yes != "$lt_cv_path_mainfest_tool"; then
8408  MANIFEST_TOOL=:
8409fi
8410
8411
8412
8413
8414
8415
8416  case $host_os in
8417    rhapsody* | darwin*)
8418    if test -n "$ac_tool_prefix"; then
8419  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8420set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8422$as_echo_n "checking for $ac_word... " >&6; }
8423if ${ac_cv_prog_DSYMUTIL+:} false; then :
8424  $as_echo_n "(cached) " >&6
8425else
8426  if test -n "$DSYMUTIL"; then
8427  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8428else
8429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8430for as_dir in $PATH
8431do
8432  IFS=$as_save_IFS
8433  test -z "$as_dir" && as_dir=.
8434    for ac_exec_ext in '' $ac_executable_extensions; do
8435  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8436    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8437    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8438    break 2
8439  fi
8440done
8441  done
8442IFS=$as_save_IFS
8443
8444fi
8445fi
8446DSYMUTIL=$ac_cv_prog_DSYMUTIL
8447if test -n "$DSYMUTIL"; then
8448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8449$as_echo "$DSYMUTIL" >&6; }
8450else
8451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8452$as_echo "no" >&6; }
8453fi
8454
8455
8456fi
8457if test -z "$ac_cv_prog_DSYMUTIL"; then
8458  ac_ct_DSYMUTIL=$DSYMUTIL
8459  # Extract the first word of "dsymutil", so it can be a program name with args.
8460set dummy dsymutil; ac_word=$2
8461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8462$as_echo_n "checking for $ac_word... " >&6; }
8463if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8464  $as_echo_n "(cached) " >&6
8465else
8466  if test -n "$ac_ct_DSYMUTIL"; then
8467  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8468else
8469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8470for as_dir in $PATH
8471do
8472  IFS=$as_save_IFS
8473  test -z "$as_dir" && as_dir=.
8474    for ac_exec_ext in '' $ac_executable_extensions; do
8475  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8476    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8477    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8478    break 2
8479  fi
8480done
8481  done
8482IFS=$as_save_IFS
8483
8484fi
8485fi
8486ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8487if test -n "$ac_ct_DSYMUTIL"; then
8488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8489$as_echo "$ac_ct_DSYMUTIL" >&6; }
8490else
8491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8492$as_echo "no" >&6; }
8493fi
8494
8495  if test "x$ac_ct_DSYMUTIL" = x; then
8496    DSYMUTIL=":"
8497  else
8498    case $cross_compiling:$ac_tool_warned in
8499yes:)
8500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8502ac_tool_warned=yes ;;
8503esac
8504    DSYMUTIL=$ac_ct_DSYMUTIL
8505  fi
8506else
8507  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8508fi
8509
8510    if test -n "$ac_tool_prefix"; then
8511  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8512set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8514$as_echo_n "checking for $ac_word... " >&6; }
8515if ${ac_cv_prog_NMEDIT+:} false; then :
8516  $as_echo_n "(cached) " >&6
8517else
8518  if test -n "$NMEDIT"; then
8519  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8520else
8521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522for as_dir in $PATH
8523do
8524  IFS=$as_save_IFS
8525  test -z "$as_dir" && as_dir=.
8526    for ac_exec_ext in '' $ac_executable_extensions; do
8527  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8528    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8530    break 2
8531  fi
8532done
8533  done
8534IFS=$as_save_IFS
8535
8536fi
8537fi
8538NMEDIT=$ac_cv_prog_NMEDIT
8539if test -n "$NMEDIT"; then
8540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8541$as_echo "$NMEDIT" >&6; }
8542else
8543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544$as_echo "no" >&6; }
8545fi
8546
8547
8548fi
8549if test -z "$ac_cv_prog_NMEDIT"; then
8550  ac_ct_NMEDIT=$NMEDIT
8551  # Extract the first word of "nmedit", so it can be a program name with args.
8552set dummy nmedit; ac_word=$2
8553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8554$as_echo_n "checking for $ac_word... " >&6; }
8555if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8556  $as_echo_n "(cached) " >&6
8557else
8558  if test -n "$ac_ct_NMEDIT"; then
8559  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8560else
8561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8562for as_dir in $PATH
8563do
8564  IFS=$as_save_IFS
8565  test -z "$as_dir" && as_dir=.
8566    for ac_exec_ext in '' $ac_executable_extensions; do
8567  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8568    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8570    break 2
8571  fi
8572done
8573  done
8574IFS=$as_save_IFS
8575
8576fi
8577fi
8578ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8579if test -n "$ac_ct_NMEDIT"; then
8580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8581$as_echo "$ac_ct_NMEDIT" >&6; }
8582else
8583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8584$as_echo "no" >&6; }
8585fi
8586
8587  if test "x$ac_ct_NMEDIT" = x; then
8588    NMEDIT=":"
8589  else
8590    case $cross_compiling:$ac_tool_warned in
8591yes:)
8592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8594ac_tool_warned=yes ;;
8595esac
8596    NMEDIT=$ac_ct_NMEDIT
8597  fi
8598else
8599  NMEDIT="$ac_cv_prog_NMEDIT"
8600fi
8601
8602    if test -n "$ac_tool_prefix"; then
8603  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8604set dummy ${ac_tool_prefix}lipo; ac_word=$2
8605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8606$as_echo_n "checking for $ac_word... " >&6; }
8607if ${ac_cv_prog_LIPO+:} false; then :
8608  $as_echo_n "(cached) " >&6
8609else
8610  if test -n "$LIPO"; then
8611  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8612else
8613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8614for as_dir in $PATH
8615do
8616  IFS=$as_save_IFS
8617  test -z "$as_dir" && as_dir=.
8618    for ac_exec_ext in '' $ac_executable_extensions; do
8619  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8620    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8621    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8622    break 2
8623  fi
8624done
8625  done
8626IFS=$as_save_IFS
8627
8628fi
8629fi
8630LIPO=$ac_cv_prog_LIPO
8631if test -n "$LIPO"; then
8632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8633$as_echo "$LIPO" >&6; }
8634else
8635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636$as_echo "no" >&6; }
8637fi
8638
8639
8640fi
8641if test -z "$ac_cv_prog_LIPO"; then
8642  ac_ct_LIPO=$LIPO
8643  # Extract the first word of "lipo", so it can be a program name with args.
8644set dummy lipo; ac_word=$2
8645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8646$as_echo_n "checking for $ac_word... " >&6; }
8647if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8648  $as_echo_n "(cached) " >&6
8649else
8650  if test -n "$ac_ct_LIPO"; then
8651  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8652else
8653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654for as_dir in $PATH
8655do
8656  IFS=$as_save_IFS
8657  test -z "$as_dir" && as_dir=.
8658    for ac_exec_ext in '' $ac_executable_extensions; do
8659  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8660    ac_cv_prog_ac_ct_LIPO="lipo"
8661    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8662    break 2
8663  fi
8664done
8665  done
8666IFS=$as_save_IFS
8667
8668fi
8669fi
8670ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8671if test -n "$ac_ct_LIPO"; then
8672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8673$as_echo "$ac_ct_LIPO" >&6; }
8674else
8675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8676$as_echo "no" >&6; }
8677fi
8678
8679  if test "x$ac_ct_LIPO" = x; then
8680    LIPO=":"
8681  else
8682    case $cross_compiling:$ac_tool_warned in
8683yes:)
8684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8686ac_tool_warned=yes ;;
8687esac
8688    LIPO=$ac_ct_LIPO
8689  fi
8690else
8691  LIPO="$ac_cv_prog_LIPO"
8692fi
8693
8694    if test -n "$ac_tool_prefix"; then
8695  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8696set dummy ${ac_tool_prefix}otool; ac_word=$2
8697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8698$as_echo_n "checking for $ac_word... " >&6; }
8699if ${ac_cv_prog_OTOOL+:} false; then :
8700  $as_echo_n "(cached) " >&6
8701else
8702  if test -n "$OTOOL"; then
8703  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8704else
8705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8706for as_dir in $PATH
8707do
8708  IFS=$as_save_IFS
8709  test -z "$as_dir" && as_dir=.
8710    for ac_exec_ext in '' $ac_executable_extensions; do
8711  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8712    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8713    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8714    break 2
8715  fi
8716done
8717  done
8718IFS=$as_save_IFS
8719
8720fi
8721fi
8722OTOOL=$ac_cv_prog_OTOOL
8723if test -n "$OTOOL"; then
8724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8725$as_echo "$OTOOL" >&6; }
8726else
8727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8728$as_echo "no" >&6; }
8729fi
8730
8731
8732fi
8733if test -z "$ac_cv_prog_OTOOL"; then
8734  ac_ct_OTOOL=$OTOOL
8735  # Extract the first word of "otool", so it can be a program name with args.
8736set dummy otool; ac_word=$2
8737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8738$as_echo_n "checking for $ac_word... " >&6; }
8739if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8740  $as_echo_n "(cached) " >&6
8741else
8742  if test -n "$ac_ct_OTOOL"; then
8743  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8744else
8745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746for as_dir in $PATH
8747do
8748  IFS=$as_save_IFS
8749  test -z "$as_dir" && as_dir=.
8750    for ac_exec_ext in '' $ac_executable_extensions; do
8751  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8752    ac_cv_prog_ac_ct_OTOOL="otool"
8753    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8754    break 2
8755  fi
8756done
8757  done
8758IFS=$as_save_IFS
8759
8760fi
8761fi
8762ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8763if test -n "$ac_ct_OTOOL"; then
8764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8765$as_echo "$ac_ct_OTOOL" >&6; }
8766else
8767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8768$as_echo "no" >&6; }
8769fi
8770
8771  if test "x$ac_ct_OTOOL" = x; then
8772    OTOOL=":"
8773  else
8774    case $cross_compiling:$ac_tool_warned in
8775yes:)
8776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8778ac_tool_warned=yes ;;
8779esac
8780    OTOOL=$ac_ct_OTOOL
8781  fi
8782else
8783  OTOOL="$ac_cv_prog_OTOOL"
8784fi
8785
8786    if test -n "$ac_tool_prefix"; then
8787  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8788set dummy ${ac_tool_prefix}otool64; ac_word=$2
8789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8790$as_echo_n "checking for $ac_word... " >&6; }
8791if ${ac_cv_prog_OTOOL64+:} false; then :
8792  $as_echo_n "(cached) " >&6
8793else
8794  if test -n "$OTOOL64"; then
8795  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8796else
8797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8798for as_dir in $PATH
8799do
8800  IFS=$as_save_IFS
8801  test -z "$as_dir" && as_dir=.
8802    for ac_exec_ext in '' $ac_executable_extensions; do
8803  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8804    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8805    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8806    break 2
8807  fi
8808done
8809  done
8810IFS=$as_save_IFS
8811
8812fi
8813fi
8814OTOOL64=$ac_cv_prog_OTOOL64
8815if test -n "$OTOOL64"; then
8816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8817$as_echo "$OTOOL64" >&6; }
8818else
8819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8820$as_echo "no" >&6; }
8821fi
8822
8823
8824fi
8825if test -z "$ac_cv_prog_OTOOL64"; then
8826  ac_ct_OTOOL64=$OTOOL64
8827  # Extract the first word of "otool64", so it can be a program name with args.
8828set dummy otool64; ac_word=$2
8829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8830$as_echo_n "checking for $ac_word... " >&6; }
8831if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8832  $as_echo_n "(cached) " >&6
8833else
8834  if test -n "$ac_ct_OTOOL64"; then
8835  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8836else
8837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8838for as_dir in $PATH
8839do
8840  IFS=$as_save_IFS
8841  test -z "$as_dir" && as_dir=.
8842    for ac_exec_ext in '' $ac_executable_extensions; do
8843  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8844    ac_cv_prog_ac_ct_OTOOL64="otool64"
8845    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8846    break 2
8847  fi
8848done
8849  done
8850IFS=$as_save_IFS
8851
8852fi
8853fi
8854ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8855if test -n "$ac_ct_OTOOL64"; then
8856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8857$as_echo "$ac_ct_OTOOL64" >&6; }
8858else
8859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8860$as_echo "no" >&6; }
8861fi
8862
8863  if test "x$ac_ct_OTOOL64" = x; then
8864    OTOOL64=":"
8865  else
8866    case $cross_compiling:$ac_tool_warned in
8867yes:)
8868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8870ac_tool_warned=yes ;;
8871esac
8872    OTOOL64=$ac_ct_OTOOL64
8873  fi
8874else
8875  OTOOL64="$ac_cv_prog_OTOOL64"
8876fi
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8905$as_echo_n "checking for -single_module linker flag... " >&6; }
8906if ${lt_cv_apple_cc_single_mod+:} false; then :
8907  $as_echo_n "(cached) " >&6
8908else
8909  lt_cv_apple_cc_single_mod=no
8910      if test -z "$LT_MULTI_MODULE"; then
8911	# By default we will add the -single_module flag. You can override
8912	# by either setting the environment variable LT_MULTI_MODULE
8913	# non-empty at configure time, or by adding -multi_module to the
8914	# link flags.
8915	rm -rf libconftest.dylib*
8916	echo "int foo(void){return 1;}" > conftest.c
8917	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8918-dynamiclib -Wl,-single_module conftest.c" >&5
8919	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8920	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8921        _lt_result=$?
8922	# If there is a non-empty error log, and "single_module"
8923	# appears in it, assume the flag caused a linker warning
8924        if test -s conftest.err && $GREP single_module conftest.err; then
8925	  cat conftest.err >&5
8926	# Otherwise, if the output was created with a 0 exit code from
8927	# the compiler, it worked.
8928	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8929	  lt_cv_apple_cc_single_mod=yes
8930	else
8931	  cat conftest.err >&5
8932	fi
8933	rm -rf libconftest.dylib*
8934	rm -f conftest.*
8935      fi
8936fi
8937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8938$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8939
8940    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8941$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8942if ${lt_cv_ld_exported_symbols_list+:} false; then :
8943  $as_echo_n "(cached) " >&6
8944else
8945  lt_cv_ld_exported_symbols_list=no
8946      save_LDFLAGS=$LDFLAGS
8947      echo "_main" > conftest.sym
8948      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8949      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8950/* end confdefs.h.  */
8951
8952int
8953main ()
8954{
8955
8956  ;
8957  return 0;
8958}
8959_ACEOF
8960if ac_fn_c_try_link "$LINENO"; then :
8961  lt_cv_ld_exported_symbols_list=yes
8962else
8963  lt_cv_ld_exported_symbols_list=no
8964fi
8965rm -f core conftest.err conftest.$ac_objext \
8966    conftest$ac_exeext conftest.$ac_ext
8967	LDFLAGS=$save_LDFLAGS
8968
8969fi
8970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8971$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8972
8973    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8974$as_echo_n "checking for -force_load linker flag... " >&6; }
8975if ${lt_cv_ld_force_load+:} false; then :
8976  $as_echo_n "(cached) " >&6
8977else
8978  lt_cv_ld_force_load=no
8979      cat > conftest.c << _LT_EOF
8980int forced_loaded() { return 2;}
8981_LT_EOF
8982      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8983      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8984      echo "$AR cru libconftest.a conftest.o" >&5
8985      $AR cru libconftest.a conftest.o 2>&5
8986      echo "$RANLIB libconftest.a" >&5
8987      $RANLIB libconftest.a 2>&5
8988      cat > conftest.c << _LT_EOF
8989int main() { return 0;}
8990_LT_EOF
8991      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8992      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8993      _lt_result=$?
8994      if test -s conftest.err && $GREP force_load conftest.err; then
8995	cat conftest.err >&5
8996      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8997	lt_cv_ld_force_load=yes
8998      else
8999	cat conftest.err >&5
9000      fi
9001        rm -f conftest.err libconftest.a conftest conftest.c
9002        rm -rf conftest.dSYM
9003
9004fi
9005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9006$as_echo "$lt_cv_ld_force_load" >&6; }
9007    case $host_os in
9008    rhapsody* | darwin1.[012])
9009      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9010    darwin1.*)
9011      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9012    darwin*) # darwin 5.x on
9013      # if running on 10.5 or later, the deployment target defaults
9014      # to the OS version, if on x86, and 10.4, the deployment
9015      # target defaults to 10.4. Don't you love it?
9016      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9017	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9018	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9019	10.[012][,.]*)
9020	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9021	10.*)
9022	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9023      esac
9024    ;;
9025  esac
9026    if test yes = "$lt_cv_apple_cc_single_mod"; then
9027      _lt_dar_single_mod='$single_module'
9028    fi
9029    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9030      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9031    else
9032      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9033    fi
9034    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9035      _lt_dsymutil='~$DSYMUTIL $lib || :'
9036    else
9037      _lt_dsymutil=
9038    fi
9039    ;;
9040  esac
9041
9042# func_munge_path_list VARIABLE PATH
9043# -----------------------------------
9044# VARIABLE is name of variable containing _space_ separated list of
9045# directories to be munged by the contents of PATH, which is string
9046# having a format:
9047# "DIR[:DIR]:"
9048#       string "DIR[ DIR]" will be prepended to VARIABLE
9049# ":DIR[:DIR]"
9050#       string "DIR[ DIR]" will be appended to VARIABLE
9051# "DIRP[:DIRP]::[DIRA:]DIRA"
9052#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9053#       "DIRA[ DIRA]" will be appended to VARIABLE
9054# "DIR[:DIR]"
9055#       VARIABLE will be replaced by "DIR[ DIR]"
9056func_munge_path_list ()
9057{
9058    case x$2 in
9059    x)
9060        ;;
9061    *:)
9062        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9063        ;;
9064    x:*)
9065        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9066        ;;
9067    *::*)
9068        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9069        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9070        ;;
9071    *)
9072        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9073        ;;
9074    esac
9075}
9076
9077
9078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9079$as_echo_n "checking for ANSI C header files... " >&6; }
9080if ${ac_cv_header_stdc+:} false; then :
9081  $as_echo_n "(cached) " >&6
9082else
9083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9084/* end confdefs.h.  */
9085#include <stdlib.h>
9086#include <stdarg.h>
9087#include <string.h>
9088#include <float.h>
9089
9090int
9091main ()
9092{
9093
9094  ;
9095  return 0;
9096}
9097_ACEOF
9098if ac_fn_c_try_compile "$LINENO"; then :
9099  ac_cv_header_stdc=yes
9100else
9101  ac_cv_header_stdc=no
9102fi
9103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9104
9105if test $ac_cv_header_stdc = yes; then
9106  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9108/* end confdefs.h.  */
9109#include <string.h>
9110
9111_ACEOF
9112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9113  $EGREP "memchr" >/dev/null 2>&1; then :
9114
9115else
9116  ac_cv_header_stdc=no
9117fi
9118rm -f conftest*
9119
9120fi
9121
9122if test $ac_cv_header_stdc = yes; then
9123  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125/* end confdefs.h.  */
9126#include <stdlib.h>
9127
9128_ACEOF
9129if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9130  $EGREP "free" >/dev/null 2>&1; then :
9131
9132else
9133  ac_cv_header_stdc=no
9134fi
9135rm -f conftest*
9136
9137fi
9138
9139if test $ac_cv_header_stdc = yes; then
9140  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9141  if test "$cross_compiling" = yes; then :
9142  :
9143else
9144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145/* end confdefs.h.  */
9146#include <ctype.h>
9147#include <stdlib.h>
9148#if ((' ' & 0x0FF) == 0x020)
9149# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9150# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9151#else
9152# define ISLOWER(c) \
9153		   (('a' <= (c) && (c) <= 'i') \
9154		     || ('j' <= (c) && (c) <= 'r') \
9155		     || ('s' <= (c) && (c) <= 'z'))
9156# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9157#endif
9158
9159#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9160int
9161main ()
9162{
9163  int i;
9164  for (i = 0; i < 256; i++)
9165    if (XOR (islower (i), ISLOWER (i))
9166	|| toupper (i) != TOUPPER (i))
9167      return 2;
9168  return 0;
9169}
9170_ACEOF
9171if ac_fn_c_try_run "$LINENO"; then :
9172
9173else
9174  ac_cv_header_stdc=no
9175fi
9176rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9177  conftest.$ac_objext conftest.beam conftest.$ac_ext
9178fi
9179
9180fi
9181fi
9182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9183$as_echo "$ac_cv_header_stdc" >&6; }
9184if test $ac_cv_header_stdc = yes; then
9185
9186$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9187
9188fi
9189
9190# On IRIX 5.3, sys/types and inttypes.h are conflicting.
9191for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9192		  inttypes.h stdint.h unistd.h
9193do :
9194  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9195ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9196"
9197if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9198  cat >>confdefs.h <<_ACEOF
9199#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9200_ACEOF
9201
9202fi
9203
9204done
9205
9206
9207for ac_header in dlfcn.h
9208do :
9209  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9210"
9211if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9212  cat >>confdefs.h <<_ACEOF
9213#define HAVE_DLFCN_H 1
9214_ACEOF
9215
9216fi
9217
9218done
9219
9220
9221
9222
9223func_stripname_cnf ()
9224{
9225  case $2 in
9226  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9227  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9228  esac
9229} # func_stripname_cnf
9230
9231
9232
9233
9234
9235# Set options
9236
9237
9238
9239        enable_dlopen=no
9240
9241
9242  enable_win32_dll=no
9243
9244
9245            # Check whether --enable-shared was given.
9246if test "${enable_shared+set}" = set; then :
9247  enableval=$enable_shared; p=${PACKAGE-default}
9248    case $enableval in
9249    yes) enable_shared=yes ;;
9250    no) enable_shared=no ;;
9251    *)
9252      enable_shared=no
9253      # Look at the argument we got.  We use all the common list separators.
9254      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9255      for pkg in $enableval; do
9256	IFS=$lt_save_ifs
9257	if test "X$pkg" = "X$p"; then
9258	  enable_shared=yes
9259	fi
9260      done
9261      IFS=$lt_save_ifs
9262      ;;
9263    esac
9264else
9265  enable_shared=yes
9266fi
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276  # Check whether --enable-static was given.
9277if test "${enable_static+set}" = set; then :
9278  enableval=$enable_static; p=${PACKAGE-default}
9279    case $enableval in
9280    yes) enable_static=yes ;;
9281    no) enable_static=no ;;
9282    *)
9283     enable_static=no
9284      # Look at the argument we got.  We use all the common list separators.
9285      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9286      for pkg in $enableval; do
9287	IFS=$lt_save_ifs
9288	if test "X$pkg" = "X$p"; then
9289	  enable_static=yes
9290	fi
9291      done
9292      IFS=$lt_save_ifs
9293      ;;
9294    esac
9295else
9296  enable_static=yes
9297fi
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308# Check whether --with-pic was given.
9309if test "${with_pic+set}" = set; then :
9310  withval=$with_pic; lt_p=${PACKAGE-default}
9311    case $withval in
9312    yes|no) pic_mode=$withval ;;
9313    *)
9314      pic_mode=default
9315      # Look at the argument we got.  We use all the common list separators.
9316      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9317      for lt_pkg in $withval; do
9318	IFS=$lt_save_ifs
9319	if test "X$lt_pkg" = "X$lt_p"; then
9320	  pic_mode=yes
9321	fi
9322      done
9323      IFS=$lt_save_ifs
9324      ;;
9325    esac
9326else
9327  pic_mode=default
9328fi
9329
9330
9331
9332
9333
9334
9335
9336
9337  # Check whether --enable-fast-install was given.
9338if test "${enable_fast_install+set}" = set; then :
9339  enableval=$enable_fast_install; p=${PACKAGE-default}
9340    case $enableval in
9341    yes) enable_fast_install=yes ;;
9342    no) enable_fast_install=no ;;
9343    *)
9344      enable_fast_install=no
9345      # Look at the argument we got.  We use all the common list separators.
9346      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9347      for pkg in $enableval; do
9348	IFS=$lt_save_ifs
9349	if test "X$pkg" = "X$p"; then
9350	  enable_fast_install=yes
9351	fi
9352      done
9353      IFS=$lt_save_ifs
9354      ;;
9355    esac
9356else
9357  enable_fast_install=yes
9358fi
9359
9360
9361
9362
9363
9364
9365
9366
9367  shared_archive_member_spec=
9368case $host,$enable_shared in
9369power*-*-aix[5-9]*,yes)
9370  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9371$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9372
9373# Check whether --with-aix-soname was given.
9374if test "${with_aix_soname+set}" = set; then :
9375  withval=$with_aix_soname; case $withval in
9376    aix|svr4|both)
9377      ;;
9378    *)
9379      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9380      ;;
9381    esac
9382    lt_cv_with_aix_soname=$with_aix_soname
9383else
9384  if ${lt_cv_with_aix_soname+:} false; then :
9385  $as_echo_n "(cached) " >&6
9386else
9387  lt_cv_with_aix_soname=aix
9388fi
9389
9390    with_aix_soname=$lt_cv_with_aix_soname
9391fi
9392
9393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9394$as_echo "$with_aix_soname" >&6; }
9395  if test aix != "$with_aix_soname"; then
9396    # For the AIX way of multilib, we name the shared archive member
9397    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9398    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9399    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9400    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9401    if test 64 = "${OBJECT_MODE-32}"; then
9402      shared_archive_member_spec=shr_64
9403    else
9404      shared_archive_member_spec=shr
9405    fi
9406  fi
9407  ;;
9408*)
9409  with_aix_soname=aix
9410  ;;
9411esac
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422# This can be used to rebuild libtool when needed
9423LIBTOOL_DEPS=$ltmain
9424
9425# Always use our own libtool.
9426LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457test -z "$LN_S" && LN_S="ln -s"
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472if test -n "${ZSH_VERSION+set}"; then
9473   setopt NO_GLOB_SUBST
9474fi
9475
9476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9477$as_echo_n "checking for objdir... " >&6; }
9478if ${lt_cv_objdir+:} false; then :
9479  $as_echo_n "(cached) " >&6
9480else
9481  rm -f .libs 2>/dev/null
9482mkdir .libs 2>/dev/null
9483if test -d .libs; then
9484  lt_cv_objdir=.libs
9485else
9486  # MS-DOS does not allow filenames that begin with a dot.
9487  lt_cv_objdir=_libs
9488fi
9489rmdir .libs 2>/dev/null
9490fi
9491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9492$as_echo "$lt_cv_objdir" >&6; }
9493objdir=$lt_cv_objdir
9494
9495
9496
9497
9498
9499cat >>confdefs.h <<_ACEOF
9500#define LT_OBJDIR "$lt_cv_objdir/"
9501_ACEOF
9502
9503
9504
9505
9506case $host_os in
9507aix3*)
9508  # AIX sometimes has problems with the GCC collect2 program.  For some
9509  # reason, if we set the COLLECT_NAMES environment variable, the problems
9510  # vanish in a puff of smoke.
9511  if test set != "${COLLECT_NAMES+set}"; then
9512    COLLECT_NAMES=
9513    export COLLECT_NAMES
9514  fi
9515  ;;
9516esac
9517
9518# Global variables:
9519ofile=libtool
9520can_build_shared=yes
9521
9522# All known linkers require a '.a' archive for static linking (except MSVC,
9523# which needs '.lib').
9524libext=a
9525
9526with_gnu_ld=$lt_cv_prog_gnu_ld
9527
9528old_CC=$CC
9529old_CFLAGS=$CFLAGS
9530
9531# Set sane defaults for various variables
9532test -z "$CC" && CC=cc
9533test -z "$LTCC" && LTCC=$CC
9534test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9535test -z "$LD" && LD=ld
9536test -z "$ac_objext" && ac_objext=o
9537
9538func_cc_basename $compiler
9539cc_basename=$func_cc_basename_result
9540
9541
9542# Only perform the check for file, if the check method requires it
9543test -z "$MAGIC_CMD" && MAGIC_CMD=file
9544case $deplibs_check_method in
9545file_magic*)
9546  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9547    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9548$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9549if ${lt_cv_path_MAGIC_CMD+:} false; then :
9550  $as_echo_n "(cached) " >&6
9551else
9552  case $MAGIC_CMD in
9553[\\/*] |  ?:[\\/]*)
9554  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9555  ;;
9556*)
9557  lt_save_MAGIC_CMD=$MAGIC_CMD
9558  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9559  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9560  for ac_dir in $ac_dummy; do
9561    IFS=$lt_save_ifs
9562    test -z "$ac_dir" && ac_dir=.
9563    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9564      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9565      if test -n "$file_magic_test_file"; then
9566	case $deplibs_check_method in
9567	"file_magic "*)
9568	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9569	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9570	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9571	    $EGREP "$file_magic_regex" > /dev/null; then
9572	    :
9573	  else
9574	    cat <<_LT_EOF 1>&2
9575
9576*** Warning: the command libtool uses to detect shared libraries,
9577*** $file_magic_cmd, produces output that libtool cannot recognize.
9578*** The result is that libtool may fail to recognize shared libraries
9579*** as such.  This will affect the creation of libtool libraries that
9580*** depend on shared libraries, but programs linked with such libtool
9581*** libraries will work regardless of this problem.  Nevertheless, you
9582*** may want to report the problem to your system manager and/or to
9583*** bug-libtool@gnu.org
9584
9585_LT_EOF
9586	  fi ;;
9587	esac
9588      fi
9589      break
9590    fi
9591  done
9592  IFS=$lt_save_ifs
9593  MAGIC_CMD=$lt_save_MAGIC_CMD
9594  ;;
9595esac
9596fi
9597
9598MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9599if test -n "$MAGIC_CMD"; then
9600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9601$as_echo "$MAGIC_CMD" >&6; }
9602else
9603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9604$as_echo "no" >&6; }
9605fi
9606
9607
9608
9609
9610
9611if test -z "$lt_cv_path_MAGIC_CMD"; then
9612  if test -n "$ac_tool_prefix"; then
9613    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9614$as_echo_n "checking for file... " >&6; }
9615if ${lt_cv_path_MAGIC_CMD+:} false; then :
9616  $as_echo_n "(cached) " >&6
9617else
9618  case $MAGIC_CMD in
9619[\\/*] |  ?:[\\/]*)
9620  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9621  ;;
9622*)
9623  lt_save_MAGIC_CMD=$MAGIC_CMD
9624  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9625  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9626  for ac_dir in $ac_dummy; do
9627    IFS=$lt_save_ifs
9628    test -z "$ac_dir" && ac_dir=.
9629    if test -f "$ac_dir/file"; then
9630      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9631      if test -n "$file_magic_test_file"; then
9632	case $deplibs_check_method in
9633	"file_magic "*)
9634	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9635	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9636	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9637	    $EGREP "$file_magic_regex" > /dev/null; then
9638	    :
9639	  else
9640	    cat <<_LT_EOF 1>&2
9641
9642*** Warning: the command libtool uses to detect shared libraries,
9643*** $file_magic_cmd, produces output that libtool cannot recognize.
9644*** The result is that libtool may fail to recognize shared libraries
9645*** as such.  This will affect the creation of libtool libraries that
9646*** depend on shared libraries, but programs linked with such libtool
9647*** libraries will work regardless of this problem.  Nevertheless, you
9648*** may want to report the problem to your system manager and/or to
9649*** bug-libtool@gnu.org
9650
9651_LT_EOF
9652	  fi ;;
9653	esac
9654      fi
9655      break
9656    fi
9657  done
9658  IFS=$lt_save_ifs
9659  MAGIC_CMD=$lt_save_MAGIC_CMD
9660  ;;
9661esac
9662fi
9663
9664MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9665if test -n "$MAGIC_CMD"; then
9666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9667$as_echo "$MAGIC_CMD" >&6; }
9668else
9669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9670$as_echo "no" >&6; }
9671fi
9672
9673
9674  else
9675    MAGIC_CMD=:
9676  fi
9677fi
9678
9679  fi
9680  ;;
9681esac
9682
9683# Use C for the default configuration in the libtool script
9684
9685lt_save_CC=$CC
9686ac_ext=c
9687ac_cpp='$CPP $CPPFLAGS'
9688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9690ac_compiler_gnu=$ac_cv_c_compiler_gnu
9691
9692
9693# Source file extension for C test sources.
9694ac_ext=c
9695
9696# Object file extension for compiled C test sources.
9697objext=o
9698objext=$objext
9699
9700# Code to be used in simple compile tests
9701lt_simple_compile_test_code="int some_variable = 0;"
9702
9703# Code to be used in simple link tests
9704lt_simple_link_test_code='int main(){return(0);}'
9705
9706
9707
9708
9709
9710
9711
9712# If no C compiler was specified, use CC.
9713LTCC=${LTCC-"$CC"}
9714
9715# If no C compiler flags were specified, use CFLAGS.
9716LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9717
9718# Allow CC to be a program name with arguments.
9719compiler=$CC
9720
9721# Save the default compiler, since it gets overwritten when the other
9722# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9723compiler_DEFAULT=$CC
9724
9725# save warnings/boilerplate of simple test code
9726ac_outfile=conftest.$ac_objext
9727echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9728eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9729_lt_compiler_boilerplate=`cat conftest.err`
9730$RM conftest*
9731
9732ac_outfile=conftest.$ac_objext
9733echo "$lt_simple_link_test_code" >conftest.$ac_ext
9734eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9735_lt_linker_boilerplate=`cat conftest.err`
9736$RM -r conftest*
9737
9738
9739## CAVEAT EMPTOR:
9740## There is no encapsulation within the following macros, do not change
9741## the running order or otherwise move them around unless you know exactly
9742## what you are doing...
9743if test -n "$compiler"; then
9744
9745lt_prog_compiler_no_builtin_flag=
9746
9747if test yes = "$GCC"; then
9748  case $cc_basename in
9749  nvcc*)
9750    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9751  *)
9752    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9753  esac
9754
9755  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9756$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9757if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9758  $as_echo_n "(cached) " >&6
9759else
9760  lt_cv_prog_compiler_rtti_exceptions=no
9761   ac_outfile=conftest.$ac_objext
9762   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9763   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9764   # Insert the option either (1) after the last *FLAGS variable, or
9765   # (2) before a word containing "conftest.", or (3) at the end.
9766   # Note that $ac_compile itself does not contain backslashes and begins
9767   # with a dollar sign (not a hyphen), so the echo should work correctly.
9768   # The option is referenced via a variable to avoid confusing sed.
9769   lt_compile=`echo "$ac_compile" | $SED \
9770   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9771   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9772   -e 's:$: $lt_compiler_flag:'`
9773   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9774   (eval "$lt_compile" 2>conftest.err)
9775   ac_status=$?
9776   cat conftest.err >&5
9777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778   if (exit $ac_status) && test -s "$ac_outfile"; then
9779     # The compiler can only warn and ignore the option if not recognized
9780     # So say no if there are warnings other than the usual output.
9781     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9782     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9783     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9784       lt_cv_prog_compiler_rtti_exceptions=yes
9785     fi
9786   fi
9787   $RM conftest*
9788
9789fi
9790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9791$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9792
9793if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9794    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9795else
9796    :
9797fi
9798
9799fi
9800
9801
9802
9803
9804
9805
9806  lt_prog_compiler_wl=
9807lt_prog_compiler_pic=
9808lt_prog_compiler_static=
9809
9810
9811  if test yes = "$GCC"; then
9812    lt_prog_compiler_wl='-Wl,'
9813    lt_prog_compiler_static='-static'
9814
9815    case $host_os in
9816      aix*)
9817      # All AIX code is PIC.
9818      if test ia64 = "$host_cpu"; then
9819	# AIX 5 now supports IA64 processor
9820	lt_prog_compiler_static='-Bstatic'
9821      fi
9822      lt_prog_compiler_pic='-fPIC'
9823      ;;
9824
9825    amigaos*)
9826      case $host_cpu in
9827      powerpc)
9828            # see comment about AmigaOS4 .so support
9829            lt_prog_compiler_pic='-fPIC'
9830        ;;
9831      m68k)
9832            # FIXME: we need at least 68020 code to build shared libraries, but
9833            # adding the '-m68020' flag to GCC prevents building anything better,
9834            # like '-m68040'.
9835            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9836        ;;
9837      esac
9838      ;;
9839
9840    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9841      # PIC is the default for these OSes.
9842      ;;
9843
9844    mingw* | cygwin* | pw32* | os2* | cegcc*)
9845      # This hack is so that the source file can tell whether it is being
9846      # built for inclusion in a dll (and should export symbols for example).
9847      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9848      # (--disable-auto-import) libraries
9849      lt_prog_compiler_pic='-DDLL_EXPORT'
9850      case $host_os in
9851      os2*)
9852	lt_prog_compiler_static='$wl-static'
9853	;;
9854      esac
9855      ;;
9856
9857    darwin* | rhapsody*)
9858      # PIC is the default on this platform
9859      # Common symbols not allowed in MH_DYLIB files
9860      lt_prog_compiler_pic='-fno-common'
9861      ;;
9862
9863    haiku*)
9864      # PIC is the default for Haiku.
9865      # The "-static" flag exists, but is broken.
9866      lt_prog_compiler_static=
9867      ;;
9868
9869    hpux*)
9870      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9871      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9872      # sets the default TLS model and affects inlining.
9873      case $host_cpu in
9874      hppa*64*)
9875	# +Z the default
9876	;;
9877      *)
9878	lt_prog_compiler_pic='-fPIC'
9879	;;
9880      esac
9881      ;;
9882
9883    interix[3-9]*)
9884      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9885      # Instead, we relocate shared libraries at runtime.
9886      ;;
9887
9888    msdosdjgpp*)
9889      # Just because we use GCC doesn't mean we suddenly get shared libraries
9890      # on systems that don't support them.
9891      lt_prog_compiler_can_build_shared=no
9892      enable_shared=no
9893      ;;
9894
9895    *nto* | *qnx*)
9896      # QNX uses GNU C++, but need to define -shared option too, otherwise
9897      # it will coredump.
9898      lt_prog_compiler_pic='-fPIC -shared'
9899      ;;
9900
9901    sysv4*MP*)
9902      if test -d /usr/nec; then
9903	lt_prog_compiler_pic=-Kconform_pic
9904      fi
9905      ;;
9906
9907    *)
9908      lt_prog_compiler_pic='-fPIC'
9909      ;;
9910    esac
9911
9912    case $cc_basename in
9913    nvcc*) # Cuda Compiler Driver 2.2
9914      lt_prog_compiler_wl='-Xlinker '
9915      if test -n "$lt_prog_compiler_pic"; then
9916        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9917      fi
9918      ;;
9919    esac
9920  else
9921    # PORTME Check for flag to pass linker flags through the system compiler.
9922    case $host_os in
9923    aix*)
9924      lt_prog_compiler_wl='-Wl,'
9925      if test ia64 = "$host_cpu"; then
9926	# AIX 5 now supports IA64 processor
9927	lt_prog_compiler_static='-Bstatic'
9928      else
9929	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9930      fi
9931      ;;
9932
9933    darwin* | rhapsody*)
9934      # PIC is the default on this platform
9935      # Common symbols not allowed in MH_DYLIB files
9936      lt_prog_compiler_pic='-fno-common'
9937      case $cc_basename in
9938      nagfor*)
9939        # NAG Fortran compiler
9940        lt_prog_compiler_wl='-Wl,-Wl,,'
9941        lt_prog_compiler_pic='-PIC'
9942        lt_prog_compiler_static='-Bstatic'
9943        ;;
9944      esac
9945      ;;
9946
9947    mingw* | cygwin* | pw32* | os2* | cegcc*)
9948      # This hack is so that the source file can tell whether it is being
9949      # built for inclusion in a dll (and should export symbols for example).
9950      lt_prog_compiler_pic='-DDLL_EXPORT'
9951      case $host_os in
9952      os2*)
9953	lt_prog_compiler_static='$wl-static'
9954	;;
9955      esac
9956      ;;
9957
9958    hpux9* | hpux10* | hpux11*)
9959      lt_prog_compiler_wl='-Wl,'
9960      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9961      # not for PA HP-UX.
9962      case $host_cpu in
9963      hppa*64*|ia64*)
9964	# +Z the default
9965	;;
9966      *)
9967	lt_prog_compiler_pic='+Z'
9968	;;
9969      esac
9970      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9971      lt_prog_compiler_static='$wl-a ${wl}archive'
9972      ;;
9973
9974    irix5* | irix6* | nonstopux*)
9975      lt_prog_compiler_wl='-Wl,'
9976      # PIC (with -KPIC) is the default.
9977      lt_prog_compiler_static='-non_shared'
9978      ;;
9979
9980    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9981      case $cc_basename in
9982      # old Intel for x86_64, which still supported -KPIC.
9983      ecc*)
9984	lt_prog_compiler_wl='-Wl,'
9985	lt_prog_compiler_pic='-KPIC'
9986	lt_prog_compiler_static='-static'
9987        ;;
9988      # icc used to be incompatible with GCC.
9989      # ICC 10 doesn't accept -KPIC any more.
9990      icc* | ifort*)
9991	lt_prog_compiler_wl='-Wl,'
9992	lt_prog_compiler_pic='-fPIC'
9993	lt_prog_compiler_static='-static'
9994        ;;
9995      # Lahey Fortran 8.1.
9996      lf95*)
9997	lt_prog_compiler_wl='-Wl,'
9998	lt_prog_compiler_pic='--shared'
9999	lt_prog_compiler_static='--static'
10000	;;
10001      nagfor*)
10002	# NAG Fortran compiler
10003	lt_prog_compiler_wl='-Wl,-Wl,,'
10004	lt_prog_compiler_pic='-PIC'
10005	lt_prog_compiler_static='-Bstatic'
10006	;;
10007      tcc*)
10008	# Fabrice Bellard et al's Tiny C Compiler
10009	lt_prog_compiler_wl='-Wl,'
10010	lt_prog_compiler_pic='-fPIC'
10011	lt_prog_compiler_static='-static'
10012	;;
10013      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10014        # Portland Group compilers (*not* the Pentium gcc compiler,
10015	# which looks to be a dead project)
10016	lt_prog_compiler_wl='-Wl,'
10017	lt_prog_compiler_pic='-fpic'
10018	lt_prog_compiler_static='-Bstatic'
10019        ;;
10020      ccc*)
10021        lt_prog_compiler_wl='-Wl,'
10022        # All Alpha code is PIC.
10023        lt_prog_compiler_static='-non_shared'
10024        ;;
10025      xl* | bgxl* | bgf* | mpixl*)
10026	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10027	lt_prog_compiler_wl='-Wl,'
10028	lt_prog_compiler_pic='-qpic'
10029	lt_prog_compiler_static='-qstaticlink'
10030	;;
10031      *)
10032	case `$CC -V 2>&1 | sed 5q` in
10033	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10034	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10035	  lt_prog_compiler_pic='-KPIC'
10036	  lt_prog_compiler_static='-Bstatic'
10037	  lt_prog_compiler_wl=''
10038	  ;;
10039	*Sun\ F* | *Sun*Fortran*)
10040	  lt_prog_compiler_pic='-KPIC'
10041	  lt_prog_compiler_static='-Bstatic'
10042	  lt_prog_compiler_wl='-Qoption ld '
10043	  ;;
10044	*Sun\ C*)
10045	  # Sun C 5.9
10046	  lt_prog_compiler_pic='-KPIC'
10047	  lt_prog_compiler_static='-Bstatic'
10048	  lt_prog_compiler_wl='-Wl,'
10049	  ;;
10050        *Intel*\ [CF]*Compiler*)
10051	  lt_prog_compiler_wl='-Wl,'
10052	  lt_prog_compiler_pic='-fPIC'
10053	  lt_prog_compiler_static='-static'
10054	  ;;
10055	*Portland\ Group*)
10056	  lt_prog_compiler_wl='-Wl,'
10057	  lt_prog_compiler_pic='-fpic'
10058	  lt_prog_compiler_static='-Bstatic'
10059	  ;;
10060	esac
10061	;;
10062      esac
10063      ;;
10064
10065    newsos6)
10066      lt_prog_compiler_pic='-KPIC'
10067      lt_prog_compiler_static='-Bstatic'
10068      ;;
10069
10070    *nto* | *qnx*)
10071      # QNX uses GNU C++, but need to define -shared option too, otherwise
10072      # it will coredump.
10073      lt_prog_compiler_pic='-fPIC -shared'
10074      ;;
10075
10076    osf3* | osf4* | osf5*)
10077      lt_prog_compiler_wl='-Wl,'
10078      # All OSF/1 code is PIC.
10079      lt_prog_compiler_static='-non_shared'
10080      ;;
10081
10082    rdos*)
10083      lt_prog_compiler_static='-non_shared'
10084      ;;
10085
10086    solaris*)
10087      lt_prog_compiler_pic='-KPIC'
10088      lt_prog_compiler_static='-Bstatic'
10089      case $cc_basename in
10090      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10091	lt_prog_compiler_wl='-Qoption ld ';;
10092      *)
10093	lt_prog_compiler_wl='-Wl,';;
10094      esac
10095      ;;
10096
10097    sunos4*)
10098      lt_prog_compiler_wl='-Qoption ld '
10099      lt_prog_compiler_pic='-PIC'
10100      lt_prog_compiler_static='-Bstatic'
10101      ;;
10102
10103    sysv4 | sysv4.2uw2* | sysv4.3*)
10104      lt_prog_compiler_wl='-Wl,'
10105      lt_prog_compiler_pic='-KPIC'
10106      lt_prog_compiler_static='-Bstatic'
10107      ;;
10108
10109    sysv4*MP*)
10110      if test -d /usr/nec; then
10111	lt_prog_compiler_pic='-Kconform_pic'
10112	lt_prog_compiler_static='-Bstatic'
10113      fi
10114      ;;
10115
10116    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10117      lt_prog_compiler_wl='-Wl,'
10118      lt_prog_compiler_pic='-KPIC'
10119      lt_prog_compiler_static='-Bstatic'
10120      ;;
10121
10122    unicos*)
10123      lt_prog_compiler_wl='-Wl,'
10124      lt_prog_compiler_can_build_shared=no
10125      ;;
10126
10127    uts4*)
10128      lt_prog_compiler_pic='-pic'
10129      lt_prog_compiler_static='-Bstatic'
10130      ;;
10131
10132    *)
10133      lt_prog_compiler_can_build_shared=no
10134      ;;
10135    esac
10136  fi
10137
10138case $host_os in
10139  # For platforms that do not support PIC, -DPIC is meaningless:
10140  *djgpp*)
10141    lt_prog_compiler_pic=
10142    ;;
10143  *)
10144    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10145    ;;
10146esac
10147
10148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10149$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10150if ${lt_cv_prog_compiler_pic+:} false; then :
10151  $as_echo_n "(cached) " >&6
10152else
10153  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10154fi
10155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10156$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10157lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10158
10159#
10160# Check to make sure the PIC flag actually works.
10161#
10162if test -n "$lt_prog_compiler_pic"; then
10163  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10164$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10165if ${lt_cv_prog_compiler_pic_works+:} false; then :
10166  $as_echo_n "(cached) " >&6
10167else
10168  lt_cv_prog_compiler_pic_works=no
10169   ac_outfile=conftest.$ac_objext
10170   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10171   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10172   # Insert the option either (1) after the last *FLAGS variable, or
10173   # (2) before a word containing "conftest.", or (3) at the end.
10174   # Note that $ac_compile itself does not contain backslashes and begins
10175   # with a dollar sign (not a hyphen), so the echo should work correctly.
10176   # The option is referenced via a variable to avoid confusing sed.
10177   lt_compile=`echo "$ac_compile" | $SED \
10178   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10179   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10180   -e 's:$: $lt_compiler_flag:'`
10181   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10182   (eval "$lt_compile" 2>conftest.err)
10183   ac_status=$?
10184   cat conftest.err >&5
10185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186   if (exit $ac_status) && test -s "$ac_outfile"; then
10187     # The compiler can only warn and ignore the option if not recognized
10188     # So say no if there are warnings other than the usual output.
10189     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10190     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10191     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10192       lt_cv_prog_compiler_pic_works=yes
10193     fi
10194   fi
10195   $RM conftest*
10196
10197fi
10198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10199$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10200
10201if test yes = "$lt_cv_prog_compiler_pic_works"; then
10202    case $lt_prog_compiler_pic in
10203     "" | " "*) ;;
10204     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10205     esac
10206else
10207    lt_prog_compiler_pic=
10208     lt_prog_compiler_can_build_shared=no
10209fi
10210
10211fi
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223#
10224# Check to make sure the static flag actually works.
10225#
10226wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10228$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10229if ${lt_cv_prog_compiler_static_works+:} false; then :
10230  $as_echo_n "(cached) " >&6
10231else
10232  lt_cv_prog_compiler_static_works=no
10233   save_LDFLAGS=$LDFLAGS
10234   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10235   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10236   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10237     # The linker can only warn and ignore the option if not recognized
10238     # So say no if there are warnings
10239     if test -s conftest.err; then
10240       # Append any errors to the config.log.
10241       cat conftest.err 1>&5
10242       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10243       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10244       if diff conftest.exp conftest.er2 >/dev/null; then
10245         lt_cv_prog_compiler_static_works=yes
10246       fi
10247     else
10248       lt_cv_prog_compiler_static_works=yes
10249     fi
10250   fi
10251   $RM -r conftest*
10252   LDFLAGS=$save_LDFLAGS
10253
10254fi
10255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10256$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10257
10258if test yes = "$lt_cv_prog_compiler_static_works"; then
10259    :
10260else
10261    lt_prog_compiler_static=
10262fi
10263
10264
10265
10266
10267
10268
10269
10270  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10271$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10272if ${lt_cv_prog_compiler_c_o+:} false; then :
10273  $as_echo_n "(cached) " >&6
10274else
10275  lt_cv_prog_compiler_c_o=no
10276   $RM -r conftest 2>/dev/null
10277   mkdir conftest
10278   cd conftest
10279   mkdir out
10280   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10281
10282   lt_compiler_flag="-o out/conftest2.$ac_objext"
10283   # Insert the option either (1) after the last *FLAGS variable, or
10284   # (2) before a word containing "conftest.", or (3) at the end.
10285   # Note that $ac_compile itself does not contain backslashes and begins
10286   # with a dollar sign (not a hyphen), so the echo should work correctly.
10287   lt_compile=`echo "$ac_compile" | $SED \
10288   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10289   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10290   -e 's:$: $lt_compiler_flag:'`
10291   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10292   (eval "$lt_compile" 2>out/conftest.err)
10293   ac_status=$?
10294   cat out/conftest.err >&5
10295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10297   then
10298     # The compiler can only warn and ignore the option if not recognized
10299     # So say no if there are warnings
10300     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10301     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10302     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10303       lt_cv_prog_compiler_c_o=yes
10304     fi
10305   fi
10306   chmod u+w . 2>&5
10307   $RM conftest*
10308   # SGI C++ compiler will create directory out/ii_files/ for
10309   # template instantiation
10310   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10311   $RM out/* && rmdir out
10312   cd ..
10313   $RM -r conftest
10314   $RM conftest*
10315
10316fi
10317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10318$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10319
10320
10321
10322
10323
10324
10325  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10326$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10327if ${lt_cv_prog_compiler_c_o+:} false; then :
10328  $as_echo_n "(cached) " >&6
10329else
10330  lt_cv_prog_compiler_c_o=no
10331   $RM -r conftest 2>/dev/null
10332   mkdir conftest
10333   cd conftest
10334   mkdir out
10335   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10336
10337   lt_compiler_flag="-o out/conftest2.$ac_objext"
10338   # Insert the option either (1) after the last *FLAGS variable, or
10339   # (2) before a word containing "conftest.", or (3) at the end.
10340   # Note that $ac_compile itself does not contain backslashes and begins
10341   # with a dollar sign (not a hyphen), so the echo should work correctly.
10342   lt_compile=`echo "$ac_compile" | $SED \
10343   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10344   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10345   -e 's:$: $lt_compiler_flag:'`
10346   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10347   (eval "$lt_compile" 2>out/conftest.err)
10348   ac_status=$?
10349   cat out/conftest.err >&5
10350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10352   then
10353     # The compiler can only warn and ignore the option if not recognized
10354     # So say no if there are warnings
10355     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10356     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10357     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10358       lt_cv_prog_compiler_c_o=yes
10359     fi
10360   fi
10361   chmod u+w . 2>&5
10362   $RM conftest*
10363   # SGI C++ compiler will create directory out/ii_files/ for
10364   # template instantiation
10365   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10366   $RM out/* && rmdir out
10367   cd ..
10368   $RM -r conftest
10369   $RM conftest*
10370
10371fi
10372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10373$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10374
10375
10376
10377
10378hard_links=nottested
10379if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10380  # do not overwrite the value of need_locks provided by the user
10381  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10382$as_echo_n "checking if we can lock with hard links... " >&6; }
10383  hard_links=yes
10384  $RM conftest*
10385  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10386  touch conftest.a
10387  ln conftest.a conftest.b 2>&5 || hard_links=no
10388  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10390$as_echo "$hard_links" >&6; }
10391  if test no = "$hard_links"; then
10392    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10393$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10394    need_locks=warn
10395  fi
10396else
10397  need_locks=no
10398fi
10399
10400
10401
10402
10403
10404
10405  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10406$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10407
10408  runpath_var=
10409  allow_undefined_flag=
10410  always_export_symbols=no
10411  archive_cmds=
10412  archive_expsym_cmds=
10413  compiler_needs_object=no
10414  enable_shared_with_static_runtimes=no
10415  export_dynamic_flag_spec=
10416  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10417  hardcode_automatic=no
10418  hardcode_direct=no
10419  hardcode_direct_absolute=no
10420  hardcode_libdir_flag_spec=
10421  hardcode_libdir_separator=
10422  hardcode_minus_L=no
10423  hardcode_shlibpath_var=unsupported
10424  inherit_rpath=no
10425  link_all_deplibs=unknown
10426  module_cmds=
10427  module_expsym_cmds=
10428  old_archive_from_new_cmds=
10429  old_archive_from_expsyms_cmds=
10430  thread_safe_flag_spec=
10431  whole_archive_flag_spec=
10432  # include_expsyms should be a list of space-separated symbols to be *always*
10433  # included in the symbol list
10434  include_expsyms=
10435  # exclude_expsyms can be an extended regexp of symbols to exclude
10436  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10437  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10438  # as well as any symbol that contains 'd'.
10439  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10440  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10441  # platforms (ab)use it in PIC code, but their linkers get confused if
10442  # the symbol is explicitly referenced.  Since portable code cannot
10443  # rely on this symbol name, it's probably fine to never include it in
10444  # preloaded symbol tables.
10445  # Exclude shared library initialization/finalization symbols.
10446  extract_expsyms_cmds=
10447
10448  case $host_os in
10449  cygwin* | mingw* | pw32* | cegcc*)
10450    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10451    # When not using gcc, we currently assume that we are using
10452    # Microsoft Visual C++.
10453    if test yes != "$GCC"; then
10454      with_gnu_ld=no
10455    fi
10456    ;;
10457  interix*)
10458    # we just hope/assume this is gcc and not c89 (= MSVC++)
10459    with_gnu_ld=yes
10460    ;;
10461  openbsd* | bitrig*)
10462    with_gnu_ld=no
10463    ;;
10464  linux* | k*bsd*-gnu | gnu*)
10465    link_all_deplibs=no
10466    ;;
10467  esac
10468
10469  ld_shlibs=yes
10470
10471  # On some targets, GNU ld is compatible enough with the native linker
10472  # that we're better off using the native interface for both.
10473  lt_use_gnu_ld_interface=no
10474  if test yes = "$with_gnu_ld"; then
10475    case $host_os in
10476      aix*)
10477	# The AIX port of GNU ld has always aspired to compatibility
10478	# with the native linker.  However, as the warning in the GNU ld
10479	# block says, versions before 2.19.5* couldn't really create working
10480	# shared libraries, regardless of the interface used.
10481	case `$LD -v 2>&1` in
10482	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10483	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10484	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10485	  *)
10486	    lt_use_gnu_ld_interface=yes
10487	    ;;
10488	esac
10489	;;
10490      *)
10491	lt_use_gnu_ld_interface=yes
10492	;;
10493    esac
10494  fi
10495
10496  if test yes = "$lt_use_gnu_ld_interface"; then
10497    # If archive_cmds runs LD, not CC, wlarc should be empty
10498    wlarc='$wl'
10499
10500    # Set some defaults for GNU ld with shared library support. These
10501    # are reset later if shared libraries are not supported. Putting them
10502    # here allows them to be overridden if necessary.
10503    runpath_var=LD_RUN_PATH
10504    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10505    export_dynamic_flag_spec='$wl--export-dynamic'
10506    # ancient GNU ld didn't support --whole-archive et. al.
10507    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10508      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10509    else
10510      whole_archive_flag_spec=
10511    fi
10512    supports_anon_versioning=no
10513    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10514      *GNU\ gold*) supports_anon_versioning=yes ;;
10515      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10516      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10517      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10518      *\ 2.11.*) ;; # other 2.11 versions
10519      *) supports_anon_versioning=yes ;;
10520    esac
10521
10522    # See if GNU ld supports shared libraries.
10523    case $host_os in
10524    aix[3-9]*)
10525      # On AIX/PPC, the GNU linker is very broken
10526      if test ia64 != "$host_cpu"; then
10527	ld_shlibs=no
10528	cat <<_LT_EOF 1>&2
10529
10530*** Warning: the GNU linker, at least up to release 2.19, is reported
10531*** to be unable to reliably create shared libraries on AIX.
10532*** Therefore, libtool is disabling shared libraries support.  If you
10533*** really care for shared libraries, you may want to install binutils
10534*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10535*** You will then need to restart the configuration process.
10536
10537_LT_EOF
10538      fi
10539      ;;
10540
10541    amigaos*)
10542      case $host_cpu in
10543      powerpc)
10544            # see comment about AmigaOS4 .so support
10545            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10546            archive_expsym_cmds=''
10547        ;;
10548      m68k)
10549            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)'
10550            hardcode_libdir_flag_spec='-L$libdir'
10551            hardcode_minus_L=yes
10552        ;;
10553      esac
10554      ;;
10555
10556    beos*)
10557      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10558	allow_undefined_flag=unsupported
10559	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10560	# support --undefined.  This deserves some investigation.  FIXME
10561	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10562      else
10563	ld_shlibs=no
10564      fi
10565      ;;
10566
10567    cygwin* | mingw* | pw32* | cegcc*)
10568      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10569      # as there is no search path for DLLs.
10570      hardcode_libdir_flag_spec='-L$libdir'
10571      export_dynamic_flag_spec='$wl--export-all-symbols'
10572      allow_undefined_flag=unsupported
10573      always_export_symbols=no
10574      enable_shared_with_static_runtimes=yes
10575      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'
10576      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10577
10578      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10579        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10580	# If the export-symbols file already is a .def file, use it as
10581	# is; otherwise, prepend EXPORTS...
10582	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10583          cp $export_symbols $output_objdir/$soname.def;
10584        else
10585          echo EXPORTS > $output_objdir/$soname.def;
10586          cat $export_symbols >> $output_objdir/$soname.def;
10587        fi~
10588        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10589      else
10590	ld_shlibs=no
10591      fi
10592      ;;
10593
10594    haiku*)
10595      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10596      link_all_deplibs=yes
10597      ;;
10598
10599    os2*)
10600      hardcode_libdir_flag_spec='-L$libdir'
10601      hardcode_minus_L=yes
10602      allow_undefined_flag=unsupported
10603      shrext_cmds=.dll
10604      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10605	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10606	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10607	$ECHO EXPORTS >> $output_objdir/$libname.def~
10608	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10609	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10610	emximp -o $lib $output_objdir/$libname.def'
10611      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10612	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10613	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10614	$ECHO EXPORTS >> $output_objdir/$libname.def~
10615	prefix_cmds="$SED"~
10616	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10617	  prefix_cmds="$prefix_cmds -e 1d";
10618	fi~
10619	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10620	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10621	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10622	emximp -o $lib $output_objdir/$libname.def'
10623      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10624      enable_shared_with_static_runtimes=yes
10625      ;;
10626
10627    interix[3-9]*)
10628      hardcode_direct=no
10629      hardcode_shlibpath_var=no
10630      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10631      export_dynamic_flag_spec='$wl-E'
10632      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10633      # Instead, shared libraries are loaded at an image base (0x10000000 by
10634      # default) and relocated if they conflict, which is a slow very memory
10635      # consuming and fragmenting process.  To avoid this, we pick a random,
10636      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10637      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10638      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10639      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'
10640      ;;
10641
10642    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10643      tmp_diet=no
10644      if test linux-dietlibc = "$host_os"; then
10645	case $cc_basename in
10646	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10647	esac
10648      fi
10649      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10650	 && test no = "$tmp_diet"
10651      then
10652	tmp_addflag=' $pic_flag'
10653	tmp_sharedflag='-shared'
10654	case $cc_basename,$host_cpu in
10655        pgcc*)				# Portland Group C compiler
10656	  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'
10657	  tmp_addflag=' $pic_flag'
10658	  ;;
10659	pgf77* | pgf90* | pgf95* | pgfortran*)
10660					# Portland Group f77 and f90 compilers
10661	  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'
10662	  tmp_addflag=' $pic_flag -Mnomain' ;;
10663	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10664	  tmp_addflag=' -i_dynamic' ;;
10665	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10666	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10667	ifc* | ifort*)			# Intel Fortran compiler
10668	  tmp_addflag=' -nofor_main' ;;
10669	lf95*)				# Lahey Fortran 8.1
10670	  whole_archive_flag_spec=
10671	  tmp_sharedflag='--shared' ;;
10672        nagfor*)                        # NAGFOR 5.3
10673          tmp_sharedflag='-Wl,-shared' ;;
10674	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10675	  tmp_sharedflag='-qmkshrobj'
10676	  tmp_addflag= ;;
10677	nvcc*)	# Cuda Compiler Driver 2.2
10678	  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'
10679	  compiler_needs_object=yes
10680	  ;;
10681	esac
10682	case `$CC -V 2>&1 | sed 5q` in
10683	*Sun\ C*)			# Sun C 5.9
10684	  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'
10685	  compiler_needs_object=yes
10686	  tmp_sharedflag='-G' ;;
10687	*Sun\ F*)			# Sun Fortran 8.3
10688	  tmp_sharedflag='-G' ;;
10689	esac
10690	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10691
10692        if test yes = "$supports_anon_versioning"; then
10693          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10694            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10695            echo "local: *; };" >> $output_objdir/$libname.ver~
10696            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10697        fi
10698
10699	case $cc_basename in
10700	tcc*)
10701	  export_dynamic_flag_spec='-rdynamic'
10702	  ;;
10703	xlf* | bgf* | bgxlf* | mpixlf*)
10704	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10705	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10706	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10707	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10708	  if test yes = "$supports_anon_versioning"; then
10709	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10710              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10711              echo "local: *; };" >> $output_objdir/$libname.ver~
10712              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10713	  fi
10714	  ;;
10715	esac
10716      else
10717        ld_shlibs=no
10718      fi
10719      ;;
10720
10721    netbsd* | netbsdelf*-gnu)
10722      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10723	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10724	wlarc=
10725      else
10726	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10727	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10728      fi
10729      ;;
10730
10731    solaris*)
10732      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10733	ld_shlibs=no
10734	cat <<_LT_EOF 1>&2
10735
10736*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10737*** create shared libraries on Solaris systems.  Therefore, libtool
10738*** is disabling shared libraries support.  We urge you to upgrade GNU
10739*** binutils to release 2.9.1 or newer.  Another option is to modify
10740*** your PATH or compiler configuration so that the native linker is
10741*** used, and then restart.
10742
10743_LT_EOF
10744      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10745	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10746	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10747      else
10748	ld_shlibs=no
10749      fi
10750      ;;
10751
10752    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10753      case `$LD -v 2>&1` in
10754        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10755	ld_shlibs=no
10756	cat <<_LT_EOF 1>&2
10757
10758*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10759*** reliably create shared libraries on SCO systems.  Therefore, libtool
10760*** is disabling shared libraries support.  We urge you to upgrade GNU
10761*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10762*** your PATH or compiler configuration so that the native linker is
10763*** used, and then restart.
10764
10765_LT_EOF
10766	;;
10767	*)
10768	  # For security reasons, it is highly recommended that you always
10769	  # use absolute paths for naming shared libraries, and exclude the
10770	  # DT_RUNPATH tag from executables and libraries.  But doing so
10771	  # requires that you compile everything twice, which is a pain.
10772	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10773	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10774	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10775	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10776	  else
10777	    ld_shlibs=no
10778	  fi
10779	;;
10780      esac
10781      ;;
10782
10783    sunos4*)
10784      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10785      wlarc=
10786      hardcode_direct=yes
10787      hardcode_shlibpath_var=no
10788      ;;
10789
10790    *)
10791      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10792	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10793	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10794      else
10795	ld_shlibs=no
10796      fi
10797      ;;
10798    esac
10799
10800    if test no = "$ld_shlibs"; then
10801      runpath_var=
10802      hardcode_libdir_flag_spec=
10803      export_dynamic_flag_spec=
10804      whole_archive_flag_spec=
10805    fi
10806  else
10807    # PORTME fill in a description of your system's linker (not GNU ld)
10808    case $host_os in
10809    aix3*)
10810      allow_undefined_flag=unsupported
10811      always_export_symbols=yes
10812      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'
10813      # Note: this linker hardcodes the directories in LIBPATH if there
10814      # are no directories specified by -L.
10815      hardcode_minus_L=yes
10816      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10817	# Neither direct hardcoding nor static linking is supported with a
10818	# broken collect2.
10819	hardcode_direct=unsupported
10820      fi
10821      ;;
10822
10823    aix[4-9]*)
10824      if test ia64 = "$host_cpu"; then
10825	# On IA64, the linker does run time linking by default, so we don't
10826	# have to do anything special.
10827	aix_use_runtimelinking=no
10828	exp_sym_flag='-Bexport'
10829	no_entry_flag=
10830      else
10831	# If we're using GNU nm, then we don't want the "-C" option.
10832	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10833	# Without the "-l" option, or with the "-B" option, AIX nm treats
10834	# weak defined symbols like other global defined symbols, whereas
10835	# GNU nm marks them as "W".
10836	# While the 'weak' keyword is ignored in the Export File, we need
10837	# it in the Import File for the 'aix-soname' feature, so we have
10838	# to replace the "-B" option with "-P" for AIX nm.
10839	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10840	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10841	else
10842	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10843	fi
10844	aix_use_runtimelinking=no
10845
10846	# Test if we are trying to use run time linking or normal
10847	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10848	# have runtime linking enabled, and use it for executables.
10849	# For shared libraries, we enable/disable runtime linking
10850	# depending on the kind of the shared library created -
10851	# when "with_aix_soname,aix_use_runtimelinking" is:
10852	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10853	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10854	#            lib.a           static archive
10855	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10856	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10857	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10858	#            lib.a(lib.so.V) shared, rtl:no
10859	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10860	#            lib.a           static archive
10861	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10862	  for ld_flag in $LDFLAGS; do
10863	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10864	    aix_use_runtimelinking=yes
10865	    break
10866	  fi
10867	  done
10868	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10869	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10870	    # so we don't have lib.a shared libs to link our executables.
10871	    # We have to force runtime linking in this case.
10872	    aix_use_runtimelinking=yes
10873	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10874	  fi
10875	  ;;
10876	esac
10877
10878	exp_sym_flag='-bexport'
10879	no_entry_flag='-bnoentry'
10880      fi
10881
10882      # When large executables or shared objects are built, AIX ld can
10883      # have problems creating the table of contents.  If linking a library
10884      # or program results in "error TOC overflow" add -mminimal-toc to
10885      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10886      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10887
10888      archive_cmds=''
10889      hardcode_direct=yes
10890      hardcode_direct_absolute=yes
10891      hardcode_libdir_separator=':'
10892      link_all_deplibs=yes
10893      file_list_spec='$wl-f,'
10894      case $with_aix_soname,$aix_use_runtimelinking in
10895      aix,*) ;; # traditional, no import file
10896      svr4,* | *,yes) # use import file
10897	# The Import File defines what to hardcode.
10898	hardcode_direct=no
10899	hardcode_direct_absolute=no
10900	;;
10901      esac
10902
10903      if test yes = "$GCC"; then
10904	case $host_os in aix4.[012]|aix4.[012].*)
10905	# We only want to do this on AIX 4.2 and lower, the check
10906	# below for broken collect2 doesn't work under 4.3+
10907	  collect2name=`$CC -print-prog-name=collect2`
10908	  if test -f "$collect2name" &&
10909	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10910	  then
10911	  # We have reworked collect2
10912	  :
10913	  else
10914	  # We have old collect2
10915	  hardcode_direct=unsupported
10916	  # It fails to find uninstalled libraries when the uninstalled
10917	  # path is not listed in the libpath.  Setting hardcode_minus_L
10918	  # to unsupported forces relinking
10919	  hardcode_minus_L=yes
10920	  hardcode_libdir_flag_spec='-L$libdir'
10921	  hardcode_libdir_separator=
10922	  fi
10923	  ;;
10924	esac
10925	shared_flag='-shared'
10926	if test yes = "$aix_use_runtimelinking"; then
10927	  shared_flag="$shared_flag "'$wl-G'
10928	fi
10929	# Need to ensure runtime linking is disabled for the traditional
10930	# shared library, or the linker may eventually find shared libraries
10931	# /with/ Import File - we do not want to mix them.
10932	shared_flag_aix='-shared'
10933	shared_flag_svr4='-shared $wl-G'
10934      else
10935	# not using gcc
10936	if test ia64 = "$host_cpu"; then
10937	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10938	# chokes on -Wl,-G. The following line is correct:
10939	  shared_flag='-G'
10940	else
10941	  if test yes = "$aix_use_runtimelinking"; then
10942	    shared_flag='$wl-G'
10943	  else
10944	    shared_flag='$wl-bM:SRE'
10945	  fi
10946	  shared_flag_aix='$wl-bM:SRE'
10947	  shared_flag_svr4='$wl-G'
10948	fi
10949      fi
10950
10951      export_dynamic_flag_spec='$wl-bexpall'
10952      # It seems that -bexpall does not export symbols beginning with
10953      # underscore (_), so it is better to generate a list of symbols to export.
10954      always_export_symbols=yes
10955      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10956	# Warning - without using the other runtime loading flags (-brtl),
10957	# -berok will link without error, but may produce a broken library.
10958	allow_undefined_flag='-berok'
10959        # Determine the default libpath from the value encoded in an
10960        # empty executable.
10961        if test set = "${lt_cv_aix_libpath+set}"; then
10962  aix_libpath=$lt_cv_aix_libpath
10963else
10964  if ${lt_cv_aix_libpath_+:} false; then :
10965  $as_echo_n "(cached) " >&6
10966else
10967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968/* end confdefs.h.  */
10969
10970int
10971main ()
10972{
10973
10974  ;
10975  return 0;
10976}
10977_ACEOF
10978if ac_fn_c_try_link "$LINENO"; then :
10979
10980  lt_aix_libpath_sed='
10981      /Import File Strings/,/^$/ {
10982	  /^0/ {
10983	      s/^0  *\([^ ]*\) *$/\1/
10984	      p
10985	  }
10986      }'
10987  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10988  # Check for a 64-bit object if we didn't find anything.
10989  if test -z "$lt_cv_aix_libpath_"; then
10990    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10991  fi
10992fi
10993rm -f core conftest.err conftest.$ac_objext \
10994    conftest$ac_exeext conftest.$ac_ext
10995  if test -z "$lt_cv_aix_libpath_"; then
10996    lt_cv_aix_libpath_=/usr/lib:/lib
10997  fi
10998
10999fi
11000
11001  aix_libpath=$lt_cv_aix_libpath_
11002fi
11003
11004        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11005        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11006      else
11007	if test ia64 = "$host_cpu"; then
11008	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11009	  allow_undefined_flag="-z nodefs"
11010	  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"
11011	else
11012	 # Determine the default libpath from the value encoded in an
11013	 # empty executable.
11014	 if test set = "${lt_cv_aix_libpath+set}"; then
11015  aix_libpath=$lt_cv_aix_libpath
11016else
11017  if ${lt_cv_aix_libpath_+:} false; then :
11018  $as_echo_n "(cached) " >&6
11019else
11020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11021/* end confdefs.h.  */
11022
11023int
11024main ()
11025{
11026
11027  ;
11028  return 0;
11029}
11030_ACEOF
11031if ac_fn_c_try_link "$LINENO"; then :
11032
11033  lt_aix_libpath_sed='
11034      /Import File Strings/,/^$/ {
11035	  /^0/ {
11036	      s/^0  *\([^ ]*\) *$/\1/
11037	      p
11038	  }
11039      }'
11040  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11041  # Check for a 64-bit object if we didn't find anything.
11042  if test -z "$lt_cv_aix_libpath_"; then
11043    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11044  fi
11045fi
11046rm -f core conftest.err conftest.$ac_objext \
11047    conftest$ac_exeext conftest.$ac_ext
11048  if test -z "$lt_cv_aix_libpath_"; then
11049    lt_cv_aix_libpath_=/usr/lib:/lib
11050  fi
11051
11052fi
11053
11054  aix_libpath=$lt_cv_aix_libpath_
11055fi
11056
11057	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11058	  # Warning - without using the other run time loading flags,
11059	  # -berok will link without error, but may produce a broken library.
11060	  no_undefined_flag=' $wl-bernotok'
11061	  allow_undefined_flag=' $wl-berok'
11062	  if test yes = "$with_gnu_ld"; then
11063	    # We only use this code for GNU lds that support --whole-archive.
11064	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11065	  else
11066	    # Exported symbols can be pulled into shared objects from archives
11067	    whole_archive_flag_spec='$convenience'
11068	  fi
11069	  archive_cmds_need_lc=yes
11070	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11071	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11072	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11073	  if test svr4 != "$with_aix_soname"; then
11074	    # This is similar to how AIX traditionally builds its shared libraries.
11075	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11076	  fi
11077	  if test aix != "$with_aix_soname"; then
11078	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11079	  else
11080	    # used by -dlpreopen to get the symbols
11081	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11082	  fi
11083	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11084	fi
11085      fi
11086      ;;
11087
11088    amigaos*)
11089      case $host_cpu in
11090      powerpc)
11091            # see comment about AmigaOS4 .so support
11092            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11093            archive_expsym_cmds=''
11094        ;;
11095      m68k)
11096            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)'
11097            hardcode_libdir_flag_spec='-L$libdir'
11098            hardcode_minus_L=yes
11099        ;;
11100      esac
11101      ;;
11102
11103    bsdi[45]*)
11104      export_dynamic_flag_spec=-rdynamic
11105      ;;
11106
11107    cygwin* | mingw* | pw32* | cegcc*)
11108      # When not using gcc, we currently assume that we are using
11109      # Microsoft Visual C++.
11110      # hardcode_libdir_flag_spec is actually meaningless, as there is
11111      # no search path for DLLs.
11112      case $cc_basename in
11113      cl*)
11114	# Native MSVC
11115	hardcode_libdir_flag_spec=' '
11116	allow_undefined_flag=unsupported
11117	always_export_symbols=yes
11118	file_list_spec='@'
11119	# Tell ltmain to make .lib files, not .a files.
11120	libext=lib
11121	# Tell ltmain to make .dll files, not .so files.
11122	shrext_cmds=.dll
11123	# FIXME: Setting linknames here is a bad hack.
11124	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11125	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11126            cp "$export_symbols" "$output_objdir/$soname.def";
11127            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11128          else
11129            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11130          fi~
11131          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11132          linknames='
11133	# The linker will not automatically build a static lib if we build a DLL.
11134	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11135	enable_shared_with_static_runtimes=yes
11136	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11137	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11138	# Don't use ranlib
11139	old_postinstall_cmds='chmod 644 $oldlib'
11140	postlink_cmds='lt_outputfile="@OUTPUT@"~
11141          lt_tool_outputfile="@TOOL_OUTPUT@"~
11142          case $lt_outputfile in
11143            *.exe|*.EXE) ;;
11144            *)
11145              lt_outputfile=$lt_outputfile.exe
11146              lt_tool_outputfile=$lt_tool_outputfile.exe
11147              ;;
11148          esac~
11149          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11150            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11151            $RM "$lt_outputfile.manifest";
11152          fi'
11153	;;
11154      *)
11155	# Assume MSVC wrapper
11156	hardcode_libdir_flag_spec=' '
11157	allow_undefined_flag=unsupported
11158	# Tell ltmain to make .lib files, not .a files.
11159	libext=lib
11160	# Tell ltmain to make .dll files, not .so files.
11161	shrext_cmds=.dll
11162	# FIXME: Setting linknames here is a bad hack.
11163	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11164	# The linker will automatically build a .lib file if we build a DLL.
11165	old_archive_from_new_cmds='true'
11166	# FIXME: Should let the user specify the lib program.
11167	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11168	enable_shared_with_static_runtimes=yes
11169	;;
11170      esac
11171      ;;
11172
11173    darwin* | rhapsody*)
11174
11175
11176  archive_cmds_need_lc=no
11177  hardcode_direct=no
11178  hardcode_automatic=yes
11179  hardcode_shlibpath_var=unsupported
11180  if test yes = "$lt_cv_ld_force_load"; then
11181    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\"`'
11182
11183  else
11184    whole_archive_flag_spec=''
11185  fi
11186  link_all_deplibs=yes
11187  allow_undefined_flag=$_lt_dar_allow_undefined
11188  case $cc_basename in
11189     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11190     *) _lt_dar_can_shared=$GCC ;;
11191  esac
11192  if test yes = "$_lt_dar_can_shared"; then
11193    output_verbose_link_cmd=func_echo_all
11194    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11195    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11196    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"
11197    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"
11198
11199  else
11200  ld_shlibs=no
11201  fi
11202
11203      ;;
11204
11205    dgux*)
11206      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11207      hardcode_libdir_flag_spec='-L$libdir'
11208      hardcode_shlibpath_var=no
11209      ;;
11210
11211    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11212    # support.  Future versions do this automatically, but an explicit c++rt0.o
11213    # does not break anything, and helps significantly (at the cost of a little
11214    # extra space).
11215    freebsd2.2*)
11216      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11217      hardcode_libdir_flag_spec='-R$libdir'
11218      hardcode_direct=yes
11219      hardcode_shlibpath_var=no
11220      ;;
11221
11222    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11223    freebsd2.*)
11224      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11225      hardcode_direct=yes
11226      hardcode_minus_L=yes
11227      hardcode_shlibpath_var=no
11228      ;;
11229
11230    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11231    freebsd* | dragonfly*)
11232      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11233      hardcode_libdir_flag_spec='-R$libdir'
11234      hardcode_direct=yes
11235      hardcode_shlibpath_var=no
11236      ;;
11237
11238    hpux9*)
11239      if test yes = "$GCC"; then
11240	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11241      else
11242	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11243      fi
11244      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11245      hardcode_libdir_separator=:
11246      hardcode_direct=yes
11247
11248      # hardcode_minus_L: Not really in the search PATH,
11249      # but as the default location of the library.
11250      hardcode_minus_L=yes
11251      export_dynamic_flag_spec='$wl-E'
11252      ;;
11253
11254    hpux10*)
11255      if test yes,no = "$GCC,$with_gnu_ld"; then
11256	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11257      else
11258	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11259      fi
11260      if test no = "$with_gnu_ld"; then
11261	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11262	hardcode_libdir_separator=:
11263	hardcode_direct=yes
11264	hardcode_direct_absolute=yes
11265	export_dynamic_flag_spec='$wl-E'
11266	# hardcode_minus_L: Not really in the search PATH,
11267	# but as the default location of the library.
11268	hardcode_minus_L=yes
11269      fi
11270      ;;
11271
11272    hpux11*)
11273      if test yes,no = "$GCC,$with_gnu_ld"; then
11274	case $host_cpu in
11275	hppa*64*)
11276	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11277	  ;;
11278	ia64*)
11279	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11280	  ;;
11281	*)
11282	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11283	  ;;
11284	esac
11285      else
11286	case $host_cpu in
11287	hppa*64*)
11288	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11289	  ;;
11290	ia64*)
11291	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11292	  ;;
11293	*)
11294
11295	  # Older versions of the 11.00 compiler do not understand -b yet
11296	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11297	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11298$as_echo_n "checking if $CC understands -b... " >&6; }
11299if ${lt_cv_prog_compiler__b+:} false; then :
11300  $as_echo_n "(cached) " >&6
11301else
11302  lt_cv_prog_compiler__b=no
11303   save_LDFLAGS=$LDFLAGS
11304   LDFLAGS="$LDFLAGS -b"
11305   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11306   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11307     # The linker can only warn and ignore the option if not recognized
11308     # So say no if there are warnings
11309     if test -s conftest.err; then
11310       # Append any errors to the config.log.
11311       cat conftest.err 1>&5
11312       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11313       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11314       if diff conftest.exp conftest.er2 >/dev/null; then
11315         lt_cv_prog_compiler__b=yes
11316       fi
11317     else
11318       lt_cv_prog_compiler__b=yes
11319     fi
11320   fi
11321   $RM -r conftest*
11322   LDFLAGS=$save_LDFLAGS
11323
11324fi
11325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11326$as_echo "$lt_cv_prog_compiler__b" >&6; }
11327
11328if test yes = "$lt_cv_prog_compiler__b"; then
11329    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11330else
11331    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11332fi
11333
11334	  ;;
11335	esac
11336      fi
11337      if test no = "$with_gnu_ld"; then
11338	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11339	hardcode_libdir_separator=:
11340
11341	case $host_cpu in
11342	hppa*64*|ia64*)
11343	  hardcode_direct=no
11344	  hardcode_shlibpath_var=no
11345	  ;;
11346	*)
11347	  hardcode_direct=yes
11348	  hardcode_direct_absolute=yes
11349	  export_dynamic_flag_spec='$wl-E'
11350
11351	  # hardcode_minus_L: Not really in the search PATH,
11352	  # but as the default location of the library.
11353	  hardcode_minus_L=yes
11354	  ;;
11355	esac
11356      fi
11357      ;;
11358
11359    irix5* | irix6* | nonstopux*)
11360      if test yes = "$GCC"; then
11361	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'
11362	# Try to use the -exported_symbol ld option, if it does not
11363	# work, assume that -exports_file does not work either and
11364	# implicitly export all symbols.
11365	# This should be the same for all languages, so no per-tag cache variable.
11366	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11367$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11368if ${lt_cv_irix_exported_symbol+:} false; then :
11369  $as_echo_n "(cached) " >&6
11370else
11371  save_LDFLAGS=$LDFLAGS
11372	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11373	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11374/* end confdefs.h.  */
11375int foo (void) { return 0; }
11376_ACEOF
11377if ac_fn_c_try_link "$LINENO"; then :
11378  lt_cv_irix_exported_symbol=yes
11379else
11380  lt_cv_irix_exported_symbol=no
11381fi
11382rm -f core conftest.err conftest.$ac_objext \
11383    conftest$ac_exeext conftest.$ac_ext
11384           LDFLAGS=$save_LDFLAGS
11385fi
11386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11387$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11388	if test yes = "$lt_cv_irix_exported_symbol"; then
11389          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'
11390	fi
11391	link_all_deplibs=no
11392      else
11393	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'
11394	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'
11395      fi
11396      archive_cmds_need_lc='no'
11397      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11398      hardcode_libdir_separator=:
11399      inherit_rpath=yes
11400      link_all_deplibs=yes
11401      ;;
11402
11403    linux*)
11404      case $cc_basename in
11405      tcc*)
11406	# Fabrice Bellard et al's Tiny C Compiler
11407	ld_shlibs=yes
11408	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11409	;;
11410      esac
11411      ;;
11412
11413    netbsd* | netbsdelf*-gnu)
11414      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11415	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11416      else
11417	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11418      fi
11419      hardcode_libdir_flag_spec='-R$libdir'
11420      hardcode_direct=yes
11421      hardcode_shlibpath_var=no
11422      ;;
11423
11424    newsos6)
11425      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11426      hardcode_direct=yes
11427      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11428      hardcode_libdir_separator=:
11429      hardcode_shlibpath_var=no
11430      ;;
11431
11432    *nto* | *qnx*)
11433      ;;
11434
11435    openbsd* | bitrig*)
11436      if test -f /usr/libexec/ld.so; then
11437	hardcode_direct=yes
11438	hardcode_shlibpath_var=no
11439	hardcode_direct_absolute=yes
11440	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11441	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11442	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11443	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11444	  export_dynamic_flag_spec='$wl-E'
11445	else
11446	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11447	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11448	fi
11449      else
11450	ld_shlibs=no
11451      fi
11452      ;;
11453
11454    os2*)
11455      hardcode_libdir_flag_spec='-L$libdir'
11456      hardcode_minus_L=yes
11457      allow_undefined_flag=unsupported
11458      shrext_cmds=.dll
11459      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11460	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11461	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11462	$ECHO EXPORTS >> $output_objdir/$libname.def~
11463	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11464	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11465	emximp -o $lib $output_objdir/$libname.def'
11466      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11467	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11468	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11469	$ECHO EXPORTS >> $output_objdir/$libname.def~
11470	prefix_cmds="$SED"~
11471	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11472	  prefix_cmds="$prefix_cmds -e 1d";
11473	fi~
11474	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11475	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11476	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11477	emximp -o $lib $output_objdir/$libname.def'
11478      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11479      enable_shared_with_static_runtimes=yes
11480      ;;
11481
11482    osf3*)
11483      if test yes = "$GCC"; then
11484	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11485	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'
11486      else
11487	allow_undefined_flag=' -expect_unresolved \*'
11488	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'
11489      fi
11490      archive_cmds_need_lc='no'
11491      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11492      hardcode_libdir_separator=:
11493      ;;
11494
11495    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11496      if test yes = "$GCC"; then
11497	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11498	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'
11499	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11500      else
11501	allow_undefined_flag=' -expect_unresolved \*'
11502	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'
11503	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~
11504          $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'
11505
11506	# Both c and cxx compiler support -rpath directly
11507	hardcode_libdir_flag_spec='-rpath $libdir'
11508      fi
11509      archive_cmds_need_lc='no'
11510      hardcode_libdir_separator=:
11511      ;;
11512
11513    solaris*)
11514      no_undefined_flag=' -z defs'
11515      if test yes = "$GCC"; then
11516	wlarc='$wl'
11517	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11518	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11519          $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'
11520      else
11521	case `$CC -V 2>&1` in
11522	*"Compilers 5.0"*)
11523	  wlarc=''
11524	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11525	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11526            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11527	  ;;
11528	*)
11529	  wlarc='$wl'
11530	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11531	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11532            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11533	  ;;
11534	esac
11535      fi
11536      hardcode_libdir_flag_spec='-R$libdir'
11537      hardcode_shlibpath_var=no
11538      case $host_os in
11539      solaris2.[0-5] | solaris2.[0-5].*) ;;
11540      *)
11541	# The compiler driver will combine and reorder linker options,
11542	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11543	# but is careful enough not to reorder.
11544	# Supported since Solaris 2.6 (maybe 2.5.1?)
11545	if test yes = "$GCC"; then
11546	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11547	else
11548	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11549	fi
11550	;;
11551      esac
11552      link_all_deplibs=yes
11553      ;;
11554
11555    sunos4*)
11556      if test sequent = "$host_vendor"; then
11557	# Use $CC to link under sequent, because it throws in some extra .o
11558	# files that make .init and .fini sections work.
11559	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11560      else
11561	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11562      fi
11563      hardcode_libdir_flag_spec='-L$libdir'
11564      hardcode_direct=yes
11565      hardcode_minus_L=yes
11566      hardcode_shlibpath_var=no
11567      ;;
11568
11569    sysv4)
11570      case $host_vendor in
11571	sni)
11572	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11573	  hardcode_direct=yes # is this really true???
11574	;;
11575	siemens)
11576	  ## LD is ld it makes a PLAMLIB
11577	  ## CC just makes a GrossModule.
11578	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11579	  reload_cmds='$CC -r -o $output$reload_objs'
11580	  hardcode_direct=no
11581        ;;
11582	motorola)
11583	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11584	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11585	;;
11586      esac
11587      runpath_var='LD_RUN_PATH'
11588      hardcode_shlibpath_var=no
11589      ;;
11590
11591    sysv4.3*)
11592      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11593      hardcode_shlibpath_var=no
11594      export_dynamic_flag_spec='-Bexport'
11595      ;;
11596
11597    sysv4*MP*)
11598      if test -d /usr/nec; then
11599	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11600	hardcode_shlibpath_var=no
11601	runpath_var=LD_RUN_PATH
11602	hardcode_runpath_var=yes
11603	ld_shlibs=yes
11604      fi
11605      ;;
11606
11607    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11608      no_undefined_flag='$wl-z,text'
11609      archive_cmds_need_lc=no
11610      hardcode_shlibpath_var=no
11611      runpath_var='LD_RUN_PATH'
11612
11613      if test yes = "$GCC"; then
11614	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11615	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11616      else
11617	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11618	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11619      fi
11620      ;;
11621
11622    sysv5* | sco3.2v5* | sco5v6*)
11623      # Note: We CANNOT use -z defs as we might desire, because we do not
11624      # link with -lc, and that would cause any symbols used from libc to
11625      # always be unresolved, which means just about no library would
11626      # ever link correctly.  If we're not using GNU ld we use -z text
11627      # though, which does catch some bad symbols but isn't as heavy-handed
11628      # as -z defs.
11629      no_undefined_flag='$wl-z,text'
11630      allow_undefined_flag='$wl-z,nodefs'
11631      archive_cmds_need_lc=no
11632      hardcode_shlibpath_var=no
11633      hardcode_libdir_flag_spec='$wl-R,$libdir'
11634      hardcode_libdir_separator=':'
11635      link_all_deplibs=yes
11636      export_dynamic_flag_spec='$wl-Bexport'
11637      runpath_var='LD_RUN_PATH'
11638
11639      if test yes = "$GCC"; then
11640	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11641	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11642      else
11643	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11644	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11645      fi
11646      ;;
11647
11648    uts4*)
11649      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11650      hardcode_libdir_flag_spec='-L$libdir'
11651      hardcode_shlibpath_var=no
11652      ;;
11653
11654    *)
11655      ld_shlibs=no
11656      ;;
11657    esac
11658
11659    if test sni = "$host_vendor"; then
11660      case $host in
11661      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11662	export_dynamic_flag_spec='$wl-Blargedynsym'
11663	;;
11664      esac
11665    fi
11666  fi
11667
11668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11669$as_echo "$ld_shlibs" >&6; }
11670test no = "$ld_shlibs" && can_build_shared=no
11671
11672with_gnu_ld=$with_gnu_ld
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688#
11689# Do we need to explicitly link libc?
11690#
11691case "x$archive_cmds_need_lc" in
11692x|xyes)
11693  # Assume -lc should be added
11694  archive_cmds_need_lc=yes
11695
11696  if test yes,yes = "$GCC,$enable_shared"; then
11697    case $archive_cmds in
11698    *'~'*)
11699      # FIXME: we may have to deal with multi-command sequences.
11700      ;;
11701    '$CC '*)
11702      # Test whether the compiler implicitly links with -lc since on some
11703      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11704      # to ld, don't add -lc before -lgcc.
11705      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11706$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11707if ${lt_cv_archive_cmds_need_lc+:} false; then :
11708  $as_echo_n "(cached) " >&6
11709else
11710  $RM conftest*
11711	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11712
11713	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11714  (eval $ac_compile) 2>&5
11715  ac_status=$?
11716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11717  test $ac_status = 0; } 2>conftest.err; then
11718	  soname=conftest
11719	  lib=conftest
11720	  libobjs=conftest.$ac_objext
11721	  deplibs=
11722	  wl=$lt_prog_compiler_wl
11723	  pic_flag=$lt_prog_compiler_pic
11724	  compiler_flags=-v
11725	  linker_flags=-v
11726	  verstring=
11727	  output_objdir=.
11728	  libname=conftest
11729	  lt_save_allow_undefined_flag=$allow_undefined_flag
11730	  allow_undefined_flag=
11731	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11732  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11733  ac_status=$?
11734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11735  test $ac_status = 0; }
11736	  then
11737	    lt_cv_archive_cmds_need_lc=no
11738	  else
11739	    lt_cv_archive_cmds_need_lc=yes
11740	  fi
11741	  allow_undefined_flag=$lt_save_allow_undefined_flag
11742	else
11743	  cat conftest.err 1>&5
11744	fi
11745	$RM conftest*
11746
11747fi
11748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11749$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11750      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11751      ;;
11752    esac
11753  fi
11754  ;;
11755esac
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11909$as_echo_n "checking dynamic linker characteristics... " >&6; }
11910
11911if test yes = "$GCC"; then
11912  case $host_os in
11913    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11914    *) lt_awk_arg='/^libraries:/' ;;
11915  esac
11916  case $host_os in
11917    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11918    *) lt_sed_strip_eq='s|=/|/|g' ;;
11919  esac
11920  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11921  case $lt_search_path_spec in
11922  *\;*)
11923    # if the path contains ";" then we assume it to be the separator
11924    # otherwise default to the standard path separator (i.e. ":") - it is
11925    # assumed that no part of a normal pathname contains ";" but that should
11926    # okay in the real world where ";" in dirpaths is itself problematic.
11927    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11928    ;;
11929  *)
11930    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11931    ;;
11932  esac
11933  # Ok, now we have the path, separated by spaces, we can step through it
11934  # and add multilib dir if necessary...
11935  lt_tmp_lt_search_path_spec=
11936  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11937  # ...but if some path component already ends with the multilib dir we assume
11938  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11939  case "$lt_multi_os_dir; $lt_search_path_spec " in
11940  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11941    lt_multi_os_dir=
11942    ;;
11943  esac
11944  for lt_sys_path in $lt_search_path_spec; do
11945    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11946      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11947    elif test -n "$lt_multi_os_dir"; then
11948      test -d "$lt_sys_path" && \
11949	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11950    fi
11951  done
11952  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11953BEGIN {RS = " "; FS = "/|\n";} {
11954  lt_foo = "";
11955  lt_count = 0;
11956  for (lt_i = NF; lt_i > 0; lt_i--) {
11957    if ($lt_i != "" && $lt_i != ".") {
11958      if ($lt_i == "..") {
11959        lt_count++;
11960      } else {
11961        if (lt_count == 0) {
11962          lt_foo = "/" $lt_i lt_foo;
11963        } else {
11964          lt_count--;
11965        }
11966      }
11967    }
11968  }
11969  if (lt_foo != "") { lt_freq[lt_foo]++; }
11970  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11971}'`
11972  # AWK program above erroneously prepends '/' to C:/dos/paths
11973  # for these hosts.
11974  case $host_os in
11975    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11976      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11977  esac
11978  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11979else
11980  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11981fi
11982library_names_spec=
11983libname_spec='lib$name'
11984soname_spec=
11985shrext_cmds=.so
11986postinstall_cmds=
11987postuninstall_cmds=
11988finish_cmds=
11989finish_eval=
11990shlibpath_var=
11991shlibpath_overrides_runpath=unknown
11992version_type=none
11993dynamic_linker="$host_os ld.so"
11994sys_lib_dlsearch_path_spec="/lib /usr/lib"
11995need_lib_prefix=unknown
11996hardcode_into_libs=no
11997
11998# when you set need_version to no, make sure it does not cause -set_version
11999# flags to be left without arguments
12000need_version=unknown
12001
12002
12003
12004case $host_os in
12005aix3*)
12006  version_type=linux # correct to gnu/linux during the next big refactor
12007  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12008  shlibpath_var=LIBPATH
12009
12010  # AIX 3 has no versioning support, so we append a major version to the name.
12011  soname_spec='$libname$release$shared_ext$major'
12012  ;;
12013
12014aix[4-9]*)
12015  version_type=linux # correct to gnu/linux during the next big refactor
12016  need_lib_prefix=no
12017  need_version=no
12018  hardcode_into_libs=yes
12019  if test ia64 = "$host_cpu"; then
12020    # AIX 5 supports IA64
12021    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12022    shlibpath_var=LD_LIBRARY_PATH
12023  else
12024    # With GCC up to 2.95.x, collect2 would create an import file
12025    # for dependence libraries.  The import file would start with
12026    # the line '#! .'.  This would cause the generated library to
12027    # depend on '.', always an invalid library.  This was fixed in
12028    # development snapshots of GCC prior to 3.0.
12029    case $host_os in
12030      aix4 | aix4.[01] | aix4.[01].*)
12031      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12032	   echo ' yes '
12033	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12034	:
12035      else
12036	can_build_shared=no
12037      fi
12038      ;;
12039    esac
12040    # Using Import Files as archive members, it is possible to support
12041    # filename-based versioning of shared library archives on AIX. While
12042    # this would work for both with and without runtime linking, it will
12043    # prevent static linking of such archives. So we do filename-based
12044    # shared library versioning with .so extension only, which is used
12045    # when both runtime linking and shared linking is enabled.
12046    # Unfortunately, runtime linking may impact performance, so we do
12047    # not want this to be the default eventually. Also, we use the
12048    # versioned .so libs for executables only if there is the -brtl
12049    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12050    # To allow for filename-based versioning support, we need to create
12051    # libNAME.so.V as an archive file, containing:
12052    # *) an Import File, referring to the versioned filename of the
12053    #    archive as well as the shared archive member, telling the
12054    #    bitwidth (32 or 64) of that shared object, and providing the
12055    #    list of exported symbols of that shared object, eventually
12056    #    decorated with the 'weak' keyword
12057    # *) the shared object with the F_LOADONLY flag set, to really avoid
12058    #    it being seen by the linker.
12059    # At run time we better use the real file rather than another symlink,
12060    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12061
12062    case $with_aix_soname,$aix_use_runtimelinking in
12063    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12064    # soname into executable. Probably we can add versioning support to
12065    # collect2, so additional links can be useful in future.
12066    aix,yes) # traditional libtool
12067      dynamic_linker='AIX unversionable lib.so'
12068      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12069      # instead of lib<name>.a to let people know that these are not
12070      # typical AIX shared libraries.
12071      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12072      ;;
12073    aix,no) # traditional AIX only
12074      dynamic_linker='AIX lib.a(lib.so.V)'
12075      # We preserve .a as extension for shared libraries through AIX4.2
12076      # and later when we are not doing run time linking.
12077      library_names_spec='$libname$release.a $libname.a'
12078      soname_spec='$libname$release$shared_ext$major'
12079      ;;
12080    svr4,*) # full svr4 only
12081      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12082      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12083      # We do not specify a path in Import Files, so LIBPATH fires.
12084      shlibpath_overrides_runpath=yes
12085      ;;
12086    *,yes) # both, prefer svr4
12087      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12088      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12089      # unpreferred sharedlib libNAME.a needs extra handling
12090      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12091      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12092      # We do not specify a path in Import Files, so LIBPATH fires.
12093      shlibpath_overrides_runpath=yes
12094      ;;
12095    *,no) # both, prefer aix
12096      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12097      library_names_spec='$libname$release.a $libname.a'
12098      soname_spec='$libname$release$shared_ext$major'
12099      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12100      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12101      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12102      ;;
12103    esac
12104    shlibpath_var=LIBPATH
12105  fi
12106  ;;
12107
12108amigaos*)
12109  case $host_cpu in
12110  powerpc)
12111    # Since July 2007 AmigaOS4 officially supports .so libraries.
12112    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12113    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12114    ;;
12115  m68k)
12116    library_names_spec='$libname.ixlibrary $libname.a'
12117    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12118    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12119    ;;
12120  esac
12121  ;;
12122
12123beos*)
12124  library_names_spec='$libname$shared_ext'
12125  dynamic_linker="$host_os ld.so"
12126  shlibpath_var=LIBRARY_PATH
12127  ;;
12128
12129bsdi[45]*)
12130  version_type=linux # correct to gnu/linux during the next big refactor
12131  need_version=no
12132  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12133  soname_spec='$libname$release$shared_ext$major'
12134  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12135  shlibpath_var=LD_LIBRARY_PATH
12136  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12137  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12138  # the default ld.so.conf also contains /usr/contrib/lib and
12139  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12140  # libtool to hard-code these into programs
12141  ;;
12142
12143cygwin* | mingw* | pw32* | cegcc*)
12144  version_type=windows
12145  shrext_cmds=.dll
12146  need_version=no
12147  need_lib_prefix=no
12148
12149  case $GCC,$cc_basename in
12150  yes,*)
12151    # gcc
12152    library_names_spec='$libname.dll.a'
12153    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12154    postinstall_cmds='base_file=`basename \$file`~
12155      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12156      dldir=$destdir/`dirname \$dlpath`~
12157      test -d \$dldir || mkdir -p \$dldir~
12158      $install_prog $dir/$dlname \$dldir/$dlname~
12159      chmod a+x \$dldir/$dlname~
12160      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12161        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12162      fi'
12163    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12164      dlpath=$dir/\$dldll~
12165       $RM \$dlpath'
12166    shlibpath_overrides_runpath=yes
12167
12168    case $host_os in
12169    cygwin*)
12170      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12171      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12172
12173      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12174      ;;
12175    mingw* | cegcc*)
12176      # MinGW DLLs use traditional 'lib' prefix
12177      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12178      ;;
12179    pw32*)
12180      # pw32 DLLs use 'pw' prefix rather than 'lib'
12181      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12182      ;;
12183    esac
12184    dynamic_linker='Win32 ld.exe'
12185    ;;
12186
12187  *,cl*)
12188    # Native MSVC
12189    libname_spec='$name'
12190    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12191    library_names_spec='$libname.dll.lib'
12192
12193    case $build_os in
12194    mingw*)
12195      sys_lib_search_path_spec=
12196      lt_save_ifs=$IFS
12197      IFS=';'
12198      for lt_path in $LIB
12199      do
12200        IFS=$lt_save_ifs
12201        # Let DOS variable expansion print the short 8.3 style file name.
12202        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12203        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12204      done
12205      IFS=$lt_save_ifs
12206      # Convert to MSYS style.
12207      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12208      ;;
12209    cygwin*)
12210      # Convert to unix form, then to dos form, then back to unix form
12211      # but this time dos style (no spaces!) so that the unix form looks
12212      # like /cygdrive/c/PROGRA~1:/cygdr...
12213      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12214      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12215      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12216      ;;
12217    *)
12218      sys_lib_search_path_spec=$LIB
12219      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12220        # It is most probably a Windows format PATH.
12221        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12222      else
12223        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12224      fi
12225      # FIXME: find the short name or the path components, as spaces are
12226      # common. (e.g. "Program Files" -> "PROGRA~1")
12227      ;;
12228    esac
12229
12230    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12231    postinstall_cmds='base_file=`basename \$file`~
12232      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12233      dldir=$destdir/`dirname \$dlpath`~
12234      test -d \$dldir || mkdir -p \$dldir~
12235      $install_prog $dir/$dlname \$dldir/$dlname'
12236    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12237      dlpath=$dir/\$dldll~
12238       $RM \$dlpath'
12239    shlibpath_overrides_runpath=yes
12240    dynamic_linker='Win32 link.exe'
12241    ;;
12242
12243  *)
12244    # Assume MSVC wrapper
12245    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12246    dynamic_linker='Win32 ld.exe'
12247    ;;
12248  esac
12249  # FIXME: first we should search . and the directory the executable is in
12250  shlibpath_var=PATH
12251  ;;
12252
12253darwin* | rhapsody*)
12254  dynamic_linker="$host_os dyld"
12255  version_type=darwin
12256  need_lib_prefix=no
12257  need_version=no
12258  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12259  soname_spec='$libname$release$major$shared_ext'
12260  shlibpath_overrides_runpath=yes
12261  shlibpath_var=DYLD_LIBRARY_PATH
12262  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12263
12264  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12265  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12266  ;;
12267
12268dgux*)
12269  version_type=linux # correct to gnu/linux during the next big refactor
12270  need_lib_prefix=no
12271  need_version=no
12272  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12273  soname_spec='$libname$release$shared_ext$major'
12274  shlibpath_var=LD_LIBRARY_PATH
12275  ;;
12276
12277freebsd* | dragonfly*)
12278  # DragonFly does not have aout.  When/if they implement a new
12279  # versioning mechanism, adjust this.
12280  if test -x /usr/bin/objformat; then
12281    objformat=`/usr/bin/objformat`
12282  else
12283    case $host_os in
12284    freebsd[23].*) objformat=aout ;;
12285    *) objformat=elf ;;
12286    esac
12287  fi
12288  version_type=freebsd-$objformat
12289  case $version_type in
12290    freebsd-elf*)
12291      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12292      soname_spec='$libname$release$shared_ext$major'
12293      need_version=no
12294      need_lib_prefix=no
12295      ;;
12296    freebsd-*)
12297      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12298      need_version=yes
12299      ;;
12300  esac
12301  shlibpath_var=LD_LIBRARY_PATH
12302  case $host_os in
12303  freebsd2.*)
12304    shlibpath_overrides_runpath=yes
12305    ;;
12306  freebsd3.[01]* | freebsdelf3.[01]*)
12307    shlibpath_overrides_runpath=yes
12308    hardcode_into_libs=yes
12309    ;;
12310  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12311  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12312    shlibpath_overrides_runpath=no
12313    hardcode_into_libs=yes
12314    ;;
12315  *) # from 4.6 on, and DragonFly
12316    shlibpath_overrides_runpath=yes
12317    hardcode_into_libs=yes
12318    ;;
12319  esac
12320  ;;
12321
12322haiku*)
12323  version_type=linux # correct to gnu/linux during the next big refactor
12324  need_lib_prefix=no
12325  need_version=no
12326  dynamic_linker="$host_os runtime_loader"
12327  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12328  soname_spec='$libname$release$shared_ext$major'
12329  shlibpath_var=LIBRARY_PATH
12330  shlibpath_overrides_runpath=no
12331  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12332  hardcode_into_libs=yes
12333  ;;
12334
12335hpux9* | hpux10* | hpux11*)
12336  # Give a soname corresponding to the major version so that dld.sl refuses to
12337  # link against other versions.
12338  version_type=sunos
12339  need_lib_prefix=no
12340  need_version=no
12341  case $host_cpu in
12342  ia64*)
12343    shrext_cmds='.so'
12344    hardcode_into_libs=yes
12345    dynamic_linker="$host_os dld.so"
12346    shlibpath_var=LD_LIBRARY_PATH
12347    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12348    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12349    soname_spec='$libname$release$shared_ext$major'
12350    if test 32 = "$HPUX_IA64_MODE"; then
12351      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12352      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12353    else
12354      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12355      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12356    fi
12357    ;;
12358  hppa*64*)
12359    shrext_cmds='.sl'
12360    hardcode_into_libs=yes
12361    dynamic_linker="$host_os dld.sl"
12362    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12363    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12364    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12365    soname_spec='$libname$release$shared_ext$major'
12366    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12367    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12368    ;;
12369  *)
12370    shrext_cmds='.sl'
12371    dynamic_linker="$host_os dld.sl"
12372    shlibpath_var=SHLIB_PATH
12373    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12374    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12375    soname_spec='$libname$release$shared_ext$major'
12376    ;;
12377  esac
12378  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12379  postinstall_cmds='chmod 555 $lib'
12380  # or fails outright, so override atomically:
12381  install_override_mode=555
12382  ;;
12383
12384interix[3-9]*)
12385  version_type=linux # correct to gnu/linux during the next big refactor
12386  need_lib_prefix=no
12387  need_version=no
12388  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12389  soname_spec='$libname$release$shared_ext$major'
12390  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12391  shlibpath_var=LD_LIBRARY_PATH
12392  shlibpath_overrides_runpath=no
12393  hardcode_into_libs=yes
12394  ;;
12395
12396irix5* | irix6* | nonstopux*)
12397  case $host_os in
12398    nonstopux*) version_type=nonstopux ;;
12399    *)
12400	if test yes = "$lt_cv_prog_gnu_ld"; then
12401		version_type=linux # correct to gnu/linux during the next big refactor
12402	else
12403		version_type=irix
12404	fi ;;
12405  esac
12406  need_lib_prefix=no
12407  need_version=no
12408  soname_spec='$libname$release$shared_ext$major'
12409  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12410  case $host_os in
12411  irix5* | nonstopux*)
12412    libsuff= shlibsuff=
12413    ;;
12414  *)
12415    case $LD in # libtool.m4 will add one of these switches to LD
12416    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12417      libsuff= shlibsuff= libmagic=32-bit;;
12418    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12419      libsuff=32 shlibsuff=N32 libmagic=N32;;
12420    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12421      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12422    *) libsuff= shlibsuff= libmagic=never-match;;
12423    esac
12424    ;;
12425  esac
12426  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12427  shlibpath_overrides_runpath=no
12428  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12429  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12430  hardcode_into_libs=yes
12431  ;;
12432
12433# No shared lib support for Linux oldld, aout, or coff.
12434linux*oldld* | linux*aout* | linux*coff*)
12435  dynamic_linker=no
12436  ;;
12437
12438linux*android*)
12439  version_type=none # Android doesn't support versioned libraries.
12440  need_lib_prefix=no
12441  need_version=no
12442  library_names_spec='$libname$release$shared_ext'
12443  soname_spec='$libname$release$shared_ext'
12444  finish_cmds=
12445  shlibpath_var=LD_LIBRARY_PATH
12446  shlibpath_overrides_runpath=yes
12447
12448  # This implies no fast_install, which is unacceptable.
12449  # Some rework will be needed to allow for fast_install
12450  # before this can be enabled.
12451  hardcode_into_libs=yes
12452
12453  dynamic_linker='Android linker'
12454  # Don't embed -rpath directories since the linker doesn't support them.
12455  hardcode_libdir_flag_spec='-L$libdir'
12456  ;;
12457
12458# This must be glibc/ELF.
12459linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12460  version_type=linux # correct to gnu/linux during the next big refactor
12461  need_lib_prefix=no
12462  need_version=no
12463  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12464  soname_spec='$libname$release$shared_ext$major'
12465  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12466  shlibpath_var=LD_LIBRARY_PATH
12467  shlibpath_overrides_runpath=no
12468
12469  # Some binutils ld are patched to set DT_RUNPATH
12470  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12471  $as_echo_n "(cached) " >&6
12472else
12473  lt_cv_shlibpath_overrides_runpath=no
12474    save_LDFLAGS=$LDFLAGS
12475    save_libdir=$libdir
12476    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12477	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12478    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12479/* end confdefs.h.  */
12480
12481int
12482main ()
12483{
12484
12485  ;
12486  return 0;
12487}
12488_ACEOF
12489if ac_fn_c_try_link "$LINENO"; then :
12490  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12491  lt_cv_shlibpath_overrides_runpath=yes
12492fi
12493fi
12494rm -f core conftest.err conftest.$ac_objext \
12495    conftest$ac_exeext conftest.$ac_ext
12496    LDFLAGS=$save_LDFLAGS
12497    libdir=$save_libdir
12498
12499fi
12500
12501  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12502
12503  # This implies no fast_install, which is unacceptable.
12504  # Some rework will be needed to allow for fast_install
12505  # before this can be enabled.
12506  hardcode_into_libs=yes
12507
12508  # Ideally, we could use ldconfig to report *all* directores which are
12509  # searched for libraries, however this is still not possible.  Aside from not
12510  # being certain /sbin/ldconfig is available, command
12511  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12512  # even though it is searched at run-time.  Try to do the best guess by
12513  # appending ld.so.conf contents (and includes) to the search path.
12514  if test -f /etc/ld.so.conf; then
12515    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' ' '`
12516    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12517  fi
12518
12519  # We used to test for /lib/ld.so.1 and disable shared libraries on
12520  # powerpc, because MkLinux only supported shared libraries with the
12521  # GNU dynamic linker.  Since this was broken with cross compilers,
12522  # most powerpc-linux boxes support dynamic linking these days and
12523  # people can always --disable-shared, the test was removed, and we
12524  # assume the GNU/Linux dynamic linker is in use.
12525  dynamic_linker='GNU/Linux ld.so'
12526  ;;
12527
12528netbsdelf*-gnu)
12529  version_type=linux
12530  need_lib_prefix=no
12531  need_version=no
12532  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12533  soname_spec='${libname}${release}${shared_ext}$major'
12534  shlibpath_var=LD_LIBRARY_PATH
12535  shlibpath_overrides_runpath=no
12536  hardcode_into_libs=yes
12537  dynamic_linker='NetBSD ld.elf_so'
12538  ;;
12539
12540netbsd*)
12541  version_type=sunos
12542  need_lib_prefix=no
12543  need_version=no
12544  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12545    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12546    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12547    dynamic_linker='NetBSD (a.out) ld.so'
12548  else
12549    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12550    soname_spec='$libname$release$shared_ext$major'
12551    dynamic_linker='NetBSD ld.elf_so'
12552  fi
12553  shlibpath_var=LD_LIBRARY_PATH
12554  shlibpath_overrides_runpath=yes
12555  hardcode_into_libs=yes
12556  ;;
12557
12558newsos6)
12559  version_type=linux # correct to gnu/linux during the next big refactor
12560  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12561  shlibpath_var=LD_LIBRARY_PATH
12562  shlibpath_overrides_runpath=yes
12563  ;;
12564
12565*nto* | *qnx*)
12566  version_type=qnx
12567  need_lib_prefix=no
12568  need_version=no
12569  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12570  soname_spec='$libname$release$shared_ext$major'
12571  shlibpath_var=LD_LIBRARY_PATH
12572  shlibpath_overrides_runpath=no
12573  hardcode_into_libs=yes
12574  dynamic_linker='ldqnx.so'
12575  ;;
12576
12577openbsd* | bitrig*)
12578  version_type=sunos
12579  sys_lib_dlsearch_path_spec=/usr/lib
12580  need_lib_prefix=no
12581  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12582    need_version=no
12583  else
12584    need_version=yes
12585  fi
12586  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12587  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12588  shlibpath_var=LD_LIBRARY_PATH
12589  shlibpath_overrides_runpath=yes
12590  ;;
12591
12592os2*)
12593  libname_spec='$name'
12594  version_type=windows
12595  shrext_cmds=.dll
12596  need_version=no
12597  need_lib_prefix=no
12598  # OS/2 can only load a DLL with a base name of 8 characters or less.
12599  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12600    v=$($ECHO $release$versuffix | tr -d .-);
12601    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12602    $ECHO $n$v`$shared_ext'
12603  library_names_spec='${libname}_dll.$libext'
12604  dynamic_linker='OS/2 ld.exe'
12605  shlibpath_var=BEGINLIBPATH
12606  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12607  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12608  postinstall_cmds='base_file=`basename \$file`~
12609    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12610    dldir=$destdir/`dirname \$dlpath`~
12611    test -d \$dldir || mkdir -p \$dldir~
12612    $install_prog $dir/$dlname \$dldir/$dlname~
12613    chmod a+x \$dldir/$dlname~
12614    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12615      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12616    fi'
12617  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12618    dlpath=$dir/\$dldll~
12619    $RM \$dlpath'
12620  ;;
12621
12622osf3* | osf4* | osf5*)
12623  version_type=osf
12624  need_lib_prefix=no
12625  need_version=no
12626  soname_spec='$libname$release$shared_ext$major'
12627  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12628  shlibpath_var=LD_LIBRARY_PATH
12629  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12630  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12631  ;;
12632
12633rdos*)
12634  dynamic_linker=no
12635  ;;
12636
12637solaris*)
12638  version_type=linux # correct to gnu/linux during the next big refactor
12639  need_lib_prefix=no
12640  need_version=no
12641  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12642  soname_spec='$libname$release$shared_ext$major'
12643  shlibpath_var=LD_LIBRARY_PATH
12644  shlibpath_overrides_runpath=yes
12645  hardcode_into_libs=yes
12646  # ldd complains unless libraries are executable
12647  postinstall_cmds='chmod +x $lib'
12648  ;;
12649
12650sunos4*)
12651  version_type=sunos
12652  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12653  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12654  shlibpath_var=LD_LIBRARY_PATH
12655  shlibpath_overrides_runpath=yes
12656  if test yes = "$with_gnu_ld"; then
12657    need_lib_prefix=no
12658  fi
12659  need_version=yes
12660  ;;
12661
12662sysv4 | sysv4.3*)
12663  version_type=linux # correct to gnu/linux during the next big refactor
12664  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12665  soname_spec='$libname$release$shared_ext$major'
12666  shlibpath_var=LD_LIBRARY_PATH
12667  case $host_vendor in
12668    sni)
12669      shlibpath_overrides_runpath=no
12670      need_lib_prefix=no
12671      runpath_var=LD_RUN_PATH
12672      ;;
12673    siemens)
12674      need_lib_prefix=no
12675      ;;
12676    motorola)
12677      need_lib_prefix=no
12678      need_version=no
12679      shlibpath_overrides_runpath=no
12680      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12681      ;;
12682  esac
12683  ;;
12684
12685sysv4*MP*)
12686  if test -d /usr/nec; then
12687    version_type=linux # correct to gnu/linux during the next big refactor
12688    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12689    soname_spec='$libname$shared_ext.$major'
12690    shlibpath_var=LD_LIBRARY_PATH
12691  fi
12692  ;;
12693
12694sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12695  version_type=sco
12696  need_lib_prefix=no
12697  need_version=no
12698  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12699  soname_spec='$libname$release$shared_ext$major'
12700  shlibpath_var=LD_LIBRARY_PATH
12701  shlibpath_overrides_runpath=yes
12702  hardcode_into_libs=yes
12703  if test yes = "$with_gnu_ld"; then
12704    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12705  else
12706    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12707    case $host_os in
12708      sco3.2v5*)
12709        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12710	;;
12711    esac
12712  fi
12713  sys_lib_dlsearch_path_spec='/usr/lib'
12714  ;;
12715
12716tpf*)
12717  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12718  version_type=linux # correct to gnu/linux during the next big refactor
12719  need_lib_prefix=no
12720  need_version=no
12721  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12722  shlibpath_var=LD_LIBRARY_PATH
12723  shlibpath_overrides_runpath=no
12724  hardcode_into_libs=yes
12725  ;;
12726
12727uts4*)
12728  version_type=linux # correct to gnu/linux during the next big refactor
12729  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12730  soname_spec='$libname$release$shared_ext$major'
12731  shlibpath_var=LD_LIBRARY_PATH
12732  ;;
12733
12734*)
12735  dynamic_linker=no
12736  ;;
12737esac
12738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12739$as_echo "$dynamic_linker" >&6; }
12740test no = "$dynamic_linker" && can_build_shared=no
12741
12742variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12743if test yes = "$GCC"; then
12744  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12745fi
12746
12747if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12748  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12749fi
12750
12751if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12752  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12753fi
12754
12755# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12756configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12757
12758# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12759func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12760
12761# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12762configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12861$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12862hardcode_action=
12863if test -n "$hardcode_libdir_flag_spec" ||
12864   test -n "$runpath_var" ||
12865   test yes = "$hardcode_automatic"; then
12866
12867  # We can hardcode non-existent directories.
12868  if test no != "$hardcode_direct" &&
12869     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12870     # have to relink, otherwise we might link with an installed library
12871     # when we should be linking with a yet-to-be-installed one
12872     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12873     test no != "$hardcode_minus_L"; then
12874    # Linking always hardcodes the temporary library directory.
12875    hardcode_action=relink
12876  else
12877    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12878    hardcode_action=immediate
12879  fi
12880else
12881  # We cannot hardcode anything, or else we can only hardcode existing
12882  # directories.
12883  hardcode_action=unsupported
12884fi
12885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12886$as_echo "$hardcode_action" >&6; }
12887
12888if test relink = "$hardcode_action" ||
12889   test yes = "$inherit_rpath"; then
12890  # Fast installation is not supported
12891  enable_fast_install=no
12892elif test yes = "$shlibpath_overrides_runpath" ||
12893     test no = "$enable_shared"; then
12894  # Fast installation is not necessary
12895  enable_fast_install=needless
12896fi
12897
12898
12899
12900
12901
12902
12903  if test yes != "$enable_dlopen"; then
12904  enable_dlopen=unknown
12905  enable_dlopen_self=unknown
12906  enable_dlopen_self_static=unknown
12907else
12908  lt_cv_dlopen=no
12909  lt_cv_dlopen_libs=
12910
12911  case $host_os in
12912  beos*)
12913    lt_cv_dlopen=load_add_on
12914    lt_cv_dlopen_libs=
12915    lt_cv_dlopen_self=yes
12916    ;;
12917
12918  mingw* | pw32* | cegcc*)
12919    lt_cv_dlopen=LoadLibrary
12920    lt_cv_dlopen_libs=
12921    ;;
12922
12923  cygwin*)
12924    lt_cv_dlopen=dlopen
12925    lt_cv_dlopen_libs=
12926    ;;
12927
12928  darwin*)
12929    # if libdl is installed we need to link against it
12930    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12931$as_echo_n "checking for dlopen in -ldl... " >&6; }
12932if ${ac_cv_lib_dl_dlopen+:} false; then :
12933  $as_echo_n "(cached) " >&6
12934else
12935  ac_check_lib_save_LIBS=$LIBS
12936LIBS="-ldl  $LIBS"
12937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12938/* end confdefs.h.  */
12939
12940/* Override any GCC internal prototype to avoid an error.
12941   Use char because int might match the return type of a GCC
12942   builtin and then its argument prototype would still apply.  */
12943#ifdef __cplusplus
12944extern "C"
12945#endif
12946char dlopen ();
12947int
12948main ()
12949{
12950return dlopen ();
12951  ;
12952  return 0;
12953}
12954_ACEOF
12955if ac_fn_c_try_link "$LINENO"; then :
12956  ac_cv_lib_dl_dlopen=yes
12957else
12958  ac_cv_lib_dl_dlopen=no
12959fi
12960rm -f core conftest.err conftest.$ac_objext \
12961    conftest$ac_exeext conftest.$ac_ext
12962LIBS=$ac_check_lib_save_LIBS
12963fi
12964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12965$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12966if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12967  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12968else
12969
12970    lt_cv_dlopen=dyld
12971    lt_cv_dlopen_libs=
12972    lt_cv_dlopen_self=yes
12973
12974fi
12975
12976    ;;
12977
12978  tpf*)
12979    # Don't try to run any link tests for TPF.  We know it's impossible
12980    # because TPF is a cross-compiler, and we know how we open DSOs.
12981    lt_cv_dlopen=dlopen
12982    lt_cv_dlopen_libs=
12983    lt_cv_dlopen_self=no
12984    ;;
12985
12986  *)
12987    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12988if test "x$ac_cv_func_shl_load" = xyes; then :
12989  lt_cv_dlopen=shl_load
12990else
12991  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12992$as_echo_n "checking for shl_load in -ldld... " >&6; }
12993if ${ac_cv_lib_dld_shl_load+:} false; then :
12994  $as_echo_n "(cached) " >&6
12995else
12996  ac_check_lib_save_LIBS=$LIBS
12997LIBS="-ldld  $LIBS"
12998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12999/* end confdefs.h.  */
13000
13001/* Override any GCC internal prototype to avoid an error.
13002   Use char because int might match the return type of a GCC
13003   builtin and then its argument prototype would still apply.  */
13004#ifdef __cplusplus
13005extern "C"
13006#endif
13007char shl_load ();
13008int
13009main ()
13010{
13011return shl_load ();
13012  ;
13013  return 0;
13014}
13015_ACEOF
13016if ac_fn_c_try_link "$LINENO"; then :
13017  ac_cv_lib_dld_shl_load=yes
13018else
13019  ac_cv_lib_dld_shl_load=no
13020fi
13021rm -f core conftest.err conftest.$ac_objext \
13022    conftest$ac_exeext conftest.$ac_ext
13023LIBS=$ac_check_lib_save_LIBS
13024fi
13025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13026$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13027if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13028  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13029else
13030  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13031if test "x$ac_cv_func_dlopen" = xyes; then :
13032  lt_cv_dlopen=dlopen
13033else
13034  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13035$as_echo_n "checking for dlopen in -ldl... " >&6; }
13036if ${ac_cv_lib_dl_dlopen+:} false; then :
13037  $as_echo_n "(cached) " >&6
13038else
13039  ac_check_lib_save_LIBS=$LIBS
13040LIBS="-ldl  $LIBS"
13041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13042/* end confdefs.h.  */
13043
13044/* Override any GCC internal prototype to avoid an error.
13045   Use char because int might match the return type of a GCC
13046   builtin and then its argument prototype would still apply.  */
13047#ifdef __cplusplus
13048extern "C"
13049#endif
13050char dlopen ();
13051int
13052main ()
13053{
13054return dlopen ();
13055  ;
13056  return 0;
13057}
13058_ACEOF
13059if ac_fn_c_try_link "$LINENO"; then :
13060  ac_cv_lib_dl_dlopen=yes
13061else
13062  ac_cv_lib_dl_dlopen=no
13063fi
13064rm -f core conftest.err conftest.$ac_objext \
13065    conftest$ac_exeext conftest.$ac_ext
13066LIBS=$ac_check_lib_save_LIBS
13067fi
13068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13069$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13070if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13071  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13072else
13073  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13074$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13075if ${ac_cv_lib_svld_dlopen+:} false; then :
13076  $as_echo_n "(cached) " >&6
13077else
13078  ac_check_lib_save_LIBS=$LIBS
13079LIBS="-lsvld  $LIBS"
13080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13081/* end confdefs.h.  */
13082
13083/* Override any GCC internal prototype to avoid an error.
13084   Use char because int might match the return type of a GCC
13085   builtin and then its argument prototype would still apply.  */
13086#ifdef __cplusplus
13087extern "C"
13088#endif
13089char dlopen ();
13090int
13091main ()
13092{
13093return dlopen ();
13094  ;
13095  return 0;
13096}
13097_ACEOF
13098if ac_fn_c_try_link "$LINENO"; then :
13099  ac_cv_lib_svld_dlopen=yes
13100else
13101  ac_cv_lib_svld_dlopen=no
13102fi
13103rm -f core conftest.err conftest.$ac_objext \
13104    conftest$ac_exeext conftest.$ac_ext
13105LIBS=$ac_check_lib_save_LIBS
13106fi
13107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13108$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13109if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13110  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13111else
13112  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13113$as_echo_n "checking for dld_link in -ldld... " >&6; }
13114if ${ac_cv_lib_dld_dld_link+:} false; then :
13115  $as_echo_n "(cached) " >&6
13116else
13117  ac_check_lib_save_LIBS=$LIBS
13118LIBS="-ldld  $LIBS"
13119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13120/* end confdefs.h.  */
13121
13122/* Override any GCC internal prototype to avoid an error.
13123   Use char because int might match the return type of a GCC
13124   builtin and then its argument prototype would still apply.  */
13125#ifdef __cplusplus
13126extern "C"
13127#endif
13128char dld_link ();
13129int
13130main ()
13131{
13132return dld_link ();
13133  ;
13134  return 0;
13135}
13136_ACEOF
13137if ac_fn_c_try_link "$LINENO"; then :
13138  ac_cv_lib_dld_dld_link=yes
13139else
13140  ac_cv_lib_dld_dld_link=no
13141fi
13142rm -f core conftest.err conftest.$ac_objext \
13143    conftest$ac_exeext conftest.$ac_ext
13144LIBS=$ac_check_lib_save_LIBS
13145fi
13146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13147$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13148if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13149  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13150fi
13151
13152
13153fi
13154
13155
13156fi
13157
13158
13159fi
13160
13161
13162fi
13163
13164
13165fi
13166
13167    ;;
13168  esac
13169
13170  if test no = "$lt_cv_dlopen"; then
13171    enable_dlopen=no
13172  else
13173    enable_dlopen=yes
13174  fi
13175
13176  case $lt_cv_dlopen in
13177  dlopen)
13178    save_CPPFLAGS=$CPPFLAGS
13179    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13180
13181    save_LDFLAGS=$LDFLAGS
13182    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13183
13184    save_LIBS=$LIBS
13185    LIBS="$lt_cv_dlopen_libs $LIBS"
13186
13187    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13188$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13189if ${lt_cv_dlopen_self+:} false; then :
13190  $as_echo_n "(cached) " >&6
13191else
13192  	  if test yes = "$cross_compiling"; then :
13193  lt_cv_dlopen_self=cross
13194else
13195  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13196  lt_status=$lt_dlunknown
13197  cat > conftest.$ac_ext <<_LT_EOF
13198#line $LINENO "configure"
13199#include "confdefs.h"
13200
13201#if HAVE_DLFCN_H
13202#include <dlfcn.h>
13203#endif
13204
13205#include <stdio.h>
13206
13207#ifdef RTLD_GLOBAL
13208#  define LT_DLGLOBAL		RTLD_GLOBAL
13209#else
13210#  ifdef DL_GLOBAL
13211#    define LT_DLGLOBAL		DL_GLOBAL
13212#  else
13213#    define LT_DLGLOBAL		0
13214#  endif
13215#endif
13216
13217/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13218   find out it does not work in some platform. */
13219#ifndef LT_DLLAZY_OR_NOW
13220#  ifdef RTLD_LAZY
13221#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13222#  else
13223#    ifdef DL_LAZY
13224#      define LT_DLLAZY_OR_NOW		DL_LAZY
13225#    else
13226#      ifdef RTLD_NOW
13227#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13228#      else
13229#        ifdef DL_NOW
13230#          define LT_DLLAZY_OR_NOW	DL_NOW
13231#        else
13232#          define LT_DLLAZY_OR_NOW	0
13233#        endif
13234#      endif
13235#    endif
13236#  endif
13237#endif
13238
13239/* When -fvisibility=hidden is used, assume the code has been annotated
13240   correspondingly for the symbols needed.  */
13241#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13242int fnord () __attribute__((visibility("default")));
13243#endif
13244
13245int fnord () { return 42; }
13246int main ()
13247{
13248  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13249  int status = $lt_dlunknown;
13250
13251  if (self)
13252    {
13253      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13254      else
13255        {
13256	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13257          else puts (dlerror ());
13258	}
13259      /* dlclose (self); */
13260    }
13261  else
13262    puts (dlerror ());
13263
13264  return status;
13265}
13266_LT_EOF
13267  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13268  (eval $ac_link) 2>&5
13269  ac_status=$?
13270  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13271  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13272    (./conftest; exit; ) >&5 2>/dev/null
13273    lt_status=$?
13274    case x$lt_status in
13275      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13276      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13277      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13278    esac
13279  else :
13280    # compilation failed
13281    lt_cv_dlopen_self=no
13282  fi
13283fi
13284rm -fr conftest*
13285
13286
13287fi
13288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13289$as_echo "$lt_cv_dlopen_self" >&6; }
13290
13291    if test yes = "$lt_cv_dlopen_self"; then
13292      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13293      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13294$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13295if ${lt_cv_dlopen_self_static+:} false; then :
13296  $as_echo_n "(cached) " >&6
13297else
13298  	  if test yes = "$cross_compiling"; then :
13299  lt_cv_dlopen_self_static=cross
13300else
13301  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13302  lt_status=$lt_dlunknown
13303  cat > conftest.$ac_ext <<_LT_EOF
13304#line $LINENO "configure"
13305#include "confdefs.h"
13306
13307#if HAVE_DLFCN_H
13308#include <dlfcn.h>
13309#endif
13310
13311#include <stdio.h>
13312
13313#ifdef RTLD_GLOBAL
13314#  define LT_DLGLOBAL		RTLD_GLOBAL
13315#else
13316#  ifdef DL_GLOBAL
13317#    define LT_DLGLOBAL		DL_GLOBAL
13318#  else
13319#    define LT_DLGLOBAL		0
13320#  endif
13321#endif
13322
13323/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13324   find out it does not work in some platform. */
13325#ifndef LT_DLLAZY_OR_NOW
13326#  ifdef RTLD_LAZY
13327#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13328#  else
13329#    ifdef DL_LAZY
13330#      define LT_DLLAZY_OR_NOW		DL_LAZY
13331#    else
13332#      ifdef RTLD_NOW
13333#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13334#      else
13335#        ifdef DL_NOW
13336#          define LT_DLLAZY_OR_NOW	DL_NOW
13337#        else
13338#          define LT_DLLAZY_OR_NOW	0
13339#        endif
13340#      endif
13341#    endif
13342#  endif
13343#endif
13344
13345/* When -fvisibility=hidden is used, assume the code has been annotated
13346   correspondingly for the symbols needed.  */
13347#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13348int fnord () __attribute__((visibility("default")));
13349#endif
13350
13351int fnord () { return 42; }
13352int main ()
13353{
13354  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13355  int status = $lt_dlunknown;
13356
13357  if (self)
13358    {
13359      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13360      else
13361        {
13362	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13363          else puts (dlerror ());
13364	}
13365      /* dlclose (self); */
13366    }
13367  else
13368    puts (dlerror ());
13369
13370  return status;
13371}
13372_LT_EOF
13373  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13374  (eval $ac_link) 2>&5
13375  ac_status=$?
13376  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13377  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13378    (./conftest; exit; ) >&5 2>/dev/null
13379    lt_status=$?
13380    case x$lt_status in
13381      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13382      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13383      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13384    esac
13385  else :
13386    # compilation failed
13387    lt_cv_dlopen_self_static=no
13388  fi
13389fi
13390rm -fr conftest*
13391
13392
13393fi
13394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13395$as_echo "$lt_cv_dlopen_self_static" >&6; }
13396    fi
13397
13398    CPPFLAGS=$save_CPPFLAGS
13399    LDFLAGS=$save_LDFLAGS
13400    LIBS=$save_LIBS
13401    ;;
13402  esac
13403
13404  case $lt_cv_dlopen_self in
13405  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13406  *) enable_dlopen_self=unknown ;;
13407  esac
13408
13409  case $lt_cv_dlopen_self_static in
13410  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13411  *) enable_dlopen_self_static=unknown ;;
13412  esac
13413fi
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431striplib=
13432old_striplib=
13433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13434$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13435if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13436  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13437  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13439$as_echo "yes" >&6; }
13440else
13441# FIXME - insert some real tests, host_os isn't really good enough
13442  case $host_os in
13443  darwin*)
13444    if test -n "$STRIP"; then
13445      striplib="$STRIP -x"
13446      old_striplib="$STRIP -S"
13447      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13448$as_echo "yes" >&6; }
13449    else
13450      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13451$as_echo "no" >&6; }
13452    fi
13453    ;;
13454  *)
13455    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13456$as_echo "no" >&6; }
13457    ;;
13458  esac
13459fi
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472  # Report what library types will actually be built
13473  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13474$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13476$as_echo "$can_build_shared" >&6; }
13477
13478  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13479$as_echo_n "checking whether to build shared libraries... " >&6; }
13480  test no = "$can_build_shared" && enable_shared=no
13481
13482  # On AIX, shared libraries and static libraries use the same namespace, and
13483  # are all built from PIC.
13484  case $host_os in
13485  aix3*)
13486    test yes = "$enable_shared" && enable_static=no
13487    if test -n "$RANLIB"; then
13488      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13489      postinstall_cmds='$RANLIB $lib'
13490    fi
13491    ;;
13492
13493  aix[4-9]*)
13494    if test ia64 != "$host_cpu"; then
13495      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13496      yes,aix,yes) ;;			# shared object as lib.so file only
13497      yes,svr4,*) ;;			# shared object as lib.so archive member only
13498      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13499      esac
13500    fi
13501    ;;
13502  esac
13503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13504$as_echo "$enable_shared" >&6; }
13505
13506  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13507$as_echo_n "checking whether to build static libraries... " >&6; }
13508  # Make sure either enable_shared or enable_static is yes.
13509  test yes = "$enable_shared" || enable_static=yes
13510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13511$as_echo "$enable_static" >&6; }
13512
13513
13514
13515
13516fi
13517ac_ext=c
13518ac_cpp='$CPP $CPPFLAGS'
13519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13521ac_compiler_gnu=$ac_cv_c_compiler_gnu
13522
13523CC=$lt_save_CC
13524
13525      if test -n "$CXX" && ( test no != "$CXX" &&
13526    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13527    (test g++ != "$CXX"))); then
13528  ac_ext=cpp
13529ac_cpp='$CXXCPP $CPPFLAGS'
13530ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13531ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13532ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13534$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13535if test -z "$CXXCPP"; then
13536  if ${ac_cv_prog_CXXCPP+:} false; then :
13537  $as_echo_n "(cached) " >&6
13538else
13539      # Double quotes because CXXCPP needs to be expanded
13540    for CXXCPP in "$CXX -E" "/lib/cpp"
13541    do
13542      ac_preproc_ok=false
13543for ac_cxx_preproc_warn_flag in '' yes
13544do
13545  # Use a header file that comes with gcc, so configuring glibc
13546  # with a fresh cross-compiler works.
13547  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13548  # <limits.h> exists even on freestanding compilers.
13549  # On the NeXT, cc -E runs the code through the compiler's parser,
13550  # not just through cpp. "Syntax error" is here to catch this case.
13551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552/* end confdefs.h.  */
13553#ifdef __STDC__
13554# include <limits.h>
13555#else
13556# include <assert.h>
13557#endif
13558		     Syntax error
13559_ACEOF
13560if ac_fn_cxx_try_cpp "$LINENO"; then :
13561
13562else
13563  # Broken: fails on valid input.
13564continue
13565fi
13566rm -f conftest.err conftest.i conftest.$ac_ext
13567
13568  # OK, works on sane cases.  Now check whether nonexistent headers
13569  # can be detected and how.
13570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13571/* end confdefs.h.  */
13572#include <ac_nonexistent.h>
13573_ACEOF
13574if ac_fn_cxx_try_cpp "$LINENO"; then :
13575  # Broken: success on invalid input.
13576continue
13577else
13578  # Passes both tests.
13579ac_preproc_ok=:
13580break
13581fi
13582rm -f conftest.err conftest.i conftest.$ac_ext
13583
13584done
13585# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13586rm -f conftest.i conftest.err conftest.$ac_ext
13587if $ac_preproc_ok; then :
13588  break
13589fi
13590
13591    done
13592    ac_cv_prog_CXXCPP=$CXXCPP
13593
13594fi
13595  CXXCPP=$ac_cv_prog_CXXCPP
13596else
13597  ac_cv_prog_CXXCPP=$CXXCPP
13598fi
13599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13600$as_echo "$CXXCPP" >&6; }
13601ac_preproc_ok=false
13602for ac_cxx_preproc_warn_flag in '' yes
13603do
13604  # Use a header file that comes with gcc, so configuring glibc
13605  # with a fresh cross-compiler works.
13606  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13607  # <limits.h> exists even on freestanding compilers.
13608  # On the NeXT, cc -E runs the code through the compiler's parser,
13609  # not just through cpp. "Syntax error" is here to catch this case.
13610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611/* end confdefs.h.  */
13612#ifdef __STDC__
13613# include <limits.h>
13614#else
13615# include <assert.h>
13616#endif
13617		     Syntax error
13618_ACEOF
13619if ac_fn_cxx_try_cpp "$LINENO"; then :
13620
13621else
13622  # Broken: fails on valid input.
13623continue
13624fi
13625rm -f conftest.err conftest.i conftest.$ac_ext
13626
13627  # OK, works on sane cases.  Now check whether nonexistent headers
13628  # can be detected and how.
13629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13630/* end confdefs.h.  */
13631#include <ac_nonexistent.h>
13632_ACEOF
13633if ac_fn_cxx_try_cpp "$LINENO"; then :
13634  # Broken: success on invalid input.
13635continue
13636else
13637  # Passes both tests.
13638ac_preproc_ok=:
13639break
13640fi
13641rm -f conftest.err conftest.i conftest.$ac_ext
13642
13643done
13644# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13645rm -f conftest.i conftest.err conftest.$ac_ext
13646if $ac_preproc_ok; then :
13647
13648else
13649  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13650$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13651as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13652See \`config.log' for more details" "$LINENO" 5; }
13653fi
13654
13655ac_ext=c
13656ac_cpp='$CPP $CPPFLAGS'
13657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13659ac_compiler_gnu=$ac_cv_c_compiler_gnu
13660
13661else
13662  _lt_caught_CXX_error=yes
13663fi
13664
13665ac_ext=cpp
13666ac_cpp='$CXXCPP $CPPFLAGS'
13667ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13668ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13669ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13670
13671archive_cmds_need_lc_CXX=no
13672allow_undefined_flag_CXX=
13673always_export_symbols_CXX=no
13674archive_expsym_cmds_CXX=
13675compiler_needs_object_CXX=no
13676export_dynamic_flag_spec_CXX=
13677hardcode_direct_CXX=no
13678hardcode_direct_absolute_CXX=no
13679hardcode_libdir_flag_spec_CXX=
13680hardcode_libdir_separator_CXX=
13681hardcode_minus_L_CXX=no
13682hardcode_shlibpath_var_CXX=unsupported
13683hardcode_automatic_CXX=no
13684inherit_rpath_CXX=no
13685module_cmds_CXX=
13686module_expsym_cmds_CXX=
13687link_all_deplibs_CXX=unknown
13688old_archive_cmds_CXX=$old_archive_cmds
13689reload_flag_CXX=$reload_flag
13690reload_cmds_CXX=$reload_cmds
13691no_undefined_flag_CXX=
13692whole_archive_flag_spec_CXX=
13693enable_shared_with_static_runtimes_CXX=no
13694
13695# Source file extension for C++ test sources.
13696ac_ext=cpp
13697
13698# Object file extension for compiled C++ test sources.
13699objext=o
13700objext_CXX=$objext
13701
13702# No sense in running all these tests if we already determined that
13703# the CXX compiler isn't working.  Some variables (like enable_shared)
13704# are currently assumed to apply to all compilers on this platform,
13705# and will be corrupted by setting them based on a non-working compiler.
13706if test yes != "$_lt_caught_CXX_error"; then
13707  # Code to be used in simple compile tests
13708  lt_simple_compile_test_code="int some_variable = 0;"
13709
13710  # Code to be used in simple link tests
13711  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13712
13713  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13714
13715
13716
13717
13718
13719
13720# If no C compiler was specified, use CC.
13721LTCC=${LTCC-"$CC"}
13722
13723# If no C compiler flags were specified, use CFLAGS.
13724LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13725
13726# Allow CC to be a program name with arguments.
13727compiler=$CC
13728
13729
13730  # save warnings/boilerplate of simple test code
13731  ac_outfile=conftest.$ac_objext
13732echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13733eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13734_lt_compiler_boilerplate=`cat conftest.err`
13735$RM conftest*
13736
13737  ac_outfile=conftest.$ac_objext
13738echo "$lt_simple_link_test_code" >conftest.$ac_ext
13739eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13740_lt_linker_boilerplate=`cat conftest.err`
13741$RM -r conftest*
13742
13743
13744  # Allow CC to be a program name with arguments.
13745  lt_save_CC=$CC
13746  lt_save_CFLAGS=$CFLAGS
13747  lt_save_LD=$LD
13748  lt_save_GCC=$GCC
13749  GCC=$GXX
13750  lt_save_with_gnu_ld=$with_gnu_ld
13751  lt_save_path_LD=$lt_cv_path_LD
13752  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13753    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13754  else
13755    $as_unset lt_cv_prog_gnu_ld
13756  fi
13757  if test -n "${lt_cv_path_LDCXX+set}"; then
13758    lt_cv_path_LD=$lt_cv_path_LDCXX
13759  else
13760    $as_unset lt_cv_path_LD
13761  fi
13762  test -z "${LDCXX+set}" || LD=$LDCXX
13763  CC=${CXX-"c++"}
13764  CFLAGS=$CXXFLAGS
13765  compiler=$CC
13766  compiler_CXX=$CC
13767  func_cc_basename $compiler
13768cc_basename=$func_cc_basename_result
13769
13770
13771  if test -n "$compiler"; then
13772    # We don't want -fno-exception when compiling C++ code, so set the
13773    # no_builtin_flag separately
13774    if test yes = "$GXX"; then
13775      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13776    else
13777      lt_prog_compiler_no_builtin_flag_CXX=
13778    fi
13779
13780    if test yes = "$GXX"; then
13781      # Set up default GNU C++ configuration
13782
13783
13784
13785# Check whether --with-gnu-ld was given.
13786if test "${with_gnu_ld+set}" = set; then :
13787  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13788else
13789  with_gnu_ld=no
13790fi
13791
13792ac_prog=ld
13793if test yes = "$GCC"; then
13794  # Check if gcc -print-prog-name=ld gives a path.
13795  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13796$as_echo_n "checking for ld used by $CC... " >&6; }
13797  case $host in
13798  *-*-mingw*)
13799    # gcc leaves a trailing carriage return, which upsets mingw
13800    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13801  *)
13802    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13803  esac
13804  case $ac_prog in
13805    # Accept absolute paths.
13806    [\\/]* | ?:[\\/]*)
13807      re_direlt='/[^/][^/]*/\.\./'
13808      # Canonicalize the pathname of ld
13809      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13810      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13811	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13812      done
13813      test -z "$LD" && LD=$ac_prog
13814      ;;
13815  "")
13816    # If it fails, then pretend we aren't using GCC.
13817    ac_prog=ld
13818    ;;
13819  *)
13820    # If it is relative, then search for the first ld in PATH.
13821    with_gnu_ld=unknown
13822    ;;
13823  esac
13824elif test yes = "$with_gnu_ld"; then
13825  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13826$as_echo_n "checking for GNU ld... " >&6; }
13827else
13828  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13829$as_echo_n "checking for non-GNU ld... " >&6; }
13830fi
13831if ${lt_cv_path_LD+:} false; then :
13832  $as_echo_n "(cached) " >&6
13833else
13834  if test -z "$LD"; then
13835  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13836  for ac_dir in $PATH; do
13837    IFS=$lt_save_ifs
13838    test -z "$ac_dir" && ac_dir=.
13839    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13840      lt_cv_path_LD=$ac_dir/$ac_prog
13841      # Check to see if the program is GNU ld.  I'd rather use --version,
13842      # but apparently some variants of GNU ld only accept -v.
13843      # Break only if it was the GNU/non-GNU ld that we prefer.
13844      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13845      *GNU* | *'with BFD'*)
13846	test no != "$with_gnu_ld" && break
13847	;;
13848      *)
13849	test yes != "$with_gnu_ld" && break
13850	;;
13851      esac
13852    fi
13853  done
13854  IFS=$lt_save_ifs
13855else
13856  lt_cv_path_LD=$LD # Let the user override the test with a path.
13857fi
13858fi
13859
13860LD=$lt_cv_path_LD
13861if test -n "$LD"; then
13862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13863$as_echo "$LD" >&6; }
13864else
13865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13866$as_echo "no" >&6; }
13867fi
13868test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13870$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13871if ${lt_cv_prog_gnu_ld+:} false; then :
13872  $as_echo_n "(cached) " >&6
13873else
13874  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13875case `$LD -v 2>&1 </dev/null` in
13876*GNU* | *'with BFD'*)
13877  lt_cv_prog_gnu_ld=yes
13878  ;;
13879*)
13880  lt_cv_prog_gnu_ld=no
13881  ;;
13882esac
13883fi
13884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13885$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13886with_gnu_ld=$lt_cv_prog_gnu_ld
13887
13888
13889
13890
13891
13892
13893
13894      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13895      # archiving commands below assume that GNU ld is being used.
13896      if test yes = "$with_gnu_ld"; then
13897        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13898        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'
13899
13900        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13901        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13902
13903        # If archive_cmds runs LD, not CC, wlarc should be empty
13904        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13905        #     investigate it a little bit more. (MM)
13906        wlarc='$wl'
13907
13908        # ancient GNU ld didn't support --whole-archive et. al.
13909        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13910	  $GREP 'no-whole-archive' > /dev/null; then
13911          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13912        else
13913          whole_archive_flag_spec_CXX=
13914        fi
13915      else
13916        with_gnu_ld=no
13917        wlarc=
13918
13919        # A generic and very simple default shared library creation
13920        # command for GNU C++ for the case where it uses the native
13921        # linker, instead of GNU ld.  If possible, this setting should
13922        # overridden to take advantage of the native linker features on
13923        # the platform it is being used on.
13924        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13925      fi
13926
13927      # Commands to make compiler produce verbose output that lists
13928      # what "hidden" libraries, object files and flags are used when
13929      # linking a shared library.
13930      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13931
13932    else
13933      GXX=no
13934      with_gnu_ld=no
13935      wlarc=
13936    fi
13937
13938    # PORTME: fill in a description of your system's C++ link characteristics
13939    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13940$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13941    ld_shlibs_CXX=yes
13942    case $host_os in
13943      aix3*)
13944        # FIXME: insert proper C++ library support
13945        ld_shlibs_CXX=no
13946        ;;
13947      aix[4-9]*)
13948        if test ia64 = "$host_cpu"; then
13949          # On IA64, the linker does run time linking by default, so we don't
13950          # have to do anything special.
13951          aix_use_runtimelinking=no
13952          exp_sym_flag='-Bexport'
13953          no_entry_flag=
13954        else
13955          aix_use_runtimelinking=no
13956
13957          # Test if we are trying to use run time linking or normal
13958          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13959          # have runtime linking enabled, and use it for executables.
13960          # For shared libraries, we enable/disable runtime linking
13961          # depending on the kind of the shared library created -
13962          # when "with_aix_soname,aix_use_runtimelinking" is:
13963          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13964          # "aix,yes"  lib.so          shared, rtl:yes, for executables
13965          #            lib.a           static archive
13966          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13967          #            lib.a(lib.so.V) shared, rtl:no,  for executables
13968          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13969          #            lib.a(lib.so.V) shared, rtl:no
13970          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13971          #            lib.a           static archive
13972          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13973	    for ld_flag in $LDFLAGS; do
13974	      case $ld_flag in
13975	      *-brtl*)
13976	        aix_use_runtimelinking=yes
13977	        break
13978	        ;;
13979	      esac
13980	    done
13981	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13982	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
13983	      # so we don't have lib.a shared libs to link our executables.
13984	      # We have to force runtime linking in this case.
13985	      aix_use_runtimelinking=yes
13986	      LDFLAGS="$LDFLAGS -Wl,-brtl"
13987	    fi
13988	    ;;
13989          esac
13990
13991          exp_sym_flag='-bexport'
13992          no_entry_flag='-bnoentry'
13993        fi
13994
13995        # When large executables or shared objects are built, AIX ld can
13996        # have problems creating the table of contents.  If linking a library
13997        # or program results in "error TOC overflow" add -mminimal-toc to
13998        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13999        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14000
14001        archive_cmds_CXX=''
14002        hardcode_direct_CXX=yes
14003        hardcode_direct_absolute_CXX=yes
14004        hardcode_libdir_separator_CXX=':'
14005        link_all_deplibs_CXX=yes
14006        file_list_spec_CXX='$wl-f,'
14007        case $with_aix_soname,$aix_use_runtimelinking in
14008        aix,*) ;;	# no import file
14009        svr4,* | *,yes) # use import file
14010          # The Import File defines what to hardcode.
14011          hardcode_direct_CXX=no
14012          hardcode_direct_absolute_CXX=no
14013          ;;
14014        esac
14015
14016        if test yes = "$GXX"; then
14017          case $host_os in aix4.[012]|aix4.[012].*)
14018          # We only want to do this on AIX 4.2 and lower, the check
14019          # below for broken collect2 doesn't work under 4.3+
14020	  collect2name=`$CC -print-prog-name=collect2`
14021	  if test -f "$collect2name" &&
14022	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14023	  then
14024	    # We have reworked collect2
14025	    :
14026	  else
14027	    # We have old collect2
14028	    hardcode_direct_CXX=unsupported
14029	    # It fails to find uninstalled libraries when the uninstalled
14030	    # path is not listed in the libpath.  Setting hardcode_minus_L
14031	    # to unsupported forces relinking
14032	    hardcode_minus_L_CXX=yes
14033	    hardcode_libdir_flag_spec_CXX='-L$libdir'
14034	    hardcode_libdir_separator_CXX=
14035	  fi
14036          esac
14037          shared_flag='-shared'
14038	  if test yes = "$aix_use_runtimelinking"; then
14039	    shared_flag=$shared_flag' $wl-G'
14040	  fi
14041	  # Need to ensure runtime linking is disabled for the traditional
14042	  # shared library, or the linker may eventually find shared libraries
14043	  # /with/ Import File - we do not want to mix them.
14044	  shared_flag_aix='-shared'
14045	  shared_flag_svr4='-shared $wl-G'
14046        else
14047          # not using gcc
14048          if test ia64 = "$host_cpu"; then
14049	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14050	  # chokes on -Wl,-G. The following line is correct:
14051	  shared_flag='-G'
14052          else
14053	    if test yes = "$aix_use_runtimelinking"; then
14054	      shared_flag='$wl-G'
14055	    else
14056	      shared_flag='$wl-bM:SRE'
14057	    fi
14058	    shared_flag_aix='$wl-bM:SRE'
14059	    shared_flag_svr4='$wl-G'
14060          fi
14061        fi
14062
14063        export_dynamic_flag_spec_CXX='$wl-bexpall'
14064        # It seems that -bexpall does not export symbols beginning with
14065        # underscore (_), so it is better to generate a list of symbols to
14066	# export.
14067        always_export_symbols_CXX=yes
14068	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14069          # Warning - without using the other runtime loading flags (-brtl),
14070          # -berok will link without error, but may produce a broken library.
14071          # The "-G" linker flag allows undefined symbols.
14072          no_undefined_flag_CXX='-bernotok'
14073          # Determine the default libpath from the value encoded in an empty
14074          # executable.
14075          if test set = "${lt_cv_aix_libpath+set}"; then
14076  aix_libpath=$lt_cv_aix_libpath
14077else
14078  if ${lt_cv_aix_libpath__CXX+:} false; then :
14079  $as_echo_n "(cached) " >&6
14080else
14081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14082/* end confdefs.h.  */
14083
14084int
14085main ()
14086{
14087
14088  ;
14089  return 0;
14090}
14091_ACEOF
14092if ac_fn_cxx_try_link "$LINENO"; then :
14093
14094  lt_aix_libpath_sed='
14095      /Import File Strings/,/^$/ {
14096	  /^0/ {
14097	      s/^0  *\([^ ]*\) *$/\1/
14098	      p
14099	  }
14100      }'
14101  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14102  # Check for a 64-bit object if we didn't find anything.
14103  if test -z "$lt_cv_aix_libpath__CXX"; then
14104    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14105  fi
14106fi
14107rm -f core conftest.err conftest.$ac_objext \
14108    conftest$ac_exeext conftest.$ac_ext
14109  if test -z "$lt_cv_aix_libpath__CXX"; then
14110    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14111  fi
14112
14113fi
14114
14115  aix_libpath=$lt_cv_aix_libpath__CXX
14116fi
14117
14118          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14119
14120          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14121        else
14122          if test ia64 = "$host_cpu"; then
14123	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14124	    allow_undefined_flag_CXX="-z nodefs"
14125	    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"
14126          else
14127	    # Determine the default libpath from the value encoded in an
14128	    # empty executable.
14129	    if test set = "${lt_cv_aix_libpath+set}"; then
14130  aix_libpath=$lt_cv_aix_libpath
14131else
14132  if ${lt_cv_aix_libpath__CXX+:} false; then :
14133  $as_echo_n "(cached) " >&6
14134else
14135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14136/* end confdefs.h.  */
14137
14138int
14139main ()
14140{
14141
14142  ;
14143  return 0;
14144}
14145_ACEOF
14146if ac_fn_cxx_try_link "$LINENO"; then :
14147
14148  lt_aix_libpath_sed='
14149      /Import File Strings/,/^$/ {
14150	  /^0/ {
14151	      s/^0  *\([^ ]*\) *$/\1/
14152	      p
14153	  }
14154      }'
14155  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14156  # Check for a 64-bit object if we didn't find anything.
14157  if test -z "$lt_cv_aix_libpath__CXX"; then
14158    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14159  fi
14160fi
14161rm -f core conftest.err conftest.$ac_objext \
14162    conftest$ac_exeext conftest.$ac_ext
14163  if test -z "$lt_cv_aix_libpath__CXX"; then
14164    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14165  fi
14166
14167fi
14168
14169  aix_libpath=$lt_cv_aix_libpath__CXX
14170fi
14171
14172	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14173	    # Warning - without using the other run time loading flags,
14174	    # -berok will link without error, but may produce a broken library.
14175	    no_undefined_flag_CXX=' $wl-bernotok'
14176	    allow_undefined_flag_CXX=' $wl-berok'
14177	    if test yes = "$with_gnu_ld"; then
14178	      # We only use this code for GNU lds that support --whole-archive.
14179	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14180	    else
14181	      # Exported symbols can be pulled into shared objects from archives
14182	      whole_archive_flag_spec_CXX='$convenience'
14183	    fi
14184	    archive_cmds_need_lc_CXX=yes
14185	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14186	    # -brtl affects multiple linker settings, -berok does not and is overridden later
14187	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14188	    if test svr4 != "$with_aix_soname"; then
14189	      # This is similar to how AIX traditionally builds its shared
14190	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14191	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14192	    fi
14193	    if test aix != "$with_aix_soname"; then
14194	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14195	    else
14196	      # used by -dlpreopen to get the symbols
14197	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14198	    fi
14199	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14200          fi
14201        fi
14202        ;;
14203
14204      beos*)
14205	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14206	  allow_undefined_flag_CXX=unsupported
14207	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14208	  # support --undefined.  This deserves some investigation.  FIXME
14209	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14210	else
14211	  ld_shlibs_CXX=no
14212	fi
14213	;;
14214
14215      chorus*)
14216        case $cc_basename in
14217          *)
14218	  # FIXME: insert proper C++ library support
14219	  ld_shlibs_CXX=no
14220	  ;;
14221        esac
14222        ;;
14223
14224      cygwin* | mingw* | pw32* | cegcc*)
14225	case $GXX,$cc_basename in
14226	,cl* | no,cl*)
14227	  # Native MSVC
14228	  # hardcode_libdir_flag_spec is actually meaningless, as there is
14229	  # no search path for DLLs.
14230	  hardcode_libdir_flag_spec_CXX=' '
14231	  allow_undefined_flag_CXX=unsupported
14232	  always_export_symbols_CXX=yes
14233	  file_list_spec_CXX='@'
14234	  # Tell ltmain to make .lib files, not .a files.
14235	  libext=lib
14236	  # Tell ltmain to make .dll files, not .so files.
14237	  shrext_cmds=.dll
14238	  # FIXME: Setting linknames here is a bad hack.
14239	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14240	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14241              cp "$export_symbols" "$output_objdir/$soname.def";
14242              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14243            else
14244              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14245            fi~
14246            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14247            linknames='
14248	  # The linker will not automatically build a static lib if we build a DLL.
14249	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14250	  enable_shared_with_static_runtimes_CXX=yes
14251	  # Don't use ranlib
14252	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
14253	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14254            lt_tool_outputfile="@TOOL_OUTPUT@"~
14255            case $lt_outputfile in
14256              *.exe|*.EXE) ;;
14257              *)
14258                lt_outputfile=$lt_outputfile.exe
14259                lt_tool_outputfile=$lt_tool_outputfile.exe
14260                ;;
14261            esac~
14262            func_to_tool_file "$lt_outputfile"~
14263            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14264              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14265              $RM "$lt_outputfile.manifest";
14266            fi'
14267	  ;;
14268	*)
14269	  # g++
14270	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14271	  # as there is no search path for DLLs.
14272	  hardcode_libdir_flag_spec_CXX='-L$libdir'
14273	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14274	  allow_undefined_flag_CXX=unsupported
14275	  always_export_symbols_CXX=no
14276	  enable_shared_with_static_runtimes_CXX=yes
14277
14278	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14279	    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'
14280	    # If the export-symbols file already is a .def file, use it as
14281	    # is; otherwise, prepend EXPORTS...
14282	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14283              cp $export_symbols $output_objdir/$soname.def;
14284            else
14285              echo EXPORTS > $output_objdir/$soname.def;
14286              cat $export_symbols >> $output_objdir/$soname.def;
14287            fi~
14288            $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'
14289	  else
14290	    ld_shlibs_CXX=no
14291	  fi
14292	  ;;
14293	esac
14294	;;
14295      darwin* | rhapsody*)
14296
14297
14298  archive_cmds_need_lc_CXX=no
14299  hardcode_direct_CXX=no
14300  hardcode_automatic_CXX=yes
14301  hardcode_shlibpath_var_CXX=unsupported
14302  if test yes = "$lt_cv_ld_force_load"; then
14303    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\"`'
14304
14305  else
14306    whole_archive_flag_spec_CXX=''
14307  fi
14308  link_all_deplibs_CXX=yes
14309  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14310  case $cc_basename in
14311     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14312     *) _lt_dar_can_shared=$GCC ;;
14313  esac
14314  if test yes = "$_lt_dar_can_shared"; then
14315    output_verbose_link_cmd=func_echo_all
14316    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"
14317    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14318    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"
14319    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"
14320       if test yes != "$lt_cv_apple_cc_single_mod"; then
14321      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"
14322      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"
14323    fi
14324
14325  else
14326  ld_shlibs_CXX=no
14327  fi
14328
14329	;;
14330
14331      os2*)
14332	hardcode_libdir_flag_spec_CXX='-L$libdir'
14333	hardcode_minus_L_CXX=yes
14334	allow_undefined_flag_CXX=unsupported
14335	shrext_cmds=.dll
14336	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14337	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14338	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14339	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14340	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14341	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14342	  emximp -o $lib $output_objdir/$libname.def'
14343	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14344	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14345	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14346	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14347	  prefix_cmds="$SED"~
14348	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
14349	    prefix_cmds="$prefix_cmds -e 1d";
14350	  fi~
14351	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14352	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14353	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14354	  emximp -o $lib $output_objdir/$libname.def'
14355	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14356	enable_shared_with_static_runtimes_CXX=yes
14357	;;
14358
14359      dgux*)
14360        case $cc_basename in
14361          ec++*)
14362	    # FIXME: insert proper C++ library support
14363	    ld_shlibs_CXX=no
14364	    ;;
14365          ghcx*)
14366	    # Green Hills C++ Compiler
14367	    # FIXME: insert proper C++ library support
14368	    ld_shlibs_CXX=no
14369	    ;;
14370          *)
14371	    # FIXME: insert proper C++ library support
14372	    ld_shlibs_CXX=no
14373	    ;;
14374        esac
14375        ;;
14376
14377      freebsd2.*)
14378        # C++ shared libraries reported to be fairly broken before
14379	# switch to ELF
14380        ld_shlibs_CXX=no
14381        ;;
14382
14383      freebsd-elf*)
14384        archive_cmds_need_lc_CXX=no
14385        ;;
14386
14387      freebsd* | dragonfly*)
14388        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14389        # conventions
14390        ld_shlibs_CXX=yes
14391        ;;
14392
14393      haiku*)
14394        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14395        link_all_deplibs_CXX=yes
14396        ;;
14397
14398      hpux9*)
14399        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14400        hardcode_libdir_separator_CXX=:
14401        export_dynamic_flag_spec_CXX='$wl-E'
14402        hardcode_direct_CXX=yes
14403        hardcode_minus_L_CXX=yes # Not in the search PATH,
14404				             # but as the default
14405				             # location of the library.
14406
14407        case $cc_basename in
14408          CC*)
14409            # FIXME: insert proper C++ library support
14410            ld_shlibs_CXX=no
14411            ;;
14412          aCC*)
14413            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14414            # Commands to make compiler produce verbose output that lists
14415            # what "hidden" libraries, object files and flags are used when
14416            # linking a shared library.
14417            #
14418            # There doesn't appear to be a way to prevent this compiler from
14419            # explicitly linking system object files so we need to strip them
14420            # from the output so that they don't get included in the library
14421            # dependencies.
14422            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"'
14423            ;;
14424          *)
14425            if test yes = "$GXX"; then
14426              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14427            else
14428              # FIXME: insert proper C++ library support
14429              ld_shlibs_CXX=no
14430            fi
14431            ;;
14432        esac
14433        ;;
14434
14435      hpux10*|hpux11*)
14436        if test no = "$with_gnu_ld"; then
14437	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14438	  hardcode_libdir_separator_CXX=:
14439
14440          case $host_cpu in
14441            hppa*64*|ia64*)
14442              ;;
14443            *)
14444	      export_dynamic_flag_spec_CXX='$wl-E'
14445              ;;
14446          esac
14447        fi
14448        case $host_cpu in
14449          hppa*64*|ia64*)
14450            hardcode_direct_CXX=no
14451            hardcode_shlibpath_var_CXX=no
14452            ;;
14453          *)
14454            hardcode_direct_CXX=yes
14455            hardcode_direct_absolute_CXX=yes
14456            hardcode_minus_L_CXX=yes # Not in the search PATH,
14457					         # but as the default
14458					         # location of the library.
14459            ;;
14460        esac
14461
14462        case $cc_basename in
14463          CC*)
14464	    # FIXME: insert proper C++ library support
14465	    ld_shlibs_CXX=no
14466	    ;;
14467          aCC*)
14468	    case $host_cpu in
14469	      hppa*64*)
14470	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14471	        ;;
14472	      ia64*)
14473	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14474	        ;;
14475	      *)
14476	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14477	        ;;
14478	    esac
14479	    # Commands to make compiler produce verbose output that lists
14480	    # what "hidden" libraries, object files and flags are used when
14481	    # linking a shared library.
14482	    #
14483	    # There doesn't appear to be a way to prevent this compiler from
14484	    # explicitly linking system object files so we need to strip them
14485	    # from the output so that they don't get included in the library
14486	    # dependencies.
14487	    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"'
14488	    ;;
14489          *)
14490	    if test yes = "$GXX"; then
14491	      if test no = "$with_gnu_ld"; then
14492	        case $host_cpu in
14493	          hppa*64*)
14494	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14495	            ;;
14496	          ia64*)
14497	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14498	            ;;
14499	          *)
14500	            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'
14501	            ;;
14502	        esac
14503	      fi
14504	    else
14505	      # FIXME: insert proper C++ library support
14506	      ld_shlibs_CXX=no
14507	    fi
14508	    ;;
14509        esac
14510        ;;
14511
14512      interix[3-9]*)
14513	hardcode_direct_CXX=no
14514	hardcode_shlibpath_var_CXX=no
14515	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14516	export_dynamic_flag_spec_CXX='$wl-E'
14517	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14518	# Instead, shared libraries are loaded at an image base (0x10000000 by
14519	# default) and relocated if they conflict, which is a slow very memory
14520	# consuming and fragmenting process.  To avoid this, we pick a random,
14521	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14522	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14523	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'
14524	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'
14525	;;
14526      irix5* | irix6*)
14527        case $cc_basename in
14528          CC*)
14529	    # SGI C++
14530	    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'
14531
14532	    # Archives containing C++ object files must be created using
14533	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14534	    # necessary to make sure instantiated templates are included
14535	    # in the archive.
14536	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14537	    ;;
14538          *)
14539	    if test yes = "$GXX"; then
14540	      if test no = "$with_gnu_ld"; then
14541	        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'
14542	      else
14543	        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'
14544	      fi
14545	    fi
14546	    link_all_deplibs_CXX=yes
14547	    ;;
14548        esac
14549        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14550        hardcode_libdir_separator_CXX=:
14551        inherit_rpath_CXX=yes
14552        ;;
14553
14554      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14555        case $cc_basename in
14556          KCC*)
14557	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14558
14559	    # KCC will only create a shared library if the output file
14560	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14561	    # to its proper name (with version) after linking.
14562	    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'
14563	    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'
14564	    # Commands to make compiler produce verbose output that lists
14565	    # what "hidden" libraries, object files and flags are used when
14566	    # linking a shared library.
14567	    #
14568	    # There doesn't appear to be a way to prevent this compiler from
14569	    # explicitly linking system object files so we need to strip them
14570	    # from the output so that they don't get included in the library
14571	    # dependencies.
14572	    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"'
14573
14574	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14575	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14576
14577	    # Archives containing C++ object files must be created using
14578	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14579	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14580	    ;;
14581	  icpc* | ecpc* )
14582	    # Intel C++
14583	    with_gnu_ld=yes
14584	    # version 8.0 and above of icpc choke on multiply defined symbols
14585	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14586	    # earlier do not add the objects themselves.
14587	    case `$CC -V 2>&1` in
14588	      *"Version 7."*)
14589	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14590		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'
14591		;;
14592	      *)  # Version 8.0 or newer
14593	        tmp_idyn=
14594	        case $host_cpu in
14595		  ia64*) tmp_idyn=' -i_dynamic';;
14596		esac
14597	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14598		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'
14599		;;
14600	    esac
14601	    archive_cmds_need_lc_CXX=no
14602	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14603	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14604	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14605	    ;;
14606          pgCC* | pgcpp*)
14607            # Portland Group C++ compiler
14608	    case `$CC -V` in
14609	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14610	      prelink_cmds_CXX='tpldir=Template.dir~
14611               rm -rf $tpldir~
14612               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14613               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14614	      old_archive_cmds_CXX='tpldir=Template.dir~
14615                rm -rf $tpldir~
14616                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14617                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14618                $RANLIB $oldlib'
14619	      archive_cmds_CXX='tpldir=Template.dir~
14620                rm -rf $tpldir~
14621                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14622                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14623	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14624                rm -rf $tpldir~
14625                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14626                $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'
14627	      ;;
14628	    *) # Version 6 and above use weak symbols
14629	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14630	      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'
14631	      ;;
14632	    esac
14633
14634	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14635	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14636	    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'
14637            ;;
14638	  cxx*)
14639	    # Compaq C++
14640	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14641	    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'
14642
14643	    runpath_var=LD_RUN_PATH
14644	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14645	    hardcode_libdir_separator_CXX=:
14646
14647	    # Commands to make compiler produce verbose output that lists
14648	    # what "hidden" libraries, object files and flags are used when
14649	    # linking a shared library.
14650	    #
14651	    # There doesn't appear to be a way to prevent this compiler from
14652	    # explicitly linking system object files so we need to strip them
14653	    # from the output so that they don't get included in the library
14654	    # dependencies.
14655	    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'
14656	    ;;
14657	  xl* | mpixl* | bgxl*)
14658	    # IBM XL 8.0 on PPC, with GNU ld
14659	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14660	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14661	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14662	    if test yes = "$supports_anon_versioning"; then
14663	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14664                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14665                echo "local: *; };" >> $output_objdir/$libname.ver~
14666                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14667	    fi
14668	    ;;
14669	  *)
14670	    case `$CC -V 2>&1 | sed 5q` in
14671	    *Sun\ C*)
14672	      # Sun C++ 5.9
14673	      no_undefined_flag_CXX=' -zdefs'
14674	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14675	      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'
14676	      hardcode_libdir_flag_spec_CXX='-R$libdir'
14677	      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'
14678	      compiler_needs_object_CXX=yes
14679
14680	      # Not sure whether something based on
14681	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14682	      # would be better.
14683	      output_verbose_link_cmd='func_echo_all'
14684
14685	      # Archives containing C++ object files must be created using
14686	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14687	      # necessary to make sure instantiated templates are included
14688	      # in the archive.
14689	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14690	      ;;
14691	    esac
14692	    ;;
14693	esac
14694	;;
14695
14696      lynxos*)
14697        # FIXME: insert proper C++ library support
14698	ld_shlibs_CXX=no
14699	;;
14700
14701      m88k*)
14702        # FIXME: insert proper C++ library support
14703        ld_shlibs_CXX=no
14704	;;
14705
14706      mvs*)
14707        case $cc_basename in
14708          cxx*)
14709	    # FIXME: insert proper C++ library support
14710	    ld_shlibs_CXX=no
14711	    ;;
14712	  *)
14713	    # FIXME: insert proper C++ library support
14714	    ld_shlibs_CXX=no
14715	    ;;
14716	esac
14717	;;
14718
14719      netbsd*)
14720        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14721	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14722	  wlarc=
14723	  hardcode_libdir_flag_spec_CXX='-R$libdir'
14724	  hardcode_direct_CXX=yes
14725	  hardcode_shlibpath_var_CXX=no
14726	fi
14727	# Workaround some broken pre-1.5 toolchains
14728	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14729	;;
14730
14731      *nto* | *qnx*)
14732        ld_shlibs_CXX=yes
14733	;;
14734
14735      openbsd* | bitrig*)
14736	if test -f /usr/libexec/ld.so; then
14737	  hardcode_direct_CXX=yes
14738	  hardcode_shlibpath_var_CXX=no
14739	  hardcode_direct_absolute_CXX=yes
14740	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14741	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14742	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14743	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14744	    export_dynamic_flag_spec_CXX='$wl-E'
14745	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14746	  fi
14747	  output_verbose_link_cmd=func_echo_all
14748	else
14749	  ld_shlibs_CXX=no
14750	fi
14751	;;
14752
14753      osf3* | osf4* | osf5*)
14754        case $cc_basename in
14755          KCC*)
14756	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14757
14758	    # KCC will only create a shared library if the output file
14759	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14760	    # to its proper name (with version) after linking.
14761	    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'
14762
14763	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14764	    hardcode_libdir_separator_CXX=:
14765
14766	    # Archives containing C++ object files must be created using
14767	    # the KAI C++ compiler.
14768	    case $host in
14769	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14770	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14771	    esac
14772	    ;;
14773          RCC*)
14774	    # Rational C++ 2.4.1
14775	    # FIXME: insert proper C++ library support
14776	    ld_shlibs_CXX=no
14777	    ;;
14778          cxx*)
14779	    case $host in
14780	      osf3*)
14781	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14782	        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'
14783	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14784		;;
14785	      *)
14786	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14787	        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'
14788	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14789                  echo "-hidden">> $lib.exp~
14790                  $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~
14791                  $RM $lib.exp'
14792	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14793		;;
14794	    esac
14795
14796	    hardcode_libdir_separator_CXX=:
14797
14798	    # Commands to make compiler produce verbose output that lists
14799	    # what "hidden" libraries, object files and flags are used when
14800	    # linking a shared library.
14801	    #
14802	    # There doesn't appear to be a way to prevent this compiler from
14803	    # explicitly linking system object files so we need to strip them
14804	    # from the output so that they don't get included in the library
14805	    # dependencies.
14806	    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"'
14807	    ;;
14808	  *)
14809	    if test yes,no = "$GXX,$with_gnu_ld"; then
14810	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14811	      case $host in
14812	        osf3*)
14813	          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'
14814		  ;;
14815	        *)
14816	          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'
14817		  ;;
14818	      esac
14819
14820	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14821	      hardcode_libdir_separator_CXX=:
14822
14823	      # Commands to make compiler produce verbose output that lists
14824	      # what "hidden" libraries, object files and flags are used when
14825	      # linking a shared library.
14826	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14827
14828	    else
14829	      # FIXME: insert proper C++ library support
14830	      ld_shlibs_CXX=no
14831	    fi
14832	    ;;
14833        esac
14834        ;;
14835
14836      psos*)
14837        # FIXME: insert proper C++ library support
14838        ld_shlibs_CXX=no
14839        ;;
14840
14841      sunos4*)
14842        case $cc_basename in
14843          CC*)
14844	    # Sun C++ 4.x
14845	    # FIXME: insert proper C++ library support
14846	    ld_shlibs_CXX=no
14847	    ;;
14848          lcc*)
14849	    # Lucid
14850	    # FIXME: insert proper C++ library support
14851	    ld_shlibs_CXX=no
14852	    ;;
14853          *)
14854	    # FIXME: insert proper C++ library support
14855	    ld_shlibs_CXX=no
14856	    ;;
14857        esac
14858        ;;
14859
14860      solaris*)
14861        case $cc_basename in
14862          CC* | sunCC*)
14863	    # Sun C++ 4.2, 5.x and Centerline C++
14864            archive_cmds_need_lc_CXX=yes
14865	    no_undefined_flag_CXX=' -zdefs'
14866	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14867	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14868              $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'
14869
14870	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14871	    hardcode_shlibpath_var_CXX=no
14872	    case $host_os in
14873	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14874	      *)
14875		# The compiler driver will combine and reorder linker options,
14876		# but understands '-z linker_flag'.
14877	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14878		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14879	        ;;
14880	    esac
14881	    link_all_deplibs_CXX=yes
14882
14883	    output_verbose_link_cmd='func_echo_all'
14884
14885	    # Archives containing C++ object files must be created using
14886	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14887	    # necessary to make sure instantiated templates are included
14888	    # in the archive.
14889	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14890	    ;;
14891          gcx*)
14892	    # Green Hills C++ Compiler
14893	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14894
14895	    # The C++ compiler must be used to create the archive.
14896	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14897	    ;;
14898          *)
14899	    # GNU C++ compiler with Solaris linker
14900	    if test yes,no = "$GXX,$with_gnu_ld"; then
14901	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
14902	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14903	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14904	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14905                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14906
14907	        # Commands to make compiler produce verbose output that lists
14908	        # what "hidden" libraries, object files and flags are used when
14909	        # linking a shared library.
14910	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14911	      else
14912	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
14913	        # platform.
14914	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14915	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14916                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14917
14918	        # Commands to make compiler produce verbose output that lists
14919	        # what "hidden" libraries, object files and flags are used when
14920	        # linking a shared library.
14921	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14922	      fi
14923
14924	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14925	      case $host_os in
14926		solaris2.[0-5] | solaris2.[0-5].*) ;;
14927		*)
14928		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14929		  ;;
14930	      esac
14931	    fi
14932	    ;;
14933        esac
14934        ;;
14935
14936    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14937      no_undefined_flag_CXX='$wl-z,text'
14938      archive_cmds_need_lc_CXX=no
14939      hardcode_shlibpath_var_CXX=no
14940      runpath_var='LD_RUN_PATH'
14941
14942      case $cc_basename in
14943        CC*)
14944	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14945	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14946	  ;;
14947	*)
14948	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14949	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14950	  ;;
14951      esac
14952      ;;
14953
14954      sysv5* | sco3.2v5* | sco5v6*)
14955	# Note: We CANNOT use -z defs as we might desire, because we do not
14956	# link with -lc, and that would cause any symbols used from libc to
14957	# always be unresolved, which means just about no library would
14958	# ever link correctly.  If we're not using GNU ld we use -z text
14959	# though, which does catch some bad symbols but isn't as heavy-handed
14960	# as -z defs.
14961	no_undefined_flag_CXX='$wl-z,text'
14962	allow_undefined_flag_CXX='$wl-z,nodefs'
14963	archive_cmds_need_lc_CXX=no
14964	hardcode_shlibpath_var_CXX=no
14965	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14966	hardcode_libdir_separator_CXX=':'
14967	link_all_deplibs_CXX=yes
14968	export_dynamic_flag_spec_CXX='$wl-Bexport'
14969	runpath_var='LD_RUN_PATH'
14970
14971	case $cc_basename in
14972          CC*)
14973	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14974	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14975	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14976              '"$old_archive_cmds_CXX"
14977	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14978              '"$reload_cmds_CXX"
14979	    ;;
14980	  *)
14981	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14982	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14983	    ;;
14984	esac
14985      ;;
14986
14987      tandem*)
14988        case $cc_basename in
14989          NCC*)
14990	    # NonStop-UX NCC 3.20
14991	    # FIXME: insert proper C++ library support
14992	    ld_shlibs_CXX=no
14993	    ;;
14994          *)
14995	    # FIXME: insert proper C++ library support
14996	    ld_shlibs_CXX=no
14997	    ;;
14998        esac
14999        ;;
15000
15001      vxworks*)
15002        # FIXME: insert proper C++ library support
15003        ld_shlibs_CXX=no
15004        ;;
15005
15006      *)
15007        # FIXME: insert proper C++ library support
15008        ld_shlibs_CXX=no
15009        ;;
15010    esac
15011
15012    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15013$as_echo "$ld_shlibs_CXX" >&6; }
15014    test no = "$ld_shlibs_CXX" && can_build_shared=no
15015
15016    GCC_CXX=$GXX
15017    LD_CXX=$LD
15018
15019    ## CAVEAT EMPTOR:
15020    ## There is no encapsulation within the following macros, do not change
15021    ## the running order or otherwise move them around unless you know exactly
15022    ## what you are doing...
15023    # Dependencies to place before and after the object being linked:
15024predep_objects_CXX=
15025postdep_objects_CXX=
15026predeps_CXX=
15027postdeps_CXX=
15028compiler_lib_search_path_CXX=
15029
15030cat > conftest.$ac_ext <<_LT_EOF
15031class Foo
15032{
15033public:
15034  Foo (void) { a = 0; }
15035private:
15036  int a;
15037};
15038_LT_EOF
15039
15040
15041_lt_libdeps_save_CFLAGS=$CFLAGS
15042case "$CC $CFLAGS " in #(
15043*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15044*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15045*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15046esac
15047
15048if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15049  (eval $ac_compile) 2>&5
15050  ac_status=$?
15051  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15052  test $ac_status = 0; }; then
15053  # Parse the compiler output and extract the necessary
15054  # objects, libraries and library flags.
15055
15056  # Sentinel used to keep track of whether or not we are before
15057  # the conftest object file.
15058  pre_test_object_deps_done=no
15059
15060  for p in `eval "$output_verbose_link_cmd"`; do
15061    case $prev$p in
15062
15063    -L* | -R* | -l*)
15064       # Some compilers place space between "-{L,R}" and the path.
15065       # Remove the space.
15066       if test x-L = "$p" ||
15067          test x-R = "$p"; then
15068	 prev=$p
15069	 continue
15070       fi
15071
15072       # Expand the sysroot to ease extracting the directories later.
15073       if test -z "$prev"; then
15074         case $p in
15075         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15076         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15077         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15078         esac
15079       fi
15080       case $p in
15081       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15082       esac
15083       if test no = "$pre_test_object_deps_done"; then
15084	 case $prev in
15085	 -L | -R)
15086	   # Internal compiler library paths should come after those
15087	   # provided the user.  The postdeps already come after the
15088	   # user supplied libs so there is no need to process them.
15089	   if test -z "$compiler_lib_search_path_CXX"; then
15090	     compiler_lib_search_path_CXX=$prev$p
15091	   else
15092	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15093	   fi
15094	   ;;
15095	 # The "-l" case would never come before the object being
15096	 # linked, so don't bother handling this case.
15097	 esac
15098       else
15099	 if test -z "$postdeps_CXX"; then
15100	   postdeps_CXX=$prev$p
15101	 else
15102	   postdeps_CXX="${postdeps_CXX} $prev$p"
15103	 fi
15104       fi
15105       prev=
15106       ;;
15107
15108    *.lto.$objext) ;; # Ignore GCC LTO objects
15109    *.$objext)
15110       # This assumes that the test object file only shows up
15111       # once in the compiler output.
15112       if test "$p" = "conftest.$objext"; then
15113	 pre_test_object_deps_done=yes
15114	 continue
15115       fi
15116
15117       if test no = "$pre_test_object_deps_done"; then
15118	 if test -z "$predep_objects_CXX"; then
15119	   predep_objects_CXX=$p
15120	 else
15121	   predep_objects_CXX="$predep_objects_CXX $p"
15122	 fi
15123       else
15124	 if test -z "$postdep_objects_CXX"; then
15125	   postdep_objects_CXX=$p
15126	 else
15127	   postdep_objects_CXX="$postdep_objects_CXX $p"
15128	 fi
15129       fi
15130       ;;
15131
15132    *) ;; # Ignore the rest.
15133
15134    esac
15135  done
15136
15137  # Clean up.
15138  rm -f a.out a.exe
15139else
15140  echo "libtool.m4: error: problem compiling CXX test program"
15141fi
15142
15143$RM -f confest.$objext
15144CFLAGS=$_lt_libdeps_save_CFLAGS
15145
15146# PORTME: override above test on systems where it is broken
15147case $host_os in
15148interix[3-9]*)
15149  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15150  # hack all around it, let's just trust "g++" to DTRT.
15151  predep_objects_CXX=
15152  postdep_objects_CXX=
15153  postdeps_CXX=
15154  ;;
15155esac
15156
15157
15158case " $postdeps_CXX " in
15159*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15160esac
15161 compiler_lib_search_dirs_CXX=
15162if test -n "${compiler_lib_search_path_CXX}"; then
15163 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15164fi
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196    lt_prog_compiler_wl_CXX=
15197lt_prog_compiler_pic_CXX=
15198lt_prog_compiler_static_CXX=
15199
15200
15201  # C++ specific cases for pic, static, wl, etc.
15202  if test yes = "$GXX"; then
15203    lt_prog_compiler_wl_CXX='-Wl,'
15204    lt_prog_compiler_static_CXX='-static'
15205
15206    case $host_os in
15207    aix*)
15208      # All AIX code is PIC.
15209      if test ia64 = "$host_cpu"; then
15210	# AIX 5 now supports IA64 processor
15211	lt_prog_compiler_static_CXX='-Bstatic'
15212      fi
15213      lt_prog_compiler_pic_CXX='-fPIC'
15214      ;;
15215
15216    amigaos*)
15217      case $host_cpu in
15218      powerpc)
15219            # see comment about AmigaOS4 .so support
15220            lt_prog_compiler_pic_CXX='-fPIC'
15221        ;;
15222      m68k)
15223            # FIXME: we need at least 68020 code to build shared libraries, but
15224            # adding the '-m68020' flag to GCC prevents building anything better,
15225            # like '-m68040'.
15226            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15227        ;;
15228      esac
15229      ;;
15230
15231    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15232      # PIC is the default for these OSes.
15233      ;;
15234    mingw* | cygwin* | os2* | pw32* | cegcc*)
15235      # This hack is so that the source file can tell whether it is being
15236      # built for inclusion in a dll (and should export symbols for example).
15237      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15238      # (--disable-auto-import) libraries
15239      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15240      case $host_os in
15241      os2*)
15242	lt_prog_compiler_static_CXX='$wl-static'
15243	;;
15244      esac
15245      ;;
15246    darwin* | rhapsody*)
15247      # PIC is the default on this platform
15248      # Common symbols not allowed in MH_DYLIB files
15249      lt_prog_compiler_pic_CXX='-fno-common'
15250      ;;
15251    *djgpp*)
15252      # DJGPP does not support shared libraries at all
15253      lt_prog_compiler_pic_CXX=
15254      ;;
15255    haiku*)
15256      # PIC is the default for Haiku.
15257      # The "-static" flag exists, but is broken.
15258      lt_prog_compiler_static_CXX=
15259      ;;
15260    interix[3-9]*)
15261      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15262      # Instead, we relocate shared libraries at runtime.
15263      ;;
15264    sysv4*MP*)
15265      if test -d /usr/nec; then
15266	lt_prog_compiler_pic_CXX=-Kconform_pic
15267      fi
15268      ;;
15269    hpux*)
15270      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15271      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15272      # sets the default TLS model and affects inlining.
15273      case $host_cpu in
15274      hppa*64*)
15275	;;
15276      *)
15277	lt_prog_compiler_pic_CXX='-fPIC'
15278	;;
15279      esac
15280      ;;
15281    *qnx* | *nto*)
15282      # QNX uses GNU C++, but need to define -shared option too, otherwise
15283      # it will coredump.
15284      lt_prog_compiler_pic_CXX='-fPIC -shared'
15285      ;;
15286    *)
15287      lt_prog_compiler_pic_CXX='-fPIC'
15288      ;;
15289    esac
15290  else
15291    case $host_os in
15292      aix[4-9]*)
15293	# All AIX code is PIC.
15294	if test ia64 = "$host_cpu"; then
15295	  # AIX 5 now supports IA64 processor
15296	  lt_prog_compiler_static_CXX='-Bstatic'
15297	else
15298	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15299	fi
15300	;;
15301      chorus*)
15302	case $cc_basename in
15303	cxch68*)
15304	  # Green Hills C++ Compiler
15305	  # _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"
15306	  ;;
15307	esac
15308	;;
15309      mingw* | cygwin* | os2* | pw32* | cegcc*)
15310	# This hack is so that the source file can tell whether it is being
15311	# built for inclusion in a dll (and should export symbols for example).
15312	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15313	;;
15314      dgux*)
15315	case $cc_basename in
15316	  ec++*)
15317	    lt_prog_compiler_pic_CXX='-KPIC'
15318	    ;;
15319	  ghcx*)
15320	    # Green Hills C++ Compiler
15321	    lt_prog_compiler_pic_CXX='-pic'
15322	    ;;
15323	  *)
15324	    ;;
15325	esac
15326	;;
15327      freebsd* | dragonfly*)
15328	# FreeBSD uses GNU C++
15329	;;
15330      hpux9* | hpux10* | hpux11*)
15331	case $cc_basename in
15332	  CC*)
15333	    lt_prog_compiler_wl_CXX='-Wl,'
15334	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15335	    if test ia64 != "$host_cpu"; then
15336	      lt_prog_compiler_pic_CXX='+Z'
15337	    fi
15338	    ;;
15339	  aCC*)
15340	    lt_prog_compiler_wl_CXX='-Wl,'
15341	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15342	    case $host_cpu in
15343	    hppa*64*|ia64*)
15344	      # +Z the default
15345	      ;;
15346	    *)
15347	      lt_prog_compiler_pic_CXX='+Z'
15348	      ;;
15349	    esac
15350	    ;;
15351	  *)
15352	    ;;
15353	esac
15354	;;
15355      interix*)
15356	# This is c89, which is MS Visual C++ (no shared libs)
15357	# Anyone wants to do a port?
15358	;;
15359      irix5* | irix6* | nonstopux*)
15360	case $cc_basename in
15361	  CC*)
15362	    lt_prog_compiler_wl_CXX='-Wl,'
15363	    lt_prog_compiler_static_CXX='-non_shared'
15364	    # CC pic flag -KPIC is the default.
15365	    ;;
15366	  *)
15367	    ;;
15368	esac
15369	;;
15370      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15371	case $cc_basename in
15372	  KCC*)
15373	    # KAI C++ Compiler
15374	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15375	    lt_prog_compiler_pic_CXX='-fPIC'
15376	    ;;
15377	  ecpc* )
15378	    # old Intel C++ for x86_64, which still supported -KPIC.
15379	    lt_prog_compiler_wl_CXX='-Wl,'
15380	    lt_prog_compiler_pic_CXX='-KPIC'
15381	    lt_prog_compiler_static_CXX='-static'
15382	    ;;
15383	  icpc* )
15384	    # Intel C++, used to be incompatible with GCC.
15385	    # ICC 10 doesn't accept -KPIC any more.
15386	    lt_prog_compiler_wl_CXX='-Wl,'
15387	    lt_prog_compiler_pic_CXX='-fPIC'
15388	    lt_prog_compiler_static_CXX='-static'
15389	    ;;
15390	  pgCC* | pgcpp*)
15391	    # Portland Group C++ compiler
15392	    lt_prog_compiler_wl_CXX='-Wl,'
15393	    lt_prog_compiler_pic_CXX='-fpic'
15394	    lt_prog_compiler_static_CXX='-Bstatic'
15395	    ;;
15396	  cxx*)
15397	    # Compaq C++
15398	    # Make sure the PIC flag is empty.  It appears that all Alpha
15399	    # Linux and Compaq Tru64 Unix objects are PIC.
15400	    lt_prog_compiler_pic_CXX=
15401	    lt_prog_compiler_static_CXX='-non_shared'
15402	    ;;
15403	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15404	    # IBM XL 8.0, 9.0 on PPC and BlueGene
15405	    lt_prog_compiler_wl_CXX='-Wl,'
15406	    lt_prog_compiler_pic_CXX='-qpic'
15407	    lt_prog_compiler_static_CXX='-qstaticlink'
15408	    ;;
15409	  *)
15410	    case `$CC -V 2>&1 | sed 5q` in
15411	    *Sun\ C*)
15412	      # Sun C++ 5.9
15413	      lt_prog_compiler_pic_CXX='-KPIC'
15414	      lt_prog_compiler_static_CXX='-Bstatic'
15415	      lt_prog_compiler_wl_CXX='-Qoption ld '
15416	      ;;
15417	    esac
15418	    ;;
15419	esac
15420	;;
15421      lynxos*)
15422	;;
15423      m88k*)
15424	;;
15425      mvs*)
15426	case $cc_basename in
15427	  cxx*)
15428	    lt_prog_compiler_pic_CXX='-W c,exportall'
15429	    ;;
15430	  *)
15431	    ;;
15432	esac
15433	;;
15434      netbsd* | netbsdelf*-gnu)
15435	;;
15436      *qnx* | *nto*)
15437        # QNX uses GNU C++, but need to define -shared option too, otherwise
15438        # it will coredump.
15439        lt_prog_compiler_pic_CXX='-fPIC -shared'
15440        ;;
15441      osf3* | osf4* | osf5*)
15442	case $cc_basename in
15443	  KCC*)
15444	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15445	    ;;
15446	  RCC*)
15447	    # Rational C++ 2.4.1
15448	    lt_prog_compiler_pic_CXX='-pic'
15449	    ;;
15450	  cxx*)
15451	    # Digital/Compaq C++
15452	    lt_prog_compiler_wl_CXX='-Wl,'
15453	    # Make sure the PIC flag is empty.  It appears that all Alpha
15454	    # Linux and Compaq Tru64 Unix objects are PIC.
15455	    lt_prog_compiler_pic_CXX=
15456	    lt_prog_compiler_static_CXX='-non_shared'
15457	    ;;
15458	  *)
15459	    ;;
15460	esac
15461	;;
15462      psos*)
15463	;;
15464      solaris*)
15465	case $cc_basename in
15466	  CC* | sunCC*)
15467	    # Sun C++ 4.2, 5.x and Centerline C++
15468	    lt_prog_compiler_pic_CXX='-KPIC'
15469	    lt_prog_compiler_static_CXX='-Bstatic'
15470	    lt_prog_compiler_wl_CXX='-Qoption ld '
15471	    ;;
15472	  gcx*)
15473	    # Green Hills C++ Compiler
15474	    lt_prog_compiler_pic_CXX='-PIC'
15475	    ;;
15476	  *)
15477	    ;;
15478	esac
15479	;;
15480      sunos4*)
15481	case $cc_basename in
15482	  CC*)
15483	    # Sun C++ 4.x
15484	    lt_prog_compiler_pic_CXX='-pic'
15485	    lt_prog_compiler_static_CXX='-Bstatic'
15486	    ;;
15487	  lcc*)
15488	    # Lucid
15489	    lt_prog_compiler_pic_CXX='-pic'
15490	    ;;
15491	  *)
15492	    ;;
15493	esac
15494	;;
15495      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15496	case $cc_basename in
15497	  CC*)
15498	    lt_prog_compiler_wl_CXX='-Wl,'
15499	    lt_prog_compiler_pic_CXX='-KPIC'
15500	    lt_prog_compiler_static_CXX='-Bstatic'
15501	    ;;
15502	esac
15503	;;
15504      tandem*)
15505	case $cc_basename in
15506	  NCC*)
15507	    # NonStop-UX NCC 3.20
15508	    lt_prog_compiler_pic_CXX='-KPIC'
15509	    ;;
15510	  *)
15511	    ;;
15512	esac
15513	;;
15514      vxworks*)
15515	;;
15516      *)
15517	lt_prog_compiler_can_build_shared_CXX=no
15518	;;
15519    esac
15520  fi
15521
15522case $host_os in
15523  # For platforms that do not support PIC, -DPIC is meaningless:
15524  *djgpp*)
15525    lt_prog_compiler_pic_CXX=
15526    ;;
15527  *)
15528    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15529    ;;
15530esac
15531
15532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15533$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15534if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15535  $as_echo_n "(cached) " >&6
15536else
15537  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15538fi
15539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15540$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15541lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15542
15543#
15544# Check to make sure the PIC flag actually works.
15545#
15546if test -n "$lt_prog_compiler_pic_CXX"; then
15547  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15548$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15549if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15550  $as_echo_n "(cached) " >&6
15551else
15552  lt_cv_prog_compiler_pic_works_CXX=no
15553   ac_outfile=conftest.$ac_objext
15554   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15555   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15556   # Insert the option either (1) after the last *FLAGS variable, or
15557   # (2) before a word containing "conftest.", or (3) at the end.
15558   # Note that $ac_compile itself does not contain backslashes and begins
15559   # with a dollar sign (not a hyphen), so the echo should work correctly.
15560   # The option is referenced via a variable to avoid confusing sed.
15561   lt_compile=`echo "$ac_compile" | $SED \
15562   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15563   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15564   -e 's:$: $lt_compiler_flag:'`
15565   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15566   (eval "$lt_compile" 2>conftest.err)
15567   ac_status=$?
15568   cat conftest.err >&5
15569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570   if (exit $ac_status) && test -s "$ac_outfile"; then
15571     # The compiler can only warn and ignore the option if not recognized
15572     # So say no if there are warnings other than the usual output.
15573     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15574     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15575     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15576       lt_cv_prog_compiler_pic_works_CXX=yes
15577     fi
15578   fi
15579   $RM conftest*
15580
15581fi
15582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15583$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15584
15585if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15586    case $lt_prog_compiler_pic_CXX in
15587     "" | " "*) ;;
15588     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15589     esac
15590else
15591    lt_prog_compiler_pic_CXX=
15592     lt_prog_compiler_can_build_shared_CXX=no
15593fi
15594
15595fi
15596
15597
15598
15599
15600
15601#
15602# Check to make sure the static flag actually works.
15603#
15604wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15606$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15607if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15608  $as_echo_n "(cached) " >&6
15609else
15610  lt_cv_prog_compiler_static_works_CXX=no
15611   save_LDFLAGS=$LDFLAGS
15612   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15613   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15614   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15615     # The linker can only warn and ignore the option if not recognized
15616     # So say no if there are warnings
15617     if test -s conftest.err; then
15618       # Append any errors to the config.log.
15619       cat conftest.err 1>&5
15620       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15621       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15622       if diff conftest.exp conftest.er2 >/dev/null; then
15623         lt_cv_prog_compiler_static_works_CXX=yes
15624       fi
15625     else
15626       lt_cv_prog_compiler_static_works_CXX=yes
15627     fi
15628   fi
15629   $RM -r conftest*
15630   LDFLAGS=$save_LDFLAGS
15631
15632fi
15633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15634$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15635
15636if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15637    :
15638else
15639    lt_prog_compiler_static_CXX=
15640fi
15641
15642
15643
15644
15645    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15646$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15647if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15648  $as_echo_n "(cached) " >&6
15649else
15650  lt_cv_prog_compiler_c_o_CXX=no
15651   $RM -r conftest 2>/dev/null
15652   mkdir conftest
15653   cd conftest
15654   mkdir out
15655   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15656
15657   lt_compiler_flag="-o out/conftest2.$ac_objext"
15658   # Insert the option either (1) after the last *FLAGS variable, or
15659   # (2) before a word containing "conftest.", or (3) at the end.
15660   # Note that $ac_compile itself does not contain backslashes and begins
15661   # with a dollar sign (not a hyphen), so the echo should work correctly.
15662   lt_compile=`echo "$ac_compile" | $SED \
15663   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15664   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15665   -e 's:$: $lt_compiler_flag:'`
15666   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15667   (eval "$lt_compile" 2>out/conftest.err)
15668   ac_status=$?
15669   cat out/conftest.err >&5
15670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15672   then
15673     # The compiler can only warn and ignore the option if not recognized
15674     # So say no if there are warnings
15675     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15676     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15677     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15678       lt_cv_prog_compiler_c_o_CXX=yes
15679     fi
15680   fi
15681   chmod u+w . 2>&5
15682   $RM conftest*
15683   # SGI C++ compiler will create directory out/ii_files/ for
15684   # template instantiation
15685   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15686   $RM out/* && rmdir out
15687   cd ..
15688   $RM -r conftest
15689   $RM conftest*
15690
15691fi
15692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15693$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15694
15695
15696
15697    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15698$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15699if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15700  $as_echo_n "(cached) " >&6
15701else
15702  lt_cv_prog_compiler_c_o_CXX=no
15703   $RM -r conftest 2>/dev/null
15704   mkdir conftest
15705   cd conftest
15706   mkdir out
15707   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15708
15709   lt_compiler_flag="-o out/conftest2.$ac_objext"
15710   # Insert the option either (1) after the last *FLAGS variable, or
15711   # (2) before a word containing "conftest.", or (3) at the end.
15712   # Note that $ac_compile itself does not contain backslashes and begins
15713   # with a dollar sign (not a hyphen), so the echo should work correctly.
15714   lt_compile=`echo "$ac_compile" | $SED \
15715   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15716   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15717   -e 's:$: $lt_compiler_flag:'`
15718   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15719   (eval "$lt_compile" 2>out/conftest.err)
15720   ac_status=$?
15721   cat out/conftest.err >&5
15722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15724   then
15725     # The compiler can only warn and ignore the option if not recognized
15726     # So say no if there are warnings
15727     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15728     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15729     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15730       lt_cv_prog_compiler_c_o_CXX=yes
15731     fi
15732   fi
15733   chmod u+w . 2>&5
15734   $RM conftest*
15735   # SGI C++ compiler will create directory out/ii_files/ for
15736   # template instantiation
15737   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15738   $RM out/* && rmdir out
15739   cd ..
15740   $RM -r conftest
15741   $RM conftest*
15742
15743fi
15744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15745$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15746
15747
15748
15749
15750hard_links=nottested
15751if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15752  # do not overwrite the value of need_locks provided by the user
15753  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15754$as_echo_n "checking if we can lock with hard links... " >&6; }
15755  hard_links=yes
15756  $RM conftest*
15757  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15758  touch conftest.a
15759  ln conftest.a conftest.b 2>&5 || hard_links=no
15760  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15762$as_echo "$hard_links" >&6; }
15763  if test no = "$hard_links"; then
15764    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15765$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15766    need_locks=warn
15767  fi
15768else
15769  need_locks=no
15770fi
15771
15772
15773
15774    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15775$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15776
15777  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15778  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15779  case $host_os in
15780  aix[4-9]*)
15781    # If we're using GNU nm, then we don't want the "-C" option.
15782    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15783    # Without the "-l" option, or with the "-B" option, AIX nm treats
15784    # weak defined symbols like other global defined symbols, whereas
15785    # GNU nm marks them as "W".
15786    # While the 'weak' keyword is ignored in the Export File, we need
15787    # it in the Import File for the 'aix-soname' feature, so we have
15788    # to replace the "-B" option with "-P" for AIX nm.
15789    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15790      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15791    else
15792      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15793    fi
15794    ;;
15795  pw32*)
15796    export_symbols_cmds_CXX=$ltdll_cmds
15797    ;;
15798  cygwin* | mingw* | cegcc*)
15799    case $cc_basename in
15800    cl*)
15801      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15802      ;;
15803    *)
15804      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'
15805      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15806      ;;
15807    esac
15808    ;;
15809  linux* | k*bsd*-gnu | gnu*)
15810    link_all_deplibs_CXX=no
15811    ;;
15812  *)
15813    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15814    ;;
15815  esac
15816
15817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15818$as_echo "$ld_shlibs_CXX" >&6; }
15819test no = "$ld_shlibs_CXX" && can_build_shared=no
15820
15821with_gnu_ld_CXX=$with_gnu_ld
15822
15823
15824
15825
15826
15827
15828#
15829# Do we need to explicitly link libc?
15830#
15831case "x$archive_cmds_need_lc_CXX" in
15832x|xyes)
15833  # Assume -lc should be added
15834  archive_cmds_need_lc_CXX=yes
15835
15836  if test yes,yes = "$GCC,$enable_shared"; then
15837    case $archive_cmds_CXX in
15838    *'~'*)
15839      # FIXME: we may have to deal with multi-command sequences.
15840      ;;
15841    '$CC '*)
15842      # Test whether the compiler implicitly links with -lc since on some
15843      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15844      # to ld, don't add -lc before -lgcc.
15845      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15846$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15847if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15848  $as_echo_n "(cached) " >&6
15849else
15850  $RM conftest*
15851	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15852
15853	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15854  (eval $ac_compile) 2>&5
15855  ac_status=$?
15856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15857  test $ac_status = 0; } 2>conftest.err; then
15858	  soname=conftest
15859	  lib=conftest
15860	  libobjs=conftest.$ac_objext
15861	  deplibs=
15862	  wl=$lt_prog_compiler_wl_CXX
15863	  pic_flag=$lt_prog_compiler_pic_CXX
15864	  compiler_flags=-v
15865	  linker_flags=-v
15866	  verstring=
15867	  output_objdir=.
15868	  libname=conftest
15869	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15870	  allow_undefined_flag_CXX=
15871	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15872  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15873  ac_status=$?
15874  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15875  test $ac_status = 0; }
15876	  then
15877	    lt_cv_archive_cmds_need_lc_CXX=no
15878	  else
15879	    lt_cv_archive_cmds_need_lc_CXX=yes
15880	  fi
15881	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15882	else
15883	  cat conftest.err 1>&5
15884	fi
15885	$RM conftest*
15886
15887fi
15888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15889$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15890      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15891      ;;
15892    esac
15893  fi
15894  ;;
15895esac
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15959$as_echo_n "checking dynamic linker characteristics... " >&6; }
15960
15961library_names_spec=
15962libname_spec='lib$name'
15963soname_spec=
15964shrext_cmds=.so
15965postinstall_cmds=
15966postuninstall_cmds=
15967finish_cmds=
15968finish_eval=
15969shlibpath_var=
15970shlibpath_overrides_runpath=unknown
15971version_type=none
15972dynamic_linker="$host_os ld.so"
15973sys_lib_dlsearch_path_spec="/lib /usr/lib"
15974need_lib_prefix=unknown
15975hardcode_into_libs=no
15976
15977# when you set need_version to no, make sure it does not cause -set_version
15978# flags to be left without arguments
15979need_version=unknown
15980
15981
15982
15983case $host_os in
15984aix3*)
15985  version_type=linux # correct to gnu/linux during the next big refactor
15986  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15987  shlibpath_var=LIBPATH
15988
15989  # AIX 3 has no versioning support, so we append a major version to the name.
15990  soname_spec='$libname$release$shared_ext$major'
15991  ;;
15992
15993aix[4-9]*)
15994  version_type=linux # correct to gnu/linux during the next big refactor
15995  need_lib_prefix=no
15996  need_version=no
15997  hardcode_into_libs=yes
15998  if test ia64 = "$host_cpu"; then
15999    # AIX 5 supports IA64
16000    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16001    shlibpath_var=LD_LIBRARY_PATH
16002  else
16003    # With GCC up to 2.95.x, collect2 would create an import file
16004    # for dependence libraries.  The import file would start with
16005    # the line '#! .'.  This would cause the generated library to
16006    # depend on '.', always an invalid library.  This was fixed in
16007    # development snapshots of GCC prior to 3.0.
16008    case $host_os in
16009      aix4 | aix4.[01] | aix4.[01].*)
16010      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16011	   echo ' yes '
16012	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16013	:
16014      else
16015	can_build_shared=no
16016      fi
16017      ;;
16018    esac
16019    # Using Import Files as archive members, it is possible to support
16020    # filename-based versioning of shared library archives on AIX. While
16021    # this would work for both with and without runtime linking, it will
16022    # prevent static linking of such archives. So we do filename-based
16023    # shared library versioning with .so extension only, which is used
16024    # when both runtime linking and shared linking is enabled.
16025    # Unfortunately, runtime linking may impact performance, so we do
16026    # not want this to be the default eventually. Also, we use the
16027    # versioned .so libs for executables only if there is the -brtl
16028    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16029    # To allow for filename-based versioning support, we need to create
16030    # libNAME.so.V as an archive file, containing:
16031    # *) an Import File, referring to the versioned filename of the
16032    #    archive as well as the shared archive member, telling the
16033    #    bitwidth (32 or 64) of that shared object, and providing the
16034    #    list of exported symbols of that shared object, eventually
16035    #    decorated with the 'weak' keyword
16036    # *) the shared object with the F_LOADONLY flag set, to really avoid
16037    #    it being seen by the linker.
16038    # At run time we better use the real file rather than another symlink,
16039    # but for link time we create the symlink libNAME.so -> libNAME.so.V
16040
16041    case $with_aix_soname,$aix_use_runtimelinking in
16042    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16043    # soname into executable. Probably we can add versioning support to
16044    # collect2, so additional links can be useful in future.
16045    aix,yes) # traditional libtool
16046      dynamic_linker='AIX unversionable lib.so'
16047      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16048      # instead of lib<name>.a to let people know that these are not
16049      # typical AIX shared libraries.
16050      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16051      ;;
16052    aix,no) # traditional AIX only
16053      dynamic_linker='AIX lib.a(lib.so.V)'
16054      # We preserve .a as extension for shared libraries through AIX4.2
16055      # and later when we are not doing run time linking.
16056      library_names_spec='$libname$release.a $libname.a'
16057      soname_spec='$libname$release$shared_ext$major'
16058      ;;
16059    svr4,*) # full svr4 only
16060      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16061      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16062      # We do not specify a path in Import Files, so LIBPATH fires.
16063      shlibpath_overrides_runpath=yes
16064      ;;
16065    *,yes) # both, prefer svr4
16066      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16067      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16068      # unpreferred sharedlib libNAME.a needs extra handling
16069      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16070      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16071      # We do not specify a path in Import Files, so LIBPATH fires.
16072      shlibpath_overrides_runpath=yes
16073      ;;
16074    *,no) # both, prefer aix
16075      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16076      library_names_spec='$libname$release.a $libname.a'
16077      soname_spec='$libname$release$shared_ext$major'
16078      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16079      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16080      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16081      ;;
16082    esac
16083    shlibpath_var=LIBPATH
16084  fi
16085  ;;
16086
16087amigaos*)
16088  case $host_cpu in
16089  powerpc)
16090    # Since July 2007 AmigaOS4 officially supports .so libraries.
16091    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16092    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16093    ;;
16094  m68k)
16095    library_names_spec='$libname.ixlibrary $libname.a'
16096    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16097    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16098    ;;
16099  esac
16100  ;;
16101
16102beos*)
16103  library_names_spec='$libname$shared_ext'
16104  dynamic_linker="$host_os ld.so"
16105  shlibpath_var=LIBRARY_PATH
16106  ;;
16107
16108bsdi[45]*)
16109  version_type=linux # correct to gnu/linux during the next big refactor
16110  need_version=no
16111  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16112  soname_spec='$libname$release$shared_ext$major'
16113  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16114  shlibpath_var=LD_LIBRARY_PATH
16115  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16116  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16117  # the default ld.so.conf also contains /usr/contrib/lib and
16118  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16119  # libtool to hard-code these into programs
16120  ;;
16121
16122cygwin* | mingw* | pw32* | cegcc*)
16123  version_type=windows
16124  shrext_cmds=.dll
16125  need_version=no
16126  need_lib_prefix=no
16127
16128  case $GCC,$cc_basename in
16129  yes,*)
16130    # gcc
16131    library_names_spec='$libname.dll.a'
16132    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16133    postinstall_cmds='base_file=`basename \$file`~
16134      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16135      dldir=$destdir/`dirname \$dlpath`~
16136      test -d \$dldir || mkdir -p \$dldir~
16137      $install_prog $dir/$dlname \$dldir/$dlname~
16138      chmod a+x \$dldir/$dlname~
16139      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16140        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16141      fi'
16142    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16143      dlpath=$dir/\$dldll~
16144       $RM \$dlpath'
16145    shlibpath_overrides_runpath=yes
16146
16147    case $host_os in
16148    cygwin*)
16149      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16150      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16151
16152      ;;
16153    mingw* | cegcc*)
16154      # MinGW DLLs use traditional 'lib' prefix
16155      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16156      ;;
16157    pw32*)
16158      # pw32 DLLs use 'pw' prefix rather than 'lib'
16159      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16160      ;;
16161    esac
16162    dynamic_linker='Win32 ld.exe'
16163    ;;
16164
16165  *,cl*)
16166    # Native MSVC
16167    libname_spec='$name'
16168    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16169    library_names_spec='$libname.dll.lib'
16170
16171    case $build_os in
16172    mingw*)
16173      sys_lib_search_path_spec=
16174      lt_save_ifs=$IFS
16175      IFS=';'
16176      for lt_path in $LIB
16177      do
16178        IFS=$lt_save_ifs
16179        # Let DOS variable expansion print the short 8.3 style file name.
16180        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16181        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16182      done
16183      IFS=$lt_save_ifs
16184      # Convert to MSYS style.
16185      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16186      ;;
16187    cygwin*)
16188      # Convert to unix form, then to dos form, then back to unix form
16189      # but this time dos style (no spaces!) so that the unix form looks
16190      # like /cygdrive/c/PROGRA~1:/cygdr...
16191      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16192      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16193      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16194      ;;
16195    *)
16196      sys_lib_search_path_spec=$LIB
16197      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16198        # It is most probably a Windows format PATH.
16199        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16200      else
16201        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16202      fi
16203      # FIXME: find the short name or the path components, as spaces are
16204      # common. (e.g. "Program Files" -> "PROGRA~1")
16205      ;;
16206    esac
16207
16208    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16209    postinstall_cmds='base_file=`basename \$file`~
16210      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16211      dldir=$destdir/`dirname \$dlpath`~
16212      test -d \$dldir || mkdir -p \$dldir~
16213      $install_prog $dir/$dlname \$dldir/$dlname'
16214    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16215      dlpath=$dir/\$dldll~
16216       $RM \$dlpath'
16217    shlibpath_overrides_runpath=yes
16218    dynamic_linker='Win32 link.exe'
16219    ;;
16220
16221  *)
16222    # Assume MSVC wrapper
16223    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16224    dynamic_linker='Win32 ld.exe'
16225    ;;
16226  esac
16227  # FIXME: first we should search . and the directory the executable is in
16228  shlibpath_var=PATH
16229  ;;
16230
16231darwin* | rhapsody*)
16232  dynamic_linker="$host_os dyld"
16233  version_type=darwin
16234  need_lib_prefix=no
16235  need_version=no
16236  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16237  soname_spec='$libname$release$major$shared_ext'
16238  shlibpath_overrides_runpath=yes
16239  shlibpath_var=DYLD_LIBRARY_PATH
16240  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16241
16242  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16243  ;;
16244
16245dgux*)
16246  version_type=linux # correct to gnu/linux during the next big refactor
16247  need_lib_prefix=no
16248  need_version=no
16249  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16250  soname_spec='$libname$release$shared_ext$major'
16251  shlibpath_var=LD_LIBRARY_PATH
16252  ;;
16253
16254freebsd* | dragonfly*)
16255  # DragonFly does not have aout.  When/if they implement a new
16256  # versioning mechanism, adjust this.
16257  if test -x /usr/bin/objformat; then
16258    objformat=`/usr/bin/objformat`
16259  else
16260    case $host_os in
16261    freebsd[23].*) objformat=aout ;;
16262    *) objformat=elf ;;
16263    esac
16264  fi
16265  version_type=freebsd-$objformat
16266  case $version_type in
16267    freebsd-elf*)
16268      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16269      soname_spec='$libname$release$shared_ext$major'
16270      need_version=no
16271      need_lib_prefix=no
16272      ;;
16273    freebsd-*)
16274      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16275      need_version=yes
16276      ;;
16277  esac
16278  shlibpath_var=LD_LIBRARY_PATH
16279  case $host_os in
16280  freebsd2.*)
16281    shlibpath_overrides_runpath=yes
16282    ;;
16283  freebsd3.[01]* | freebsdelf3.[01]*)
16284    shlibpath_overrides_runpath=yes
16285    hardcode_into_libs=yes
16286    ;;
16287  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16288  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16289    shlibpath_overrides_runpath=no
16290    hardcode_into_libs=yes
16291    ;;
16292  *) # from 4.6 on, and DragonFly
16293    shlibpath_overrides_runpath=yes
16294    hardcode_into_libs=yes
16295    ;;
16296  esac
16297  ;;
16298
16299haiku*)
16300  version_type=linux # correct to gnu/linux during the next big refactor
16301  need_lib_prefix=no
16302  need_version=no
16303  dynamic_linker="$host_os runtime_loader"
16304  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16305  soname_spec='$libname$release$shared_ext$major'
16306  shlibpath_var=LIBRARY_PATH
16307  shlibpath_overrides_runpath=no
16308  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16309  hardcode_into_libs=yes
16310  ;;
16311
16312hpux9* | hpux10* | hpux11*)
16313  # Give a soname corresponding to the major version so that dld.sl refuses to
16314  # link against other versions.
16315  version_type=sunos
16316  need_lib_prefix=no
16317  need_version=no
16318  case $host_cpu in
16319  ia64*)
16320    shrext_cmds='.so'
16321    hardcode_into_libs=yes
16322    dynamic_linker="$host_os dld.so"
16323    shlibpath_var=LD_LIBRARY_PATH
16324    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16325    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16326    soname_spec='$libname$release$shared_ext$major'
16327    if test 32 = "$HPUX_IA64_MODE"; then
16328      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16329      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16330    else
16331      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16332      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16333    fi
16334    ;;
16335  hppa*64*)
16336    shrext_cmds='.sl'
16337    hardcode_into_libs=yes
16338    dynamic_linker="$host_os dld.sl"
16339    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16340    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16341    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16342    soname_spec='$libname$release$shared_ext$major'
16343    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16344    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16345    ;;
16346  *)
16347    shrext_cmds='.sl'
16348    dynamic_linker="$host_os dld.sl"
16349    shlibpath_var=SHLIB_PATH
16350    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16351    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16352    soname_spec='$libname$release$shared_ext$major'
16353    ;;
16354  esac
16355  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16356  postinstall_cmds='chmod 555 $lib'
16357  # or fails outright, so override atomically:
16358  install_override_mode=555
16359  ;;
16360
16361interix[3-9]*)
16362  version_type=linux # correct to gnu/linux during the next big refactor
16363  need_lib_prefix=no
16364  need_version=no
16365  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16366  soname_spec='$libname$release$shared_ext$major'
16367  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16368  shlibpath_var=LD_LIBRARY_PATH
16369  shlibpath_overrides_runpath=no
16370  hardcode_into_libs=yes
16371  ;;
16372
16373irix5* | irix6* | nonstopux*)
16374  case $host_os in
16375    nonstopux*) version_type=nonstopux ;;
16376    *)
16377	if test yes = "$lt_cv_prog_gnu_ld"; then
16378		version_type=linux # correct to gnu/linux during the next big refactor
16379	else
16380		version_type=irix
16381	fi ;;
16382  esac
16383  need_lib_prefix=no
16384  need_version=no
16385  soname_spec='$libname$release$shared_ext$major'
16386  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16387  case $host_os in
16388  irix5* | nonstopux*)
16389    libsuff= shlibsuff=
16390    ;;
16391  *)
16392    case $LD in # libtool.m4 will add one of these switches to LD
16393    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16394      libsuff= shlibsuff= libmagic=32-bit;;
16395    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16396      libsuff=32 shlibsuff=N32 libmagic=N32;;
16397    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16398      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16399    *) libsuff= shlibsuff= libmagic=never-match;;
16400    esac
16401    ;;
16402  esac
16403  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16404  shlibpath_overrides_runpath=no
16405  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16406  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16407  hardcode_into_libs=yes
16408  ;;
16409
16410# No shared lib support for Linux oldld, aout, or coff.
16411linux*oldld* | linux*aout* | linux*coff*)
16412  dynamic_linker=no
16413  ;;
16414
16415linux*android*)
16416  version_type=none # Android doesn't support versioned libraries.
16417  need_lib_prefix=no
16418  need_version=no
16419  library_names_spec='$libname$release$shared_ext'
16420  soname_spec='$libname$release$shared_ext'
16421  finish_cmds=
16422  shlibpath_var=LD_LIBRARY_PATH
16423  shlibpath_overrides_runpath=yes
16424
16425  # This implies no fast_install, which is unacceptable.
16426  # Some rework will be needed to allow for fast_install
16427  # before this can be enabled.
16428  hardcode_into_libs=yes
16429
16430  dynamic_linker='Android linker'
16431  # Don't embed -rpath directories since the linker doesn't support them.
16432  hardcode_libdir_flag_spec_CXX='-L$libdir'
16433  ;;
16434
16435# This must be glibc/ELF.
16436linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16437  version_type=linux # correct to gnu/linux during the next big refactor
16438  need_lib_prefix=no
16439  need_version=no
16440  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16441  soname_spec='$libname$release$shared_ext$major'
16442  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16443  shlibpath_var=LD_LIBRARY_PATH
16444  shlibpath_overrides_runpath=no
16445
16446  # Some binutils ld are patched to set DT_RUNPATH
16447  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16448  $as_echo_n "(cached) " >&6
16449else
16450  lt_cv_shlibpath_overrides_runpath=no
16451    save_LDFLAGS=$LDFLAGS
16452    save_libdir=$libdir
16453    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16454	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16455    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16456/* end confdefs.h.  */
16457
16458int
16459main ()
16460{
16461
16462  ;
16463  return 0;
16464}
16465_ACEOF
16466if ac_fn_cxx_try_link "$LINENO"; then :
16467  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16468  lt_cv_shlibpath_overrides_runpath=yes
16469fi
16470fi
16471rm -f core conftest.err conftest.$ac_objext \
16472    conftest$ac_exeext conftest.$ac_ext
16473    LDFLAGS=$save_LDFLAGS
16474    libdir=$save_libdir
16475
16476fi
16477
16478  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16479
16480  # This implies no fast_install, which is unacceptable.
16481  # Some rework will be needed to allow for fast_install
16482  # before this can be enabled.
16483  hardcode_into_libs=yes
16484
16485  # Ideally, we could use ldconfig to report *all* directores which are
16486  # searched for libraries, however this is still not possible.  Aside from not
16487  # being certain /sbin/ldconfig is available, command
16488  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16489  # even though it is searched at run-time.  Try to do the best guess by
16490  # appending ld.so.conf contents (and includes) to the search path.
16491  if test -f /etc/ld.so.conf; then
16492    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' ' '`
16493    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16494  fi
16495
16496  # We used to test for /lib/ld.so.1 and disable shared libraries on
16497  # powerpc, because MkLinux only supported shared libraries with the
16498  # GNU dynamic linker.  Since this was broken with cross compilers,
16499  # most powerpc-linux boxes support dynamic linking these days and
16500  # people can always --disable-shared, the test was removed, and we
16501  # assume the GNU/Linux dynamic linker is in use.
16502  dynamic_linker='GNU/Linux ld.so'
16503  ;;
16504
16505netbsdelf*-gnu)
16506  version_type=linux
16507  need_lib_prefix=no
16508  need_version=no
16509  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16510  soname_spec='${libname}${release}${shared_ext}$major'
16511  shlibpath_var=LD_LIBRARY_PATH
16512  shlibpath_overrides_runpath=no
16513  hardcode_into_libs=yes
16514  dynamic_linker='NetBSD ld.elf_so'
16515  ;;
16516
16517netbsd*)
16518  version_type=sunos
16519  need_lib_prefix=no
16520  need_version=no
16521  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16522    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16523    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16524    dynamic_linker='NetBSD (a.out) ld.so'
16525  else
16526    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16527    soname_spec='$libname$release$shared_ext$major'
16528    dynamic_linker='NetBSD ld.elf_so'
16529  fi
16530  shlibpath_var=LD_LIBRARY_PATH
16531  shlibpath_overrides_runpath=yes
16532  hardcode_into_libs=yes
16533  ;;
16534
16535newsos6)
16536  version_type=linux # correct to gnu/linux during the next big refactor
16537  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16538  shlibpath_var=LD_LIBRARY_PATH
16539  shlibpath_overrides_runpath=yes
16540  ;;
16541
16542*nto* | *qnx*)
16543  version_type=qnx
16544  need_lib_prefix=no
16545  need_version=no
16546  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16547  soname_spec='$libname$release$shared_ext$major'
16548  shlibpath_var=LD_LIBRARY_PATH
16549  shlibpath_overrides_runpath=no
16550  hardcode_into_libs=yes
16551  dynamic_linker='ldqnx.so'
16552  ;;
16553
16554openbsd* | bitrig*)
16555  version_type=sunos
16556  sys_lib_dlsearch_path_spec=/usr/lib
16557  need_lib_prefix=no
16558  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16559    need_version=no
16560  else
16561    need_version=yes
16562  fi
16563  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16564  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16565  shlibpath_var=LD_LIBRARY_PATH
16566  shlibpath_overrides_runpath=yes
16567  ;;
16568
16569os2*)
16570  libname_spec='$name'
16571  version_type=windows
16572  shrext_cmds=.dll
16573  need_version=no
16574  need_lib_prefix=no
16575  # OS/2 can only load a DLL with a base name of 8 characters or less.
16576  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16577    v=$($ECHO $release$versuffix | tr -d .-);
16578    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16579    $ECHO $n$v`$shared_ext'
16580  library_names_spec='${libname}_dll.$libext'
16581  dynamic_linker='OS/2 ld.exe'
16582  shlibpath_var=BEGINLIBPATH
16583  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16584  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16585  postinstall_cmds='base_file=`basename \$file`~
16586    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16587    dldir=$destdir/`dirname \$dlpath`~
16588    test -d \$dldir || mkdir -p \$dldir~
16589    $install_prog $dir/$dlname \$dldir/$dlname~
16590    chmod a+x \$dldir/$dlname~
16591    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16592      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16593    fi'
16594  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16595    dlpath=$dir/\$dldll~
16596    $RM \$dlpath'
16597  ;;
16598
16599osf3* | osf4* | osf5*)
16600  version_type=osf
16601  need_lib_prefix=no
16602  need_version=no
16603  soname_spec='$libname$release$shared_ext$major'
16604  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16605  shlibpath_var=LD_LIBRARY_PATH
16606  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16607  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16608  ;;
16609
16610rdos*)
16611  dynamic_linker=no
16612  ;;
16613
16614solaris*)
16615  version_type=linux # correct to gnu/linux during the next big refactor
16616  need_lib_prefix=no
16617  need_version=no
16618  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16619  soname_spec='$libname$release$shared_ext$major'
16620  shlibpath_var=LD_LIBRARY_PATH
16621  shlibpath_overrides_runpath=yes
16622  hardcode_into_libs=yes
16623  # ldd complains unless libraries are executable
16624  postinstall_cmds='chmod +x $lib'
16625  ;;
16626
16627sunos4*)
16628  version_type=sunos
16629  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16630  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16631  shlibpath_var=LD_LIBRARY_PATH
16632  shlibpath_overrides_runpath=yes
16633  if test yes = "$with_gnu_ld"; then
16634    need_lib_prefix=no
16635  fi
16636  need_version=yes
16637  ;;
16638
16639sysv4 | sysv4.3*)
16640  version_type=linux # correct to gnu/linux during the next big refactor
16641  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16642  soname_spec='$libname$release$shared_ext$major'
16643  shlibpath_var=LD_LIBRARY_PATH
16644  case $host_vendor in
16645    sni)
16646      shlibpath_overrides_runpath=no
16647      need_lib_prefix=no
16648      runpath_var=LD_RUN_PATH
16649      ;;
16650    siemens)
16651      need_lib_prefix=no
16652      ;;
16653    motorola)
16654      need_lib_prefix=no
16655      need_version=no
16656      shlibpath_overrides_runpath=no
16657      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16658      ;;
16659  esac
16660  ;;
16661
16662sysv4*MP*)
16663  if test -d /usr/nec; then
16664    version_type=linux # correct to gnu/linux during the next big refactor
16665    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16666    soname_spec='$libname$shared_ext.$major'
16667    shlibpath_var=LD_LIBRARY_PATH
16668  fi
16669  ;;
16670
16671sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16672  version_type=sco
16673  need_lib_prefix=no
16674  need_version=no
16675  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16676  soname_spec='$libname$release$shared_ext$major'
16677  shlibpath_var=LD_LIBRARY_PATH
16678  shlibpath_overrides_runpath=yes
16679  hardcode_into_libs=yes
16680  if test yes = "$with_gnu_ld"; then
16681    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16682  else
16683    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16684    case $host_os in
16685      sco3.2v5*)
16686        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16687	;;
16688    esac
16689  fi
16690  sys_lib_dlsearch_path_spec='/usr/lib'
16691  ;;
16692
16693tpf*)
16694  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16695  version_type=linux # correct to gnu/linux during the next big refactor
16696  need_lib_prefix=no
16697  need_version=no
16698  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16699  shlibpath_var=LD_LIBRARY_PATH
16700  shlibpath_overrides_runpath=no
16701  hardcode_into_libs=yes
16702  ;;
16703
16704uts4*)
16705  version_type=linux # correct to gnu/linux during the next big refactor
16706  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16707  soname_spec='$libname$release$shared_ext$major'
16708  shlibpath_var=LD_LIBRARY_PATH
16709  ;;
16710
16711*)
16712  dynamic_linker=no
16713  ;;
16714esac
16715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16716$as_echo "$dynamic_linker" >&6; }
16717test no = "$dynamic_linker" && can_build_shared=no
16718
16719variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16720if test yes = "$GCC"; then
16721  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16722fi
16723
16724if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16725  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16726fi
16727
16728if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16729  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16730fi
16731
16732# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16733configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16734
16735# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16736func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16737
16738# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16739configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16781$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16782hardcode_action_CXX=
16783if test -n "$hardcode_libdir_flag_spec_CXX" ||
16784   test -n "$runpath_var_CXX" ||
16785   test yes = "$hardcode_automatic_CXX"; then
16786
16787  # We can hardcode non-existent directories.
16788  if test no != "$hardcode_direct_CXX" &&
16789     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16790     # have to relink, otherwise we might link with an installed library
16791     # when we should be linking with a yet-to-be-installed one
16792     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16793     test no != "$hardcode_minus_L_CXX"; then
16794    # Linking always hardcodes the temporary library directory.
16795    hardcode_action_CXX=relink
16796  else
16797    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16798    hardcode_action_CXX=immediate
16799  fi
16800else
16801  # We cannot hardcode anything, or else we can only hardcode existing
16802  # directories.
16803  hardcode_action_CXX=unsupported
16804fi
16805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16806$as_echo "$hardcode_action_CXX" >&6; }
16807
16808if test relink = "$hardcode_action_CXX" ||
16809   test yes = "$inherit_rpath_CXX"; then
16810  # Fast installation is not supported
16811  enable_fast_install=no
16812elif test yes = "$shlibpath_overrides_runpath" ||
16813     test no = "$enable_shared"; then
16814  # Fast installation is not necessary
16815  enable_fast_install=needless
16816fi
16817
16818
16819
16820
16821
16822
16823
16824  fi # test -n "$compiler"
16825
16826  CC=$lt_save_CC
16827  CFLAGS=$lt_save_CFLAGS
16828  LDCXX=$LD
16829  LD=$lt_save_LD
16830  GCC=$lt_save_GCC
16831  with_gnu_ld=$lt_save_with_gnu_ld
16832  lt_cv_path_LDCXX=$lt_cv_path_LD
16833  lt_cv_path_LD=$lt_save_path_LD
16834  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16835  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16836fi # test yes != "$_lt_caught_CXX_error"
16837
16838ac_ext=c
16839ac_cpp='$CPP $CPPFLAGS'
16840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16842ac_compiler_gnu=$ac_cv_c_compiler_gnu
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858        ac_config_commands="$ac_config_commands libtool"
16859
16860
16861
16862
16863# Only expand once:
16864
16865
16866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16867$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16868set x ${MAKE-make}
16869ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16870if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16871  $as_echo_n "(cached) " >&6
16872else
16873  cat >conftest.make <<\_ACEOF
16874SHELL = /bin/sh
16875all:
16876	@echo '@@@%%%=$(MAKE)=@@@%%%'
16877_ACEOF
16878# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16879case `${MAKE-make} -f conftest.make 2>/dev/null` in
16880  *@@@%%%=?*=@@@%%%*)
16881    eval ac_cv_prog_make_${ac_make}_set=yes;;
16882  *)
16883    eval ac_cv_prog_make_${ac_make}_set=no;;
16884esac
16885rm -f conftest.make
16886fi
16887if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16889$as_echo "yes" >&6; }
16890  SET_MAKE=
16891else
16892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16893$as_echo "no" >&6; }
16894  SET_MAKE="MAKE=${MAKE-make}"
16895fi
16896
16897
16898if test "x2.5" = "x" ; then
16899  bison_required_version="2.4"
16900else
16901  bison_required_version="2.5"
16902fi
16903
16904# Extract the first word of "bison", so it can be a program name with args.
16905set dummy bison; ac_word=$2
16906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16907$as_echo_n "checking for $ac_word... " >&6; }
16908if ${ac_cv_prog_have_prog_bison+:} false; then :
16909  $as_echo_n "(cached) " >&6
16910else
16911  if test -n "$have_prog_bison"; then
16912  ac_cv_prog_have_prog_bison="$have_prog_bison" # Let the user override the test.
16913else
16914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16915for as_dir in $PATH
16916do
16917  IFS=$as_save_IFS
16918  test -z "$as_dir" && as_dir=.
16919    for ac_exec_ext in '' $ac_executable_extensions; do
16920  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16921    ac_cv_prog_have_prog_bison="yes"
16922    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16923    break 2
16924  fi
16925done
16926  done
16927IFS=$as_save_IFS
16928
16929  test -z "$ac_cv_prog_have_prog_bison" && ac_cv_prog_have_prog_bison="no"
16930fi
16931fi
16932have_prog_bison=$ac_cv_prog_have_prog_bison
16933if test -n "$have_prog_bison"; then
16934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prog_bison" >&5
16935$as_echo "$have_prog_bison" >&6; }
16936else
16937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16938$as_echo "no" >&6; }
16939fi
16940
16941
16942
16943
16944cat >>confdefs.h <<_ACEOF
16945#define BISON_VERSION 0.0
16946_ACEOF
16947
16948
16949#Do not use *.h extension for parser header files, use newer *.hh
16950bison_use_parser_h_extension=false
16951
16952if test "$have_prog_bison" = "yes" ; then
16953  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison version >= $bison_required_version" >&5
16954$as_echo_n "checking for bison version >= $bison_required_version... " >&6; }
16955  bison_version=`bison --version | head -n 1 | cut '-d ' -f 4`
16956
16957cat >>confdefs.h <<_ACEOF
16958#define BISON_VERSION $bison_version
16959_ACEOF
16960
16961  if test "$bison_version" \< "$bison_required_version" ; then
16962    BISON=:
16963    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16964$as_echo "no" >&6; }
16965    as_fn_error $? "Bison version $bison_required_version or higher must be installed on the system!" "$LINENO" 5
16966  else
16967    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16968$as_echo "yes" >&6; }
16969    BISON=bison
16970
16971
16972    #Verify automake version 1.11 headers for yy files are .h, > 1.12 uses .hh
16973    automake_version=`automake --version | head -n 1 | cut '-d ' -f 4`
16974
16975cat >>confdefs.h <<_ACEOF
16976#define AUTOMAKE_VERSION $automake_version
16977_ACEOF
16978
16979
16980    if test "$automake_version" \< "1.12" ; then
16981      #Use *.h extension for parser header file
16982      bison_use_parser_h_extension=true
16983      echo "Automake version < 1.12"
16984
16985$as_echo "#define BISON_USE_PARSER_H_EXTENSION 1" >>confdefs.h
16986
16987    fi
16988  fi
16989else
16990  BISON=:
16991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: NO" >&5
16992$as_echo "NO" >&6; }
16993fi
16994
16995 if test x$bison_use_parser_h_extension = xtrue; then
16996  BISON_USE_PARSER_H_EXTENSION_TRUE=
16997  BISON_USE_PARSER_H_EXTENSION_FALSE='#'
16998else
16999  BISON_USE_PARSER_H_EXTENSION_TRUE='#'
17000  BISON_USE_PARSER_H_EXTENSION_FALSE=
17001fi
17002
17003
17004
17005for ac_prog in 'bison -y' byacc
17006do
17007  # Extract the first word of "$ac_prog", so it can be a program name with args.
17008set dummy $ac_prog; ac_word=$2
17009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17010$as_echo_n "checking for $ac_word... " >&6; }
17011if ${ac_cv_prog_YACC+:} false; then :
17012  $as_echo_n "(cached) " >&6
17013else
17014  if test -n "$YACC"; then
17015  ac_cv_prog_YACC="$YACC" # Let the user override the test.
17016else
17017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17018for as_dir in $PATH
17019do
17020  IFS=$as_save_IFS
17021  test -z "$as_dir" && as_dir=.
17022    for ac_exec_ext in '' $ac_executable_extensions; do
17023  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17024    ac_cv_prog_YACC="$ac_prog"
17025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17026    break 2
17027  fi
17028done
17029  done
17030IFS=$as_save_IFS
17031
17032fi
17033fi
17034YACC=$ac_cv_prog_YACC
17035if test -n "$YACC"; then
17036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
17037$as_echo "$YACC" >&6; }
17038else
17039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17040$as_echo "no" >&6; }
17041fi
17042
17043
17044  test -n "$YACC" && break
17045done
17046test -n "$YACC" || YACC="yacc"
17047
17048for ac_prog in flex lex
17049do
17050  # Extract the first word of "$ac_prog", so it can be a program name with args.
17051set dummy $ac_prog; ac_word=$2
17052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17053$as_echo_n "checking for $ac_word... " >&6; }
17054if ${ac_cv_prog_LEX+:} false; then :
17055  $as_echo_n "(cached) " >&6
17056else
17057  if test -n "$LEX"; then
17058  ac_cv_prog_LEX="$LEX" # Let the user override the test.
17059else
17060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17061for as_dir in $PATH
17062do
17063  IFS=$as_save_IFS
17064  test -z "$as_dir" && as_dir=.
17065    for ac_exec_ext in '' $ac_executable_extensions; do
17066  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17067    ac_cv_prog_LEX="$ac_prog"
17068    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17069    break 2
17070  fi
17071done
17072  done
17073IFS=$as_save_IFS
17074
17075fi
17076fi
17077LEX=$ac_cv_prog_LEX
17078if test -n "$LEX"; then
17079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
17080$as_echo "$LEX" >&6; }
17081else
17082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17083$as_echo "no" >&6; }
17084fi
17085
17086
17087  test -n "$LEX" && break
17088done
17089test -n "$LEX" || LEX=":"
17090
17091if test "x$LEX" != "x:"; then
17092  cat >conftest.l <<_ACEOF
17093%%
17094a { ECHO; }
17095b { REJECT; }
17096c { yymore (); }
17097d { yyless (1); }
17098e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
17099    yyless ((input () != 0)); }
17100f { unput (yytext[0]); }
17101. { BEGIN INITIAL; }
17102%%
17103#ifdef YYTEXT_POINTER
17104extern char *yytext;
17105#endif
17106int
17107main (void)
17108{
17109  return ! yylex () + ! yywrap ();
17110}
17111_ACEOF
17112{ { ac_try="$LEX conftest.l"
17113case "(($ac_try" in
17114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17115  *) ac_try_echo=$ac_try;;
17116esac
17117eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17118$as_echo "$ac_try_echo"; } >&5
17119  (eval "$LEX conftest.l") 2>&5
17120  ac_status=$?
17121  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17122  test $ac_status = 0; }
17123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
17124$as_echo_n "checking lex output file root... " >&6; }
17125if ${ac_cv_prog_lex_root+:} false; then :
17126  $as_echo_n "(cached) " >&6
17127else
17128
17129if test -f lex.yy.c; then
17130  ac_cv_prog_lex_root=lex.yy
17131elif test -f lexyy.c; then
17132  ac_cv_prog_lex_root=lexyy
17133else
17134  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
17135fi
17136fi
17137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
17138$as_echo "$ac_cv_prog_lex_root" >&6; }
17139LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
17140
17141if test -z "${LEXLIB+set}"; then
17142  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
17143$as_echo_n "checking lex library... " >&6; }
17144if ${ac_cv_lib_lex+:} false; then :
17145  $as_echo_n "(cached) " >&6
17146else
17147
17148    ac_save_LIBS=$LIBS
17149    ac_cv_lib_lex='none needed'
17150    for ac_lib in '' -lfl -ll; do
17151      LIBS="$ac_lib $ac_save_LIBS"
17152      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17153/* end confdefs.h.  */
17154`cat $LEX_OUTPUT_ROOT.c`
17155_ACEOF
17156if ac_fn_c_try_link "$LINENO"; then :
17157  ac_cv_lib_lex=$ac_lib
17158fi
17159rm -f core conftest.err conftest.$ac_objext \
17160    conftest$ac_exeext conftest.$ac_ext
17161      test "$ac_cv_lib_lex" != 'none needed' && break
17162    done
17163    LIBS=$ac_save_LIBS
17164
17165fi
17166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
17167$as_echo "$ac_cv_lib_lex" >&6; }
17168  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
17169fi
17170
17171
17172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
17173$as_echo_n "checking whether yytext is a pointer... " >&6; }
17174if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
17175  $as_echo_n "(cached) " >&6
17176else
17177  # POSIX says lex can declare yytext either as a pointer or an array; the
17178# default is implementation-dependent.  Figure out which it is, since
17179# not all implementations provide the %pointer and %array declarations.
17180ac_cv_prog_lex_yytext_pointer=no
17181ac_save_LIBS=$LIBS
17182LIBS="$LEXLIB $ac_save_LIBS"
17183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17184/* end confdefs.h.  */
17185
17186  #define YYTEXT_POINTER 1
17187`cat $LEX_OUTPUT_ROOT.c`
17188_ACEOF
17189if ac_fn_c_try_link "$LINENO"; then :
17190  ac_cv_prog_lex_yytext_pointer=yes
17191fi
17192rm -f core conftest.err conftest.$ac_objext \
17193    conftest$ac_exeext conftest.$ac_ext
17194LIBS=$ac_save_LIBS
17195
17196fi
17197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
17198$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
17199if test $ac_cv_prog_lex_yytext_pointer = yes; then
17200
17201$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
17202
17203fi
17204rm -f conftest.l $LEX_OUTPUT_ROOT.c
17205
17206fi
17207if test "$LEX" = :; then
17208  LEX=${am_missing_run}flex
17209fi
17210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
17211$as_echo_n "checking whether ln -s works... " >&6; }
17212LN_S=$as_ln_s
17213if test "$LN_S" = "ln -s"; then
17214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17215$as_echo "yes" >&6; }
17216else
17217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
17218$as_echo "no, using $LN_S" >&6; }
17219fi
17220
17221
17222for ac_prog in gawk mawk nawk awk
17223do
17224  # Extract the first word of "$ac_prog", so it can be a program name with args.
17225set dummy $ac_prog; ac_word=$2
17226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17227$as_echo_n "checking for $ac_word... " >&6; }
17228if ${ac_cv_prog_AWK+:} false; then :
17229  $as_echo_n "(cached) " >&6
17230else
17231  if test -n "$AWK"; then
17232  ac_cv_prog_AWK="$AWK" # Let the user override the test.
17233else
17234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17235for as_dir in $PATH
17236do
17237  IFS=$as_save_IFS
17238  test -z "$as_dir" && as_dir=.
17239    for ac_exec_ext in '' $ac_executable_extensions; do
17240  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17241    ac_cv_prog_AWK="$ac_prog"
17242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17243    break 2
17244  fi
17245done
17246  done
17247IFS=$as_save_IFS
17248
17249fi
17250fi
17251AWK=$ac_cv_prog_AWK
17252if test -n "$AWK"; then
17253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
17254$as_echo "$AWK" >&6; }
17255else
17256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17257$as_echo "no" >&6; }
17258fi
17259
17260
17261  test -n "$AWK" && break
17262done
17263
17264if test -n "$ac_tool_prefix"; then
17265  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17266set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17268$as_echo_n "checking for $ac_word... " >&6; }
17269if ${ac_cv_prog_RANLIB+:} false; then :
17270  $as_echo_n "(cached) " >&6
17271else
17272  if test -n "$RANLIB"; then
17273  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17274else
17275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17276for as_dir in $PATH
17277do
17278  IFS=$as_save_IFS
17279  test -z "$as_dir" && as_dir=.
17280    for ac_exec_ext in '' $ac_executable_extensions; do
17281  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17282    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17283    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17284    break 2
17285  fi
17286done
17287  done
17288IFS=$as_save_IFS
17289
17290fi
17291fi
17292RANLIB=$ac_cv_prog_RANLIB
17293if test -n "$RANLIB"; then
17294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17295$as_echo "$RANLIB" >&6; }
17296else
17297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17298$as_echo "no" >&6; }
17299fi
17300
17301
17302fi
17303if test -z "$ac_cv_prog_RANLIB"; then
17304  ac_ct_RANLIB=$RANLIB
17305  # Extract the first word of "ranlib", so it can be a program name with args.
17306set dummy ranlib; ac_word=$2
17307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17308$as_echo_n "checking for $ac_word... " >&6; }
17309if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
17310  $as_echo_n "(cached) " >&6
17311else
17312  if test -n "$ac_ct_RANLIB"; then
17313  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17314else
17315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17316for as_dir in $PATH
17317do
17318  IFS=$as_save_IFS
17319  test -z "$as_dir" && as_dir=.
17320    for ac_exec_ext in '' $ac_executable_extensions; do
17321  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17322    ac_cv_prog_ac_ct_RANLIB="ranlib"
17323    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17324    break 2
17325  fi
17326done
17327  done
17328IFS=$as_save_IFS
17329
17330fi
17331fi
17332ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17333if test -n "$ac_ct_RANLIB"; then
17334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17335$as_echo "$ac_ct_RANLIB" >&6; }
17336else
17337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17338$as_echo "no" >&6; }
17339fi
17340
17341  if test "x$ac_ct_RANLIB" = x; then
17342    RANLIB=":"
17343  else
17344    case $cross_compiling:$ac_tool_warned in
17345yes:)
17346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17348ac_tool_warned=yes ;;
17349esac
17350    RANLIB=$ac_ct_RANLIB
17351  fi
17352else
17353  RANLIB="$ac_cv_prog_RANLIB"
17354fi
17355
17356
17357ac_ext=cpp
17358ac_cpp='$CXXCPP $CPPFLAGS'
17359ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17360ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17361ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17362
17363  ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
17364  ac_ext=cpp
17365ac_cpp='$CXXCPP $CPPFLAGS'
17366ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17367ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17368ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17369  ac_success=no
17370
17371
17372
17373    if test x$ac_success = xno; then
17374                for alternative in ${ax_cxx_compile_alternatives}; do
17375      for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
17376        cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
17377        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
17378$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
17379if eval \${$cachevar+:} false; then :
17380  $as_echo_n "(cached) " >&6
17381else
17382  ac_save_CXX="$CXX"
17383           CXX="$CXX $switch"
17384           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17385/* end confdefs.h.  */
17386
17387
17388// If the compiler admits that it is not ready for C++11, why torture it?
17389// Hopefully, this will speed up the test.
17390
17391#ifndef __cplusplus
17392
17393#error "This is not a C++ compiler"
17394
17395#elif __cplusplus < 201103L
17396
17397#error "This is not a C++11 compiler"
17398
17399#else
17400
17401namespace cxx11
17402{
17403
17404  namespace test_static_assert
17405  {
17406
17407    template <typename T>
17408    struct check
17409    {
17410      static_assert(sizeof(int) <= sizeof(T), "not big enough");
17411    };
17412
17413  }
17414
17415  namespace test_final_override
17416  {
17417
17418    struct Base
17419    {
17420      virtual void f() {}
17421    };
17422
17423    struct Derived : public Base
17424    {
17425      virtual void f() override {}
17426    };
17427
17428  }
17429
17430  namespace test_double_right_angle_brackets
17431  {
17432
17433    template < typename T >
17434    struct check {};
17435
17436    typedef check<void> single_type;
17437    typedef check<check<void>> double_type;
17438    typedef check<check<check<void>>> triple_type;
17439    typedef check<check<check<check<void>>>> quadruple_type;
17440
17441  }
17442
17443  namespace test_decltype
17444  {
17445
17446    int
17447    f()
17448    {
17449      int a = 1;
17450      decltype(a) b = 2;
17451      return a + b;
17452    }
17453
17454  }
17455
17456  namespace test_type_deduction
17457  {
17458
17459    template < typename T1, typename T2 >
17460    struct is_same
17461    {
17462      static const bool value = false;
17463    };
17464
17465    template < typename T >
17466    struct is_same<T, T>
17467    {
17468      static const bool value = true;
17469    };
17470
17471    template < typename T1, typename T2 >
17472    auto
17473    add(T1 a1, T2 a2) -> decltype(a1 + a2)
17474    {
17475      return a1 + a2;
17476    }
17477
17478    int
17479    test(const int c, volatile int v)
17480    {
17481      static_assert(is_same<int, decltype(0)>::value == true, "");
17482      static_assert(is_same<int, decltype(c)>::value == false, "");
17483      static_assert(is_same<int, decltype(v)>::value == false, "");
17484      auto ac = c;
17485      auto av = v;
17486      auto sumi = ac + av + 'x';
17487      auto sumf = ac + av + 1.0;
17488      static_assert(is_same<int, decltype(ac)>::value == true, "");
17489      static_assert(is_same<int, decltype(av)>::value == true, "");
17490      static_assert(is_same<int, decltype(sumi)>::value == true, "");
17491      static_assert(is_same<int, decltype(sumf)>::value == false, "");
17492      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
17493      return (sumf > 0.0) ? sumi : add(c, v);
17494    }
17495
17496  }
17497
17498  namespace test_noexcept
17499  {
17500
17501    int f() { return 0; }
17502    int g() noexcept { return 0; }
17503
17504    static_assert(noexcept(f()) == false, "");
17505    static_assert(noexcept(g()) == true, "");
17506
17507  }
17508
17509  namespace test_constexpr
17510  {
17511
17512    template < typename CharT >
17513    unsigned long constexpr
17514    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
17515    {
17516      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
17517    }
17518
17519    template < typename CharT >
17520    unsigned long constexpr
17521    strlen_c(const CharT *const s) noexcept
17522    {
17523      return strlen_c_r(s, 0UL);
17524    }
17525
17526    static_assert(strlen_c("") == 0UL, "");
17527    static_assert(strlen_c("1") == 1UL, "");
17528    static_assert(strlen_c("example") == 7UL, "");
17529    static_assert(strlen_c("another\0example") == 7UL, "");
17530
17531  }
17532
17533  namespace test_rvalue_references
17534  {
17535
17536    template < int N >
17537    struct answer
17538    {
17539      static constexpr int value = N;
17540    };
17541
17542    answer<1> f(int&)       { return answer<1>(); }
17543    answer<2> f(const int&) { return answer<2>(); }
17544    answer<3> f(int&&)      { return answer<3>(); }
17545
17546    void
17547    test()
17548    {
17549      int i = 0;
17550      const int c = 0;
17551      static_assert(decltype(f(i))::value == 1, "");
17552      static_assert(decltype(f(c))::value == 2, "");
17553      static_assert(decltype(f(0))::value == 3, "");
17554    }
17555
17556  }
17557
17558  namespace test_uniform_initialization
17559  {
17560
17561    struct test
17562    {
17563      static const int zero {};
17564      static const int one {1};
17565    };
17566
17567    static_assert(test::zero == 0, "");
17568    static_assert(test::one == 1, "");
17569
17570  }
17571
17572  namespace test_lambdas
17573  {
17574
17575    void
17576    test1()
17577    {
17578      auto lambda1 = [](){};
17579      auto lambda2 = lambda1;
17580      lambda1();
17581      lambda2();
17582    }
17583
17584    int
17585    test2()
17586    {
17587      auto a = [](int i, int j){ return i + j; }(1, 2);
17588      auto b = []() -> int { return '0'; }();
17589      auto c = [=](){ return a + b; }();
17590      auto d = [&](){ return c; }();
17591      auto e = [a, &b](int x) mutable {
17592        const auto identity = [](int y){ return y; };
17593        for (auto i = 0; i < a; ++i)
17594          a += b--;
17595        return x + identity(a + b);
17596      }(0);
17597      return a + b + c + d + e;
17598    }
17599
17600    int
17601    test3()
17602    {
17603      const auto nullary = [](){ return 0; };
17604      const auto unary = [](int x){ return x; };
17605      using nullary_t = decltype(nullary);
17606      using unary_t = decltype(unary);
17607      const auto higher1st = [](nullary_t f){ return f(); };
17608      const auto higher2nd = [unary](nullary_t f1){
17609        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
17610      };
17611      return higher1st(nullary) + higher2nd(nullary)(unary);
17612    }
17613
17614  }
17615
17616  namespace test_variadic_templates
17617  {
17618
17619    template <int...>
17620    struct sum;
17621
17622    template <int N0, int... N1toN>
17623    struct sum<N0, N1toN...>
17624    {
17625      static constexpr auto value = N0 + sum<N1toN...>::value;
17626    };
17627
17628    template <>
17629    struct sum<>
17630    {
17631      static constexpr auto value = 0;
17632    };
17633
17634    static_assert(sum<>::value == 0, "");
17635    static_assert(sum<1>::value == 1, "");
17636    static_assert(sum<23>::value == 23, "");
17637    static_assert(sum<1, 2>::value == 3, "");
17638    static_assert(sum<5, 5, 11>::value == 21, "");
17639    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17640
17641  }
17642
17643  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17644  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17645  // because of this.
17646  namespace test_template_alias_sfinae
17647  {
17648
17649    struct foo {};
17650
17651    template<typename T>
17652    using member = typename T::member_type;
17653
17654    template<typename T>
17655    void func(...) {}
17656
17657    template<typename T>
17658    void func(member<T>*) {}
17659
17660    void test();
17661
17662    void test() { func<foo>(0); }
17663
17664  }
17665
17666}  // namespace cxx11
17667
17668#endif  // __cplusplus >= 201103L
17669
17670
17671
17672_ACEOF
17673if ac_fn_cxx_try_compile "$LINENO"; then :
17674  eval $cachevar=yes
17675else
17676  eval $cachevar=no
17677fi
17678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17679           CXX="$ac_save_CXX"
17680fi
17681eval ac_res=\$$cachevar
17682	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17683$as_echo "$ac_res" >&6; }
17684        if eval test x\$$cachevar = xyes; then
17685          CXX="$CXX $switch"
17686          if test -n "$CXXCPP" ; then
17687            CXXCPP="$CXXCPP $switch"
17688          fi
17689          ac_success=yes
17690          break
17691        fi
17692      done
17693      if test x$ac_success = xyes; then
17694        break
17695      fi
17696    done
17697  fi
17698  ac_ext=cpp
17699ac_cpp='$CXXCPP $CPPFLAGS'
17700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17703
17704  if test x$ax_cxx_compile_cxx11_required = xtrue; then
17705    if test x$ac_success = xno; then
17706      as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
17707    fi
17708  fi
17709  if test x$ac_success = xno; then
17710    HAVE_CXX11=0
17711    { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
17712$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
17713  else
17714    HAVE_CXX11=1
17715
17716$as_echo "#define HAVE_CXX11 1" >>confdefs.h
17717
17718  fi
17719
17720
17721
17722
17723CPPSTYLE_CMD='find . -type f \( -iname "*.h" -or -iname "*.cpp" -or -iname "*.cc" -or -iname "*.tcc" \) -printf "Reformatting: %h/%f\n" -exec clang-format -i {} \;'
17724
17725# '
17726# The above comment is to fix editor syntax highlighting
17727
17728# Check whether --enable-libs was given.
17729if test "${enable_libs+set}" = set; then :
17730  enableval=$enable_libs;
17731else
17732  enable_libs=yes
17733
17734fi
17735
17736have_libs=yes
17737if test "$enable_libs" = "no"; then
17738  have_libs="no"
17739  with_as3="no"
17740  with_cpp="no"
17741  with_c_glib="no"
17742  with_cl="no"
17743  with_java="no"
17744  with_python="no"
17745  with_py3="no"
17746  with_ruby="no"
17747  with_haskell="no"
17748  with_haxe="no"
17749  with_netstd="no"
17750  with_perl="no"
17751  with_php="no"
17752  with_php_extension="no"
17753  with_dart="no"
17754  with_erlang="no"
17755  with_go="no"
17756  with_d="no"
17757  with_nodejs="no"
17758  with_nodets="no"
17759  with_lua="no"
17760  with_rs="no"
17761  with_swift="no"
17762fi
17763
17764
17765
17766# Check whether --with-as3 was given.
17767if test "${with_as3+set}" = set; then :
17768  withval=$with_as3; with_as3="$withval"
17769else
17770  with_as3=yes
17771
17772fi
17773
17774          have_as3=no
17775
17776have_as3=no
17777if test "$with_as3" = "yes"; then
17778  if test "${FLEX_HOME+set}" = set; then
17779    for ac_prog in compc
17780do
17781  # Extract the first word of "$ac_prog", so it can be a program name with args.
17782set dummy $ac_prog; ac_word=$2
17783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17784$as_echo_n "checking for $ac_word... " >&6; }
17785if ${ac_cv_path_FLEX_COMPC+:} false; then :
17786  $as_echo_n "(cached) " >&6
17787else
17788  case $FLEX_COMPC in
17789  [\\/]* | ?:[\\/]*)
17790  ac_cv_path_FLEX_COMPC="$FLEX_COMPC" # Let the user override the test with a path.
17791  ;;
17792  *)
17793  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17794for as_dir in $PATH$PATH_SEPARATOR$FLEX_HOME/bin
17795do
17796  IFS=$as_save_IFS
17797  test -z "$as_dir" && as_dir=.
17798    for ac_exec_ext in '' $ac_executable_extensions; do
17799  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17800    ac_cv_path_FLEX_COMPC="$as_dir/$ac_word$ac_exec_ext"
17801    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17802    break 2
17803  fi
17804done
17805  done
17806IFS=$as_save_IFS
17807
17808  ;;
17809esac
17810fi
17811FLEX_COMPC=$ac_cv_path_FLEX_COMPC
17812if test -n "$FLEX_COMPC"; then
17813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX_COMPC" >&5
17814$as_echo "$FLEX_COMPC" >&6; }
17815else
17816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17817$as_echo "no" >&6; }
17818fi
17819
17820
17821  test -n "$FLEX_COMPC" && break
17822done
17823test -n "$FLEX_COMPC" || FLEX_COMPC=""fail""
17824
17825    if test "$FLEX_COMPC" != "fail"; then
17826      have_as3="yes"
17827    fi
17828  fi
17829fi
17830 if test "$have_as3" = "yes"; then
17831  WITH_AS3_TRUE=
17832  WITH_AS3_FALSE='#'
17833else
17834  WITH_AS3_TRUE='#'
17835  WITH_AS3_FALSE=
17836fi
17837
17838
17839
17840
17841# Check whether --with-cpp was given.
17842if test "${with_cpp+set}" = set; then :
17843  withval=$with_cpp; with_cpp="$withval"
17844else
17845  with_cpp=yes
17846
17847fi
17848
17849          have_cpp=no
17850
17851have_cpp=no
17852if test "$with_cpp" = "yes";  then
17853
17854
17855# Check whether --with-boost was given.
17856if test "${with_boost+set}" = set; then :
17857  withval=$with_boost;
17858     case $withval in #(
17859  no) :
17860    want_boost="no";_AX_BOOST_BASE_boost_path="" ;; #(
17861  yes) :
17862    want_boost="yes";_AX_BOOST_BASE_boost_path="" ;; #(
17863  *) :
17864    want_boost="yes";_AX_BOOST_BASE_boost_path="$withval" ;;
17865esac
17866
17867else
17868  want_boost="yes"
17869fi
17870
17871
17872
17873
17874# Check whether --with-boost-libdir was given.
17875if test "${with_boost_libdir+set}" = set; then :
17876  withval=$with_boost_libdir;
17877   if test -d "$withval"; then :
17878  _AX_BOOST_BASE_boost_lib_path="$withval"
17879else
17880  as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
17881fi
17882
17883else
17884  _AX_BOOST_BASE_boost_lib_path=""
17885fi
17886
17887
17888BOOST_LDFLAGS=""
17889BOOST_CPPFLAGS=""
17890if test "x$want_boost" = "xyes"; then :
17891
17892
17893  if test "x1.56.0" = "x"; then :
17894  _AX_BOOST_BASE_TONUMERICVERSION_req="1.20.0"
17895else
17896  _AX_BOOST_BASE_TONUMERICVERSION_req="1.56.0"
17897fi
17898  _AX_BOOST_BASE_TONUMERICVERSION_req_shorten=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\.[0-9]*\)'`
17899  _AX_BOOST_BASE_TONUMERICVERSION_req_major=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\)'`
17900  if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_major" = "x"; then :
17901  as_fn_error $? "You should at least specify libboost major version" "$LINENO" 5
17902fi
17903  _AX_BOOST_BASE_TONUMERICVERSION_req_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.\([0-9]*\)'`
17904  if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_minor" = "x"; then :
17905  _AX_BOOST_BASE_TONUMERICVERSION_req_minor="0"
17906fi
17907  _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
17908  if test "X$_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor" = "X"; then :
17909  _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor="0"
17910fi
17911  _AX_BOOST_BASE_TONUMERICVERSION_RET=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req_major \* 100000 \+  $_AX_BOOST_BASE_TONUMERICVERSION_req_minor \* 100 \+ $_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor`
17912  WANT_BOOST_VERSION=$_AX_BOOST_BASE_TONUMERICVERSION_RET
17913
17914    succeeded=no
17915
17916
17917
17918                        case ${host_cpu} in #(
17919  x86_64) :
17920    libsubdirs="lib64 libx32 lib lib64" ;; #(
17921  ppc64|powerpc64|s390x|sparc64|aarch64|ppc64le|powerpc64le|riscv64) :
17922    libsubdirs="lib64 lib lib64" ;; #(
17923  *) :
17924    libsubdirs="lib"
17925     ;;
17926esac
17927
17928                case ${host_cpu} in #(
17929  i?86) :
17930    multiarch_libsubdir="lib/i386-${host_os}" ;; #(
17931  *) :
17932    multiarch_libsubdir="lib/${host_cpu}-${host_os}"
17933     ;;
17934esac
17935
17936                if test "x$_AX_BOOST_BASE_boost_path" != "x"; then :
17937
17938        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.56.0 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"" >&5
17939$as_echo_n "checking for boostlib >= 1.56.0 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"... " >&6; }
17940         if test -d "$_AX_BOOST_BASE_boost_path/include" && test -r "$_AX_BOOST_BASE_boost_path/include"; then :
17941
17942           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17943$as_echo "yes" >&6; }
17944           BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include"
17945           for _AX_BOOST_BASE_boost_path_tmp in $multiarch_libsubdir $libsubdirs; do
17946                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.56.0 ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"" >&5
17947$as_echo_n "checking for boostlib >= 1.56.0 ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"... " >&6; }
17948                if test -d "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" && test -r "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" ; then :
17949
17950                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17951$as_echo "yes" >&6; }
17952                        BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp";
17953                        break;
17954
17955else
17956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17957$as_echo "no" >&6; }
17958fi
17959           done
17960else
17961
17962      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17963$as_echo "no" >&6; }
17964fi
17965
17966else
17967
17968        if test X"$cross_compiling" = Xyes; then
17969            search_libsubdirs=$multiarch_libsubdir
17970        else
17971            search_libsubdirs="$multiarch_libsubdir $libsubdirs"
17972        fi
17973        for _AX_BOOST_BASE_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
17974            if test -d "$_AX_BOOST_BASE_boost_path_tmp/include/boost" && test -r "$_AX_BOOST_BASE_boost_path_tmp/include/boost" ; then
17975                for libsubdir in $search_libsubdirs ; do
17976                    if ls "$_AX_BOOST_BASE_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
17977                done
17978                BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path_tmp/$libsubdir"
17979                BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path_tmp/include"
17980                break;
17981            fi
17982        done
17983
17984fi
17985
17986            if test "x$_AX_BOOST_BASE_boost_lib_path" != "x"; then :
17987  BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_lib_path"
17988fi
17989
17990    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.56.0 ($WANT_BOOST_VERSION)" >&5
17991$as_echo_n "checking for boostlib >= 1.56.0 ($WANT_BOOST_VERSION)... " >&6; }
17992    CPPFLAGS_SAVED="$CPPFLAGS"
17993    CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17994    export CPPFLAGS
17995
17996    LDFLAGS_SAVED="$LDFLAGS"
17997    LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
17998    export LDFLAGS
17999
18000
18001    ac_ext=cpp
18002ac_cpp='$CXXCPP $CPPFLAGS'
18003ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18004ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18005ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18006
18007        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18008/* end confdefs.h.  */
18009
18010#include <boost/version.hpp>
18011
18012int
18013main ()
18014{
18015
18016(void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
18017
18018  ;
18019  return 0;
18020}
18021_ACEOF
18022if ac_fn_cxx_try_compile "$LINENO"; then :
18023
18024        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18025$as_echo "yes" >&6; }
18026    succeeded=yes
18027    found_system=yes
18028
18029fi
18030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18031    ac_ext=cpp
18032ac_cpp='$CXXCPP $CPPFLAGS'
18033ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18034ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18035ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18036
18037
18038
18039
18040            if test "x$succeeded" != "xyes" ; then
18041        CPPFLAGS="$CPPFLAGS_SAVED"
18042        LDFLAGS="$LDFLAGS_SAVED"
18043        BOOST_CPPFLAGS=
18044        if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
18045            BOOST_LDFLAGS=
18046        fi
18047        _version=0
18048        if test -n "$_AX_BOOST_BASE_boost_path" ; then
18049            if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path"; then
18050                for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
18051                    _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
18052                    V_CHECK=`expr $_version_tmp \> $_version`
18053                    if test "x$V_CHECK" = "x1" ; then
18054                        _version=$_version_tmp
18055                    fi
18056                    VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
18057                    BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include/boost-$VERSION_UNDERSCORE"
18058                done
18059                                if test -z "$BOOST_CPPFLAGS"; then
18060                    if test -d "$_AX_BOOST_BASE_boost_path/boost" && test -r "$_AX_BOOST_BASE_boost_path/boost"; then
18061                        BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path"
18062                    fi
18063                fi
18064                                                if test -n "$BOOST_CPPFLAGS" && test -z "$BOOST_LDFLAGS"; then
18065                    for libsubdir in $libsubdirs ; do
18066                        if ls "$_AX_BOOST_BASE_boost_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
18067                    done
18068                    BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$libsubdir"
18069                fi
18070            fi
18071        else
18072            if test "x$cross_compiling" != "xyes" ; then
18073                for _AX_BOOST_BASE_boost_path in /usr /usr/local /opt /opt/local ; do
18074                    if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path" ; then
18075                        for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
18076                            _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
18077                            V_CHECK=`expr $_version_tmp \> $_version`
18078                            if test "x$V_CHECK" = "x1" ; then
18079                                _version=$_version_tmp
18080                                best_path=$_AX_BOOST_BASE_boost_path
18081                            fi
18082                        done
18083                    fi
18084                done
18085
18086                VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
18087                BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
18088                if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
18089                    for libsubdir in $libsubdirs ; do
18090                        if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
18091                    done
18092                    BOOST_LDFLAGS="-L$best_path/$libsubdir"
18093                fi
18094            fi
18095
18096            if test -n "$BOOST_ROOT" ; then
18097                for libsubdir in $libsubdirs ; do
18098                    if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
18099                done
18100                if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
18101                    version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
18102                    stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
18103                        stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
18104                    V_CHECK=`expr $stage_version_shorten \>\= $_version`
18105                    if test "x$V_CHECK" = "x1" && test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
18106                        { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
18107$as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
18108                        BOOST_CPPFLAGS="-I$BOOST_ROOT"
18109                        BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
18110                    fi
18111                fi
18112            fi
18113        fi
18114
18115        CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18116        export CPPFLAGS
18117        LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
18118        export LDFLAGS
18119
18120        ac_ext=cpp
18121ac_cpp='$CXXCPP $CPPFLAGS'
18122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18125
18126            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18127/* end confdefs.h.  */
18128
18129#include <boost/version.hpp>
18130
18131int
18132main ()
18133{
18134
18135(void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
18136
18137  ;
18138  return 0;
18139}
18140_ACEOF
18141if ac_fn_cxx_try_compile "$LINENO"; then :
18142
18143            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18144$as_echo "yes" >&6; }
18145        succeeded=yes
18146        found_system=yes
18147
18148fi
18149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18150        ac_ext=cpp
18151ac_cpp='$CXXCPP $CPPFLAGS'
18152ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18153ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18154ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18155
18156    fi
18157
18158    if test "x$succeeded" != "xyes" ; then
18159        if test "x$_version" = "x0" ; then
18160            { $as_echo "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version 1.56.0 or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
18161$as_echo "$as_me: We could not detect the boost libraries (version 1.56.0 or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;}
18162        else
18163            { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
18164$as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
18165        fi
18166        # execute ACTION-IF-NOT-FOUND (if present):
18167        :
18168    else
18169
18170$as_echo "#define HAVE_BOOST /**/" >>confdefs.h
18171
18172        # execute ACTION-IF-FOUND (if present):
18173        :
18174    fi
18175
18176    CPPFLAGS="$CPPFLAGS_SAVED"
18177    LDFLAGS="$LDFLAGS_SAVED"
18178
18179
18180fi
18181
18182
18183
18184  if test "x$succeeded" = "xyes" ; then
18185    BOOST_LIB_DIR=$(echo "$BOOST_LDFLAGS" | sed -e 's/^\-L//')
18186
18187    BOOST_CHRONO_LDADD=$(echo "$BOOST_LIB_DIR/libboost_chrono.a")
18188
18189    BOOST_FILESYSTEM_LDADD=$(echo "$BOOST_LIB_DIR/libboost_filesystem.a")
18190
18191    BOOST_SYSTEM_LDADD=$(echo "$BOOST_LIB_DIR/libboost_system.a")
18192
18193    BOOST_TEST_LDADD=$(echo "$BOOST_LIB_DIR/libboost_unit_test_framework.a")
18194
18195    BOOST_THREAD_LDADD=$(echo "$BOOST_LIB_DIR/libboost_thread.a")
18196
18197    have_cpp="yes"
18198  fi
18199
18200
18201
18202
18203# Check whether --with-libevent was given.
18204if test "${with_libevent+set}" = set; then :
18205  withval=$with_libevent;
18206                       if test "x$withval" = "xno"; then
18207                         want_libevent="no"
18208                       elif test "x$withval" = "xyes"; then
18209                         want_libevent="yes"
18210                         ax_libevent_path=""
18211                       else
18212                         want_libevent="yes"
18213                         ax_libevent_path="$withval"
18214                       fi
18215
18216else
18217   want_libevent="yes" ; ax_libevent_path=""
18218fi
18219
18220
18221
18222          if test "$want_libevent" = "yes"; then
18223            WANT_LIBEVENT_VERSION=2.0
18224
18225            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent >= $WANT_LIBEVENT_VERSION" >&5
18226$as_echo_n "checking for libevent >= $WANT_LIBEVENT_VERSION... " >&6; }
18227
18228            # Run tests.
18229            if test -n "$ax_libevent_path"; then
18230
18231          # Save our flags.
18232          CPPFLAGS_SAVED="$CPPFLAGS"
18233          LDFLAGS_SAVED="$LDFLAGS"
18234          LIBS_SAVED="$LIBS"
18235          LD_LIBRARY_PATH_SAVED="$LD_LIBRARY_PATH"
18236
18237          # Set our flags if we are checking a specific directory.
18238          if test -n "$ax_libevent_path" ; then
18239            LIBEVENT_CPPFLAGS="-I$ax_libevent_path/include"
18240            LIBEVENT_LDFLAGS="-L$ax_libevent_path/lib"
18241            LD_LIBRARY_PATH="$ax_libevent_path/lib:$LD_LIBRARY_PATH"
18242          else
18243            LIBEVENT_CPPFLAGS=""
18244            LIBEVENT_LDFLAGS=""
18245          fi
18246
18247          # Required flag for libevent.
18248          LIBEVENT_LIBS="-levent"
18249
18250          # Prepare the environment for compilation.
18251          CPPFLAGS="$CPPFLAGS $LIBEVENT_CPPFLAGS"
18252          LDFLAGS="$LDFLAGS $LIBEVENT_LDFLAGS"
18253          LIBS="$LIBS $LIBEVENT_LIBS"
18254          export CPPFLAGS
18255          export LDFLAGS
18256          export LIBS
18257          export LD_LIBRARY_PATH
18258
18259          success=no
18260
18261          # Compile, link, and run the program.  This checks:
18262          # - event.h is available for including.
18263          # - event_get_version() is available for linking.
18264          # - The event version string is lexicographically greater
18265          #   than the required version.
18266          ac_ext=c
18267ac_cpp='$CPP $CPPFLAGS'
18268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18270ac_compiler_gnu=$ac_cv_c_compiler_gnu
18271
18272                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18273/* end confdefs.h.  */
18274
18275          #include <sys/types.h>
18276          #include <event.h>
18277
18278int
18279main ()
18280{
18281
18282          const char* lib_version = event_get_version();
18283          const char* wnt_version = "$WANT_LIBEVENT_VERSION";
18284          int lib_digits;
18285          int wnt_digits;
18286          for (;;) {
18287            /* If we reached the end of the want version.  We have it. */
18288            if (*wnt_version == '\0' || *wnt_version == '-') {
18289              return 0;
18290            }
18291            /* If the want version continues but the lib version does not, */
18292            /* we are missing a letter.  We don't have it. */
18293            if (*lib_version == '\0' || *lib_version == '-') {
18294              return 1;
18295            }
18296            /* In the 1.4 version numbering style, if there are more digits */
18297            /* in one version than the other, that one is higher. */
18298            for (lib_digits = 0;
18299                lib_version[lib_digits] >= '0' &&
18300                lib_version[lib_digits] <= '9';
18301                lib_digits++)
18302              ;
18303            for (wnt_digits = 0;
18304                wnt_version[wnt_digits] >= '0' &&
18305                wnt_version[wnt_digits] <= '9';
18306                wnt_digits++)
18307              ;
18308            if (lib_digits > wnt_digits) {
18309              return 0;
18310            }
18311            if (lib_digits < wnt_digits) {
18312              return 1;
18313            }
18314            /* If we have greater than what we want.  We have it. */
18315            if (*lib_version > *wnt_version) {
18316              return 0;
18317            }
18318            /* If we have less, we don't. */
18319            if (*lib_version < *wnt_version) {
18320              return 1;
18321            }
18322            lib_version++;
18323            wnt_version++;
18324          }
18325          return 0;
18326
18327  ;
18328  return 0;
18329}
18330_ACEOF
18331if ac_fn_c_try_link "$LINENO"; then :
18332
18333          success=yes
18334
18335fi
18336rm -f core conftest.err conftest.$ac_objext \
18337    conftest$ac_exeext conftest.$ac_ext
18338          ac_ext=cpp
18339ac_cpp='$CXXCPP $CPPFLAGS'
18340ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18341ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18342ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18343
18344
18345          # Restore flags.
18346          CPPFLAGS="$CPPFLAGS_SAVED"
18347          LDFLAGS="$LDFLAGS_SAVED"
18348          LIBS="$LIBS_SAVED"
18349          LD_LIBRARY_PATH="$LD_LIBRARY_PATH_SAVED"
18350
18351            else
18352              for ax_libevent_path in "" $lt_sysroot/usr $lt_sysroot/usr/local $lt_sysroot/opt $lt_sysroot/opt/local $lt_sysroot/opt/libevent "$LIBEVENT_ROOT" ; do
18353
18354          # Save our flags.
18355          CPPFLAGS_SAVED="$CPPFLAGS"
18356          LDFLAGS_SAVED="$LDFLAGS"
18357          LIBS_SAVED="$LIBS"
18358          LD_LIBRARY_PATH_SAVED="$LD_LIBRARY_PATH"
18359
18360          # Set our flags if we are checking a specific directory.
18361          if test -n "$ax_libevent_path" ; then
18362            LIBEVENT_CPPFLAGS="-I$ax_libevent_path/include"
18363            LIBEVENT_LDFLAGS="-L$ax_libevent_path/lib"
18364            LD_LIBRARY_PATH="$ax_libevent_path/lib:$LD_LIBRARY_PATH"
18365          else
18366            LIBEVENT_CPPFLAGS=""
18367            LIBEVENT_LDFLAGS=""
18368          fi
18369
18370          # Required flag for libevent.
18371          LIBEVENT_LIBS="-levent"
18372
18373          # Prepare the environment for compilation.
18374          CPPFLAGS="$CPPFLAGS $LIBEVENT_CPPFLAGS"
18375          LDFLAGS="$LDFLAGS $LIBEVENT_LDFLAGS"
18376          LIBS="$LIBS $LIBEVENT_LIBS"
18377          export CPPFLAGS
18378          export LDFLAGS
18379          export LIBS
18380          export LD_LIBRARY_PATH
18381
18382          success=no
18383
18384          # Compile, link, and run the program.  This checks:
18385          # - event.h is available for including.
18386          # - event_get_version() is available for linking.
18387          # - The event version string is lexicographically greater
18388          #   than the required version.
18389          ac_ext=c
18390ac_cpp='$CPP $CPPFLAGS'
18391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18393ac_compiler_gnu=$ac_cv_c_compiler_gnu
18394
18395                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18396/* end confdefs.h.  */
18397
18398          #include <sys/types.h>
18399          #include <event.h>
18400
18401int
18402main ()
18403{
18404
18405          const char* lib_version = event_get_version();
18406          const char* wnt_version = "$WANT_LIBEVENT_VERSION";
18407          int lib_digits;
18408          int wnt_digits;
18409          for (;;) {
18410            /* If we reached the end of the want version.  We have it. */
18411            if (*wnt_version == '\0' || *wnt_version == '-') {
18412              return 0;
18413            }
18414            /* If the want version continues but the lib version does not, */
18415            /* we are missing a letter.  We don't have it. */
18416            if (*lib_version == '\0' || *lib_version == '-') {
18417              return 1;
18418            }
18419            /* In the 1.4 version numbering style, if there are more digits */
18420            /* in one version than the other, that one is higher. */
18421            for (lib_digits = 0;
18422                lib_version[lib_digits] >= '0' &&
18423                lib_version[lib_digits] <= '9';
18424                lib_digits++)
18425              ;
18426            for (wnt_digits = 0;
18427                wnt_version[wnt_digits] >= '0' &&
18428                wnt_version[wnt_digits] <= '9';
18429                wnt_digits++)
18430              ;
18431            if (lib_digits > wnt_digits) {
18432              return 0;
18433            }
18434            if (lib_digits < wnt_digits) {
18435              return 1;
18436            }
18437            /* If we have greater than what we want.  We have it. */
18438            if (*lib_version > *wnt_version) {
18439              return 0;
18440            }
18441            /* If we have less, we don't. */
18442            if (*lib_version < *wnt_version) {
18443              return 1;
18444            }
18445            lib_version++;
18446            wnt_version++;
18447          }
18448          return 0;
18449
18450  ;
18451  return 0;
18452}
18453_ACEOF
18454if ac_fn_c_try_link "$LINENO"; then :
18455
18456          success=yes
18457
18458fi
18459rm -f core conftest.err conftest.$ac_objext \
18460    conftest$ac_exeext conftest.$ac_ext
18461          ac_ext=cpp
18462ac_cpp='$CXXCPP $CPPFLAGS'
18463ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18464ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18465ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18466
18467
18468          # Restore flags.
18469          CPPFLAGS="$CPPFLAGS_SAVED"
18470          LDFLAGS="$LDFLAGS_SAVED"
18471          LIBS="$LIBS_SAVED"
18472          LD_LIBRARY_PATH="$LD_LIBRARY_PATH_SAVED"
18473
18474                if test "$success" = "yes"; then
18475                  break;
18476                fi
18477              done
18478            fi
18479
18480            if test "$success" != "yes" ; then
18481              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18482$as_echo "no" >&6; }
18483              LIBEVENT_CPPFLAGS=""
18484              LIBEVENT_LDFLAGS=""
18485              LIBEVENT_LIBS=""
18486            else
18487              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18488$as_echo "yes" >&6; }
18489
18490$as_echo "#define HAVE_LIBEVENT /**/" >>confdefs.h
18491
18492              ax_have_libevent_2_0="yes"
18493            fi
18494
18495            ax_have_libevent="$success"
18496
18497
18498
18499
18500          fi
18501
18502
18503  have_libevent=$success
18504
18505
18506
18507
18508# Check whether --with-zlib was given.
18509if test "${with_zlib+set}" = set; then :
18510  withval=$with_zlib;
18511                       if test "x$withval" = "xno"; then
18512                         want_zlib="no"
18513                       elif test "x$withval" = "xyes"; then
18514                         want_zlib="yes"
18515                         ax_zlib_path=""
18516                       else
18517                         want_zlib="yes"
18518                         ax_zlib_path="$withval"
18519                       fi
18520
18521else
18522  want_zlib="yes" ; ax_zlib_path=""
18523fi
18524
18525
18526
18527          if test "$want_zlib" = "yes"; then
18528            # Parse out the version.
18529            zlib_version_req=1.2.3
18530            zlib_version_req_major=`expr $zlib_version_req : '\([0-9]*\)'`
18531            zlib_version_req_minor=`expr $zlib_version_req : '[0-9]*\.\([0-9]*\)'`
18532            zlib_version_req_patch=`expr $zlib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
18533            if test -z "$zlib_version_req_patch" ; then
18534              zlib_version_req_patch="0"
18535            fi
18536            WANT_ZLIB_VERSION=`expr $zlib_version_req_major \* 1000 \+  $zlib_version_req_minor \* 100 \+ $zlib_version_req_patch \* 10`
18537
18538            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= $zlib_version_req" >&5
18539$as_echo_n "checking for zlib >= $zlib_version_req... " >&6; }
18540
18541            # Run tests.
18542            if test -n "$ax_zlib_path"; then
18543
18544          # Save our flags.
18545          CPPFLAGS_SAVED="$CPPFLAGS"
18546          LDFLAGS_SAVED="$LDFLAGS"
18547          LIBS_SAVED="$LIBS"
18548          LD_LIBRARY_PATH_SAVED="$LD_LIBRARY_PATH"
18549
18550          # Set our flags if we are checking a specific directory.
18551          if test -n "$ax_zlib_path" ; then
18552            ZLIB_CPPFLAGS="-I$ax_zlib_path/include"
18553            ZLIB_LDFLAGS="-L$ax_zlib_path/lib"
18554            LD_LIBRARY_PATH="$ax_zlib_path/lib:$LD_LIBRARY_PATH"
18555          else
18556            ZLIB_CPPFLAGS=""
18557            ZLIB_LDFLAGS=""
18558          fi
18559
18560          # Required flag for zlib.
18561          ZLIB_LIBS="-lz"
18562
18563          # Prepare the environment for compilation.
18564          CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
18565          LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
18566          LIBS="$LIBS $ZLIB_LIBS"
18567          export CPPFLAGS
18568          export LDFLAGS
18569          export LIBS
18570          export LD_LIBRARY_PATH
18571
18572          success=no
18573
18574          # Compile, link, and run the program.  This checks:
18575          # - zlib.h is available for including.
18576          # - zlibVersion() is available for linking.
18577          # - ZLIB_VERNUM is greater than or equal to the desired version.
18578          # - ZLIB_VERSION (defined in zlib.h) matches zlibVersion()
18579          #   (defined in the library).
18580          ac_ext=c
18581ac_cpp='$CPP $CPPFLAGS'
18582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18584ac_compiler_gnu=$ac_cv_c_compiler_gnu
18585
18586                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18587/* end confdefs.h.  */
18588
18589          #include <zlib.h>
18590          #if ZLIB_VERNUM >= 0x$WANT_ZLIB_VERSION
18591          #else
18592          # error zlib is too old
18593          #endif
18594
18595int
18596main ()
18597{
18598
18599          const char* lib_version = zlibVersion();
18600          const char* hdr_version = ZLIB_VERSION;
18601          for (;;) {
18602            if (*lib_version != *hdr_version) {
18603              /* If this happens, your zlib header doesn't match your zlib */
18604              /* library.  That is really bad. */
18605              return 1;
18606            }
18607            if (*lib_version == '\0') {
18608              break;
18609            }
18610            lib_version++;
18611            hdr_version++;
18612          }
18613          return 0;
18614
18615  ;
18616  return 0;
18617}
18618_ACEOF
18619if ac_fn_c_try_link "$LINENO"; then :
18620
18621          success=yes
18622
18623fi
18624rm -f core conftest.err conftest.$ac_objext \
18625    conftest$ac_exeext conftest.$ac_ext
18626          ac_ext=cpp
18627ac_cpp='$CXXCPP $CPPFLAGS'
18628ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18629ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18630ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18631
18632
18633          # Restore flags.
18634          CPPFLAGS="$CPPFLAGS_SAVED"
18635          LDFLAGS="$LDFLAGS_SAVED"
18636          LIBS="$LIBS_SAVED"
18637          LD_LIBRARY_PATH="$LD_LIBRARY_PATH_SAVED"
18638
18639            else
18640              for ax_zlib_path in "" /usr /usr/local /opt /opt/zlib "$ZLIB_ROOT" ; do
18641
18642          # Save our flags.
18643          CPPFLAGS_SAVED="$CPPFLAGS"
18644          LDFLAGS_SAVED="$LDFLAGS"
18645          LIBS_SAVED="$LIBS"
18646          LD_LIBRARY_PATH_SAVED="$LD_LIBRARY_PATH"
18647
18648          # Set our flags if we are checking a specific directory.
18649          if test -n "$ax_zlib_path" ; then
18650            ZLIB_CPPFLAGS="-I$ax_zlib_path/include"
18651            ZLIB_LDFLAGS="-L$ax_zlib_path/lib"
18652            LD_LIBRARY_PATH="$ax_zlib_path/lib:$LD_LIBRARY_PATH"
18653          else
18654            ZLIB_CPPFLAGS=""
18655            ZLIB_LDFLAGS=""
18656          fi
18657
18658          # Required flag for zlib.
18659          ZLIB_LIBS="-lz"
18660
18661          # Prepare the environment for compilation.
18662          CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
18663          LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
18664          LIBS="$LIBS $ZLIB_LIBS"
18665          export CPPFLAGS
18666          export LDFLAGS
18667          export LIBS
18668          export LD_LIBRARY_PATH
18669
18670          success=no
18671
18672          # Compile, link, and run the program.  This checks:
18673          # - zlib.h is available for including.
18674          # - zlibVersion() is available for linking.
18675          # - ZLIB_VERNUM is greater than or equal to the desired version.
18676          # - ZLIB_VERSION (defined in zlib.h) matches zlibVersion()
18677          #   (defined in the library).
18678          ac_ext=c
18679ac_cpp='$CPP $CPPFLAGS'
18680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18682ac_compiler_gnu=$ac_cv_c_compiler_gnu
18683
18684                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18685/* end confdefs.h.  */
18686
18687          #include <zlib.h>
18688          #if ZLIB_VERNUM >= 0x$WANT_ZLIB_VERSION
18689          #else
18690          # error zlib is too old
18691          #endif
18692
18693int
18694main ()
18695{
18696
18697          const char* lib_version = zlibVersion();
18698          const char* hdr_version = ZLIB_VERSION;
18699          for (;;) {
18700            if (*lib_version != *hdr_version) {
18701              /* If this happens, your zlib header doesn't match your zlib */
18702              /* library.  That is really bad. */
18703              return 1;
18704            }
18705            if (*lib_version == '\0') {
18706              break;
18707            }
18708            lib_version++;
18709            hdr_version++;
18710          }
18711          return 0;
18712
18713  ;
18714  return 0;
18715}
18716_ACEOF
18717if ac_fn_c_try_link "$LINENO"; then :
18718
18719          success=yes
18720
18721fi
18722rm -f core conftest.err conftest.$ac_objext \
18723    conftest$ac_exeext conftest.$ac_ext
18724          ac_ext=cpp
18725ac_cpp='$CXXCPP $CPPFLAGS'
18726ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18727ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18728ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18729
18730
18731          # Restore flags.
18732          CPPFLAGS="$CPPFLAGS_SAVED"
18733          LDFLAGS="$LDFLAGS_SAVED"
18734          LIBS="$LIBS_SAVED"
18735          LD_LIBRARY_PATH="$LD_LIBRARY_PATH_SAVED"
18736
18737                if test "$success" = "yes"; then
18738                  break;
18739                fi
18740              done
18741            fi
18742
18743            if test "$success" != "yes" ; then
18744              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18745$as_echo "no" >&6; }
18746              ZLIB_CPPFLAGS=""
18747              ZLIB_LDFLAGS=""
18748              ZLIB_LIBS=""
18749            else
18750              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18751$as_echo "yes" >&6; }
18752
18753$as_echo "#define HAVE_ZLIB /**/" >>confdefs.h
18754
18755            fi
18756
18757            ax_have_zlib="$success"
18758
18759
18760
18761
18762          fi
18763
18764
18765  have_zlib=$success
18766
18767
18768
18769# Check whether --with-qt5 was given.
18770if test "${with_qt5+set}" = set; then :
18771  withval=$with_qt5; with_qt5="$withval"
18772else
18773  with_qt5=yes
18774
18775fi
18776
18777          have_qt5=no
18778
18779  have_qt5=no
18780  qt_reduce_reloc=""
18781  if test "$with_qt5" = "yes";  then
18782
18783pkg_failed=no
18784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT5" >&5
18785$as_echo_n "checking for QT5... " >&6; }
18786
18787if test -n "$QT5_CFLAGS"; then
18788    pkg_cv_QT5_CFLAGS="$QT5_CFLAGS"
18789 elif test -n "$PKG_CONFIG"; then
18790    if test -n "$PKG_CONFIG" && \
18791    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.0, Qt5Network >= 5.0\""; } >&5
18792  ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.0, Qt5Network >= 5.0") 2>&5
18793  ac_status=$?
18794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18795  test $ac_status = 0; }; then
18796  pkg_cv_QT5_CFLAGS=`$PKG_CONFIG --cflags "Qt5Core >= 5.0, Qt5Network >= 5.0" 2>/dev/null`
18797		      test "x$?" != "x0" && pkg_failed=yes
18798else
18799  pkg_failed=yes
18800fi
18801 else
18802    pkg_failed=untried
18803fi
18804if test -n "$QT5_LIBS"; then
18805    pkg_cv_QT5_LIBS="$QT5_LIBS"
18806 elif test -n "$PKG_CONFIG"; then
18807    if test -n "$PKG_CONFIG" && \
18808    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.0, Qt5Network >= 5.0\""; } >&5
18809  ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.0, Qt5Network >= 5.0") 2>&5
18810  ac_status=$?
18811  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18812  test $ac_status = 0; }; then
18813  pkg_cv_QT5_LIBS=`$PKG_CONFIG --libs "Qt5Core >= 5.0, Qt5Network >= 5.0" 2>/dev/null`
18814		      test "x$?" != "x0" && pkg_failed=yes
18815else
18816  pkg_failed=yes
18817fi
18818 else
18819    pkg_failed=untried
18820fi
18821
18822
18823
18824if test $pkg_failed = yes; then
18825   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18826$as_echo "no" >&6; }
18827
18828if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18829        _pkg_short_errors_supported=yes
18830else
18831        _pkg_short_errors_supported=no
18832fi
18833        if test $_pkg_short_errors_supported = yes; then
18834	        QT5_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "Qt5Core >= 5.0, Qt5Network >= 5.0" 2>&1`
18835        else
18836	        QT5_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "Qt5Core >= 5.0, Qt5Network >= 5.0" 2>&1`
18837        fi
18838	# Put the nasty error message in config.log where it belongs
18839	echo "$QT5_PKG_ERRORS" >&5
18840
18841	have_qt5=no
18842elif test $pkg_failed = untried; then
18843     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18844$as_echo "no" >&6; }
18845	have_qt5=no
18846else
18847	QT5_CFLAGS=$pkg_cv_QT5_CFLAGS
18848	QT5_LIBS=$pkg_cv_QT5_LIBS
18849        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18850$as_echo "yes" >&6; }
18851	have_qt5=yes;qt_reduce_reloc=`$PKG_CONFIG --variable=qt_config Qt5Core | grep "reduce_relocations"`
18852fi
18853  fi
18854  if test "$have_qt5" = "yes"; then
18855    for ac_prog in moc-qt5 moc
18856do
18857  # Extract the first word of "$ac_prog", so it can be a program name with args.
18858set dummy $ac_prog; ac_word=$2
18859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18860$as_echo_n "checking for $ac_word... " >&6; }
18861if ${ac_cv_path_QT5_MOC+:} false; then :
18862  $as_echo_n "(cached) " >&6
18863else
18864  case $QT5_MOC in
18865  [\\/]* | ?:[\\/]*)
18866  ac_cv_path_QT5_MOC="$QT5_MOC" # Let the user override the test with a path.
18867  ;;
18868  *)
18869  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18870for as_dir in $PATH
18871do
18872  IFS=$as_save_IFS
18873  test -z "$as_dir" && as_dir=.
18874    for ac_exec_ext in '' $ac_executable_extensions; do
18875  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18876    ac_cv_path_QT5_MOC="$as_dir/$ac_word$ac_exec_ext"
18877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18878    break 2
18879  fi
18880done
18881  done
18882IFS=$as_save_IFS
18883
18884  ;;
18885esac
18886fi
18887QT5_MOC=$ac_cv_path_QT5_MOC
18888if test -n "$QT5_MOC"; then
18889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT5_MOC" >&5
18890$as_echo "$QT5_MOC" >&6; }
18891else
18892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18893$as_echo "no" >&6; }
18894fi
18895
18896
18897  test -n "$QT5_MOC" && break
18898done
18899test -n "$QT5_MOC" || QT5_MOC=""fail""
18900
18901    if test "$QT5_MOC" = "fail"; then
18902      have_qt5=no
18903    fi
18904  fi
18905fi
18906 if test "$have_cpp" = "yes"; then
18907  WITH_CPP_TRUE=
18908  WITH_CPP_FALSE='#'
18909else
18910  WITH_CPP_TRUE='#'
18911  WITH_CPP_FALSE=
18912fi
18913
18914 if test "$have_libevent" = "yes"; then
18915  AMX_HAVE_LIBEVENT_TRUE=
18916  AMX_HAVE_LIBEVENT_FALSE='#'
18917else
18918  AMX_HAVE_LIBEVENT_TRUE='#'
18919  AMX_HAVE_LIBEVENT_FALSE=
18920fi
18921
18922 if test "$have_zlib" = "yes"; then
18923  AMX_HAVE_ZLIB_TRUE=
18924  AMX_HAVE_ZLIB_FALSE='#'
18925else
18926  AMX_HAVE_ZLIB_TRUE='#'
18927  AMX_HAVE_ZLIB_FALSE=
18928fi
18929
18930 if test "$have_qt5" = "yes"; then
18931  AMX_HAVE_QT5_TRUE=
18932  AMX_HAVE_QT5_FALSE='#'
18933else
18934  AMX_HAVE_QT5_TRUE='#'
18935  AMX_HAVE_QT5_FALSE=
18936fi
18937
18938 if test "x$qt_reduce_reloc" != "x"; then
18939  QT5_REDUCE_RELOCATIONS_TRUE=
18940  QT5_REDUCE_RELOCATIONS_FALSE='#'
18941else
18942  QT5_REDUCE_RELOCATIONS_TRUE='#'
18943  QT5_REDUCE_RELOCATIONS_FALSE=
18944fi
18945
18946
18947
18948
18949# Check whether --with-c_glib was given.
18950if test "${with_c_glib+set}" = set; then :
18951  withval=$with_c_glib; with_c_glib="$withval"
18952else
18953  with_c_glib=yes
18954
18955fi
18956
18957          have_c_glib=no
18958
18959if test "$with_c_glib" = "yes"; then
18960
18961pkg_failed=no
18962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
18963$as_echo_n "checking for GLIB... " >&6; }
18964
18965if test -n "$GLIB_CFLAGS"; then
18966    pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
18967 elif test -n "$PKG_CONFIG"; then
18968    if test -n "$PKG_CONFIG" && \
18969    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.0\""; } >&5
18970  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.0") 2>&5
18971  ac_status=$?
18972  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18973  test $ac_status = 0; }; then
18974  pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.0" 2>/dev/null`
18975		      test "x$?" != "x0" && pkg_failed=yes
18976else
18977  pkg_failed=yes
18978fi
18979 else
18980    pkg_failed=untried
18981fi
18982if test -n "$GLIB_LIBS"; then
18983    pkg_cv_GLIB_LIBS="$GLIB_LIBS"
18984 elif test -n "$PKG_CONFIG"; then
18985    if test -n "$PKG_CONFIG" && \
18986    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.0\""; } >&5
18987  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.0") 2>&5
18988  ac_status=$?
18989  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18990  test $ac_status = 0; }; then
18991  pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.0" 2>/dev/null`
18992		      test "x$?" != "x0" && pkg_failed=yes
18993else
18994  pkg_failed=yes
18995fi
18996 else
18997    pkg_failed=untried
18998fi
18999
19000
19001
19002if test $pkg_failed = yes; then
19003   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19004$as_echo "no" >&6; }
19005
19006if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19007        _pkg_short_errors_supported=yes
19008else
19009        _pkg_short_errors_supported=no
19010fi
19011        if test $_pkg_short_errors_supported = yes; then
19012	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.0" 2>&1`
19013        else
19014	        GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.0" 2>&1`
19015        fi
19016	# Put the nasty error message in config.log where it belongs
19017	echo "$GLIB_PKG_ERRORS" >&5
19018
19019	have_glib2=no
19020elif test $pkg_failed = untried; then
19021     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19022$as_echo "no" >&6; }
19023	have_glib2=no
19024else
19025	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
19026	GLIB_LIBS=$pkg_cv_GLIB_LIBS
19027        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19028$as_echo "yes" >&6; }
19029	have_glib2=yes
19030fi
19031
19032pkg_failed=no
19033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
19034$as_echo_n "checking for GOBJECT... " >&6; }
19035
19036if test -n "$GOBJECT_CFLAGS"; then
19037    pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
19038 elif test -n "$PKG_CONFIG"; then
19039    if test -n "$PKG_CONFIG" && \
19040    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 >= 2.0\""; } >&5
19041  ($PKG_CONFIG --exists --print-errors "gobject-2.0 >= 2.0") 2>&5
19042  ac_status=$?
19043  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19044  test $ac_status = 0; }; then
19045  pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 >= 2.0" 2>/dev/null`
19046		      test "x$?" != "x0" && pkg_failed=yes
19047else
19048  pkg_failed=yes
19049fi
19050 else
19051    pkg_failed=untried
19052fi
19053if test -n "$GOBJECT_LIBS"; then
19054    pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
19055 elif test -n "$PKG_CONFIG"; then
19056    if test -n "$PKG_CONFIG" && \
19057    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 >= 2.0\""; } >&5
19058  ($PKG_CONFIG --exists --print-errors "gobject-2.0 >= 2.0") 2>&5
19059  ac_status=$?
19060  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19061  test $ac_status = 0; }; then
19062  pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 >= 2.0" 2>/dev/null`
19063		      test "x$?" != "x0" && pkg_failed=yes
19064else
19065  pkg_failed=yes
19066fi
19067 else
19068    pkg_failed=untried
19069fi
19070
19071
19072
19073if test $pkg_failed = yes; then
19074   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19075$as_echo "no" >&6; }
19076
19077if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19078        _pkg_short_errors_supported=yes
19079else
19080        _pkg_short_errors_supported=no
19081fi
19082        if test $_pkg_short_errors_supported = yes; then
19083	        GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0 >= 2.0" 2>&1`
19084        else
19085	        GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0 >= 2.0" 2>&1`
19086        fi
19087	# Put the nasty error message in config.log where it belongs
19088	echo "$GOBJECT_PKG_ERRORS" >&5
19089
19090	have_gobject2=no
19091elif test $pkg_failed = untried; then
19092     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19093$as_echo "no" >&6; }
19094	have_gobject2=no
19095else
19096	GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
19097	GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
19098        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19099$as_echo "yes" >&6; }
19100	have_gobject2=yes
19101fi
19102  if test "$have_glib2" = "yes" -a "$have_gobject2" = "yes" ; then
19103    # Extract the first word of "gsettings", so it can be a program name with args.
19104set dummy gsettings; ac_word=$2
19105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19106$as_echo_n "checking for $ac_word... " >&6; }
19107if ${ac_cv_path_GSETTINGS+:} false; then :
19108  $as_echo_n "(cached) " >&6
19109else
19110  case $GSETTINGS in
19111  [\\/]* | ?:[\\/]*)
19112  ac_cv_path_GSETTINGS="$GSETTINGS" # Let the user override the test with a path.
19113  ;;
19114  *)
19115  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19116for as_dir in $PATH
19117do
19118  IFS=$as_save_IFS
19119  test -z "$as_dir" && as_dir=.
19120    for ac_exec_ext in '' $ac_executable_extensions; do
19121  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19122    ac_cv_path_GSETTINGS="$as_dir/$ac_word$ac_exec_ext"
19123    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19124    break 2
19125  fi
19126done
19127  done
19128IFS=$as_save_IFS
19129
19130  ;;
19131esac
19132fi
19133GSETTINGS=$ac_cv_path_GSETTINGS
19134if test -n "$GSETTINGS"; then
19135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS" >&5
19136$as_echo "$GSETTINGS" >&6; }
19137else
19138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19139$as_echo "no" >&6; }
19140fi
19141
19142
19143    have_c_glib="yes"
19144  fi
19145fi
19146 if test "$have_glib2" = "yes" -a "$have_gobject2" = "yes"; then
19147  WITH_C_GLIB_TRUE=
19148  WITH_C_GLIB_FALSE='#'
19149else
19150  WITH_C_GLIB_TRUE='#'
19151  WITH_C_GLIB_FALSE=
19152fi
19153
19154
19155# echo "OpenSSL check"
19156if test "$have_cpp" = "yes" -o "$have_c_glib" = "yes";  then
19157  # echo "Have cpp or c so we check for OpenSSL"
19158
19159    found=false
19160
19161# Check whether --with-openssl was given.
19162if test "${with_openssl+set}" = set; then :
19163  withval=$with_openssl;
19164            case "$withval" in
19165            "" | y | ye | yes | n | no)
19166            as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
19167              ;;
19168            *) ssldirs="$withval"
19169              ;;
19170            esac
19171
19172else
19173
19174            # if pkg-config is installed and openssl has installed a .pc file,
19175            # then use that information and don't search ssldirs
19176            if test -n "$ac_tool_prefix"; then
19177  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19178set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19180$as_echo_n "checking for $ac_word... " >&6; }
19181if ${ac_cv_prog_PKG_CONFIG+:} false; then :
19182  $as_echo_n "(cached) " >&6
19183else
19184  if test -n "$PKG_CONFIG"; then
19185  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
19186else
19187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19188for as_dir in $PATH
19189do
19190  IFS=$as_save_IFS
19191  test -z "$as_dir" && as_dir=.
19192    for ac_exec_ext in '' $ac_executable_extensions; do
19193  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19194    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
19195    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19196    break 2
19197  fi
19198done
19199  done
19200IFS=$as_save_IFS
19201
19202fi
19203fi
19204PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
19205if test -n "$PKG_CONFIG"; then
19206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19207$as_echo "$PKG_CONFIG" >&6; }
19208else
19209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19210$as_echo "no" >&6; }
19211fi
19212
19213
19214fi
19215if test -z "$ac_cv_prog_PKG_CONFIG"; then
19216  ac_ct_PKG_CONFIG=$PKG_CONFIG
19217  # Extract the first word of "pkg-config", so it can be a program name with args.
19218set dummy pkg-config; ac_word=$2
19219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19220$as_echo_n "checking for $ac_word... " >&6; }
19221if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
19222  $as_echo_n "(cached) " >&6
19223else
19224  if test -n "$ac_ct_PKG_CONFIG"; then
19225  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
19226else
19227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19228for as_dir in $PATH
19229do
19230  IFS=$as_save_IFS
19231  test -z "$as_dir" && as_dir=.
19232    for ac_exec_ext in '' $ac_executable_extensions; do
19233  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19234    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
19235    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19236    break 2
19237  fi
19238done
19239  done
19240IFS=$as_save_IFS
19241
19242fi
19243fi
19244ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
19245if test -n "$ac_ct_PKG_CONFIG"; then
19246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
19247$as_echo "$ac_ct_PKG_CONFIG" >&6; }
19248else
19249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19250$as_echo "no" >&6; }
19251fi
19252
19253  if test "x$ac_ct_PKG_CONFIG" = x; then
19254    PKG_CONFIG=""
19255  else
19256    case $cross_compiling:$ac_tool_warned in
19257yes:)
19258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19260ac_tool_warned=yes ;;
19261esac
19262    PKG_CONFIG=$ac_ct_PKG_CONFIG
19263  fi
19264else
19265  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
19266fi
19267
19268            if test x"$PKG_CONFIG" != x""; then
19269                OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
19270                if test $? = 0; then
19271                    OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
19272                    OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
19273                    found=true
19274                fi
19275            fi
19276
19277            # no such luck; use some default ssldirs
19278            if ! $found; then
19279                ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
19280            fi
19281
19282
19283fi
19284
19285
19286
19287    # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
19288    # an 'openssl' subdirectory
19289
19290    if ! $found; then
19291        OPENSSL_INCLUDES=
19292        for ssldir in $ssldirs; do
19293            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
19294$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
19295            if test -f "$ssldir/include/openssl/ssl.h"; then
19296                OPENSSL_INCLUDES="-I$ssldir/include"
19297                OPENSSL_LDFLAGS="-L$ssldir/lib"
19298                OPENSSL_LIBS="-lssl -lcrypto"
19299                found=true
19300                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19301$as_echo "yes" >&6; }
19302                break
19303            else
19304                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19305$as_echo "no" >&6; }
19306            fi
19307        done
19308
19309        # if the file wasn't found, well, go ahead and try the link anyway -- maybe
19310        # it will just work!
19311    fi
19312
19313    # try the preprocessor and linker with our new flags,
19314    # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
19315
19316    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
19317$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
19318    echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
19319        "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
19320
19321    save_LIBS="$LIBS"
19322    save_LDFLAGS="$LDFLAGS"
19323    save_CPPFLAGS="$CPPFLAGS"
19324    LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
19325    LIBS="$OPENSSL_LIBS $LIBS"
19326    CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
19327    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19328/* end confdefs.h.  */
19329#include <openssl/ssl.h>
19330int
19331main ()
19332{
19333SSL_new(NULL)
19334  ;
19335  return 0;
19336}
19337_ACEOF
19338if ac_fn_cxx_try_link "$LINENO"; then :
19339
19340            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19341$as_echo "yes" >&6; }
19342
19343
19344else
19345
19346            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19347$as_echo "no" >&6; }
19348
19349
19350fi
19351rm -f core conftest.err conftest.$ac_objext \
19352    conftest$ac_exeext conftest.$ac_ext
19353    CPPFLAGS="$save_CPPFLAGS"
19354    LDFLAGS="$save_LDFLAGS"
19355    LIBS="$save_LIBS"
19356
19357
19358
19359
19360
19361fi
19362
19363
19364
19365
19366# Check whether --with-java was given.
19367if test "${with_java+set}" = set; then :
19368  withval=$with_java; with_java="$withval"
19369else
19370  with_java=yes
19371
19372fi
19373
19374          have_java=no
19375
19376if test "$with_java" = "yes";  then
19377
19378
19379                    JAVAC_PROGS="javac,jikes,gcj -C"
19380          JAVA_PROGS="java,kaffe"
19381
19382                    if test -n "$JAVAC" ; then
19383            JAVAC_PROGS="$JAVAC"
19384          fi
19385          if test -n "$JAVA" ; then
19386            JAVA_PROGS="$JAVA"
19387          fi
19388
19389          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac and java" >&5
19390$as_echo_n "checking for javac and java... " >&6; }
19391
19392          echo "public class configtest_ax_javac_and_java { public static void main(String args[]) { } }" > configtest_ax_javac_and_java.java
19393          success=no
19394          oIFS="$IFS"
19395
19396          IFS=","
19397          for JAVAC in $JAVAC_PROGS ; do
19398            IFS="$oIFS"
19399
19400            echo "Running \"$JAVAC configtest_ax_javac_and_java.java\"" >&5
19401            if $JAVAC configtest_ax_javac_and_java.java >&5 2>&1 ; then
19402
19403              # prevent $JAVA VM issues with UTF-8 path names (THRIFT-3271)
19404              oLC_ALL="$LC_ALL"
19405              LC_ALL=""
19406
19407              IFS=","
19408              for JAVA in $JAVA_PROGS ; do
19409                IFS="$oIFS"
19410
19411                echo "Running \"$JAVA configtest_ax_javac_and_java\"" >&5
19412                if $JAVA configtest_ax_javac_and_java >&5 2>&1 ; then
19413                  success=yes
19414                  break 2
19415                fi
19416
19417              done
19418
19419              # restore LC_ALL
19420              LC_ALL="$oLC_ALL"
19421              oLC_ALL=""
19422
19423            fi
19424
19425          done
19426
19427          rm -f configtest_ax_javac_and_java.java configtest_ax_javac_and_java.class
19428
19429          if test "$success" != "yes" ; then
19430            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19431$as_echo "no" >&6; }
19432            JAVAC=""
19433            JAVA=""
19434          else
19435            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19436$as_echo "yes" >&6; }
19437          fi
19438
19439          ax_javac_and_java="$success"
19440
19441
19442  # Extract the first word of "ant", so it can be a program name with args.
19443set dummy ant; ac_word=$2
19444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19445$as_echo_n "checking for $ac_word... " >&6; }
19446if ${ac_cv_path_ANT+:} false; then :
19447  $as_echo_n "(cached) " >&6
19448else
19449  case $ANT in
19450  [\\/]* | ?:[\\/]*)
19451  ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
19452  ;;
19453  *)
19454  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19455for as_dir in $PATH
19456do
19457  IFS=$as_save_IFS
19458  test -z "$as_dir" && as_dir=.
19459    for ac_exec_ext in '' $ac_executable_extensions; do
19460  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19461    ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
19462    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19463    break 2
19464  fi
19465done
19466  done
19467IFS=$as_save_IFS
19468
19469  ;;
19470esac
19471fi
19472ANT=$ac_cv_path_ANT
19473if test -n "$ANT"; then
19474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANT" >&5
19475$as_echo "$ANT" >&6; }
19476else
19477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19478$as_echo "no" >&6; }
19479fi
19480
19481
19482
19483          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ant version > 1.7" >&5
19484$as_echo_n "checking for ant version > 1.7... " >&6; }
19485          ANT_VALID=`expr "x$(printf "1.7\n$($ANT -version 2>/dev/null | sed -n 's/.*version \([0-9\.]*\).*/\1/p')" | sort -t '.' -k 1,1 -k 2,2 -k 3,3 -g | sed -n 1p)" = "x1.7"`
19486          if test "x$ANT_VALID" = "x1" ; then
19487            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19488$as_echo "yes" >&6; }
19489          else
19490            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19491$as_echo "no" >&6; }
19492            ANT=""
19493          fi
19494
19495
19496
19497
19498  if test "x$JAVA" != "x" && test "x$JAVAC" != "x" && test "x$ANT" != "x" ; then
19499    have_java="yes"
19500  fi
19501fi
19502 if test "$have_java" = "yes"; then
19503  WITH_JAVA_TRUE=
19504  WITH_JAVA_FALSE='#'
19505else
19506  WITH_JAVA_TRUE='#'
19507  WITH_JAVA_FALSE=
19508fi
19509
19510
19511
19512
19513# Check whether --with-erlang was given.
19514if test "${with_erlang+set}" = set; then :
19515  withval=$with_erlang; with_erlang="$withval"
19516else
19517  with_erlang=yes
19518
19519fi
19520
19521          have_erlang=no
19522
19523if test "$with_erlang" = "yes";  then
19524  if test -n "$ERL"; then
19525    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erl" >&5
19526$as_echo_n "checking for erl... " >&6; }
19527    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ERL" >&5
19528$as_echo "$ERL" >&6; }
19529else
19530    if test -n "$ac_tool_prefix"; then
19531  # Extract the first word of "${ac_tool_prefix}erl", so it can be a program name with args.
19532set dummy ${ac_tool_prefix}erl; ac_word=$2
19533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19534$as_echo_n "checking for $ac_word... " >&6; }
19535if ${ac_cv_path_ERL+:} false; then :
19536  $as_echo_n "(cached) " >&6
19537else
19538  case $ERL in
19539  [\\/]* | ?:[\\/]*)
19540  ac_cv_path_ERL="$ERL" # Let the user override the test with a path.
19541  ;;
19542  *)
19543  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19544for as_dir in $PATH
19545do
19546  IFS=$as_save_IFS
19547  test -z "$as_dir" && as_dir=.
19548    for ac_exec_ext in '' $ac_executable_extensions; do
19549  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19550    ac_cv_path_ERL="$as_dir/$ac_word$ac_exec_ext"
19551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19552    break 2
19553  fi
19554done
19555  done
19556IFS=$as_save_IFS
19557
19558  ;;
19559esac
19560fi
19561ERL=$ac_cv_path_ERL
19562if test -n "$ERL"; then
19563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ERL" >&5
19564$as_echo "$ERL" >&6; }
19565else
19566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19567$as_echo "no" >&6; }
19568fi
19569
19570
19571fi
19572if test -z "$ac_cv_path_ERL"; then
19573  ac_pt_ERL=$ERL
19574  # Extract the first word of "erl", so it can be a program name with args.
19575set dummy erl; ac_word=$2
19576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19577$as_echo_n "checking for $ac_word... " >&6; }
19578if ${ac_cv_path_ac_pt_ERL+:} false; then :
19579  $as_echo_n "(cached) " >&6
19580else
19581  case $ac_pt_ERL in
19582  [\\/]* | ?:[\\/]*)
19583  ac_cv_path_ac_pt_ERL="$ac_pt_ERL" # Let the user override the test with a path.
19584  ;;
19585  *)
19586  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19587for as_dir in $PATH
19588do
19589  IFS=$as_save_IFS
19590  test -z "$as_dir" && as_dir=.
19591    for ac_exec_ext in '' $ac_executable_extensions; do
19592  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19593    ac_cv_path_ac_pt_ERL="$as_dir/$ac_word$ac_exec_ext"
19594    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19595    break 2
19596  fi
19597done
19598  done
19599IFS=$as_save_IFS
19600
19601  ;;
19602esac
19603fi
19604ac_pt_ERL=$ac_cv_path_ac_pt_ERL
19605if test -n "$ac_pt_ERL"; then
19606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_ERL" >&5
19607$as_echo "$ac_pt_ERL" >&6; }
19608else
19609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19610$as_echo "no" >&6; }
19611fi
19612
19613  if test "x$ac_pt_ERL" = x; then
19614    ERL=""
19615  else
19616    case $cross_compiling:$ac_tool_warned in
19617yes:)
19618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19620ac_tool_warned=yes ;;
19621esac
19622    ERL=$ac_pt_ERL
19623  fi
19624else
19625  ERL="$ac_cv_path_ERL"
19626fi
19627fi
19628
19629  if test -n "$ERLC"; then
19630    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erlc" >&5
19631$as_echo_n "checking for erlc... " >&6; }
19632    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ERLC" >&5
19633$as_echo "$ERLC" >&6; }
19634else
19635    if test -n "$ac_tool_prefix"; then
19636  # Extract the first word of "${ac_tool_prefix}erlc", so it can be a program name with args.
19637set dummy ${ac_tool_prefix}erlc; 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_path_ERLC+:} false; then :
19641  $as_echo_n "(cached) " >&6
19642else
19643  case $ERLC in
19644  [\\/]* | ?:[\\/]*)
19645  ac_cv_path_ERLC="$ERLC" # Let the user override the test with a path.
19646  ;;
19647  *)
19648  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19649for as_dir in $PATH
19650do
19651  IFS=$as_save_IFS
19652  test -z "$as_dir" && as_dir=.
19653    for ac_exec_ext in '' $ac_executable_extensions; do
19654  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19655    ac_cv_path_ERLC="$as_dir/$ac_word$ac_exec_ext"
19656    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19657    break 2
19658  fi
19659done
19660  done
19661IFS=$as_save_IFS
19662
19663  ;;
19664esac
19665fi
19666ERLC=$ac_cv_path_ERLC
19667if test -n "$ERLC"; then
19668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ERLC" >&5
19669$as_echo "$ERLC" >&6; }
19670else
19671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19672$as_echo "no" >&6; }
19673fi
19674
19675
19676fi
19677if test -z "$ac_cv_path_ERLC"; then
19678  ac_pt_ERLC=$ERLC
19679  # Extract the first word of "erlc", so it can be a program name with args.
19680set dummy erlc; ac_word=$2
19681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19682$as_echo_n "checking for $ac_word... " >&6; }
19683if ${ac_cv_path_ac_pt_ERLC+:} false; then :
19684  $as_echo_n "(cached) " >&6
19685else
19686  case $ac_pt_ERLC in
19687  [\\/]* | ?:[\\/]*)
19688  ac_cv_path_ac_pt_ERLC="$ac_pt_ERLC" # Let the user override the test with a path.
19689  ;;
19690  *)
19691  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19692for as_dir in $PATH
19693do
19694  IFS=$as_save_IFS
19695  test -z "$as_dir" && as_dir=.
19696    for ac_exec_ext in '' $ac_executable_extensions; do
19697  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19698    ac_cv_path_ac_pt_ERLC="$as_dir/$ac_word$ac_exec_ext"
19699    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19700    break 2
19701  fi
19702done
19703  done
19704IFS=$as_save_IFS
19705
19706  ;;
19707esac
19708fi
19709ac_pt_ERLC=$ac_cv_path_ac_pt_ERLC
19710if test -n "$ac_pt_ERLC"; then
19711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_ERLC" >&5
19712$as_echo "$ac_pt_ERLC" >&6; }
19713else
19714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19715$as_echo "no" >&6; }
19716fi
19717
19718  if test "x$ac_pt_ERLC" = x; then
19719    ERLC=""
19720  else
19721    case $cross_compiling:$ac_tool_warned in
19722yes:)
19723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19725ac_tool_warned=yes ;;
19726esac
19727    ERLC=$ac_pt_ERLC
19728  fi
19729else
19730  ERLC="$ac_cv_path_ERLC"
19731fi
19732
19733fi
19734
19735  # Extract the first word of "rebar3", so it can be a program name with args.
19736set dummy rebar3; ac_word=$2
19737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19738$as_echo_n "checking for $ac_word... " >&6; }
19739if ${ac_cv_path_REBAR+:} false; then :
19740  $as_echo_n "(cached) " >&6
19741else
19742  case $REBAR in
19743  [\\/]* | ?:[\\/]*)
19744  ac_cv_path_REBAR="$REBAR" # Let the user override the test with a path.
19745  ;;
19746  *)
19747  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19748for as_dir in $PATH
19749do
19750  IFS=$as_save_IFS
19751  test -z "$as_dir" && as_dir=.
19752    for ac_exec_ext in '' $ac_executable_extensions; do
19753  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19754    ac_cv_path_REBAR="$as_dir/$ac_word$ac_exec_ext"
19755    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19756    break 2
19757  fi
19758done
19759  done
19760IFS=$as_save_IFS
19761
19762  ;;
19763esac
19764fi
19765REBAR=$ac_cv_path_REBAR
19766if test -n "$REBAR"; then
19767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REBAR" >&5
19768$as_echo "$REBAR" >&6; }
19769else
19770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19771$as_echo "no" >&6; }
19772fi
19773
19774
19775  if test -n "$ERLC" ; then
19776    if test -n "$ERLC"; then
19777    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erlc" >&5
19778$as_echo_n "checking for erlc... " >&6; }
19779    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ERLC" >&5
19780$as_echo "$ERLC" >&6; }
19781else
19782    if test -n "$ac_tool_prefix"; then
19783  # Extract the first word of "${ac_tool_prefix}erlc", so it can be a program name with args.
19784set dummy ${ac_tool_prefix}erlc; ac_word=$2
19785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19786$as_echo_n "checking for $ac_word... " >&6; }
19787if ${ac_cv_path_ERLC+:} false; then :
19788  $as_echo_n "(cached) " >&6
19789else
19790  case $ERLC in
19791  [\\/]* | ?:[\\/]*)
19792  ac_cv_path_ERLC="$ERLC" # Let the user override the test with a path.
19793  ;;
19794  *)
19795  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19796for as_dir in $PATH
19797do
19798  IFS=$as_save_IFS
19799  test -z "$as_dir" && as_dir=.
19800    for ac_exec_ext in '' $ac_executable_extensions; do
19801  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19802    ac_cv_path_ERLC="$as_dir/$ac_word$ac_exec_ext"
19803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19804    break 2
19805  fi
19806done
19807  done
19808IFS=$as_save_IFS
19809
19810  ;;
19811esac
19812fi
19813ERLC=$ac_cv_path_ERLC
19814if test -n "$ERLC"; then
19815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ERLC" >&5
19816$as_echo "$ERLC" >&6; }
19817else
19818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19819$as_echo "no" >&6; }
19820fi
19821
19822
19823fi
19824if test -z "$ac_cv_path_ERLC"; then
19825  ac_pt_ERLC=$ERLC
19826  # Extract the first word of "erlc", so it can be a program name with args.
19827set dummy erlc; ac_word=$2
19828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19829$as_echo_n "checking for $ac_word... " >&6; }
19830if ${ac_cv_path_ac_pt_ERLC+:} false; then :
19831  $as_echo_n "(cached) " >&6
19832else
19833  case $ac_pt_ERLC in
19834  [\\/]* | ?:[\\/]*)
19835  ac_cv_path_ac_pt_ERLC="$ac_pt_ERLC" # Let the user override the test with a path.
19836  ;;
19837  *)
19838  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19839for as_dir in $PATH
19840do
19841  IFS=$as_save_IFS
19842  test -z "$as_dir" && as_dir=.
19843    for ac_exec_ext in '' $ac_executable_extensions; do
19844  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19845    ac_cv_path_ac_pt_ERLC="$as_dir/$ac_word$ac_exec_ext"
19846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19847    break 2
19848  fi
19849done
19850  done
19851IFS=$as_save_IFS
19852
19853  ;;
19854esac
19855fi
19856ac_pt_ERLC=$ac_cv_path_ac_pt_ERLC
19857if test -n "$ac_pt_ERLC"; then
19858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_ERLC" >&5
19859$as_echo "$ac_pt_ERLC" >&6; }
19860else
19861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19862$as_echo "no" >&6; }
19863fi
19864
19865  if test "x$ac_pt_ERLC" = x; then
19866    ERLC="not found"
19867  else
19868    case $cross_compiling:$ac_tool_warned in
19869yes:)
19870{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19872ac_tool_warned=yes ;;
19873esac
19874    ERLC=$ac_pt_ERLC
19875  fi
19876else
19877  ERLC="$ac_cv_path_ERLC"
19878fi
19879
19880fi
19881
19882if test "$ERLC" = "not found"; then
19883    as_fn_error $? "Erlang/OTP compiler (erlc) not found but required" "$LINENO" 5
19884fi
19885
19886if test -n "$ERL"; then
19887    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erl" >&5
19888$as_echo_n "checking for erl... " >&6; }
19889    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ERL" >&5
19890$as_echo "$ERL" >&6; }
19891else
19892    if test -n "$ac_tool_prefix"; then
19893  # Extract the first word of "${ac_tool_prefix}erl", so it can be a program name with args.
19894set dummy ${ac_tool_prefix}erl; ac_word=$2
19895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19896$as_echo_n "checking for $ac_word... " >&6; }
19897if ${ac_cv_path_ERL+:} false; then :
19898  $as_echo_n "(cached) " >&6
19899else
19900  case $ERL in
19901  [\\/]* | ?:[\\/]*)
19902  ac_cv_path_ERL="$ERL" # Let the user override the test with a path.
19903  ;;
19904  *)
19905  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19906for as_dir in $PATH
19907do
19908  IFS=$as_save_IFS
19909  test -z "$as_dir" && as_dir=.
19910    for ac_exec_ext in '' $ac_executable_extensions; do
19911  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19912    ac_cv_path_ERL="$as_dir/$ac_word$ac_exec_ext"
19913    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19914    break 2
19915  fi
19916done
19917  done
19918IFS=$as_save_IFS
19919
19920  ;;
19921esac
19922fi
19923ERL=$ac_cv_path_ERL
19924if test -n "$ERL"; then
19925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ERL" >&5
19926$as_echo "$ERL" >&6; }
19927else
19928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19929$as_echo "no" >&6; }
19930fi
19931
19932
19933fi
19934if test -z "$ac_cv_path_ERL"; then
19935  ac_pt_ERL=$ERL
19936  # Extract the first word of "erl", so it can be a program name with args.
19937set dummy erl; ac_word=$2
19938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19939$as_echo_n "checking for $ac_word... " >&6; }
19940if ${ac_cv_path_ac_pt_ERL+:} false; then :
19941  $as_echo_n "(cached) " >&6
19942else
19943  case $ac_pt_ERL in
19944  [\\/]* | ?:[\\/]*)
19945  ac_cv_path_ac_pt_ERL="$ac_pt_ERL" # Let the user override the test with a path.
19946  ;;
19947  *)
19948  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19949for as_dir in $PATH
19950do
19951  IFS=$as_save_IFS
19952  test -z "$as_dir" && as_dir=.
19953    for ac_exec_ext in '' $ac_executable_extensions; do
19954  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19955    ac_cv_path_ac_pt_ERL="$as_dir/$ac_word$ac_exec_ext"
19956    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19957    break 2
19958  fi
19959done
19960  done
19961IFS=$as_save_IFS
19962
19963  ;;
19964esac
19965fi
19966ac_pt_ERL=$ac_cv_path_ac_pt_ERL
19967if test -n "$ac_pt_ERL"; then
19968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_ERL" >&5
19969$as_echo "$ac_pt_ERL" >&6; }
19970else
19971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19972$as_echo "no" >&6; }
19973fi
19974
19975  if test "x$ac_pt_ERL" = x; then
19976    ERL="not found"
19977  else
19978    case $cross_compiling:$ac_tool_warned in
19979yes:)
19980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19982ac_tool_warned=yes ;;
19983esac
19984    ERL=$ac_pt_ERL
19985  fi
19986else
19987  ERL="$ac_cv_path_ERL"
19988fi
19989fi
19990
19991if test "$ERL" = "not found"; then
19992    as_fn_error $? "Erlang/OTP interpreter (erl) not found but required" "$LINENO" 5
19993fi
19994
19995
19996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Erlang/OTP library base directory" >&5
19997$as_echo_n "checking for Erlang/OTP library base directory... " >&6; }
19998if ${ac_cv_erlang_lib_dir+:} false; then :
19999  $as_echo_n "(cached) " >&6
20000else
20001  ac_ext=erl
20002ac_compile='$ERLC $ERLCFLAGS -b beam conftest.$ac_ext >&5'
20003ac_link='$ERLC $ERLCFLAGS -b beam conftest.$ac_ext >&5 && echo "#!/bin/sh" > conftest$ac_exeext && $as_echo "\"$ERL\" -run conftest start -run init stop -noshell" >> conftest$ac_exeext && chmod +x conftest$ac_exeext'
20004     if test "$cross_compiling" = yes; then :
20005  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20007as_fn_error $? "cannot run test program while cross compiling
20008See \`config.log' for more details" "$LINENO" 5; }
20009else
20010  cat > conftest.$ac_ext <<_ACEOF
20011-module(conftest).
20012-export([start/0]).
20013
20014start() ->
20015	    LibDir = code:lib_dir(),
20016	    file:write_file("conftest.out", LibDir),
20017	    ReturnValue = 0,
20018	    halt(ReturnValue)
20019.
20020
20021_ACEOF
20022if ac_fn_erl_try_run "$LINENO"; then :
20023  ac_cv_erlang_lib_dir=`cat conftest.out`
20024	 rm -f conftest.out
20025else
20026  rm -f conftest.out
20027	 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20029as_fn_error $? "test Erlang program execution failed
20030See \`config.log' for more details" "$LINENO" 5; }
20031fi
20032rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20033  conftest.$ac_objext conftest.beam conftest.$ac_ext
20034fi
20035
20036     ac_ext=cpp
20037ac_cpp='$CXXCPP $CPPFLAGS'
20038ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20039ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20040ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20041
20042fi
20043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_erlang_lib_dir" >&5
20044$as_echo "$ac_cv_erlang_lib_dir" >&6; }
20045ERLANG_LIB_DIR=$ac_cv_erlang_lib_dir
20046
20047
20048    # Install into the detected Erlang directory instead of $libdir/erlang/lib
20049    ERLANG_INSTALL_LIB_DIR="$ERLANG_LIB_DIR"
20050    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Erlang/OTP library installation base directory" >&5
20051$as_echo_n "checking for Erlang/OTP library installation base directory... " >&6; }
20052
20053if test -n "$ERLANG_INSTALL_LIB_DIR"; then
20054    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ERLANG_INSTALL_LIB_DIR" >&5
20055$as_echo "$ERLANG_INSTALL_LIB_DIR" >&6; }
20056else
20057    ERLANG_INSTALL_LIB_DIR='${libdir}/erlang/lib'
20058
20059    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libdir/erlang/lib" >&5
20060$as_echo "$libdir/erlang/lib" >&6; }
20061fi
20062
20063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Erlang/OTP 'thrift' library installation subdirectory" >&5
20064$as_echo_n "checking for Erlang/OTP 'thrift' library installation subdirectory... " >&6; }
20065
20066if test -n "$ERLANG_INSTALL_LIB_DIR_thrift"; then
20067    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ERLANG_INSTALL_LIB_DIR_thrift" >&5
20068$as_echo "$ERLANG_INSTALL_LIB_DIR_thrift" >&6; }
20069else
20070    ERLANG_INSTALL_LIB_DIR_thrift='${ERLANG_INSTALL_LIB_DIR}/thrift-0.14.0'
20071
20072    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ERLANG_INSTALL_LIB_DIR/thrift-0.14.0" >&5
20073$as_echo "$ERLANG_INSTALL_LIB_DIR/thrift-0.14.0" >&6; }
20074fi
20075
20076  fi
20077  if test -n "$ERL" -a -n "$ERLC" && test "x$REBAR" != "x" ; then
20078    have_erlang="yes"
20079
20080    # otp_release is simply a number (like "17") for OTP17+ while "R16..." for OTP16 or less.
20081    # OTP version is currently only used for running tests.
20082    if $ERL -eval 'erlang:display(erlang:system_info(otp_release)),halt().' -noshell | grep "^\"R" >/dev/null; then
20083      erlang_otp16_or_less="yes"
20084    fi
20085  fi
20086fi
20087 if test "$have_erlang" = "yes"; then
20088  WITH_ERLANG_TRUE=
20089  WITH_ERLANG_FALSE='#'
20090else
20091  WITH_ERLANG_TRUE='#'
20092  WITH_ERLANG_FALSE=
20093fi
20094
20095 if test "$erlang_otp16_or_less" = "yes"; then
20096  ERLANG_OTP16_TRUE=
20097  ERLANG_OTP16_FALSE='#'
20098else
20099  ERLANG_OTP16_TRUE='#'
20100  ERLANG_OTP16_FALSE=
20101fi
20102
20103
20104
20105
20106# Check whether --with-nodejs was given.
20107if test "${with_nodejs+set}" = set; then :
20108  withval=$with_nodejs; with_nodejs="$withval"
20109else
20110  with_nodejs=yes
20111
20112fi
20113
20114          have_nodejs=no
20115
20116have_nodejs=no
20117if test "$with_nodejs" = "yes"; then
20118  for ac_prog in nodejs node
20119do
20120  # Extract the first word of "$ac_prog", so it can be a program name with args.
20121set dummy $ac_prog; ac_word=$2
20122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20123$as_echo_n "checking for $ac_word... " >&6; }
20124if ${ac_cv_path_NODEJS+:} false; then :
20125  $as_echo_n "(cached) " >&6
20126else
20127  case $NODEJS in
20128  [\\/]* | ?:[\\/]*)
20129  ac_cv_path_NODEJS="$NODEJS" # Let the user override the test with a path.
20130  ;;
20131  *)
20132  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20133for as_dir in $PATH
20134do
20135  IFS=$as_save_IFS
20136  test -z "$as_dir" && as_dir=.
20137    for ac_exec_ext in '' $ac_executable_extensions; do
20138  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20139    ac_cv_path_NODEJS="$as_dir/$ac_word$ac_exec_ext"
20140    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20141    break 2
20142  fi
20143done
20144  done
20145IFS=$as_save_IFS
20146
20147  ;;
20148esac
20149fi
20150NODEJS=$ac_cv_path_NODEJS
20151if test -n "$NODEJS"; then
20152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NODEJS" >&5
20153$as_echo "$NODEJS" >&6; }
20154else
20155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20156$as_echo "no" >&6; }
20157fi
20158
20159
20160  test -n "$NODEJS" && break
20161done
20162
20163  # Extract the first word of "npm", so it can be a program name with args.
20164set dummy npm; ac_word=$2
20165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20166$as_echo_n "checking for $ac_word... " >&6; }
20167if ${ac_cv_path_NPM+:} false; then :
20168  $as_echo_n "(cached) " >&6
20169else
20170  case $NPM in
20171  [\\/]* | ?:[\\/]*)
20172  ac_cv_path_NPM="$NPM" # Let the user override the test with a path.
20173  ;;
20174  *)
20175  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20176for as_dir in $PATH
20177do
20178  IFS=$as_save_IFS
20179  test -z "$as_dir" && as_dir=.
20180    for ac_exec_ext in '' $ac_executable_extensions; do
20181  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20182    ac_cv_path_NPM="$as_dir/$ac_word$ac_exec_ext"
20183    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20184    break 2
20185  fi
20186done
20187  done
20188IFS=$as_save_IFS
20189
20190  ;;
20191esac
20192fi
20193NPM=$ac_cv_path_NPM
20194if test -n "$NPM"; then
20195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPM" >&5
20196$as_echo "$NPM" >&6; }
20197else
20198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20199$as_echo "no" >&6; }
20200fi
20201
20202
20203  if test "x$NODEJS" != "x" -a "x$NPM" != "x"; then
20204    have_nodejs="yes"
20205  fi
20206fi
20207 if test "$have_nodejs" = "yes"; then
20208  WITH_NODEJS_TRUE=
20209  WITH_NODEJS_FALSE='#'
20210else
20211  WITH_NODEJS_TRUE='#'
20212  WITH_NODEJS_FALSE=
20213fi
20214
20215 if test "x$NPM" != "x"; then
20216  HAVE_NPM_TRUE=
20217  HAVE_NPM_FALSE='#'
20218else
20219  HAVE_NPM_TRUE='#'
20220  HAVE_NPM_FALSE=
20221fi
20222
20223
20224
20225
20226# Check whether --with-nodets was given.
20227if test "${with_nodets+set}" = set; then :
20228  withval=$with_nodets; with_nodets="$withval"
20229else
20230  with_nodets=yes
20231
20232fi
20233
20234          have_nodets=no
20235
20236have_nodets=no
20237if test "$with_nodets" = "yes"; then
20238  for ac_prog in nodets node
20239do
20240  # Extract the first word of "$ac_prog", so it can be a program name with args.
20241set dummy $ac_prog; ac_word=$2
20242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20243$as_echo_n "checking for $ac_word... " >&6; }
20244if ${ac_cv_path_NODETS+:} false; then :
20245  $as_echo_n "(cached) " >&6
20246else
20247  case $NODETS in
20248  [\\/]* | ?:[\\/]*)
20249  ac_cv_path_NODETS="$NODETS" # Let the user override the test with a path.
20250  ;;
20251  *)
20252  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20253for as_dir in $PATH
20254do
20255  IFS=$as_save_IFS
20256  test -z "$as_dir" && as_dir=.
20257    for ac_exec_ext in '' $ac_executable_extensions; do
20258  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20259    ac_cv_path_NODETS="$as_dir/$ac_word$ac_exec_ext"
20260    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20261    break 2
20262  fi
20263done
20264  done
20265IFS=$as_save_IFS
20266
20267  ;;
20268esac
20269fi
20270NODETS=$ac_cv_path_NODETS
20271if test -n "$NODETS"; then
20272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NODETS" >&5
20273$as_echo "$NODETS" >&6; }
20274else
20275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20276$as_echo "no" >&6; }
20277fi
20278
20279
20280  test -n "$NODETS" && break
20281done
20282
20283  # Extract the first word of "npm", so it can be a program name with args.
20284set dummy npm; ac_word=$2
20285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20286$as_echo_n "checking for $ac_word... " >&6; }
20287if ${ac_cv_path_NPM+:} false; then :
20288  $as_echo_n "(cached) " >&6
20289else
20290  case $NPM in
20291  [\\/]* | ?:[\\/]*)
20292  ac_cv_path_NPM="$NPM" # Let the user override the test with a path.
20293  ;;
20294  *)
20295  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20296for as_dir in $PATH
20297do
20298  IFS=$as_save_IFS
20299  test -z "$as_dir" && as_dir=.
20300    for ac_exec_ext in '' $ac_executable_extensions; do
20301  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20302    ac_cv_path_NPM="$as_dir/$ac_word$ac_exec_ext"
20303    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20304    break 2
20305  fi
20306done
20307  done
20308IFS=$as_save_IFS
20309
20310  ;;
20311esac
20312fi
20313NPM=$ac_cv_path_NPM
20314if test -n "$NPM"; then
20315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPM" >&5
20316$as_echo "$NPM" >&6; }
20317else
20318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20319$as_echo "no" >&6; }
20320fi
20321
20322
20323  if test "x$NODETS" != "x" -a "x$NPM" != "x"; then
20324    have_nodets="yes"
20325  fi
20326fi
20327 if test "$have_nodets" = "yes"; then
20328  WITH_NODETS_TRUE=
20329  WITH_NODETS_FALSE='#'
20330else
20331  WITH_NODETS_TRUE='#'
20332  WITH_NODETS_FALSE=
20333fi
20334
20335 if test "x$NPM" != "x"; then
20336  HAVE_NPM_TRUE=
20337  HAVE_NPM_FALSE='#'
20338else
20339  HAVE_NPM_TRUE='#'
20340  HAVE_NPM_FALSE=
20341fi
20342
20343
20344
20345
20346# Check whether --with-lua was given.
20347if test "${with_lua+set}" = set; then :
20348  withval=$with_lua; with_lua="$withval"
20349else
20350  with_lua=yes
20351
20352fi
20353
20354          have_lua=no
20355
20356have_lua=no
20357if test "$with_lua" = "yes"; then
20358
20359
20360
20361
20362
20363
20364
20365
20366       if test "x$LUA" != 'x'; then :
20367         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LUA is a Lua interpreter" >&5
20368$as_echo_n "checking if $LUA is a Lua interpreter... " >&6; }
20369
20370      _ax_lua_factorial=`$LUA 2>/dev/null -e '
20371    -- a simple factorial
20372    function fact (n)
20373      if n == 0 then
20374        return 1
20375      else
20376        return n * fact(n-1)
20377      end
20378    end
20379    print("fact(5) is " .. fact(5))'`
20380  if test "$_ax_lua_factorial" = 'fact(5) is 120'; then :
20381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20382$as_echo "yes" >&6; }
20383else
20384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20385$as_echo "no" >&6; }
20386          as_fn_error $? "not a Lua interpreter" "$LINENO" 5
20387
20388fi
20389
20390            _ax_check_text="whether $LUA version >= 5.2"
20391      { $as_echo "$as_me:${as_lineno-$LINENO}: checking $_ax_check_text" >&5
20392$as_echo_n "checking $_ax_check_text... " >&6; }
20393
20394        _ax_lua_good_version=`$LUA -e '
20395    -- a script to compare versions
20396    function verstr2num(verstr)
20397      local _, _, majorver, minorver = string.find(verstr, "^(%d+)%.(%d+)")
20398      if majorver and minorver then
20399        return tonumber(majorver) * 100 + tonumber(minorver)
20400      end
20401    end
20402    local minver = verstr2num("5.2")
20403    local _, _, trimver = string.find(_VERSION, "^Lua (.*)")
20404    local ver = verstr2num(trimver)
20405    local maxver = verstr2num("") or 1e9
20406    if minver <= ver and ver < maxver then
20407      print("yes")
20408    else
20409      print("no")
20410    end'`
20411    if test "x$_ax_lua_good_version" = "xyes"; then :
20412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20413$as_echo "yes" >&6; }
20414else
20415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20416$as_echo "no" >&6; }
20417          as_fn_error $? "version is out of range for specified LUA" "$LINENO" 5
20418fi
20419
20420      ax_display_LUA=$LUA
20421
20422else
20423         _ax_check_text="for a Lua interpreter with version >= 5.2"
20424      { $as_echo "$as_me:${as_lineno-$LINENO}: checking $_ax_check_text" >&5
20425$as_echo_n "checking $_ax_check_text... " >&6; }
20426if ${ax_cv_pathless_LUA+:} false; then :
20427  $as_echo_n "(cached) " >&6
20428else
20429   for ax_cv_pathless_LUA in lua lua5.3 lua53 lua5.2 lua52 lua5.1 lua51 lua50 none; do
20430            test "x$ax_cv_pathless_LUA" = 'xnone' && break
20431
20432      _ax_lua_factorial=`$ax_cv_pathless_LUA 2>/dev/null -e '
20433    -- a simple factorial
20434    function fact (n)
20435      if n == 0 then
20436        return 1
20437      else
20438        return n * fact(n-1)
20439      end
20440    end
20441    print("fact(5) is " .. fact(5))'`
20442  if test "$_ax_lua_factorial" = 'fact(5) is 120'; then :
20443
20444else
20445  continue
20446fi
20447
20448
20449        _ax_lua_good_version=`$ax_cv_pathless_LUA -e '
20450    -- a script to compare versions
20451    function verstr2num(verstr)
20452      local _, _, majorver, minorver = string.find(verstr, "^(%d+)%.(%d+)")
20453      if majorver and minorver then
20454        return tonumber(majorver) * 100 + tonumber(minorver)
20455      end
20456    end
20457    local minver = verstr2num("5.2")
20458    local _, _, trimver = string.find(_VERSION, "^Lua (.*)")
20459    local ver = verstr2num(trimver)
20460    local maxver = verstr2num("") or 1e9
20461    if minver <= ver and ver < maxver then
20462      print("yes")
20463    else
20464      print("no")
20465    end'`
20466    if test "x$_ax_lua_good_version" = "xyes"; then :
20467  break
20468fi
20469
20470          done
20471
20472fi
20473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_pathless_LUA" >&5
20474$as_echo "$ax_cv_pathless_LUA" >&6; }
20475            if test "x$ax_cv_pathless_LUA" = 'xnone'; then :
20476  LUA=':'
20477else
20478  # Extract the first word of "$ax_cv_pathless_LUA", so it can be a program name with args.
20479set dummy $ax_cv_pathless_LUA; ac_word=$2
20480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20481$as_echo_n "checking for $ac_word... " >&6; }
20482if ${ac_cv_path_LUA+:} false; then :
20483  $as_echo_n "(cached) " >&6
20484else
20485  case $LUA in
20486  [\\/]* | ?:[\\/]*)
20487  ac_cv_path_LUA="$LUA" # Let the user override the test with a path.
20488  ;;
20489  *)
20490  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20491for as_dir in $PATH
20492do
20493  IFS=$as_save_IFS
20494  test -z "$as_dir" && as_dir=.
20495    for ac_exec_ext in '' $ac_executable_extensions; do
20496  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20497    ac_cv_path_LUA="$as_dir/$ac_word$ac_exec_ext"
20498    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20499    break 2
20500  fi
20501done
20502  done
20503IFS=$as_save_IFS
20504
20505  ;;
20506esac
20507fi
20508LUA=$ac_cv_path_LUA
20509if test -n "$LUA"; then
20510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUA" >&5
20511$as_echo "$LUA" >&6; }
20512else
20513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20514$as_echo "no" >&6; }
20515fi
20516
20517
20518fi
20519      ax_display_LUA=$ax_cv_pathless_LUA
20520
20521fi
20522
20523
20524  if test "x$LUA" = 'x:'; then :
20525       have_lua="no"
20526
20527else
20528       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ax_display_LUA version" >&5
20529$as_echo_n "checking for $ax_display_LUA version... " >&6; }
20530if ${ax_cv_lua_version+:} false; then :
20531  $as_echo_n "(cached) " >&6
20532else
20533                   ax_cv_lua_version=`$LUA -e '
20534          -- return a version number in X.Y format
20535          local _, _, ver = string.find(_VERSION, "^Lua (%d+%.%d+)")
20536          print(ver)'`
20537
20538fi
20539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lua_version" >&5
20540$as_echo "$ax_cv_lua_version" >&6; }
20541    if test "x$ax_cv_lua_version" = 'x'; then :
20542  as_fn_error $? "invalid Lua version number" "$LINENO" 5
20543fi
20544    LUA_VERSION=$ax_cv_lua_version
20545
20546    LUA_SHORT_VERSION=`echo "$LUA_VERSION" | $SED 's|\.||'`
20547
20548
20549                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ax_display_LUA platform" >&5
20550$as_echo_n "checking for $ax_display_LUA platform... " >&6; }
20551if ${ax_cv_lua_platform+:} false; then :
20552  $as_echo_n "(cached) " >&6
20553else
20554  ax_cv_lua_platform=`$LUA -e 'print("unknown")'`
20555fi
20556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lua_platform" >&5
20557$as_echo "$ax_cv_lua_platform" >&6; }
20558    LUA_PLATFORM=$ax_cv_lua_platform
20559
20560
20561                    LUA_PREFIX='${prefix}'
20562
20563    LUA_EXEC_PREFIX='${exec_prefix}'
20564
20565
20566                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ax_display_LUA script directory" >&5
20567$as_echo_n "checking for $ax_display_LUA script directory... " >&6; }
20568if ${ax_cv_lua_luadir+:} false; then :
20569  $as_echo_n "(cached) " >&6
20570else
20571   if test "x$prefix" = 'xNONE'; then :
20572  ax_lua_prefix=$ac_default_prefix
20573else
20574  ax_lua_prefix=$prefix
20575fi
20576
20577                ax_cv_lua_luadir="$LUA_PREFIX/share/lua/$LUA_VERSION"
20578
20579
20580
20581  ax_lua_prefixed_path=`$LUA -e '
20582    -- get the path based on search type
20583    local searchtype = "script"
20584    local paths = ""
20585    if searchtype == "script" then
20586      paths = (package and package.path) or LUA_PATH
20587    elseif searchtype == "module" then
20588      paths = (package and package.cpath) or LUA_CPATH
20589    end
20590    -- search for the prefix
20591    local prefix = "'$ax_lua_prefix'"
20592    local minpath = ""
20593    local mindepth = 1e9
20594    string.gsub(paths, "([^;]+)",
20595      function (path)
20596        path = string.gsub(path, "%?.*$", "")
20597        path = string.gsub(path, "/[^/]*$", "")
20598        if string.find(path, prefix) then
20599          local depth = string.len(string.gsub(path, "[^/]", ""))
20600          if depth < mindepth then
20601            minpath = path
20602            mindepth = depth
20603          end
20604        end
20605      end)
20606    print(minpath)'`
20607
20608        if test "x$ax_lua_prefixed_path" != 'x'; then :
20609             _ax_strip_prefix=`echo "$ax_lua_prefix" | $SED 's|.|.|g'`
20610          ax_cv_lua_luadir=`echo "$ax_lua_prefixed_path" | \
20611            $SED "s|^$_ax_strip_prefix|$LUA_PREFIX|"`
20612
20613fi
20614
20615fi
20616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lua_luadir" >&5
20617$as_echo "$ax_cv_lua_luadir" >&6; }
20618    luadir=$ax_cv_lua_luadir
20619
20620    pkgluadir=\${luadir}/$PACKAGE
20621
20622
20623                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ax_display_LUA module directory" >&5
20624$as_echo_n "checking for $ax_display_LUA module directory... " >&6; }
20625if ${ax_cv_lua_luaexecdir+:} false; then :
20626  $as_echo_n "(cached) " >&6
20627else
20628   if test "x$exec_prefix" = 'xNONE'; then :
20629  ax_lua_exec_prefix=$ax_lua_prefix
20630else
20631  ax_lua_exec_prefix=$exec_prefix
20632fi
20633
20634                ax_cv_lua_luaexecdir="$LUA_EXEC_PREFIX/lib/lua/$LUA_VERSION"
20635
20636
20637
20638  ax_lua_prefixed_path=`$LUA -e '
20639    -- get the path based on search type
20640    local searchtype = "module"
20641    local paths = ""
20642    if searchtype == "script" then
20643      paths = (package and package.path) or LUA_PATH
20644    elseif searchtype == "module" then
20645      paths = (package and package.cpath) or LUA_CPATH
20646    end
20647    -- search for the prefix
20648    local prefix = "'$ax_lua_exec_prefix'"
20649    local minpath = ""
20650    local mindepth = 1e9
20651    string.gsub(paths, "([^;]+)",
20652      function (path)
20653        path = string.gsub(path, "%?.*$", "")
20654        path = string.gsub(path, "/[^/]*$", "")
20655        if string.find(path, prefix) then
20656          local depth = string.len(string.gsub(path, "[^/]", ""))
20657          if depth < mindepth then
20658            minpath = path
20659            mindepth = depth
20660          end
20661        end
20662      end)
20663    print(minpath)'`
20664
20665        if test "x$ax_lua_prefixed_path" != 'x'; then :
20666             _ax_strip_prefix=`echo "$ax_lua_exec_prefix" | $SED 's|.|.|g'`
20667          ax_cv_lua_luaexecdir=`echo "$ax_lua_prefixed_path" | \
20668            $SED "s|^$_ax_strip_prefix|$LUA_EXEC_PREFIX|"`
20669
20670fi
20671
20672fi
20673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lua_luaexecdir" >&5
20674$as_echo "$ax_cv_lua_luaexecdir" >&6; }
20675    luaexecdir=$ax_cv_lua_luaexecdir
20676
20677    pkgluaexecdir=\${luaexecdir}/$PACKAGE
20678
20679
20680        have_lua="yes"
20681
20682fi
20683
20684  if test "$have_lua" = "yes"; then
20685
20686
20687    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LUA_VERSION is defined" >&5
20688$as_echo_n "checking if LUA_VERSION is defined... " >&6; }
20689  if test "x$LUA_VERSION" != 'x'; then :
20690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20691$as_echo "yes" >&6; }
20692else
20693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20694$as_echo "no" >&6; }
20695      as_fn_error $? "cannot check Lua headers without knowing LUA_VERSION" "$LINENO" 5
20696
20697fi
20698
20699
20700
20701    LUA_SHORT_VERSION=`echo "$LUA_VERSION" | $SED 's|\.||'`
20702
20703
20704    _ax_lua_saved_cppflags=$CPPFLAGS
20705  CPPFLAGS="$CPPFLAGS $LUA_INCLUDE"
20706  for ac_header in lua.h lualib.h lauxlib.h luaconf.h
20707do :
20708  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20709ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20710if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20711  cat >>confdefs.h <<_ACEOF
20712#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20713_ACEOF
20714
20715fi
20716
20717done
20718
20719  CPPFLAGS=$_ax_lua_saved_cppflags
20720
20721    if test "x$LUA_INCLUDE" = 'x' &&
20722         test "x$ac_cv_header_lua_h" != 'xyes'; then :
20723         for _ax_include_path in  /usr/include/lua$LUA_VERSION \
20724      /usr/include/lua-$LUA_VERSION \
20725      /usr/include/lua/$LUA_VERSION \
20726      /usr/include/lua$LUA_SHORT_VERSION \
20727      /usr/local/include/lua$LUA_VERSION \
20728      /usr/local/include/lua-$LUA_VERSION \
20729      /usr/local/include/lua/$LUA_VERSION \
20730      /usr/local/include/lua$LUA_SHORT_VERSION \
20731    ; do
20732        test ! -d "$_ax_include_path" && continue
20733
20734        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Lua headers in" >&5
20735$as_echo_n "checking for Lua headers in... " >&6; }
20736        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ax_include_path" >&5
20737$as_echo "$_ax_include_path" >&6; }
20738
20739        { ac_cv_header_lua_h=; unset ac_cv_header_lua_h;}
20740        { ac_cv_header_lualib_h=; unset ac_cv_header_lualib_h;}
20741        { ac_cv_header_lauxlib_h=; unset ac_cv_header_lauxlib_h;}
20742        { ac_cv_header_luaconf_h=; unset ac_cv_header_luaconf_h;}
20743
20744        _ax_lua_saved_cppflags=$CPPFLAGS
20745        CPPFLAGS="$CPPFLAGS -I$_ax_include_path"
20746        for ac_header in lua.h lualib.h lauxlib.h luaconf.h
20747do :
20748  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20749ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20750if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20751  cat >>confdefs.h <<_ACEOF
20752#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20753_ACEOF
20754
20755fi
20756
20757done
20758
20759        CPPFLAGS=$_ax_lua_saved_cppflags
20760
20761        if test "x$ac_cv_header_lua_h" = 'xyes'; then :
20762   LUA_INCLUDE="-I$_ax_include_path"
20763            break
20764
20765fi
20766      done
20767
20768fi
20769
20770  if test "x$ac_cv_header_lua_h" = 'xyes'; then :
20771
20772      if test "x$cross_compiling" != 'xyes'; then :
20773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Lua header version" >&5
20774$as_echo_n "checking for Lua header version... " >&6; }
20775if ${ax_cv_lua_header_version+:} false; then :
20776  $as_echo_n "(cached) " >&6
20777else
20778   _ax_lua_saved_cppflags=$CPPFLAGS
20779              CPPFLAGS="$CPPFLAGS $LUA_INCLUDE"
20780              if test "$cross_compiling" = yes; then :
20781  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20782$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20783as_fn_error $? "cannot run test program while cross compiling
20784See \`config.log' for more details" "$LINENO" 5; }
20785else
20786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20787/* end confdefs.h.  */
20788
20789#include <lua.h>
20790#include <stdlib.h>
20791#include <stdio.h>
20792int main(int argc, char ** argv)
20793{
20794  if(argc > 1) printf("%s", LUA_VERSION);
20795  exit(EXIT_SUCCESS);
20796}
20797
20798
20799_ACEOF
20800if ac_fn_cxx_try_run "$LINENO"; then :
20801   ax_cv_lua_header_version=`./conftest$EXEEXT p | \
20802                    $SED -n "s|^Lua \([0-9]\{1,\}\.[0-9]\{1,\}\).\{0,\}|\1|p"`
20803
20804else
20805  ax_cv_lua_header_version='unknown'
20806fi
20807rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20808  conftest.$ac_objext conftest.beam conftest.$ac_ext
20809fi
20810
20811              CPPFLAGS=$_ax_lua_saved_cppflags
20812
20813fi
20814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lua_header_version" >&5
20815$as_echo "$ax_cv_lua_header_version" >&6; }
20816
20817                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Lua header version matches $LUA_VERSION" >&5
20818$as_echo_n "checking if Lua header version matches $LUA_VERSION... " >&6; }
20819          if test "x$ax_cv_lua_header_version" = "x$LUA_VERSION"; then :
20820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20821$as_echo "yes" >&6; }
20822              ax_header_version_match='yes'
20823
20824else
20825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20826$as_echo "no" >&6; }
20827              ax_header_version_match='no'
20828
20829fi
20830
20831else
20832   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling so assuming header version number matches" >&5
20833$as_echo "$as_me: WARNING: cross compiling so assuming header version number matches" >&2;}
20834          ax_header_version_match='yes'
20835
20836fi
20837
20838fi
20839
20840    if test "x$ax_header_version_match" != 'xyes' &&
20841         test "x$LUA_INCLUDE" != 'x'; then :
20842  as_fn_error $? "cannot find headers for specified LUA_INCLUDE" "$LINENO" 5
20843fi
20844
20845    if test "x$ax_header_version_match" = 'xyes'; then :
20846
20847else
20848  have_lua="no"
20849fi
20850
20851
20852
20853    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LUA_VERSION is defined" >&5
20854$as_echo_n "checking if LUA_VERSION is defined... " >&6; }
20855  if test "x$LUA_VERSION" != 'x'; then :
20856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20857$as_echo "yes" >&6; }
20858else
20859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20860$as_echo "no" >&6; }
20861      as_fn_error $? "cannot check Lua libs without knowing LUA_VERSION" "$LINENO" 5
20862
20863fi
20864
20865
20866
20867  if test "x$LUA_LIB" != 'x'; then :
20868       _ax_lua_saved_libs=$LIBS
20869    LIBS="$LIBS $LUA_LIB"
20870    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lua_load" >&5
20871$as_echo_n "checking for library containing lua_load... " >&6; }
20872if ${ac_cv_search_lua_load+:} false; then :
20873  $as_echo_n "(cached) " >&6
20874else
20875  ac_func_search_save_LIBS=$LIBS
20876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20877/* end confdefs.h.  */
20878
20879/* Override any GCC internal prototype to avoid an error.
20880   Use char because int might match the return type of a GCC
20881   builtin and then its argument prototype would still apply.  */
20882#ifdef __cplusplus
20883extern "C"
20884#endif
20885char lua_load ();
20886int
20887main ()
20888{
20889return lua_load ();
20890  ;
20891  return 0;
20892}
20893_ACEOF
20894for ac_lib in '' ; do
20895  if test -z "$ac_lib"; then
20896    ac_res="none required"
20897  else
20898    ac_res=-l$ac_lib
20899    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20900  fi
20901  if ac_fn_cxx_try_link "$LINENO"; then :
20902  ac_cv_search_lua_load=$ac_res
20903fi
20904rm -f core conftest.err conftest.$ac_objext \
20905    conftest$ac_exeext
20906  if ${ac_cv_search_lua_load+:} false; then :
20907  break
20908fi
20909done
20910if ${ac_cv_search_lua_load+:} false; then :
20911
20912else
20913  ac_cv_search_lua_load=no
20914fi
20915rm conftest.$ac_ext
20916LIBS=$ac_func_search_save_LIBS
20917fi
20918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lua_load" >&5
20919$as_echo "$ac_cv_search_lua_load" >&6; }
20920ac_res=$ac_cv_search_lua_load
20921if test "$ac_res" != no; then :
20922  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20923  _ax_found_lua_libs='yes'
20924else
20925  _ax_found_lua_libs='no'
20926fi
20927
20928    LIBS=$_ax_lua_saved_libs
20929
20930        if test "x$_ax_found_lua_libs" != 'xyes'; then :
20931  as_fn_error $? "cannot find libs for specified LUA_LIB" "$LINENO" 5
20932fi
20933
20934else
20935       _ax_lua_extra_libs=''
20936
20937    _ax_lua_saved_libs=$LIBS
20938    LIBS="$LIBS $LUA_LIB"
20939    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exp" >&5
20940$as_echo_n "checking for library containing exp... " >&6; }
20941if ${ac_cv_search_exp+:} false; then :
20942  $as_echo_n "(cached) " >&6
20943else
20944  ac_func_search_save_LIBS=$LIBS
20945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20946/* end confdefs.h.  */
20947
20948/* Override any GCC internal prototype to avoid an error.
20949   Use char because int might match the return type of a GCC
20950   builtin and then its argument prototype would still apply.  */
20951#ifdef __cplusplus
20952extern "C"
20953#endif
20954char exp ();
20955int
20956main ()
20957{
20958return exp ();
20959  ;
20960  return 0;
20961}
20962_ACEOF
20963for ac_lib in '' m; do
20964  if test -z "$ac_lib"; then
20965    ac_res="none required"
20966  else
20967    ac_res=-l$ac_lib
20968    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20969  fi
20970  if ac_fn_cxx_try_link "$LINENO"; then :
20971  ac_cv_search_exp=$ac_res
20972fi
20973rm -f core conftest.err conftest.$ac_objext \
20974    conftest$ac_exeext
20975  if ${ac_cv_search_exp+:} false; then :
20976  break
20977fi
20978done
20979if ${ac_cv_search_exp+:} false; then :
20980
20981else
20982  ac_cv_search_exp=no
20983fi
20984rm conftest.$ac_ext
20985LIBS=$ac_func_search_save_LIBS
20986fi
20987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exp" >&5
20988$as_echo "$ac_cv_search_exp" >&6; }
20989ac_res=$ac_cv_search_exp
20990if test "$ac_res" != no; then :
20991  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20992
20993fi
20994
20995    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20996$as_echo_n "checking for library containing dlopen... " >&6; }
20997if ${ac_cv_search_dlopen+:} false; then :
20998  $as_echo_n "(cached) " >&6
20999else
21000  ac_func_search_save_LIBS=$LIBS
21001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21002/* end confdefs.h.  */
21003
21004/* Override any GCC internal prototype to avoid an error.
21005   Use char because int might match the return type of a GCC
21006   builtin and then its argument prototype would still apply.  */
21007#ifdef __cplusplus
21008extern "C"
21009#endif
21010char dlopen ();
21011int
21012main ()
21013{
21014return dlopen ();
21015  ;
21016  return 0;
21017}
21018_ACEOF
21019for ac_lib in '' dl; do
21020  if test -z "$ac_lib"; then
21021    ac_res="none required"
21022  else
21023    ac_res=-l$ac_lib
21024    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21025  fi
21026  if ac_fn_cxx_try_link "$LINENO"; then :
21027  ac_cv_search_dlopen=$ac_res
21028fi
21029rm -f core conftest.err conftest.$ac_objext \
21030    conftest$ac_exeext
21031  if ${ac_cv_search_dlopen+:} false; then :
21032  break
21033fi
21034done
21035if ${ac_cv_search_dlopen+:} false; then :
21036
21037else
21038  ac_cv_search_dlopen=no
21039fi
21040rm conftest.$ac_ext
21041LIBS=$ac_func_search_save_LIBS
21042fi
21043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
21044$as_echo "$ac_cv_search_dlopen" >&6; }
21045ac_res=$ac_cv_search_dlopen
21046if test "$ac_res" != no; then :
21047  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21048
21049fi
21050
21051    LIBS=$_ax_lua_saved_libs
21052
21053    if test "x$ac_cv_search_exp" != 'xno' &&
21054           test "x$ac_cv_search_exp" != 'xnone required'; then :
21055  _ax_lua_extra_libs="$_ax_lua_extra_libs $ac_cv_search_exp"
21056fi
21057
21058    if test "x$ac_cv_search_dlopen" != 'xno' &&
21059           test "x$ac_cv_search_dlopen" != 'xnone required'; then :
21060  _ax_lua_extra_libs="$_ax_lua_extra_libs $ac_cv_search_dlopen"
21061fi
21062
21063        _ax_lua_saved_libs=$LIBS
21064    LIBS="$LIBS $LUA_LIB"
21065    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lua_load" >&5
21066$as_echo_n "checking for library containing lua_load... " >&6; }
21067if ${ac_cv_search_lua_load+:} false; then :
21068  $as_echo_n "(cached) " >&6
21069else
21070  ac_func_search_save_LIBS=$LIBS
21071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21072/* end confdefs.h.  */
21073
21074/* Override any GCC internal prototype to avoid an error.
21075   Use char because int might match the return type of a GCC
21076   builtin and then its argument prototype would still apply.  */
21077#ifdef __cplusplus
21078extern "C"
21079#endif
21080char lua_load ();
21081int
21082main ()
21083{
21084return lua_load ();
21085  ;
21086  return 0;
21087}
21088_ACEOF
21089for ac_lib in ''  lua$LUA_VERSION \
21090        lua$LUA_SHORT_VERSION \
21091        lua-$LUA_VERSION \
21092        lua-$LUA_SHORT_VERSION \
21093        lua \
21094      ; do
21095  if test -z "$ac_lib"; then
21096    ac_res="none required"
21097  else
21098    ac_res=-l$ac_lib
21099    LIBS="-l$ac_lib $_ax_lua_extra_libs $ac_func_search_save_LIBS"
21100  fi
21101  if ac_fn_cxx_try_link "$LINENO"; then :
21102  ac_cv_search_lua_load=$ac_res
21103fi
21104rm -f core conftest.err conftest.$ac_objext \
21105    conftest$ac_exeext
21106  if ${ac_cv_search_lua_load+:} false; then :
21107  break
21108fi
21109done
21110if ${ac_cv_search_lua_load+:} false; then :
21111
21112else
21113  ac_cv_search_lua_load=no
21114fi
21115rm conftest.$ac_ext
21116LIBS=$ac_func_search_save_LIBS
21117fi
21118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lua_load" >&5
21119$as_echo "$ac_cv_search_lua_load" >&6; }
21120ac_res=$ac_cv_search_lua_load
21121if test "$ac_res" != no; then :
21122  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21123  _ax_found_lua_libs='yes'
21124else
21125  _ax_found_lua_libs='no'
21126fi
21127
21128    LIBS=$_ax_lua_saved_libs
21129
21130    if test "x$ac_cv_search_lua_load" != 'xno' &&
21131           test "x$ac_cv_search_lua_load" != 'xnone required'; then :
21132  LUA_LIB="$ac_cv_search_lua_load $_ax_lua_extra_libs"
21133fi
21134
21135fi
21136
21137    if test "x$_ax_found_lua_libs" = 'xyes'; then :
21138
21139else
21140  have_lua="no"
21141fi
21142
21143  fi
21144fi
21145 if test "$have_lua" = "yes"; then
21146  WITH_LUA_TRUE=
21147  WITH_LUA_FALSE='#'
21148else
21149  WITH_LUA_TRUE='#'
21150  WITH_LUA_FALSE=
21151fi
21152
21153
21154# Find python regardless of with_python value, because it's needed by make cross
21155
21156
21157
21158
21159
21160
21161        if test -n "$PYTHON"; then
21162      # If the user set $PYTHON, use it and don't search something else.
21163      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5
21164$as_echo_n "checking whether $PYTHON version is >= 2.6... " >&6; }
21165      prog="import sys
21166# split strings by '.' and convert to numeric.  Append some zeros
21167# because we need at least 4 digits for the hex conversion.
21168# map returns an iterator in Python 3.0 and a list in 2.x
21169minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
21170minverhex = 0
21171# xrange is not present in Python 3.0 and range returns an iterator
21172for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
21173sys.exit(sys.hexversion < minverhex)"
21174  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
21175   ($PYTHON -c "$prog") >&5 2>&5
21176   ac_status=$?
21177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178   (exit $ac_status); }; then :
21179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21180$as_echo "yes" >&6; }
21181else
21182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21183$as_echo "no" >&6; }
21184			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
21185fi
21186      am_display_PYTHON=$PYTHON
21187    else
21188      # Otherwise, try each interpreter until we find one that satisfies
21189      # VERSION.
21190      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
21191$as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
21192if ${am_cv_pathless_PYTHON+:} false; then :
21193  $as_echo_n "(cached) " >&6
21194else
21195
21196	for am_cv_pathless_PYTHON in python python2 python3 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
21197	  test "$am_cv_pathless_PYTHON" = none && break
21198	  prog="import sys
21199# split strings by '.' and convert to numeric.  Append some zeros
21200# because we need at least 4 digits for the hex conversion.
21201# map returns an iterator in Python 3.0 and a list in 2.x
21202minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
21203minverhex = 0
21204# xrange is not present in Python 3.0 and range returns an iterator
21205for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
21206sys.exit(sys.hexversion < minverhex)"
21207  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
21208   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
21209   ac_status=$?
21210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211   (exit $ac_status); }; then :
21212  break
21213fi
21214	done
21215fi
21216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
21217$as_echo "$am_cv_pathless_PYTHON" >&6; }
21218      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
21219      if test "$am_cv_pathless_PYTHON" = none; then
21220	PYTHON=:
21221      else
21222        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
21223set dummy $am_cv_pathless_PYTHON; ac_word=$2
21224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21225$as_echo_n "checking for $ac_word... " >&6; }
21226if ${ac_cv_path_PYTHON+:} false; then :
21227  $as_echo_n "(cached) " >&6
21228else
21229  case $PYTHON in
21230  [\\/]* | ?:[\\/]*)
21231  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21232  ;;
21233  *)
21234  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21235for as_dir in $PATH
21236do
21237  IFS=$as_save_IFS
21238  test -z "$as_dir" && as_dir=.
21239    for ac_exec_ext in '' $ac_executable_extensions; do
21240  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21241    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21243    break 2
21244  fi
21245done
21246  done
21247IFS=$as_save_IFS
21248
21249  ;;
21250esac
21251fi
21252PYTHON=$ac_cv_path_PYTHON
21253if test -n "$PYTHON"; then
21254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
21255$as_echo "$PYTHON" >&6; }
21256else
21257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21258$as_echo "no" >&6; }
21259fi
21260
21261
21262      fi
21263      am_display_PYTHON=$am_cv_pathless_PYTHON
21264    fi
21265
21266
21267  if test "$PYTHON" = :; then
21268      :
21269  else
21270
21271
21272  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
21273$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
21274if ${am_cv_python_version+:} false; then :
21275  $as_echo_n "(cached) " >&6
21276else
21277  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
21278fi
21279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
21280$as_echo "$am_cv_python_version" >&6; }
21281  PYTHON_VERSION=$am_cv_python_version
21282
21283
21284
21285  PYTHON_PREFIX='${prefix}'
21286
21287  PYTHON_EXEC_PREFIX='${exec_prefix}'
21288
21289
21290
21291  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
21292$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
21293if ${am_cv_python_platform+:} false; then :
21294  $as_echo_n "(cached) " >&6
21295else
21296  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
21297fi
21298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
21299$as_echo "$am_cv_python_platform" >&6; }
21300  PYTHON_PLATFORM=$am_cv_python_platform
21301
21302
21303  # Just factor out some code duplication.
21304  am_python_setup_sysconfig="\
21305import sys
21306# Prefer sysconfig over distutils.sysconfig, for better compatibility
21307# with python 3.x.  See automake bug#10227.
21308try:
21309    import sysconfig
21310except ImportError:
21311    can_use_sysconfig = 0
21312else:
21313    can_use_sysconfig = 1
21314# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
21315# <https://github.com/pypa/virtualenv/issues/118>
21316try:
21317    from platform import python_implementation
21318    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
21319        can_use_sysconfig = 0
21320except ImportError:
21321    pass"
21322
21323
21324            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
21325$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
21326if ${am_cv_python_pythondir+:} false; then :
21327  $as_echo_n "(cached) " >&6
21328else
21329  if test "x$prefix" = xNONE
21330     then
21331       am_py_prefix=$ac_default_prefix
21332     else
21333       am_py_prefix=$prefix
21334     fi
21335     am_cv_python_pythondir=`$PYTHON -c "
21336$am_python_setup_sysconfig
21337if can_use_sysconfig:
21338    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
21339else:
21340    from distutils import sysconfig
21341    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
21342sys.stdout.write(sitedir)"`
21343     case $am_cv_python_pythondir in
21344     $am_py_prefix*)
21345       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
21346       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
21347       ;;
21348     *)
21349       case $am_py_prefix in
21350         /usr|/System*) ;;
21351         *)
21352	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
21353	  ;;
21354       esac
21355       ;;
21356     esac
21357
21358fi
21359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
21360$as_echo "$am_cv_python_pythondir" >&6; }
21361  pythondir=$am_cv_python_pythondir
21362
21363
21364
21365  pkgpythondir=\${pythondir}/$PACKAGE
21366
21367
21368        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
21369$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
21370if ${am_cv_python_pyexecdir+:} false; then :
21371  $as_echo_n "(cached) " >&6
21372else
21373  if test "x$exec_prefix" = xNONE
21374     then
21375       am_py_exec_prefix=$am_py_prefix
21376     else
21377       am_py_exec_prefix=$exec_prefix
21378     fi
21379     am_cv_python_pyexecdir=`$PYTHON -c "
21380$am_python_setup_sysconfig
21381if can_use_sysconfig:
21382    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
21383else:
21384    from distutils import sysconfig
21385    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
21386sys.stdout.write(sitedir)"`
21387     case $am_cv_python_pyexecdir in
21388     $am_py_exec_prefix*)
21389       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
21390       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
21391       ;;
21392     *)
21393       case $am_py_exec_prefix in
21394         /usr|/System*) ;;
21395         *)
21396	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
21397	   ;;
21398       esac
21399       ;;
21400     esac
21401
21402fi
21403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
21404$as_echo "$am_cv_python_pyexecdir" >&6; }
21405  pyexecdir=$am_cv_python_pyexecdir
21406
21407
21408
21409  pkgpyexecdir=\${pyexecdir}/$PACKAGE
21410
21411
21412
21413  fi
21414
21415
21416
21417
21418# Check whether --with-python was given.
21419if test "${with_python+set}" = set; then :
21420  withval=$with_python; with_python="$withval"
21421else
21422  with_python=yes
21423
21424fi
21425
21426          have_python=no
21427
21428if test "$with_python" = "yes";  then
21429  if test -n "$PYTHON"; then
21430    have_python="yes"
21431  fi
21432  # Extract the first word of "trial", so it can be a program name with args.
21433set dummy trial; ac_word=$2
21434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21435$as_echo_n "checking for $ac_word... " >&6; }
21436if ${ac_cv_path_TRIAL+:} false; then :
21437  $as_echo_n "(cached) " >&6
21438else
21439  case $TRIAL in
21440  [\\/]* | ?:[\\/]*)
21441  ac_cv_path_TRIAL="$TRIAL" # Let the user override the test with a path.
21442  ;;
21443  *)
21444  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21445for as_dir in $PATH
21446do
21447  IFS=$as_save_IFS
21448  test -z "$as_dir" && as_dir=.
21449    for ac_exec_ext in '' $ac_executable_extensions; do
21450  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21451    ac_cv_path_TRIAL="$as_dir/$ac_word$ac_exec_ext"
21452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21453    break 2
21454  fi
21455done
21456  done
21457IFS=$as_save_IFS
21458
21459  ;;
21460esac
21461fi
21462TRIAL=$ac_cv_path_TRIAL
21463if test -n "$TRIAL"; then
21464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRIAL" >&5
21465$as_echo "$TRIAL" >&6; }
21466else
21467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21468$as_echo "no" >&6; }
21469fi
21470
21471
21472  if test -n "$TRIAL"; then
21473    have_trial="yes"
21474  fi
21475fi
21476 if test "$have_python" = "yes"; then
21477  WITH_PYTHON_TRUE=
21478  WITH_PYTHON_FALSE='#'
21479else
21480  WITH_PYTHON_TRUE='#'
21481  WITH_PYTHON_FALSE=
21482fi
21483
21484 if test "$have_trial" = "yes"; then
21485  WITH_TWISTED_TEST_TRUE=
21486  WITH_TWISTED_TEST_FALSE='#'
21487else
21488  WITH_TWISTED_TEST_TRUE='#'
21489  WITH_TWISTED_TEST_FALSE=
21490fi
21491
21492
21493# Find "python3" executable.
21494# It's distro specific and far from ideal but needed to cross test py2-3 at once.
21495# TODO: find "python2" if it's 3.x
21496have_py3="no"
21497
21498
21499# Check whether --with-py3 was given.
21500if test "${with_py3+set}" = set; then :
21501  withval=$with_py3; with_py3="$withval"
21502else
21503  with_py3=yes
21504
21505fi
21506
21507          have_py3=no
21508
21509if test "$with_py3" = "yes"; then
21510  # if $PYTHON is 2.x then search for python 3. otherwise, $PYTHON is already 3.x
21511  if $PYTHON --version 2>&1 | grep -q "Python 2"; then
21512    for ac_prog in python3 python3.8 python38 python3.7 python37 python3.6 python36 python3.5 python35 python3.4 python34
21513do
21514  # Extract the first word of "$ac_prog", so it can be a program name with args.
21515set dummy $ac_prog; ac_word=$2
21516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21517$as_echo_n "checking for $ac_word... " >&6; }
21518if ${ac_cv_path_PYTHON3+:} false; then :
21519  $as_echo_n "(cached) " >&6
21520else
21521  case $PYTHON3 in
21522  [\\/]* | ?:[\\/]*)
21523  ac_cv_path_PYTHON3="$PYTHON3" # Let the user override the test with a path.
21524  ;;
21525  *)
21526  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21527for as_dir in $PATH
21528do
21529  IFS=$as_save_IFS
21530  test -z "$as_dir" && as_dir=.
21531    for ac_exec_ext in '' $ac_executable_extensions; do
21532  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21533    ac_cv_path_PYTHON3="$as_dir/$ac_word$ac_exec_ext"
21534    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21535    break 2
21536  fi
21537done
21538  done
21539IFS=$as_save_IFS
21540
21541  ;;
21542esac
21543fi
21544PYTHON3=$ac_cv_path_PYTHON3
21545if test -n "$PYTHON3"; then
21546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
21547$as_echo "$PYTHON3" >&6; }
21548else
21549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21550$as_echo "no" >&6; }
21551fi
21552
21553
21554  test -n "$PYTHON3" && break
21555done
21556
21557    if test -n "$PYTHON3"; then
21558      have_py3="yes"
21559    fi
21560  elif $PYTHON --version 2>&1 | grep -q "Python 3"; then
21561    have_py3="yes"
21562    PYTHON3=$PYTHON
21563  fi
21564fi
21565 if test "$have_py3" = "yes"; then
21566  WITH_PY3_TRUE=
21567  WITH_PY3_FALSE='#'
21568else
21569  WITH_PY3_TRUE='#'
21570  WITH_PY3_FALSE=
21571fi
21572
21573
21574
21575
21576# Check whether --with-perl was given.
21577if test "${with_perl+set}" = set; then :
21578  withval=$with_perl; with_perl="$withval"
21579else
21580  with_perl=yes
21581
21582fi
21583
21584          have_perl=no
21585
21586if test "$with_perl" = "yes"; then
21587  # Extract the first word of "perl", so it can be a program name with args.
21588set dummy perl; ac_word=$2
21589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21590$as_echo_n "checking for $ac_word... " >&6; }
21591if ${ac_cv_path_PERL+:} false; then :
21592  $as_echo_n "(cached) " >&6
21593else
21594  case $PERL in
21595  [\\/]* | ?:[\\/]*)
21596  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
21597  ;;
21598  *)
21599  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21600for as_dir in $PATH
21601do
21602  IFS=$as_save_IFS
21603  test -z "$as_dir" && as_dir=.
21604    for ac_exec_ext in '' $ac_executable_extensions; do
21605  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21606    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
21607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21608    break 2
21609  fi
21610done
21611  done
21612IFS=$as_save_IFS
21613
21614  ;;
21615esac
21616fi
21617PERL=$ac_cv_path_PERL
21618if test -n "$PERL"; then
21619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
21620$as_echo "$PERL" >&6; }
21621else
21622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21623$as_echo "no" >&6; }
21624fi
21625
21626
21627  if test -n "$PERL" ; then
21628
21629
21630
21631
21632
21633
21634# Make sure we have perl
21635if test -z "$PERL"; then
21636# Extract the first word of "perl", so it can be a program name with args.
21637set dummy perl; ac_word=$2
21638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21639$as_echo_n "checking for $ac_word... " >&6; }
21640if ${ac_cv_prog_PERL+:} false; then :
21641  $as_echo_n "(cached) " >&6
21642else
21643  if test -n "$PERL"; then
21644  ac_cv_prog_PERL="$PERL" # Let the user override the test.
21645else
21646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21647for as_dir in $PATH
21648do
21649  IFS=$as_save_IFS
21650  test -z "$as_dir" && as_dir=.
21651    for ac_exec_ext in '' $ac_executable_extensions; do
21652  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21653    ac_cv_prog_PERL="perl"
21654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21655    break 2
21656  fi
21657done
21658  done
21659IFS=$as_save_IFS
21660
21661fi
21662fi
21663PERL=$ac_cv_prog_PERL
21664if test -n "$PERL"; then
21665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
21666$as_echo "$PERL" >&6; }
21667else
21668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21669$as_echo "no" >&6; }
21670fi
21671
21672
21673fi
21674
21675if test "x$PERL" != x; then
21676  ax_perl_modules_failed=0
21677  for ax_perl_module in 'Bit::Vector' ; do
21678    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl module $ax_perl_module" >&5
21679$as_echo_n "checking for perl module $ax_perl_module... " >&6; }
21680
21681    # Would be nice to log result here, but can't rely on autoconf internals
21682    $PERL -e "use $ax_perl_module; exit" > /dev/null 2>&1
21683    if test $? -ne 0; then
21684      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21685$as_echo "no" >&6; };
21686      ax_perl_modules_failed=1
21687   else
21688      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
21689$as_echo "ok" >&6; };
21690    fi
21691  done
21692
21693  # Run optional shell commands
21694  if test "$ax_perl_modules_failed" = 0; then
21695    :
21696    success="yes"
21697  else
21698    :
21699    success="no"
21700  fi
21701else
21702  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
21703$as_echo "$as_me: WARNING: could not find perl" >&2;}
21704fi
21705    have_perl_bit_vector="$success"
21706
21707
21708
21709
21710
21711
21712# Make sure we have perl
21713if test -z "$PERL"; then
21714# Extract the first word of "perl", so it can be a program name with args.
21715set dummy perl; ac_word=$2
21716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21717$as_echo_n "checking for $ac_word... " >&6; }
21718if ${ac_cv_prog_PERL+:} false; then :
21719  $as_echo_n "(cached) " >&6
21720else
21721  if test -n "$PERL"; then
21722  ac_cv_prog_PERL="$PERL" # Let the user override the test.
21723else
21724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21725for as_dir in $PATH
21726do
21727  IFS=$as_save_IFS
21728  test -z "$as_dir" && as_dir=.
21729    for ac_exec_ext in '' $ac_executable_extensions; do
21730  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21731    ac_cv_prog_PERL="perl"
21732    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21733    break 2
21734  fi
21735done
21736  done
21737IFS=$as_save_IFS
21738
21739fi
21740fi
21741PERL=$ac_cv_prog_PERL
21742if test -n "$PERL"; then
21743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
21744$as_echo "$PERL" >&6; }
21745else
21746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21747$as_echo "no" >&6; }
21748fi
21749
21750
21751fi
21752
21753if test "x$PERL" != x; then
21754  ax_perl_modules_failed=0
21755  for ax_perl_module in 'Class::Accessor' ; do
21756    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl module $ax_perl_module" >&5
21757$as_echo_n "checking for perl module $ax_perl_module... " >&6; }
21758
21759    # Would be nice to log result here, but can't rely on autoconf internals
21760    $PERL -e "use $ax_perl_module; exit" > /dev/null 2>&1
21761    if test $? -ne 0; then
21762      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21763$as_echo "no" >&6; };
21764      ax_perl_modules_failed=1
21765   else
21766      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
21767$as_echo "ok" >&6; };
21768    fi
21769  done
21770
21771  # Run optional shell commands
21772  if test "$ax_perl_modules_failed" = 0; then
21773    :
21774    success="yes"
21775  else
21776    :
21777    success="no"
21778  fi
21779else
21780  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
21781$as_echo "$as_me: WARNING: could not find perl" >&2;}
21782fi
21783    have_perl_class_accessor="$success"
21784  fi
21785  if test -n "$PERL" -a "$have_perl_bit_vector" = "yes" ; then
21786    if test -n "$PERL" -a "$have_perl_class_accessor" = "yes" ; then
21787      have_perl="yes"
21788    fi
21789  fi
21790fi
21791 if test "$have_perl" = "yes"; then
21792  WITH_PERL_TRUE=
21793  WITH_PERL_FALSE='#'
21794else
21795  WITH_PERL_TRUE='#'
21796  WITH_PERL_FALSE=
21797fi
21798
21799
21800
21801
21802# Check whether --with-php was given.
21803if test "${with_php+set}" = set; then :
21804  withval=$with_php; with_php="$withval"
21805else
21806  with_php=yes
21807
21808fi
21809
21810          have_php=no
21811
21812if test "$with_php" = "yes"; then
21813  # Extract the first word of "php", so it can be a program name with args.
21814set dummy php; ac_word=$2
21815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21816$as_echo_n "checking for $ac_word... " >&6; }
21817if ${ac_cv_path_PHP+:} false; then :
21818  $as_echo_n "(cached) " >&6
21819else
21820  case $PHP in
21821  [\\/]* | ?:[\\/]*)
21822  ac_cv_path_PHP="$PHP" # Let the user override the test with a path.
21823  ;;
21824  *)
21825  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21826for as_dir in $PATH
21827do
21828  IFS=$as_save_IFS
21829  test -z "$as_dir" && as_dir=.
21830    for ac_exec_ext in '' $ac_executable_extensions; do
21831  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21832    ac_cv_path_PHP="$as_dir/$ac_word$ac_exec_ext"
21833    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21834    break 2
21835  fi
21836done
21837  done
21838IFS=$as_save_IFS
21839
21840  ;;
21841esac
21842fi
21843PHP=$ac_cv_path_PHP
21844if test -n "$PHP"; then
21845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5
21846$as_echo "$PHP" >&6; }
21847else
21848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21849$as_echo "no" >&6; }
21850fi
21851
21852
21853  if test -n "$PHP" ; then
21854    have_php="yes"
21855  fi
21856fi
21857 if test "$have_php" = "yes"; then
21858  WITH_PHP_TRUE=
21859  WITH_PHP_FALSE='#'
21860else
21861  WITH_PHP_TRUE='#'
21862  WITH_PHP_FALSE=
21863fi
21864
21865
21866
21867
21868# Check whether --with-php_extension was given.
21869if test "${with_php_extension+set}" = set; then :
21870  withval=$with_php_extension; with_php_extension="$withval"
21871else
21872  with_php_extension=yes
21873
21874fi
21875
21876          have_php_extension=no
21877
21878if test "$with_php_extension" = "yes"; then
21879  if test -f "lib/php/src/ext/thrift_protocol/configure"; then
21880    # Extract the first word of "php-config", so it can be a program name with args.
21881set dummy php-config; ac_word=$2
21882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21883$as_echo_n "checking for $ac_word... " >&6; }
21884if ${ac_cv_path_PHP_CONFIG+:} false; then :
21885  $as_echo_n "(cached) " >&6
21886else
21887  case $PHP_CONFIG in
21888  [\\/]* | ?:[\\/]*)
21889  ac_cv_path_PHP_CONFIG="$PHP_CONFIG" # Let the user override the test with a path.
21890  ;;
21891  *)
21892  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21893for as_dir in $PATH
21894do
21895  IFS=$as_save_IFS
21896  test -z "$as_dir" && as_dir=.
21897    for ac_exec_ext in '' $ac_executable_extensions; do
21898  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21899    ac_cv_path_PHP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21900    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21901    break 2
21902  fi
21903done
21904  done
21905IFS=$as_save_IFS
21906
21907  ;;
21908esac
21909fi
21910PHP_CONFIG=$ac_cv_path_PHP_CONFIG
21911if test -n "$PHP_CONFIG"; then
21912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_CONFIG" >&5
21913$as_echo "$PHP_CONFIG" >&6; }
21914else
21915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21916$as_echo "no" >&6; }
21917fi
21918
21919
21920    if test -n "$PHP_CONFIG" ; then
21921
21922
21923subdirs="$subdirs lib/php/src/ext/thrift_protocol"
21924
21925      have_php_extension="yes"
21926    fi
21927  fi
21928fi
21929 if test "$have_php_extension" = "yes"; then
21930  WITH_PHP_EXTENSION_TRUE=
21931  WITH_PHP_EXTENSION_FALSE='#'
21932else
21933  WITH_PHP_EXTENSION_TRUE='#'
21934  WITH_PHP_EXTENSION_FALSE=
21935fi
21936
21937
21938
21939
21940# Check whether --with-dart was given.
21941if test "${with_dart+set}" = set; then :
21942  withval=$with_dart; with_dart="$withval"
21943else
21944  with_dart=yes
21945
21946fi
21947
21948          have_dart=no
21949
21950if test "$with_dart" = "yes"; then
21951  # Extract the first word of "dart", so it can be a program name with args.
21952set dummy dart; ac_word=$2
21953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21954$as_echo_n "checking for $ac_word... " >&6; }
21955if ${ac_cv_path_DART+:} false; then :
21956  $as_echo_n "(cached) " >&6
21957else
21958  case $DART in
21959  [\\/]* | ?:[\\/]*)
21960  ac_cv_path_DART="$DART" # Let the user override the test with a path.
21961  ;;
21962  *)
21963  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21964for as_dir in $PATH
21965do
21966  IFS=$as_save_IFS
21967  test -z "$as_dir" && as_dir=.
21968    for ac_exec_ext in '' $ac_executable_extensions; do
21969  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21970    ac_cv_path_DART="$as_dir/$ac_word$ac_exec_ext"
21971    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21972    break 2
21973  fi
21974done
21975  done
21976IFS=$as_save_IFS
21977
21978  ;;
21979esac
21980fi
21981DART=$ac_cv_path_DART
21982if test -n "$DART"; then
21983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DART" >&5
21984$as_echo "$DART" >&6; }
21985else
21986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21987$as_echo "no" >&6; }
21988fi
21989
21990
21991  # Extract the first word of "pub", so it can be a program name with args.
21992set dummy pub; ac_word=$2
21993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21994$as_echo_n "checking for $ac_word... " >&6; }
21995if ${ac_cv_path_DARTPUB+:} false; then :
21996  $as_echo_n "(cached) " >&6
21997else
21998  case $DARTPUB in
21999  [\\/]* | ?:[\\/]*)
22000  ac_cv_path_DARTPUB="$DARTPUB" # Let the user override the test with a path.
22001  ;;
22002  *)
22003  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22004for as_dir in $PATH
22005do
22006  IFS=$as_save_IFS
22007  test -z "$as_dir" && as_dir=.
22008    for ac_exec_ext in '' $ac_executable_extensions; do
22009  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22010    ac_cv_path_DARTPUB="$as_dir/$ac_word$ac_exec_ext"
22011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22012    break 2
22013  fi
22014done
22015  done
22016IFS=$as_save_IFS
22017
22018  ;;
22019esac
22020fi
22021DARTPUB=$ac_cv_path_DARTPUB
22022if test -n "$DARTPUB"; then
22023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DARTPUB" >&5
22024$as_echo "$DARTPUB" >&6; }
22025else
22026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22027$as_echo "no" >&6; }
22028fi
22029
22030
22031  if test "x$DART" != "x" -a "x$DARTPUB" != "x"; then
22032    have_dart="yes"
22033  fi
22034fi
22035 if test "$have_dart" = "yes"; then
22036  WITH_DART_TRUE=
22037  WITH_DART_FALSE='#'
22038else
22039  WITH_DART_TRUE='#'
22040  WITH_DART_FALSE=
22041fi
22042
22043
22044
22045
22046# Check whether --with-ruby was given.
22047if test "${with_ruby+set}" = set; then :
22048  withval=$with_ruby; with_ruby="$withval"
22049else
22050  with_ruby=yes
22051
22052fi
22053
22054          have_ruby=no
22055
22056have_ruby=no
22057if test "$with_ruby" = "yes"; then
22058  # Extract the first word of "ruby", so it can be a program name with args.
22059set dummy ruby; ac_word=$2
22060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22061$as_echo_n "checking for $ac_word... " >&6; }
22062if ${ac_cv_path_RUBY+:} false; then :
22063  $as_echo_n "(cached) " >&6
22064else
22065  case $RUBY in
22066  [\\/]* | ?:[\\/]*)
22067  ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
22068  ;;
22069  *)
22070  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22071for as_dir in $PATH
22072do
22073  IFS=$as_save_IFS
22074  test -z "$as_dir" && as_dir=.
22075    for ac_exec_ext in '' $ac_executable_extensions; do
22076  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22077    ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
22078    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22079    break 2
22080  fi
22081done
22082  done
22083IFS=$as_save_IFS
22084
22085  ;;
22086esac
22087fi
22088RUBY=$ac_cv_path_RUBY
22089if test -n "$RUBY"; then
22090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
22091$as_echo "$RUBY" >&6; }
22092else
22093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22094$as_echo "no" >&6; }
22095fi
22096
22097
22098  # Extract the first word of "bundle", so it can be a program name with args.
22099set dummy bundle; ac_word=$2
22100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22101$as_echo_n "checking for $ac_word... " >&6; }
22102if ${ac_cv_path_BUNDLER+:} false; then :
22103  $as_echo_n "(cached) " >&6
22104else
22105  case $BUNDLER in
22106  [\\/]* | ?:[\\/]*)
22107  ac_cv_path_BUNDLER="$BUNDLER" # Let the user override the test with a path.
22108  ;;
22109  *)
22110  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22111for as_dir in $PATH
22112do
22113  IFS=$as_save_IFS
22114  test -z "$as_dir" && as_dir=.
22115    for ac_exec_ext in '' $ac_executable_extensions; do
22116  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22117    ac_cv_path_BUNDLER="$as_dir/$ac_word$ac_exec_ext"
22118    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22119    break 2
22120  fi
22121done
22122  done
22123IFS=$as_save_IFS
22124
22125  ;;
22126esac
22127fi
22128BUNDLER=$ac_cv_path_BUNDLER
22129if test -n "$BUNDLER"; then
22130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLER" >&5
22131$as_echo "$BUNDLER" >&6; }
22132else
22133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22134$as_echo "no" >&6; }
22135fi
22136
22137
22138  if test "x$RUBY" != "x" -a "x$BUNDLER" != "x"; then
22139    have_ruby="yes"
22140  fi
22141fi
22142 if test "$have_ruby" = "yes"; then
22143  WITH_RUBY_TRUE=
22144  WITH_RUBY_FALSE='#'
22145else
22146  WITH_RUBY_TRUE='#'
22147  WITH_RUBY_FALSE=
22148fi
22149
22150 if test "x$BUNDLER" != "x"; then
22151  HAVE_BUNDLER_TRUE=
22152  HAVE_BUNDLER_FALSE='#'
22153else
22154  HAVE_BUNDLER_TRUE='#'
22155  HAVE_BUNDLER_FALSE=
22156fi
22157
22158
22159
22160
22161# Check whether --with-haskell was given.
22162if test "${with_haskell+set}" = set; then :
22163  withval=$with_haskell; with_haskell="$withval"
22164else
22165  with_haskell=yes
22166
22167fi
22168
22169          have_haskell=no
22170
22171have_haskell=no
22172RUNHASKELL=true
22173CABAL=true
22174if test "$with_haskell" = "yes"; then
22175  # Extract the first word of "cabal", so it can be a program name with args.
22176set dummy cabal; ac_word=$2
22177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22178$as_echo_n "checking for $ac_word... " >&6; }
22179if ${ac_cv_path_CABAL+:} false; then :
22180  $as_echo_n "(cached) " >&6
22181else
22182  case $CABAL in
22183  [\\/]* | ?:[\\/]*)
22184  ac_cv_path_CABAL="$CABAL" # Let the user override the test with a path.
22185  ;;
22186  *)
22187  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22188for as_dir in $PATH
22189do
22190  IFS=$as_save_IFS
22191  test -z "$as_dir" && as_dir=.
22192    for ac_exec_ext in '' $ac_executable_extensions; do
22193  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22194    ac_cv_path_CABAL="$as_dir/$ac_word$ac_exec_ext"
22195    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22196    break 2
22197  fi
22198done
22199  done
22200IFS=$as_save_IFS
22201
22202  ;;
22203esac
22204fi
22205CABAL=$ac_cv_path_CABAL
22206if test -n "$CABAL"; then
22207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CABAL" >&5
22208$as_echo "$CABAL" >&6; }
22209else
22210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22211$as_echo "no" >&6; }
22212fi
22213
22214
22215  # Extract the first word of "runhaskell", so it can be a program name with args.
22216set dummy runhaskell; ac_word=$2
22217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22218$as_echo_n "checking for $ac_word... " >&6; }
22219if ${ac_cv_path_RUNHASKELL+:} false; then :
22220  $as_echo_n "(cached) " >&6
22221else
22222  case $RUNHASKELL in
22223  [\\/]* | ?:[\\/]*)
22224  ac_cv_path_RUNHASKELL="$RUNHASKELL" # Let the user override the test with a path.
22225  ;;
22226  *)
22227  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22228for as_dir in $PATH
22229do
22230  IFS=$as_save_IFS
22231  test -z "$as_dir" && as_dir=.
22232    for ac_exec_ext in '' $ac_executable_extensions; do
22233  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22234    ac_cv_path_RUNHASKELL="$as_dir/$ac_word$ac_exec_ext"
22235    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22236    break 2
22237  fi
22238done
22239  done
22240IFS=$as_save_IFS
22241
22242  ;;
22243esac
22244fi
22245RUNHASKELL=$ac_cv_path_RUNHASKELL
22246if test -n "$RUNHASKELL"; then
22247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNHASKELL" >&5
22248$as_echo "$RUNHASKELL" >&6; }
22249else
22250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22251$as_echo "no" >&6; }
22252fi
22253
22254
22255  if test "x$CABAL" != "x" -a "x$RUNHASKELL" != "x"; then
22256    have_haskell="yes"
22257  else
22258    RUNHASKELL=true
22259    CABAL=true
22260  fi
22261fi
22262
22263
22264 if test "$have_haskell" = "yes"; then
22265  WITH_HASKELL_TRUE=
22266  WITH_HASKELL_FALSE='#'
22267else
22268  WITH_HASKELL_TRUE='#'
22269  WITH_HASKELL_FALSE=
22270fi
22271
22272
22273
22274
22275# Check whether --with-go was given.
22276if test "${with_go+set}" = set; then :
22277  withval=$with_go; with_go="$withval"
22278else
22279  with_go=yes
22280
22281fi
22282
22283          have_go=no
22284
22285if test "$with_go" = "yes";  then
22286  # Extract the first word of "go", so it can be a program name with args.
22287set dummy go; ac_word=$2
22288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22289$as_echo_n "checking for $ac_word... " >&6; }
22290if ${ac_cv_path_GO+:} false; then :
22291  $as_echo_n "(cached) " >&6
22292else
22293  case $GO in
22294  [\\/]* | ?:[\\/]*)
22295  ac_cv_path_GO="$GO" # Let the user override the test with a path.
22296  ;;
22297  *)
22298  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22299for as_dir in $PATH
22300do
22301  IFS=$as_save_IFS
22302  test -z "$as_dir" && as_dir=.
22303    for ac_exec_ext in '' $ac_executable_extensions; do
22304  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22305    ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
22306    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22307    break 2
22308  fi
22309done
22310  done
22311IFS=$as_save_IFS
22312
22313  ;;
22314esac
22315fi
22316GO=$ac_cv_path_GO
22317if test -n "$GO"; then
22318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GO" >&5
22319$as_echo "$GO" >&6; }
22320else
22321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22322$as_echo "no" >&6; }
22323fi
22324
22325
22326  if [ -x "$GO" ] ; then
22327    if test -n "$GO"; then :
22328
22329      ax_go_version="1.4"
22330      ax_go17_version="1.7"
22331
22332      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go version" >&5
22333$as_echo_n "checking for Go version... " >&6; }
22334      golang_version=`$GO version 2>&1 | $SED -e 's/\(go \)\(version \)\(go\)\([0-9].[0-9].[0-9]\)\([\*]*\).*/\4/'`
22335      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $golang_version" >&5
22336$as_echo "$golang_version" >&6; }
22337      golang_version=$golang_version
22338
22339
22340
22341
22342  # Used to indicate true or false condition
22343  ax_compare_version=false
22344
22345  # Convert the two version strings to be compared into a format that
22346  # allows a simple string comparison.  The end result is that a version
22347  # string of the form 1.12.5-r617 will be converted to the form
22348  # 0001001200050617.  In other words, each number is zero padded to four
22349  # digits, and non digits are removed.
22350
22351  ax_compare_version_A=`echo "$ax_go_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22352                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22353                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22354                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22355                     -e 's/[^0-9]//g'`
22356
22357
22358  ax_compare_version_B=`echo "$golang_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22359                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22360                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22361                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22362                     -e 's/[^0-9]//g'`
22363
22364
22365    ax_compare_version=`echo "x$ax_compare_version_A
22366x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
22367
22368
22369
22370    if test "$ax_compare_version" = "true" ; then
22371
22372      :
22373        have_go="yes"
22374
22375    else
22376      :
22377        have_go="no"
22378
22379  fi
22380
22381
22382
22383
22384  # Used to indicate true or false condition
22385  ax_compare_version=false
22386
22387  # Convert the two version strings to be compared into a format that
22388  # allows a simple string comparison.  The end result is that a version
22389  # string of the form 1.12.5-r617 will be converted to the form
22390  # 0001001200050617.  In other words, each number is zero padded to four
22391  # digits, and non digits are removed.
22392
22393  ax_compare_version_A=`echo "$golang_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22394                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22395                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22396                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22397                     -e 's/[^0-9]//g'`
22398
22399
22400  ax_compare_version_B=`echo "$ax_go17_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22401                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22402                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22403                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22404                     -e 's/[^0-9]//g'`
22405
22406
22407    ax_compare_version=`echo "x$ax_compare_version_A
22408x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
22409
22410
22411
22412    if test "$ax_compare_version" = "true" ; then
22413
22414      :
22415        go_version_lt_17="yes"
22416
22417    else
22418      :
22419        go_version_lt_17="no"
22420
22421  fi
22422
22423
22424else
22425
22426      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find Go " >&5
22427$as_echo "$as_me: WARNING: could not find Go " >&2;}
22428      have_go="no"
22429
22430fi
22431  fi
22432fi
22433 if test "$have_go" = "yes"; then
22434  WITH_GO_TRUE=
22435  WITH_GO_FALSE='#'
22436else
22437  WITH_GO_TRUE='#'
22438  WITH_GO_FALSE=
22439fi
22440
22441 if test "$go_version_lt_17" = "yes"; then
22442  GOVERSION_LT_17_TRUE=
22443  GOVERSION_LT_17_FALSE='#'
22444else
22445  GOVERSION_LT_17_TRUE='#'
22446  GOVERSION_LT_17_FALSE=
22447fi
22448
22449
22450
22451
22452# Check whether --with-swift was given.
22453if test "${with_swift+set}" = set; then :
22454  withval=$with_swift; with_swift="$withval"
22455else
22456  with_swift=yes
22457
22458fi
22459
22460          have_swift=no
22461
22462have_swift="no"
22463if test "$with_swift" = "yes"; then
22464  # Extract the first word of "swift", so it can be a program name with args.
22465set dummy swift; ac_word=$2
22466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22467$as_echo_n "checking for $ac_word... " >&6; }
22468if ${ac_cv_path_SWIFT+:} false; then :
22469  $as_echo_n "(cached) " >&6
22470else
22471  case $SWIFT in
22472  [\\/]* | ?:[\\/]*)
22473  ac_cv_path_SWIFT="$SWIFT" # Let the user override the test with a path.
22474  ;;
22475  *)
22476  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22477for as_dir in $PATH
22478do
22479  IFS=$as_save_IFS
22480  test -z "$as_dir" && as_dir=.
22481    for ac_exec_ext in '' $ac_executable_extensions; do
22482  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22483    ac_cv_path_SWIFT="$as_dir/$ac_word$ac_exec_ext"
22484    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22485    break 2
22486  fi
22487done
22488  done
22489IFS=$as_save_IFS
22490
22491  ;;
22492esac
22493fi
22494SWIFT=$ac_cv_path_SWIFT
22495if test -n "$SWIFT"; then
22496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIFT" >&5
22497$as_echo "$SWIFT" >&6; }
22498else
22499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22500$as_echo "no" >&6; }
22501fi
22502
22503
22504  if test "x$SWIFT" != "x" -a "x$SWIFT" != "x"; then
22505    have_swift="yes"
22506  fi
22507fi
22508 if test "$have_swift" = "yes"; then
22509  WITH_SWIFT_TRUE=
22510  WITH_SWIFT_FALSE='#'
22511else
22512  WITH_SWIFT_TRUE='#'
22513  WITH_SWIFT_FALSE=
22514fi
22515
22516
22517
22518
22519# Check whether --with-rs was given.
22520if test "${with_rs+set}" = set; then :
22521  withval=$with_rs; with_rs="$withval"
22522else
22523  with_rs=yes
22524
22525fi
22526
22527          have_rs=no
22528
22529have_rs="no"
22530if test "$with_rs" = "yes";  then
22531  # Extract the first word of "cargo", so it can be a program name with args.
22532set dummy cargo; ac_word=$2
22533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22534$as_echo_n "checking for $ac_word... " >&6; }
22535if ${ac_cv_path_CARGO+:} false; then :
22536  $as_echo_n "(cached) " >&6
22537else
22538  case $CARGO in
22539  [\\/]* | ?:[\\/]*)
22540  ac_cv_path_CARGO="$CARGO" # Let the user override the test with a path.
22541  ;;
22542  *)
22543  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22544for as_dir in $PATH
22545do
22546  IFS=$as_save_IFS
22547  test -z "$as_dir" && as_dir=.
22548    for ac_exec_ext in '' $ac_executable_extensions; do
22549  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22550    ac_cv_path_CARGO="$as_dir/$ac_word$ac_exec_ext"
22551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22552    break 2
22553  fi
22554done
22555  done
22556IFS=$as_save_IFS
22557
22558  ;;
22559esac
22560fi
22561CARGO=$ac_cv_path_CARGO
22562if test -n "$CARGO"; then
22563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CARGO" >&5
22564$as_echo "$CARGO" >&6; }
22565else
22566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22567$as_echo "no" >&6; }
22568fi
22569
22570
22571  # Extract the first word of "rustc", so it can be a program name with args.
22572set dummy rustc; ac_word=$2
22573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22574$as_echo_n "checking for $ac_word... " >&6; }
22575if ${ac_cv_path_RUSTC+:} false; then :
22576  $as_echo_n "(cached) " >&6
22577else
22578  case $RUSTC in
22579  [\\/]* | ?:[\\/]*)
22580  ac_cv_path_RUSTC="$RUSTC" # Let the user override the test with a path.
22581  ;;
22582  *)
22583  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22584for as_dir in $PATH
22585do
22586  IFS=$as_save_IFS
22587  test -z "$as_dir" && as_dir=.
22588    for ac_exec_ext in '' $ac_executable_extensions; do
22589  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22590    ac_cv_path_RUSTC="$as_dir/$ac_word$ac_exec_ext"
22591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22592    break 2
22593  fi
22594done
22595  done
22596IFS=$as_save_IFS
22597
22598  ;;
22599esac
22600fi
22601RUSTC=$ac_cv_path_RUSTC
22602if test -n "$RUSTC"; then
22603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSTC" >&5
22604$as_echo "$RUSTC" >&6; }
22605else
22606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22607$as_echo "no" >&6; }
22608fi
22609
22610
22611  if [ -x "$CARGO" ] && [ -x "$RUSTC" ]; then
22612      min_rustc_version="1.13"
22613
22614      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rustc version" >&5
22615$as_echo_n "checking for rustc version... " >&6; }
22616      rustc_version=`$RUSTC --version 2>&1 | $SED -e 's/\(rustc \)\(0-9\)\.\(0-90-9*\)\.\(0-90-9*\).*/\2.\3/'`
22617      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rustc_version" >&5
22618$as_echo "$rustc_version" >&6; }
22619      rustc_version=$rustc_version
22620
22621
22622
22623
22624
22625  # Used to indicate true or false condition
22626  ax_compare_version=false
22627
22628  # Convert the two version strings to be compared into a format that
22629  # allows a simple string comparison.  The end result is that a version
22630  # string of the form 1.12.5-r617 will be converted to the form
22631  # 0001001200050617.  In other words, each number is zero padded to four
22632  # digits, and non digits are removed.
22633
22634  ax_compare_version_A=`echo "$min_rustc_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22635                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22636                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22637                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22638                     -e 's/[^0-9]//g'`
22639
22640
22641  ax_compare_version_B=`echo "$rustc_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22642                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22643                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22644                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22645                     -e 's/[^0-9]//g'`
22646
22647
22648    ax_compare_version=`echo "x$ax_compare_version_A
22649x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
22650
22651
22652
22653    if test "$ax_compare_version" = "true" ; then
22654
22655      :
22656        have_rs="yes"
22657
22658    else
22659      :
22660        have_rs="no"
22661
22662  fi
22663
22664  fi
22665fi
22666 if test "$have_rs" = "yes"; then
22667  WITH_RS_TRUE=
22668  WITH_RS_FALSE='#'
22669else
22670  WITH_RS_TRUE='#'
22671  WITH_RS_FALSE=
22672fi
22673
22674
22675
22676
22677# Check whether --with-cl was given.
22678if test "${with_cl+set}" = set; then :
22679  withval=$with_cl; with_cl="$withval"
22680else
22681  with_cl=yes
22682
22683fi
22684
22685          have_cl=no
22686
22687have_cl="no"
22688if test "$with_cl" = "yes";  then
22689  # Extract the first word of "sbcl", so it can be a program name with args.
22690set dummy sbcl; ac_word=$2
22691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22692$as_echo_n "checking for $ac_word... " >&6; }
22693if ${ac_cv_path_SBCL+:} false; then :
22694  $as_echo_n "(cached) " >&6
22695else
22696  case $SBCL in
22697  [\\/]* | ?:[\\/]*)
22698  ac_cv_path_SBCL="$SBCL" # Let the user override the test with a path.
22699  ;;
22700  *)
22701  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22702for as_dir in $PATH
22703do
22704  IFS=$as_save_IFS
22705  test -z "$as_dir" && as_dir=.
22706    for ac_exec_ext in '' $ac_executable_extensions; do
22707  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22708    ac_cv_path_SBCL="$as_dir/$ac_word$ac_exec_ext"
22709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22710    break 2
22711  fi
22712done
22713  done
22714IFS=$as_save_IFS
22715
22716  ;;
22717esac
22718fi
22719SBCL=$ac_cv_path_SBCL
22720if test -n "$SBCL"; then
22721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SBCL" >&5
22722$as_echo "$SBCL" >&6; }
22723else
22724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22725$as_echo "no" >&6; }
22726fi
22727
22728
22729  if test "x$SBCL" != "x"; then
22730    have_cl="yes"
22731  fi
22732fi
22733 if test "$have_cl" = "yes"; then
22734  WITH_CL_TRUE=
22735  WITH_CL_FALSE='#'
22736else
22737  WITH_CL_TRUE='#'
22738  WITH_CL_FALSE=
22739fi
22740
22741
22742
22743
22744# Check whether --with-haxe was given.
22745if test "${with_haxe+set}" = set; then :
22746  withval=$with_haxe; with_haxe="$withval"
22747else
22748  with_haxe=yes
22749
22750fi
22751
22752          have_haxe=no
22753
22754if test "$with_haxe" = "yes";  then
22755  # Extract the first word of "haxe", so it can be a program name with args.
22756set dummy haxe; ac_word=$2
22757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22758$as_echo_n "checking for $ac_word... " >&6; }
22759if ${ac_cv_path_HAXE+:} false; then :
22760  $as_echo_n "(cached) " >&6
22761else
22762  case $HAXE in
22763  [\\/]* | ?:[\\/]*)
22764  ac_cv_path_HAXE="$HAXE" # Let the user override the test with a path.
22765  ;;
22766  *)
22767  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22768for as_dir in $PATH
22769do
22770  IFS=$as_save_IFS
22771  test -z "$as_dir" && as_dir=.
22772    for ac_exec_ext in '' $ac_executable_extensions; do
22773  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22774    ac_cv_path_HAXE="$as_dir/$ac_word$ac_exec_ext"
22775    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22776    break 2
22777  fi
22778done
22779  done
22780IFS=$as_save_IFS
22781
22782  ;;
22783esac
22784fi
22785HAXE=$ac_cv_path_HAXE
22786if test -n "$HAXE"; then
22787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAXE" >&5
22788$as_echo "$HAXE" >&6; }
22789else
22790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22791$as_echo "no" >&6; }
22792fi
22793
22794
22795  if [ -x "$HAXE" ] ; then
22796
22797
22798
22799    if test -n "$HAXE"; then :
22800
22801        ax_haxe_version="3.1.3"
22802
22803        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for haxe version" >&5
22804$as_echo_n "checking for haxe version... " >&6; }
22805        haxe_version=`$HAXE -version 2>&1 | $SED -e 's/^.* \( [0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
22806        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $haxe_version" >&5
22807$as_echo "$haxe_version" >&6; }
22808
22809	    HAXE_VERSION=$haxe_version
22810
22811
22812
22813
22814
22815  # Used to indicate true or false condition
22816  ax_compare_version=false
22817
22818  # Convert the two version strings to be compared into a format that
22819  # allows a simple string comparison.  The end result is that a version
22820  # string of the form 1.12.5-r617 will be converted to the form
22821  # 0001001200050617.  In other words, each number is zero padded to four
22822  # digits, and non digits are removed.
22823
22824  ax_compare_version_A=`echo "$ax_haxe_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22825                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22826                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22827                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22828                     -e 's/[^0-9]//g'`
22829
22830
22831  ax_compare_version_B=`echo "$haxe_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22832                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22833                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22834                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22835                     -e 's/[^0-9]//g'`
22836
22837
22838    ax_compare_version=`echo "x$ax_compare_version_A
22839x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
22840
22841
22842
22843    if test "$ax_compare_version" = "true" ; then
22844
22845	    :
22846            have_haxe="yes"
22847
22848    else
22849	    :
22850            have_haxe="no"
22851
22852  fi
22853
22854
22855else
22856
22857        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find Haxe" >&5
22858$as_echo "$as_me: WARNING: could not find Haxe" >&2;}
22859        have_haxe="no"
22860
22861fi
22862
22863  fi
22864fi
22865 if test "$have_haxe" = "yes"; then
22866  WITH_HAXE_TRUE=
22867  WITH_HAXE_FALSE='#'
22868else
22869  WITH_HAXE_TRUE='#'
22870  WITH_HAXE_FALSE=
22871fi
22872
22873
22874
22875
22876
22877# Check whether --with-netstd was given.
22878if test "${with_netstd+set}" = set; then :
22879  withval=$with_netstd; with_netstd="$withval"
22880else
22881  with_netstd=yes
22882
22883fi
22884
22885          have_netstd=no
22886
22887if test "$with_netstd" = "yes";  then
22888  # Extract the first word of "dotnet", so it can be a program name with args.
22889set dummy dotnet; ac_word=$2
22890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22891$as_echo_n "checking for $ac_word... " >&6; }
22892if ${ac_cv_path_DOTNETCORE+:} false; then :
22893  $as_echo_n "(cached) " >&6
22894else
22895  case $DOTNETCORE in
22896  [\\/]* | ?:[\\/]*)
22897  ac_cv_path_DOTNETCORE="$DOTNETCORE" # Let the user override the test with a path.
22898  ;;
22899  *)
22900  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22901for as_dir in $PATH
22902do
22903  IFS=$as_save_IFS
22904  test -z "$as_dir" && as_dir=.
22905    for ac_exec_ext in '' $ac_executable_extensions; do
22906  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22907    ac_cv_path_DOTNETCORE="$as_dir/$ac_word$ac_exec_ext"
22908    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22909    break 2
22910  fi
22911done
22912  done
22913IFS=$as_save_IFS
22914
22915  ;;
22916esac
22917fi
22918DOTNETCORE=$ac_cv_path_DOTNETCORE
22919if test -n "$DOTNETCORE"; then
22920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOTNETCORE" >&5
22921$as_echo "$DOTNETCORE" >&6; }
22922else
22923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22924$as_echo "no" >&6; }
22925fi
22926
22927
22928  if [ -x "$DOTNETCORE" ] ; then
22929
22930
22931
22932    if test -n "$DOTNETCORE"; then :
22933
22934        ax_dotnetcore_version="3.1.0"
22935
22936        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .NET Core version" >&5
22937$as_echo_n "checking for .NET Core version... " >&6; }
22938        dotnetcore_version=`$DOTNETCORE --version 2>&1 | $SED -e 's/\([0-9]*\.[0-9]*\.[0-9]*\)\(.*\)/\1/'`
22939        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dotnetcore_version" >&5
22940$as_echo "$dotnetcore_version" >&6; }
22941
22942	    DOTNETCORE_VERSION=$dotnetcore_version
22943
22944
22945
22946
22947
22948  # Used to indicate true or false condition
22949  ax_compare_version=false
22950
22951  # Convert the two version strings to be compared into a format that
22952  # allows a simple string comparison.  The end result is that a version
22953  # string of the form 1.12.5-r617 will be converted to the form
22954  # 0001001200050617.  In other words, each number is zero padded to four
22955  # digits, and non digits are removed.
22956
22957  ax_compare_version_A=`echo "$ax_dotnetcore_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22958                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22959                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22960                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22961                     -e 's/[^0-9]//g'`
22962
22963
22964  ax_compare_version_B=`echo "$dotnetcore_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22965                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22966                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22967                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22968                     -e 's/[^0-9]//g'`
22969
22970
22971    ax_compare_version=`echo "x$ax_compare_version_A
22972x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
22973
22974
22975
22976    if test "$ax_compare_version" = "true" ; then
22977
22978	    :
22979            have_netstd="yes"
22980
22981    else
22982	    :
22983            have_netstd="no"
22984
22985  fi
22986
22987
22988else
22989
22990        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find .NET Core" >&5
22991$as_echo "$as_me: WARNING: could not find .NET Core" >&2;}
22992        have_netstd="no"
22993
22994fi
22995
22996  fi
22997fi
22998 if test "$have_netstd" = "yes"; then
22999  WITH_DOTNET_TRUE=
23000  WITH_DOTNET_FALSE='#'
23001else
23002  WITH_DOTNET_TRUE='#'
23003  WITH_DOTNET_FALSE=
23004fi
23005
23006
23007
23008
23009
23010# Check whether --with-d was given.
23011if test "${with_d+set}" = set; then :
23012  withval=$with_d; with_d="$withval"
23013else
23014  with_d=yes
23015
23016fi
23017
23018          have_d=no
23019
23020if test "$with_d" = "yes";  then
23021
23022                    DMD_PROGS="dmd,gdmd,ldmd"
23023
23024                    if test -n "$DMD" ; then
23025            DMD_PROGS="$DMD"
23026          fi
23027
23028          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMD" >&5
23029$as_echo_n "checking for DMD... " >&6; }
23030
23031          # std.algorithm as a quick way to check for D2/Phobos.
23032          echo "import std.algorithm; void main() {}" > configtest_ax_dmd.d
23033          success=no
23034          oIFS="$IFS"
23035
23036          IFS=","
23037          for DMD in $DMD_PROGS ; do
23038            IFS="$oIFS"
23039
23040            echo "Running \"$DMD configtest_ax_dmd.d\"" >&5
23041            if $DMD configtest_ax_dmd.d >&5 2>&1 ; then
23042              success=yes
23043              break
23044            fi
23045          done
23046
23047          if test "$success" != "yes" ; then
23048            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23049$as_echo "no" >&6; }
23050            DMD=""
23051          else
23052            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23053$as_echo "yes" >&6; }
23054          fi
23055
23056          ax_dmd="$success"
23057
23058          # Test whether OPTLINK is used by trying if DMD accepts -L/? without
23059          # erroring out.
23060          if test "$success" == "yes" ; then
23061            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DMD uses OPTLINK" >&5
23062$as_echo_n "checking whether DMD uses OPTLINK... " >&6; }
23063            echo "Running \”$DMD -L/? configtest_ax_dmd.d\"" >&5
23064            if $DMD -L/? configtest_ax_dmd.d >&5 2>&1 ; then
23065              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23066$as_echo "yes" >&6; }
23067              dmd_optlink="yes"
23068
23069              # This actually produces double slashes in the final configure
23070              # output, but at least it works.
23071              dmd_of_dirsep="\\\\"
23072            else
23073              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23074$as_echo "no" >&6; }
23075              dmd_optlink="no"
23076              dmd_of_dirsep="/"
23077            fi
23078          fi
23079
23080          rm -f configtest_ax_dmd*
23081
23082
23083  if test "x$DMD" != "x"; then
23084    have_d="yes"
23085  fi
23086fi
23087
23088# Determine actual name of the generated D library for use in the command line
23089# when compiling tests. This is needed because the -l<lib> syntax doesn't work
23090# with OPTLINK (Windows).
23091lib_prefix=lib
23092lib_suffix=a
23093case "$host_os" in
23094  cygwin* | mingw* | pw32* | cegcc*)
23095    lib_prefix=""
23096    lib_suffix=lib
23097    ;;
23098esac
23099D_LIB_NAME="${lib_prefix}thriftd.${lib_suffix}"
23100
23101D_EVENT_LIB_NAME="${lib_prefix}thriftd-event.${lib_suffix}"
23102
23103D_SSL_LIB_NAME="${lib_prefix}thriftd-ssl.${lib_suffix}"
23104
23105
23106if test "$have_d" = "yes"; then
23107
23108          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D module deimos.event2.event" >&5
23109$as_echo_n "checking for D module deimos.event2.event... " >&6; }
23110
23111          echo "import deimos.event2.event; void main() {}" > configtest_ax_dmd.d
23112
23113          echo "Running \"$DMD configtest_ax_dmd.d\"" >&5
23114          if $DMD -c configtest_ax_dmd.d >&5 2>&1 ; then
23115            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23116$as_echo "yes" >&6; }
23117            success=yes
23118          else
23119            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23120$as_echo "no" >&6; }
23121            success=no
23122          fi
23123
23124          rm -f configtest_ax_dmd*
23125
23126  have_deimos_event2=$success
23127
23128  with_d_event_tests="no"
23129  if test "$have_deimos_event2" = "yes"; then
23130    if test "x$DMD_LIBEVENT_FLAGS" = "x"; then
23131      if test "$dmd_optlink" = "yes"; then
23132        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: D libevent interface found, but cannot auto-detect \
23133linker flags for OPTLINK. Please set DMD_LIBEVENT_FLAGS manually." >&5
23134$as_echo "$as_me: WARNING: D libevent interface found, but cannot auto-detect \
23135linker flags for OPTLINK. Please set DMD_LIBEVENT_FLAGS manually." >&2;}
23136      else
23137
23138
23139
23140# Check whether --with-libevent was given.
23141if test "${with_libevent+set}" = set; then :
23142  withval=$with_libevent;
23143                       if test "x$withval" = "xno"; then
23144                         want_libevent="no"
23145                       elif test "x$withval" = "xyes"; then
23146                         want_libevent="yes"
23147                         ax_libevent_path=""
23148                       else
23149                         want_libevent="yes"
23150                         ax_libevent_path="$withval"
23151                       fi
23152
23153else
23154   want_libevent="yes" ; ax_libevent_path=""
23155fi
23156
23157
23158
23159          if test "$want_libevent" = "yes"; then
23160            WANT_LIBEVENT_VERSION=2.0
23161
23162            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent >= $WANT_LIBEVENT_VERSION" >&5
23163$as_echo_n "checking for libevent >= $WANT_LIBEVENT_VERSION... " >&6; }
23164
23165            # Run tests.
23166            if test -n "$ax_libevent_path"; then
23167
23168          # Save our flags.
23169          CPPFLAGS_SAVED="$CPPFLAGS"
23170          LDFLAGS_SAVED="$LDFLAGS"
23171          LIBS_SAVED="$LIBS"
23172          LD_LIBRARY_PATH_SAVED="$LD_LIBRARY_PATH"
23173
23174          # Set our flags if we are checking a specific directory.
23175          if test -n "$ax_libevent_path" ; then
23176            LIBEVENT_CPPFLAGS="-I$ax_libevent_path/include"
23177            LIBEVENT_LDFLAGS="-L$ax_libevent_path/lib"
23178            LD_LIBRARY_PATH="$ax_libevent_path/lib:$LD_LIBRARY_PATH"
23179          else
23180            LIBEVENT_CPPFLAGS=""
23181            LIBEVENT_LDFLAGS=""
23182          fi
23183
23184          # Required flag for libevent.
23185          LIBEVENT_LIBS="-levent"
23186
23187          # Prepare the environment for compilation.
23188          CPPFLAGS="$CPPFLAGS $LIBEVENT_CPPFLAGS"
23189          LDFLAGS="$LDFLAGS $LIBEVENT_LDFLAGS"
23190          LIBS="$LIBS $LIBEVENT_LIBS"
23191          export CPPFLAGS
23192          export LDFLAGS
23193          export LIBS
23194          export LD_LIBRARY_PATH
23195
23196          success=no
23197
23198          # Compile, link, and run the program.  This checks:
23199          # - event.h is available for including.
23200          # - event_get_version() is available for linking.
23201          # - The event version string is lexicographically greater
23202          #   than the required version.
23203          ac_ext=c
23204ac_cpp='$CPP $CPPFLAGS'
23205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23207ac_compiler_gnu=$ac_cv_c_compiler_gnu
23208
23209                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23210/* end confdefs.h.  */
23211
23212          #include <sys/types.h>
23213          #include <event.h>
23214
23215int
23216main ()
23217{
23218
23219          const char* lib_version = event_get_version();
23220          const char* wnt_version = "$WANT_LIBEVENT_VERSION";
23221          int lib_digits;
23222          int wnt_digits;
23223          for (;;) {
23224            /* If we reached the end of the want version.  We have it. */
23225            if (*wnt_version == '\0' || *wnt_version == '-') {
23226              return 0;
23227            }
23228            /* If the want version continues but the lib version does not, */
23229            /* we are missing a letter.  We don't have it. */
23230            if (*lib_version == '\0' || *lib_version == '-') {
23231              return 1;
23232            }
23233            /* In the 1.4 version numbering style, if there are more digits */
23234            /* in one version than the other, that one is higher. */
23235            for (lib_digits = 0;
23236                lib_version[lib_digits] >= '0' &&
23237                lib_version[lib_digits] <= '9';
23238                lib_digits++)
23239              ;
23240            for (wnt_digits = 0;
23241                wnt_version[wnt_digits] >= '0' &&
23242                wnt_version[wnt_digits] <= '9';
23243                wnt_digits++)
23244              ;
23245            if (lib_digits > wnt_digits) {
23246              return 0;
23247            }
23248            if (lib_digits < wnt_digits) {
23249              return 1;
23250            }
23251            /* If we have greater than what we want.  We have it. */
23252            if (*lib_version > *wnt_version) {
23253              return 0;
23254            }
23255            /* If we have less, we don't. */
23256            if (*lib_version < *wnt_version) {
23257              return 1;
23258            }
23259            lib_version++;
23260            wnt_version++;
23261          }
23262          return 0;
23263
23264  ;
23265  return 0;
23266}
23267_ACEOF
23268if ac_fn_c_try_link "$LINENO"; then :
23269
23270          success=yes
23271
23272fi
23273rm -f core conftest.err conftest.$ac_objext \
23274    conftest$ac_exeext conftest.$ac_ext
23275          ac_ext=cpp
23276ac_cpp='$CXXCPP $CPPFLAGS'
23277ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23278ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23279ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23280
23281
23282          # Restore flags.
23283          CPPFLAGS="$CPPFLAGS_SAVED"
23284          LDFLAGS="$LDFLAGS_SAVED"
23285          LIBS="$LIBS_SAVED"
23286          LD_LIBRARY_PATH="$LD_LIBRARY_PATH_SAVED"
23287
23288            else
23289              for ax_libevent_path in "" $lt_sysroot/usr $lt_sysroot/usr/local $lt_sysroot/opt $lt_sysroot/opt/local $lt_sysroot/opt/libevent "$LIBEVENT_ROOT" ; do
23290
23291          # Save our flags.
23292          CPPFLAGS_SAVED="$CPPFLAGS"
23293          LDFLAGS_SAVED="$LDFLAGS"
23294          LIBS_SAVED="$LIBS"
23295          LD_LIBRARY_PATH_SAVED="$LD_LIBRARY_PATH"
23296
23297          # Set our flags if we are checking a specific directory.
23298          if test -n "$ax_libevent_path" ; then
23299            LIBEVENT_CPPFLAGS="-I$ax_libevent_path/include"
23300            LIBEVENT_LDFLAGS="-L$ax_libevent_path/lib"
23301            LD_LIBRARY_PATH="$ax_libevent_path/lib:$LD_LIBRARY_PATH"
23302          else
23303            LIBEVENT_CPPFLAGS=""
23304            LIBEVENT_LDFLAGS=""
23305          fi
23306
23307          # Required flag for libevent.
23308          LIBEVENT_LIBS="-levent"
23309
23310          # Prepare the environment for compilation.
23311          CPPFLAGS="$CPPFLAGS $LIBEVENT_CPPFLAGS"
23312          LDFLAGS="$LDFLAGS $LIBEVENT_LDFLAGS"
23313          LIBS="$LIBS $LIBEVENT_LIBS"
23314          export CPPFLAGS
23315          export LDFLAGS
23316          export LIBS
23317          export LD_LIBRARY_PATH
23318
23319          success=no
23320
23321          # Compile, link, and run the program.  This checks:
23322          # - event.h is available for including.
23323          # - event_get_version() is available for linking.
23324          # - The event version string is lexicographically greater
23325          #   than the required version.
23326          ac_ext=c
23327ac_cpp='$CPP $CPPFLAGS'
23328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23330ac_compiler_gnu=$ac_cv_c_compiler_gnu
23331
23332                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23333/* end confdefs.h.  */
23334
23335          #include <sys/types.h>
23336          #include <event.h>
23337
23338int
23339main ()
23340{
23341
23342          const char* lib_version = event_get_version();
23343          const char* wnt_version = "$WANT_LIBEVENT_VERSION";
23344          int lib_digits;
23345          int wnt_digits;
23346          for (;;) {
23347            /* If we reached the end of the want version.  We have it. */
23348            if (*wnt_version == '\0' || *wnt_version == '-') {
23349              return 0;
23350            }
23351            /* If the want version continues but the lib version does not, */
23352            /* we are missing a letter.  We don't have it. */
23353            if (*lib_version == '\0' || *lib_version == '-') {
23354              return 1;
23355            }
23356            /* In the 1.4 version numbering style, if there are more digits */
23357            /* in one version than the other, that one is higher. */
23358            for (lib_digits = 0;
23359                lib_version[lib_digits] >= '0' &&
23360                lib_version[lib_digits] <= '9';
23361                lib_digits++)
23362              ;
23363            for (wnt_digits = 0;
23364                wnt_version[wnt_digits] >= '0' &&
23365                wnt_version[wnt_digits] <= '9';
23366                wnt_digits++)
23367              ;
23368            if (lib_digits > wnt_digits) {
23369              return 0;
23370            }
23371            if (lib_digits < wnt_digits) {
23372              return 1;
23373            }
23374            /* If we have greater than what we want.  We have it. */
23375            if (*lib_version > *wnt_version) {
23376              return 0;
23377            }
23378            /* If we have less, we don't. */
23379            if (*lib_version < *wnt_version) {
23380              return 1;
23381            }
23382            lib_version++;
23383            wnt_version++;
23384          }
23385          return 0;
23386
23387  ;
23388  return 0;
23389}
23390_ACEOF
23391if ac_fn_c_try_link "$LINENO"; then :
23392
23393          success=yes
23394
23395fi
23396rm -f core conftest.err conftest.$ac_objext \
23397    conftest$ac_exeext conftest.$ac_ext
23398          ac_ext=cpp
23399ac_cpp='$CXXCPP $CPPFLAGS'
23400ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23401ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23402ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23403
23404
23405          # Restore flags.
23406          CPPFLAGS="$CPPFLAGS_SAVED"
23407          LDFLAGS="$LDFLAGS_SAVED"
23408          LIBS="$LIBS_SAVED"
23409          LD_LIBRARY_PATH="$LD_LIBRARY_PATH_SAVED"
23410
23411                if test "$success" = "yes"; then
23412                  break;
23413                fi
23414              done
23415            fi
23416
23417            if test "$success" != "yes" ; then
23418              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23419$as_echo "no" >&6; }
23420              LIBEVENT_CPPFLAGS=""
23421              LIBEVENT_LDFLAGS=""
23422              LIBEVENT_LIBS=""
23423            else
23424              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23425$as_echo "yes" >&6; }
23426
23427$as_echo "#define HAVE_LIBEVENT /**/" >>confdefs.h
23428
23429              ax_have_libevent_2_0="yes"
23430            fi
23431
23432            ax_have_libevent="$success"
23433
23434
23435
23436
23437          fi
23438
23439
23440        if test "$success" = "yes"; then
23441          DMD_LIBEVENT_FLAGS=$(echo "-fuse-ld=gold $LIBEVENT_LDFLAGS $LIBEVENT_LIBS" | \
23442            sed -e 's/^ *//g;s/ *$//g;s/^\(.\)/-L\1/g;s/  */ -L/g')
23443          with_d_event_tests="yes"
23444        else
23445          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: D libevent interface present, but libevent library not found." >&5
23446$as_echo "$as_me: WARNING: D libevent interface present, but libevent library not found." >&2;}
23447        fi
23448      fi
23449    else
23450      with_d_event_tests="yes"
23451    fi
23452  fi
23453
23454
23455          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D module deimos.openssl.ssl" >&5
23456$as_echo_n "checking for D module deimos.openssl.ssl... " >&6; }
23457
23458          echo "import deimos.openssl.ssl; void main() {}" > configtest_ax_dmd.d
23459
23460          echo "Running \"$DMD configtest_ax_dmd.d\"" >&5
23461          if $DMD -c configtest_ax_dmd.d >&5 2>&1 ; then
23462            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23463$as_echo "yes" >&6; }
23464            success=yes
23465          else
23466            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23467$as_echo "no" >&6; }
23468            success=no
23469          fi
23470
23471          rm -f configtest_ax_dmd*
23472
23473  have_deimos_openssl=$success
23474
23475  with_d_ssl_tests="no"
23476  if test "$have_deimos_openssl" = "yes"; then
23477    if test "x$DMD_OPENSSL_FLAGS" = "x"; then
23478      if test "$dmd_optlink" = "yes"; then
23479        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: D OpenSSL interface found, but cannot auto-detect \
23480linker flags for OPTLINK. Please set DMD_OPENSSL_FLAGS manually." >&5
23481$as_echo "$as_me: WARNING: D OpenSSL interface found, but cannot auto-detect \
23482linker flags for OPTLINK. Please set DMD_OPENSSL_FLAGS manually." >&2;}
23483      else
23484
23485    found=false
23486
23487# Check whether --with-openssl was given.
23488if test "${with_openssl+set}" = set; then :
23489  withval=$with_openssl;
23490            case "$withval" in
23491            "" | y | ye | yes | n | no)
23492            as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
23493              ;;
23494            *) ssldirs="$withval"
23495              ;;
23496            esac
23497
23498else
23499
23500            # if pkg-config is installed and openssl has installed a .pc file,
23501            # then use that information and don't search ssldirs
23502            if test -n "$ac_tool_prefix"; then
23503  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23504set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23506$as_echo_n "checking for $ac_word... " >&6; }
23507if ${ac_cv_prog_PKG_CONFIG+:} false; then :
23508  $as_echo_n "(cached) " >&6
23509else
23510  if test -n "$PKG_CONFIG"; then
23511  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
23512else
23513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23514for as_dir in $PATH
23515do
23516  IFS=$as_save_IFS
23517  test -z "$as_dir" && as_dir=.
23518    for ac_exec_ext in '' $ac_executable_extensions; do
23519  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23520    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
23521    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23522    break 2
23523  fi
23524done
23525  done
23526IFS=$as_save_IFS
23527
23528fi
23529fi
23530PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
23531if test -n "$PKG_CONFIG"; then
23532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23533$as_echo "$PKG_CONFIG" >&6; }
23534else
23535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23536$as_echo "no" >&6; }
23537fi
23538
23539
23540fi
23541if test -z "$ac_cv_prog_PKG_CONFIG"; then
23542  ac_ct_PKG_CONFIG=$PKG_CONFIG
23543  # Extract the first word of "pkg-config", so it can be a program name with args.
23544set dummy pkg-config; ac_word=$2
23545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23546$as_echo_n "checking for $ac_word... " >&6; }
23547if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
23548  $as_echo_n "(cached) " >&6
23549else
23550  if test -n "$ac_ct_PKG_CONFIG"; then
23551  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
23552else
23553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23554for as_dir in $PATH
23555do
23556  IFS=$as_save_IFS
23557  test -z "$as_dir" && as_dir=.
23558    for ac_exec_ext in '' $ac_executable_extensions; do
23559  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23560    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
23561    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23562    break 2
23563  fi
23564done
23565  done
23566IFS=$as_save_IFS
23567
23568fi
23569fi
23570ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
23571if test -n "$ac_ct_PKG_CONFIG"; then
23572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
23573$as_echo "$ac_ct_PKG_CONFIG" >&6; }
23574else
23575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23576$as_echo "no" >&6; }
23577fi
23578
23579  if test "x$ac_ct_PKG_CONFIG" = x; then
23580    PKG_CONFIG=""
23581  else
23582    case $cross_compiling:$ac_tool_warned in
23583yes:)
23584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23586ac_tool_warned=yes ;;
23587esac
23588    PKG_CONFIG=$ac_ct_PKG_CONFIG
23589  fi
23590else
23591  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
23592fi
23593
23594            if test x"$PKG_CONFIG" != x""; then
23595                OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
23596                if test $? = 0; then
23597                    OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
23598                    OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
23599                    found=true
23600                fi
23601            fi
23602
23603            # no such luck; use some default ssldirs
23604            if ! $found; then
23605                ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
23606            fi
23607
23608
23609fi
23610
23611
23612
23613    # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
23614    # an 'openssl' subdirectory
23615
23616    if ! $found; then
23617        OPENSSL_INCLUDES=
23618        for ssldir in $ssldirs; do
23619            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
23620$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
23621            if test -f "$ssldir/include/openssl/ssl.h"; then
23622                OPENSSL_INCLUDES="-I$ssldir/include"
23623                OPENSSL_LDFLAGS="-L$ssldir/lib"
23624                OPENSSL_LIBS="-lssl -lcrypto"
23625                found=true
23626                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23627$as_echo "yes" >&6; }
23628                break
23629            else
23630                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23631$as_echo "no" >&6; }
23632            fi
23633        done
23634
23635        # if the file wasn't found, well, go ahead and try the link anyway -- maybe
23636        # it will just work!
23637    fi
23638
23639    # try the preprocessor and linker with our new flags,
23640    # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
23641
23642    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
23643$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
23644    echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
23645        "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
23646
23647    save_LIBS="$LIBS"
23648    save_LDFLAGS="$LDFLAGS"
23649    save_CPPFLAGS="$CPPFLAGS"
23650    LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
23651    LIBS="$OPENSSL_LIBS $LIBS"
23652    CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
23653    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23654/* end confdefs.h.  */
23655#include <openssl/ssl.h>
23656int
23657main ()
23658{
23659SSL_new(NULL)
23660  ;
23661  return 0;
23662}
23663_ACEOF
23664if ac_fn_cxx_try_link "$LINENO"; then :
23665
23666            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23667$as_echo "yes" >&6; }
23668            with_d_ssl_tests="yes"
23669
23670else
23671
23672            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23673$as_echo "no" >&6; }
23674
23675
23676fi
23677rm -f core conftest.err conftest.$ac_objext \
23678    conftest$ac_exeext conftest.$ac_ext
23679    CPPFLAGS="$save_CPPFLAGS"
23680    LDFLAGS="$save_LDFLAGS"
23681    LIBS="$save_LIBS"
23682
23683
23684
23685
23686
23687        if test "$with_d_ssl_tests" = "yes"; then
23688          DMD_OPENSSL_FLAGS=$(echo "-fuse-ld=gold $OPENSSL_LDFLAGS $OPENSSL_LIBS" | \
23689            sed -e 's/^ *//g;s/ *$//g;s/^\(.\)/-L\1/g;s/  */ -L/g')
23690        else
23691          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: D OpenSSL interface present, but OpenSSL library not found." >&5
23692$as_echo "$as_me: WARNING: D OpenSSL interface present, but OpenSSL library not found." >&2;}
23693        fi
23694      fi
23695    else
23696      with_d_ssl_tests="yes"
23697    fi
23698  fi
23699fi
23700
23701 if test "$have_d" = "yes"; then
23702  WITH_D_TRUE=
23703  WITH_D_FALSE='#'
23704else
23705  WITH_D_TRUE='#'
23706  WITH_D_FALSE=
23707fi
23708
23709 if test "$dmd_optlink" = "yes"; then
23710  DMD_OPTLINK_TRUE=
23711  DMD_OPTLINK_FALSE='#'
23712else
23713  DMD_OPTLINK_TRUE='#'
23714  DMD_OPTLINK_FALSE=
23715fi
23716
23717DMD_OF_DIRSEP="$dmd_of_dirsep"
23718
23719 if test "$have_deimos_event2" = "yes"; then
23720  HAVE_DEIMOS_EVENT2_TRUE=
23721  HAVE_DEIMOS_EVENT2_FALSE='#'
23722else
23723  HAVE_DEIMOS_EVENT2_TRUE='#'
23724  HAVE_DEIMOS_EVENT2_FALSE=
23725fi
23726
23727 if test "$with_d_event_tests" = "yes"; then
23728  WITH_D_EVENT_TESTS_TRUE=
23729  WITH_D_EVENT_TESTS_FALSE='#'
23730else
23731  WITH_D_EVENT_TESTS_TRUE='#'
23732  WITH_D_EVENT_TESTS_FALSE=
23733fi
23734
23735
23736 if test "$have_deimos_openssl" = "yes"; then
23737  HAVE_DEIMOS_OPENSSL_TRUE=
23738  HAVE_DEIMOS_OPENSSL_FALSE='#'
23739else
23740  HAVE_DEIMOS_OPENSSL_TRUE='#'
23741  HAVE_DEIMOS_OPENSSL_FALSE=
23742fi
23743
23744 if test "$with_d_ssl_tests" = "yes"; then
23745  WITH_D_SSL_TESTS_TRUE=
23746  WITH_D_SSL_TESTS_FALSE='#'
23747else
23748  WITH_D_SSL_TESTS_TRUE='#'
23749  WITH_D_SSL_TESTS_FALSE=
23750fi
23751
23752
23753
23754# Check whether --enable-tests was given.
23755if test "${enable_tests+set}" = set; then :
23756  enableval=$enable_tests;
23757else
23758  enable_tests=yes
23759
23760fi
23761
23762have_tests=yes
23763if test "$enable_tests" = "no"; then
23764  have_tests="no"
23765fi
23766 if test "$have_tests" = "yes"; then
23767  WITH_TESTS_TRUE=
23768  WITH_TESTS_FALSE='#'
23769else
23770  WITH_TESTS_TRUE='#'
23771  WITH_TESTS_FALSE=
23772fi
23773
23774
23775# Check whether --enable-tutorial was given.
23776if test "${enable_tutorial+set}" = set; then :
23777  enableval=$enable_tutorial;
23778else
23779  enable_tutorial=yes
23780
23781fi
23782
23783have_tutorial=yes
23784if test "$enable_tutorial" = "no"; then
23785  have_tutorial="no"
23786fi
23787 if test "$have_tutorial" = "yes"; then
23788  WITH_TUTORIAL_TRUE=
23789  WITH_TUTORIAL_FALSE='#'
23790else
23791  WITH_TUTORIAL_TRUE='#'
23792  WITH_TUTORIAL_FALSE=
23793fi
23794
23795
23796 if false; then
23797  MINGW_TRUE=
23798  MINGW_FALSE='#'
23799else
23800  MINGW_TRUE='#'
23801  MINGW_FALSE=
23802fi
23803
23804case "${host_os}" in
23805*mingw*)
23806  mingw32_support="yes"
23807  ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
23808if test "x$ac_cv_header_windows_h" = xyes; then :
23809
23810fi
23811
23812
23813   if true; then
23814  MINGW_TRUE=
23815  MINGW_FALSE='#'
23816else
23817  MINGW_TRUE='#'
23818  MINGW_FALSE=
23819fi
23820
23821  ;;
23822*)
23823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
23824$as_echo_n "checking for library containing strerror... " >&6; }
23825if ${ac_cv_search_strerror+:} false; then :
23826  $as_echo_n "(cached) " >&6
23827else
23828  ac_func_search_save_LIBS=$LIBS
23829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23830/* end confdefs.h.  */
23831
23832/* Override any GCC internal prototype to avoid an error.
23833   Use char because int might match the return type of a GCC
23834   builtin and then its argument prototype would still apply.  */
23835#ifdef __cplusplus
23836extern "C"
23837#endif
23838char strerror ();
23839int
23840main ()
23841{
23842return strerror ();
23843  ;
23844  return 0;
23845}
23846_ACEOF
23847for ac_lib in '' cposix; do
23848  if test -z "$ac_lib"; then
23849    ac_res="none required"
23850  else
23851    ac_res=-l$ac_lib
23852    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23853  fi
23854  if ac_fn_cxx_try_link "$LINENO"; then :
23855  ac_cv_search_strerror=$ac_res
23856fi
23857rm -f core conftest.err conftest.$ac_objext \
23858    conftest$ac_exeext
23859  if ${ac_cv_search_strerror+:} false; then :
23860  break
23861fi
23862done
23863if ${ac_cv_search_strerror+:} false; then :
23864
23865else
23866  ac_cv_search_strerror=no
23867fi
23868rm conftest.$ac_ext
23869LIBS=$ac_func_search_save_LIBS
23870fi
23871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
23872$as_echo "$ac_cv_search_strerror" >&6; }
23873ac_res=$ac_cv_search_strerror
23874if test "$ac_res" != no; then :
23875  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23876
23877fi
23878
23879  ;;
23880esac
23881
23882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23883$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23884if ${ac_cv_c_const+:} false; then :
23885  $as_echo_n "(cached) " >&6
23886else
23887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23888/* end confdefs.h.  */
23889
23890int
23891main ()
23892{
23893
23894#ifndef __cplusplus
23895  /* Ultrix mips cc rejects this sort of thing.  */
23896  typedef int charset[2];
23897  const charset cs = { 0, 0 };
23898  /* SunOS 4.1.1 cc rejects this.  */
23899  char const *const *pcpcc;
23900  char **ppc;
23901  /* NEC SVR4.0.2 mips cc rejects this.  */
23902  struct point {int x, y;};
23903  static struct point const zero = {0,0};
23904  /* AIX XL C 1.02.0.0 rejects this.
23905     It does not let you subtract one const X* pointer from another in
23906     an arm of an if-expression whose if-part is not a constant
23907     expression */
23908  const char *g = "string";
23909  pcpcc = &g + (g ? g-g : 0);
23910  /* HPUX 7.0 cc rejects these. */
23911  ++pcpcc;
23912  ppc = (char**) pcpcc;
23913  pcpcc = (char const *const *) ppc;
23914  { /* SCO 3.2v4 cc rejects this sort of thing.  */
23915    char tx;
23916    char *t = &tx;
23917    char const *s = 0 ? (char *) 0 : (char const *) 0;
23918
23919    *t++ = 0;
23920    if (s) return 0;
23921  }
23922  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23923    int x[] = {25, 17};
23924    const int *foo = &x[0];
23925    ++foo;
23926  }
23927  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23928    typedef const int *iptr;
23929    iptr p = 0;
23930    ++p;
23931  }
23932  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
23933       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23934    struct s { int j; const int *ap[3]; } bx;
23935    struct s *b = &bx; b->j = 5;
23936  }
23937  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23938    const int foo = 10;
23939    if (!foo) return 0;
23940  }
23941  return !cs[0] && !zero.x;
23942#endif
23943
23944  ;
23945  return 0;
23946}
23947_ACEOF
23948if ac_fn_cxx_try_compile "$LINENO"; then :
23949  ac_cv_c_const=yes
23950else
23951  ac_cv_c_const=no
23952fi
23953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23954fi
23955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23956$as_echo "$ac_cv_c_const" >&6; }
23957if test $ac_cv_c_const = no; then
23958
23959$as_echo "#define const /**/" >>confdefs.h
23960
23961fi
23962
23963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
23964$as_echo_n "checking for inline... " >&6; }
23965if ${ac_cv_c_inline+:} false; then :
23966  $as_echo_n "(cached) " >&6
23967else
23968  ac_cv_c_inline=no
23969for ac_kw in inline __inline__ __inline; do
23970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23971/* end confdefs.h.  */
23972#ifndef __cplusplus
23973typedef int foo_t;
23974static $ac_kw foo_t static_foo () {return 0; }
23975$ac_kw foo_t foo () {return 0; }
23976#endif
23977
23978_ACEOF
23979if ac_fn_cxx_try_compile "$LINENO"; then :
23980  ac_cv_c_inline=$ac_kw
23981fi
23982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23983  test "$ac_cv_c_inline" != no && break
23984done
23985
23986fi
23987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
23988$as_echo "$ac_cv_c_inline" >&6; }
23989
23990case $ac_cv_c_inline in
23991  inline | yes) ;;
23992  *)
23993    case $ac_cv_c_inline in
23994      no) ac_val=;;
23995      *) ac_val=$ac_cv_c_inline;;
23996    esac
23997    cat >>confdefs.h <<_ACEOF
23998#ifndef __cplusplus
23999#define inline $ac_val
24000#endif
24001_ACEOF
24002    ;;
24003esac
24004
24005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
24006$as_echo_n "checking for working volatile... " >&6; }
24007if ${ac_cv_c_volatile+:} false; then :
24008  $as_echo_n "(cached) " >&6
24009else
24010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24011/* end confdefs.h.  */
24012
24013int
24014main ()
24015{
24016
24017volatile int x;
24018int * volatile y = (int *) 0;
24019return !x && !y;
24020  ;
24021  return 0;
24022}
24023_ACEOF
24024if ac_fn_cxx_try_compile "$LINENO"; then :
24025  ac_cv_c_volatile=yes
24026else
24027  ac_cv_c_volatile=no
24028fi
24029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24030fi
24031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
24032$as_echo "$ac_cv_c_volatile" >&6; }
24033if test $ac_cv_c_volatile = no; then
24034
24035$as_echo "#define volatile /**/" >>confdefs.h
24036
24037fi
24038
24039
24040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
24041$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
24042if ${ac_cv_header_stdbool_h+:} false; then :
24043  $as_echo_n "(cached) " >&6
24044else
24045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24046/* end confdefs.h.  */
24047
24048             #include <stdbool.h>
24049             #ifndef bool
24050              "error: bool is not defined"
24051             #endif
24052             #ifndef false
24053              "error: false is not defined"
24054             #endif
24055             #if false
24056              "error: false is not 0"
24057             #endif
24058             #ifndef true
24059              "error: true is not defined"
24060             #endif
24061             #if true != 1
24062              "error: true is not 1"
24063             #endif
24064             #ifndef __bool_true_false_are_defined
24065              "error: __bool_true_false_are_defined is not defined"
24066             #endif
24067
24068             struct s { _Bool s: 1; _Bool t; } s;
24069
24070             char a[true == 1 ? 1 : -1];
24071             char b[false == 0 ? 1 : -1];
24072             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
24073             char d[(bool) 0.5 == true ? 1 : -1];
24074             /* See body of main program for 'e'.  */
24075             char f[(_Bool) 0.0 == false ? 1 : -1];
24076             char g[true];
24077             char h[sizeof (_Bool)];
24078             char i[sizeof s.t];
24079             enum { j = false, k = true, l = false * true, m = true * 256 };
24080             /* The following fails for
24081                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
24082             _Bool n[m];
24083             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
24084             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
24085             /* Catch a bug in an HP-UX C compiler.  See
24086                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
24087                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
24088              */
24089             _Bool q = true;
24090             _Bool *pq = &q;
24091
24092int
24093main ()
24094{
24095
24096             bool e = &s;
24097             *pq |= q;
24098             *pq |= ! q;
24099             /* Refer to every declared value, to avoid compiler optimizations.  */
24100             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
24101                     + !m + !n + !o + !p + !q + !pq);
24102
24103  ;
24104  return 0;
24105}
24106_ACEOF
24107if ac_fn_cxx_try_compile "$LINENO"; then :
24108  ac_cv_header_stdbool_h=yes
24109else
24110  ac_cv_header_stdbool_h=no
24111fi
24112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24113fi
24114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
24115$as_echo "$ac_cv_header_stdbool_h" >&6; }
24116   ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
24117if test "x$ac_cv_type__Bool" = xyes; then :
24118
24119cat >>confdefs.h <<_ACEOF
24120#define HAVE__BOOL 1
24121_ACEOF
24122
24123
24124fi
24125
24126
24127if test $ac_cv_header_stdbool_h = yes; then
24128
24129$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
24130
24131fi
24132
24133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
24134$as_echo_n "checking for ANSI C header files... " >&6; }
24135if ${ac_cv_header_stdc+:} false; then :
24136  $as_echo_n "(cached) " >&6
24137else
24138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24139/* end confdefs.h.  */
24140#include <stdlib.h>
24141#include <stdarg.h>
24142#include <string.h>
24143#include <float.h>
24144
24145int
24146main ()
24147{
24148
24149  ;
24150  return 0;
24151}
24152_ACEOF
24153if ac_fn_cxx_try_compile "$LINENO"; then :
24154  ac_cv_header_stdc=yes
24155else
24156  ac_cv_header_stdc=no
24157fi
24158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24159
24160if test $ac_cv_header_stdc = yes; then
24161  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24163/* end confdefs.h.  */
24164#include <string.h>
24165
24166_ACEOF
24167if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24168  $EGREP "memchr" >/dev/null 2>&1; then :
24169
24170else
24171  ac_cv_header_stdc=no
24172fi
24173rm -f conftest*
24174
24175fi
24176
24177if test $ac_cv_header_stdc = yes; then
24178  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24180/* end confdefs.h.  */
24181#include <stdlib.h>
24182
24183_ACEOF
24184if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24185  $EGREP "free" >/dev/null 2>&1; then :
24186
24187else
24188  ac_cv_header_stdc=no
24189fi
24190rm -f conftest*
24191
24192fi
24193
24194if test $ac_cv_header_stdc = yes; then
24195  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24196  if test "$cross_compiling" = yes; then :
24197  :
24198else
24199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24200/* end confdefs.h.  */
24201#include <ctype.h>
24202#include <stdlib.h>
24203#if ((' ' & 0x0FF) == 0x020)
24204# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24205# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24206#else
24207# define ISLOWER(c) \
24208		   (('a' <= (c) && (c) <= 'i') \
24209		     || ('j' <= (c) && (c) <= 'r') \
24210		     || ('s' <= (c) && (c) <= 'z'))
24211# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24212#endif
24213
24214#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24215int
24216main ()
24217{
24218  int i;
24219  for (i = 0; i < 256; i++)
24220    if (XOR (islower (i), ISLOWER (i))
24221	|| toupper (i) != TOUPPER (i))
24222      return 2;
24223  return 0;
24224}
24225_ACEOF
24226if ac_fn_cxx_try_run "$LINENO"; then :
24227
24228else
24229  ac_cv_header_stdc=no
24230fi
24231rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24232  conftest.$ac_objext conftest.beam conftest.$ac_ext
24233fi
24234
24235fi
24236fi
24237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
24238$as_echo "$ac_cv_header_stdc" >&6; }
24239if test $ac_cv_header_stdc = yes; then
24240
24241$as_echo "#define STDC_HEADERS 1" >>confdefs.h
24242
24243fi
24244
24245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
24246$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
24247if ${ac_cv_header_time+:} false; then :
24248  $as_echo_n "(cached) " >&6
24249else
24250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24251/* end confdefs.h.  */
24252#include <sys/types.h>
24253#include <sys/time.h>
24254#include <time.h>
24255
24256int
24257main ()
24258{
24259if ((struct tm *) 0)
24260return 0;
24261  ;
24262  return 0;
24263}
24264_ACEOF
24265if ac_fn_cxx_try_compile "$LINENO"; then :
24266  ac_cv_header_time=yes
24267else
24268  ac_cv_header_time=no
24269fi
24270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24271fi
24272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
24273$as_echo "$ac_cv_header_time" >&6; }
24274if test $ac_cv_header_time = yes; then
24275
24276$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
24277
24278fi
24279
24280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
24281$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
24282if ${ac_cv_header_sys_wait_h+:} false; then :
24283  $as_echo_n "(cached) " >&6
24284else
24285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24286/* end confdefs.h.  */
24287#include <sys/types.h>
24288#include <sys/wait.h>
24289#ifndef WEXITSTATUS
24290# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
24291#endif
24292#ifndef WIFEXITED
24293# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
24294#endif
24295
24296int
24297main ()
24298{
24299  int s;
24300  wait (&s);
24301  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
24302  ;
24303  return 0;
24304}
24305_ACEOF
24306if ac_fn_cxx_try_compile "$LINENO"; then :
24307  ac_cv_header_sys_wait_h=yes
24308else
24309  ac_cv_header_sys_wait_h=no
24310fi
24311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24312fi
24313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
24314$as_echo "$ac_cv_header_sys_wait_h" >&6; }
24315if test $ac_cv_header_sys_wait_h = yes; then
24316
24317$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
24318
24319fi
24320
24321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
24322$as_echo_n "checking return type of signal handlers... " >&6; }
24323if ${ac_cv_type_signal+:} false; then :
24324  $as_echo_n "(cached) " >&6
24325else
24326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24327/* end confdefs.h.  */
24328#include <sys/types.h>
24329#include <signal.h>
24330
24331int
24332main ()
24333{
24334return *(signal (0, 0)) (0) == 1;
24335  ;
24336  return 0;
24337}
24338_ACEOF
24339if ac_fn_cxx_try_compile "$LINENO"; then :
24340  ac_cv_type_signal=int
24341else
24342  ac_cv_type_signal=void
24343fi
24344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24345fi
24346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
24347$as_echo "$ac_cv_type_signal" >&6; }
24348
24349cat >>confdefs.h <<_ACEOF
24350#define RETSIGTYPE $ac_cv_type_signal
24351_ACEOF
24352
24353
24354for ac_header in arpa/inet.h
24355do :
24356  ac_fn_cxx_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
24357if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
24358  cat >>confdefs.h <<_ACEOF
24359#define HAVE_ARPA_INET_H 1
24360_ACEOF
24361
24362fi
24363
24364done
24365
24366for ac_header in sys/param.h
24367do :
24368  ac_fn_cxx_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
24369if test "x$ac_cv_header_sys_param_h" = xyes; then :
24370  cat >>confdefs.h <<_ACEOF
24371#define HAVE_SYS_PARAM_H 1
24372_ACEOF
24373
24374fi
24375
24376done
24377
24378for ac_header in fcntl.h
24379do :
24380  ac_fn_cxx_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
24381if test "x$ac_cv_header_fcntl_h" = xyes; then :
24382  cat >>confdefs.h <<_ACEOF
24383#define HAVE_FCNTL_H 1
24384_ACEOF
24385
24386fi
24387
24388done
24389
24390for ac_header in inttypes.h
24391do :
24392  ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
24393if test "x$ac_cv_header_inttypes_h" = xyes; then :
24394  cat >>confdefs.h <<_ACEOF
24395#define HAVE_INTTYPES_H 1
24396_ACEOF
24397
24398fi
24399
24400done
24401
24402for ac_header in limits.h
24403do :
24404  ac_fn_cxx_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
24405if test "x$ac_cv_header_limits_h" = xyes; then :
24406  cat >>confdefs.h <<_ACEOF
24407#define HAVE_LIMITS_H 1
24408_ACEOF
24409
24410fi
24411
24412done
24413
24414for ac_header in netdb.h
24415do :
24416  ac_fn_cxx_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
24417if test "x$ac_cv_header_netdb_h" = xyes; then :
24418  cat >>confdefs.h <<_ACEOF
24419#define HAVE_NETDB_H 1
24420_ACEOF
24421
24422fi
24423
24424done
24425
24426for ac_header in netinet/in.h
24427do :
24428  ac_fn_cxx_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
24429if test "x$ac_cv_header_netinet_in_h" = xyes; then :
24430  cat >>confdefs.h <<_ACEOF
24431#define HAVE_NETINET_IN_H 1
24432_ACEOF
24433
24434fi
24435
24436done
24437
24438for ac_header in pthread.h
24439do :
24440  ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
24441if test "x$ac_cv_header_pthread_h" = xyes; then :
24442  cat >>confdefs.h <<_ACEOF
24443#define HAVE_PTHREAD_H 1
24444_ACEOF
24445
24446fi
24447
24448done
24449
24450for ac_header in signal.h
24451do :
24452  ac_fn_cxx_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
24453if test "x$ac_cv_header_signal_h" = xyes; then :
24454  cat >>confdefs.h <<_ACEOF
24455#define HAVE_SIGNAL_H 1
24456_ACEOF
24457
24458fi
24459
24460done
24461
24462for ac_header in stddef.h
24463do :
24464  ac_fn_cxx_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
24465if test "x$ac_cv_header_stddef_h" = xyes; then :
24466  cat >>confdefs.h <<_ACEOF
24467#define HAVE_STDDEF_H 1
24468_ACEOF
24469
24470fi
24471
24472done
24473
24474for ac_header in stdlib.h
24475do :
24476  ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
24477if test "x$ac_cv_header_stdlib_h" = xyes; then :
24478  cat >>confdefs.h <<_ACEOF
24479#define HAVE_STDLIB_H 1
24480_ACEOF
24481
24482fi
24483
24484done
24485
24486for ac_header in sys/ioctl.h
24487do :
24488  ac_fn_cxx_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
24489if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
24490  cat >>confdefs.h <<_ACEOF
24491#define HAVE_SYS_IOCTL_H 1
24492_ACEOF
24493
24494fi
24495
24496done
24497
24498for ac_header in sys/socket.h
24499do :
24500  ac_fn_cxx_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
24501if test "x$ac_cv_header_sys_socket_h" = xyes; then :
24502  cat >>confdefs.h <<_ACEOF
24503#define HAVE_SYS_SOCKET_H 1
24504_ACEOF
24505
24506fi
24507
24508done
24509
24510for ac_header in sys/time.h
24511do :
24512  ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
24513if test "x$ac_cv_header_sys_time_h" = xyes; then :
24514  cat >>confdefs.h <<_ACEOF
24515#define HAVE_SYS_TIME_H 1
24516_ACEOF
24517
24518fi
24519
24520done
24521
24522for ac_header in sys/un.h
24523do :
24524  ac_fn_cxx_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
24525if test "x$ac_cv_header_sys_un_h" = xyes; then :
24526  cat >>confdefs.h <<_ACEOF
24527#define HAVE_SYS_UN_H 1
24528_ACEOF
24529
24530fi
24531
24532done
24533
24534for ac_header in poll.h
24535do :
24536  ac_fn_cxx_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
24537if test "x$ac_cv_header_poll_h" = xyes; then :
24538  cat >>confdefs.h <<_ACEOF
24539#define HAVE_POLL_H 1
24540_ACEOF
24541
24542fi
24543
24544done
24545
24546for ac_header in sys/poll.h
24547do :
24548  ac_fn_cxx_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
24549if test "x$ac_cv_header_sys_poll_h" = xyes; then :
24550  cat >>confdefs.h <<_ACEOF
24551#define HAVE_SYS_POLL_H 1
24552_ACEOF
24553
24554fi
24555
24556done
24557
24558for ac_header in sys/resource.h
24559do :
24560  ac_fn_cxx_check_header_mongrel "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
24561if test "x$ac_cv_header_sys_resource_h" = xyes; then :
24562  cat >>confdefs.h <<_ACEOF
24563#define HAVE_SYS_RESOURCE_H 1
24564_ACEOF
24565
24566fi
24567
24568done
24569
24570for ac_header in unistd.h
24571do :
24572  ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
24573if test "x$ac_cv_header_unistd_h" = xyes; then :
24574  cat >>confdefs.h <<_ACEOF
24575#define HAVE_UNISTD_H 1
24576_ACEOF
24577
24578fi
24579
24580done
24581
24582for ac_header in libintl.h
24583do :
24584  ac_fn_cxx_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
24585if test "x$ac_cv_header_libintl_h" = xyes; then :
24586  cat >>confdefs.h <<_ACEOF
24587#define HAVE_LIBINTL_H 1
24588_ACEOF
24589
24590fi
24591
24592done
24593
24594for ac_header in malloc.h
24595do :
24596  ac_fn_cxx_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
24597if test "x$ac_cv_header_malloc_h" = xyes; then :
24598  cat >>confdefs.h <<_ACEOF
24599#define HAVE_MALLOC_H 1
24600_ACEOF
24601
24602fi
24603
24604done
24605
24606for ac_header in openssl/ssl.h
24607do :
24608  ac_fn_cxx_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
24609if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
24610  cat >>confdefs.h <<_ACEOF
24611#define HAVE_OPENSSL_SSL_H 1
24612_ACEOF
24613
24614fi
24615
24616done
24617
24618for ac_header in openssl/rand.h
24619do :
24620  ac_fn_cxx_check_header_mongrel "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default"
24621if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
24622  cat >>confdefs.h <<_ACEOF
24623#define HAVE_OPENSSL_RAND_H 1
24624_ACEOF
24625
24626fi
24627
24628done
24629
24630for ac_header in openssl/x509v3.h
24631do :
24632  ac_fn_cxx_check_header_mongrel "$LINENO" "openssl/x509v3.h" "ac_cv_header_openssl_x509v3_h" "$ac_includes_default"
24633if test "x$ac_cv_header_openssl_x509v3_h" = xyes; then :
24634  cat >>confdefs.h <<_ACEOF
24635#define HAVE_OPENSSL_X509V3_H 1
24636_ACEOF
24637
24638fi
24639
24640done
24641
24642for ac_header in sched.h
24643do :
24644  ac_fn_cxx_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
24645if test "x$ac_cv_header_sched_h" = xyes; then :
24646  cat >>confdefs.h <<_ACEOF
24647#define HAVE_SCHED_H 1
24648_ACEOF
24649
24650fi
24651
24652done
24653
24654for ac_header in wchar.h
24655do :
24656  ac_fn_cxx_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
24657if test "x$ac_cv_header_wchar_h" = xyes; then :
24658  cat >>confdefs.h <<_ACEOF
24659#define HAVE_WCHAR_H 1
24660_ACEOF
24661
24662fi
24663
24664done
24665
24666
24667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
24668$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
24669if ${ac_cv_lib_pthread_pthread_create+:} false; then :
24670  $as_echo_n "(cached) " >&6
24671else
24672  ac_check_lib_save_LIBS=$LIBS
24673LIBS="-lpthread  $LIBS"
24674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24675/* end confdefs.h.  */
24676
24677/* Override any GCC internal prototype to avoid an error.
24678   Use char because int might match the return type of a GCC
24679   builtin and then its argument prototype would still apply.  */
24680#ifdef __cplusplus
24681extern "C"
24682#endif
24683char pthread_create ();
24684int
24685main ()
24686{
24687return pthread_create ();
24688  ;
24689  return 0;
24690}
24691_ACEOF
24692if ac_fn_cxx_try_link "$LINENO"; then :
24693  ac_cv_lib_pthread_pthread_create=yes
24694else
24695  ac_cv_lib_pthread_pthread_create=no
24696fi
24697rm -f core conftest.err conftest.$ac_objext \
24698    conftest$ac_exeext conftest.$ac_ext
24699LIBS=$ac_check_lib_save_LIBS
24700fi
24701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
24702$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
24703if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
24704  cat >>confdefs.h <<_ACEOF
24705#define HAVE_LIBPTHREAD 1
24706_ACEOF
24707
24708  LIBS="-lpthread $LIBS"
24709
24710fi
24711
24712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
24713$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
24714if ${ac_cv_lib_rt_clock_gettime+:} false; then :
24715  $as_echo_n "(cached) " >&6
24716else
24717  ac_check_lib_save_LIBS=$LIBS
24718LIBS="-lrt  $LIBS"
24719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24720/* end confdefs.h.  */
24721
24722/* Override any GCC internal prototype to avoid an error.
24723   Use char because int might match the return type of a GCC
24724   builtin and then its argument prototype would still apply.  */
24725#ifdef __cplusplus
24726extern "C"
24727#endif
24728char clock_gettime ();
24729int
24730main ()
24731{
24732return clock_gettime ();
24733  ;
24734  return 0;
24735}
24736_ACEOF
24737if ac_fn_cxx_try_link "$LINENO"; then :
24738  ac_cv_lib_rt_clock_gettime=yes
24739else
24740  ac_cv_lib_rt_clock_gettime=no
24741fi
24742rm -f core conftest.err conftest.$ac_objext \
24743    conftest$ac_exeext conftest.$ac_ext
24744LIBS=$ac_check_lib_save_LIBS
24745fi
24746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
24747$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
24748if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
24749  cat >>confdefs.h <<_ACEOF
24750#define HAVE_LIBRT 1
24751_ACEOF
24752
24753  LIBS="-lrt $LIBS"
24754
24755fi
24756
24757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
24758$as_echo_n "checking for setsockopt in -lsocket... " >&6; }
24759if ${ac_cv_lib_socket_setsockopt+:} false; then :
24760  $as_echo_n "(cached) " >&6
24761else
24762  ac_check_lib_save_LIBS=$LIBS
24763LIBS="-lsocket  $LIBS"
24764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24765/* end confdefs.h.  */
24766
24767/* Override any GCC internal prototype to avoid an error.
24768   Use char because int might match the return type of a GCC
24769   builtin and then its argument prototype would still apply.  */
24770#ifdef __cplusplus
24771extern "C"
24772#endif
24773char setsockopt ();
24774int
24775main ()
24776{
24777return setsockopt ();
24778  ;
24779  return 0;
24780}
24781_ACEOF
24782if ac_fn_cxx_try_link "$LINENO"; then :
24783  ac_cv_lib_socket_setsockopt=yes
24784else
24785  ac_cv_lib_socket_setsockopt=no
24786fi
24787rm -f core conftest.err conftest.$ac_objext \
24788    conftest$ac_exeext conftest.$ac_ext
24789LIBS=$ac_check_lib_save_LIBS
24790fi
24791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
24792$as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
24793if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
24794  cat >>confdefs.h <<_ACEOF
24795#define HAVE_LIBSOCKET 1
24796_ACEOF
24797
24798  LIBS="-lsocket $LIBS"
24799
24800fi
24801
24802
24803ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
24804case $ac_cv_c_int16_t in #(
24805  no|yes) ;; #(
24806  *)
24807
24808cat >>confdefs.h <<_ACEOF
24809#define int16_t $ac_cv_c_int16_t
24810_ACEOF
24811;;
24812esac
24813
24814ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
24815case $ac_cv_c_int32_t in #(
24816  no|yes) ;; #(
24817  *)
24818
24819cat >>confdefs.h <<_ACEOF
24820#define int32_t $ac_cv_c_int32_t
24821_ACEOF
24822;;
24823esac
24824
24825ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
24826case $ac_cv_c_int64_t in #(
24827  no|yes) ;; #(
24828  *)
24829
24830cat >>confdefs.h <<_ACEOF
24831#define int64_t $ac_cv_c_int64_t
24832_ACEOF
24833;;
24834esac
24835
24836ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
24837case $ac_cv_c_int8_t in #(
24838  no|yes) ;; #(
24839  *)
24840
24841cat >>confdefs.h <<_ACEOF
24842#define int8_t $ac_cv_c_int8_t
24843_ACEOF
24844;;
24845esac
24846
24847ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
24848if test "x$ac_cv_type_mode_t" = xyes; then :
24849
24850else
24851
24852cat >>confdefs.h <<_ACEOF
24853#define mode_t int
24854_ACEOF
24855
24856fi
24857
24858ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
24859if test "x$ac_cv_type_off_t" = xyes; then :
24860
24861else
24862
24863cat >>confdefs.h <<_ACEOF
24864#define off_t long int
24865_ACEOF
24866
24867fi
24868
24869ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
24870if test "x$ac_cv_type_size_t" = xyes; then :
24871
24872else
24873
24874cat >>confdefs.h <<_ACEOF
24875#define size_t unsigned int
24876_ACEOF
24877
24878fi
24879
24880ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
24881if test "x$ac_cv_type_ssize_t" = xyes; then :
24882
24883else
24884
24885cat >>confdefs.h <<_ACEOF
24886#define ssize_t int
24887_ACEOF
24888
24889fi
24890
24891ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
24892case $ac_cv_c_uint16_t in #(
24893  no|yes) ;; #(
24894  *)
24895
24896
24897cat >>confdefs.h <<_ACEOF
24898#define uint16_t $ac_cv_c_uint16_t
24899_ACEOF
24900;;
24901  esac
24902
24903ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
24904case $ac_cv_c_uint32_t in #(
24905  no|yes) ;; #(
24906  *)
24907
24908$as_echo "#define _UINT32_T 1" >>confdefs.h
24909
24910
24911cat >>confdefs.h <<_ACEOF
24912#define uint32_t $ac_cv_c_uint32_t
24913_ACEOF
24914;;
24915  esac
24916
24917ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
24918case $ac_cv_c_uint64_t in #(
24919  no|yes) ;; #(
24920  *)
24921
24922$as_echo "#define _UINT64_T 1" >>confdefs.h
24923
24924
24925cat >>confdefs.h <<_ACEOF
24926#define uint64_t $ac_cv_c_uint64_t
24927_ACEOF
24928;;
24929  esac
24930
24931ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
24932case $ac_cv_c_uint8_t in #(
24933  no|yes) ;; #(
24934  *)
24935
24936$as_echo "#define _UINT8_T 1" >>confdefs.h
24937
24938
24939cat >>confdefs.h <<_ACEOF
24940#define uint8_t $ac_cv_c_uint8_t
24941_ACEOF
24942;;
24943  esac
24944
24945ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
24946if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
24947
24948cat >>confdefs.h <<_ACEOF
24949#define HAVE_PTRDIFF_T 1
24950_ACEOF
24951
24952
24953else
24954  echo "ptrdiff_t not found or g++ not installed - cannot continue" && exit 1
24955fi
24956
24957
24958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
24959$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
24960if ${ac_cv_struct_tm+:} false; then :
24961  $as_echo_n "(cached) " >&6
24962else
24963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24964/* end confdefs.h.  */
24965#include <sys/types.h>
24966#include <time.h>
24967
24968int
24969main ()
24970{
24971struct tm tm;
24972				     int *p = &tm.tm_sec;
24973				     return !p;
24974  ;
24975  return 0;
24976}
24977_ACEOF
24978if ac_fn_cxx_try_compile "$LINENO"; then :
24979  ac_cv_struct_tm=time.h
24980else
24981  ac_cv_struct_tm=sys/time.h
24982fi
24983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24984fi
24985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
24986$as_echo "$ac_cv_struct_tm" >&6; }
24987if test $ac_cv_struct_tm = sys/time.h; then
24988
24989$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
24990
24991fi
24992
24993
24994ac_fn_cxx_check_decl "$LINENO" "AI_ADDRCONFIG" "ac_cv_have_decl_AI_ADDRCONFIG" "
24995  #include <sys/types.h>
24996  #include <sys/socket.h>
24997  #include <netdb.h>
24998
24999"
25000if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = xyes; then :
25001
25002else
25003
25004$as_echo "#define AI_ADDRCONFIG 0" >>confdefs.h
25005
25006fi
25007
25008
25009# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
25010# for constant arguments.  Useless!
25011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
25012$as_echo_n "checking for working alloca.h... " >&6; }
25013if ${ac_cv_working_alloca_h+:} false; then :
25014  $as_echo_n "(cached) " >&6
25015else
25016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25017/* end confdefs.h.  */
25018#include <alloca.h>
25019int
25020main ()
25021{
25022char *p = (char *) alloca (2 * sizeof (int));
25023			  if (p) return 0;
25024  ;
25025  return 0;
25026}
25027_ACEOF
25028if ac_fn_cxx_try_link "$LINENO"; then :
25029  ac_cv_working_alloca_h=yes
25030else
25031  ac_cv_working_alloca_h=no
25032fi
25033rm -f core conftest.err conftest.$ac_objext \
25034    conftest$ac_exeext conftest.$ac_ext
25035fi
25036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
25037$as_echo "$ac_cv_working_alloca_h" >&6; }
25038if test $ac_cv_working_alloca_h = yes; then
25039
25040$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
25041
25042fi
25043
25044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
25045$as_echo_n "checking for alloca... " >&6; }
25046if ${ac_cv_func_alloca_works+:} false; then :
25047  $as_echo_n "(cached) " >&6
25048else
25049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25050/* end confdefs.h.  */
25051#ifdef __GNUC__
25052# define alloca __builtin_alloca
25053#else
25054# ifdef _MSC_VER
25055#  include <malloc.h>
25056#  define alloca _alloca
25057# else
25058#  ifdef HAVE_ALLOCA_H
25059#   include <alloca.h>
25060#  else
25061#   ifdef _AIX
25062 #pragma alloca
25063#   else
25064#    ifndef alloca /* predefined by HP cc +Olibcalls */
25065void *alloca (size_t);
25066#    endif
25067#   endif
25068#  endif
25069# endif
25070#endif
25071
25072int
25073main ()
25074{
25075char *p = (char *) alloca (1);
25076				    if (p) return 0;
25077  ;
25078  return 0;
25079}
25080_ACEOF
25081if ac_fn_cxx_try_link "$LINENO"; then :
25082  ac_cv_func_alloca_works=yes
25083else
25084  ac_cv_func_alloca_works=no
25085fi
25086rm -f core conftest.err conftest.$ac_objext \
25087    conftest$ac_exeext conftest.$ac_ext
25088fi
25089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
25090$as_echo "$ac_cv_func_alloca_works" >&6; }
25091
25092if test $ac_cv_func_alloca_works = yes; then
25093
25094$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
25095
25096else
25097  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
25098# that cause trouble.  Some versions do not even contain alloca or
25099# contain a buggy version.  If you still want to use their alloca,
25100# use ar to extract alloca.o from them instead of compiling alloca.c.
25101
25102ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
25103
25104$as_echo "#define C_ALLOCA 1" >>confdefs.h
25105
25106
25107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
25108$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
25109if ${ac_cv_os_cray+:} false; then :
25110  $as_echo_n "(cached) " >&6
25111else
25112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25113/* end confdefs.h.  */
25114#if defined CRAY && ! defined CRAY2
25115webecray
25116#else
25117wenotbecray
25118#endif
25119
25120_ACEOF
25121if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25122  $EGREP "webecray" >/dev/null 2>&1; then :
25123  ac_cv_os_cray=yes
25124else
25125  ac_cv_os_cray=no
25126fi
25127rm -f conftest*
25128
25129fi
25130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
25131$as_echo "$ac_cv_os_cray" >&6; }
25132if test $ac_cv_os_cray = yes; then
25133  for ac_func in _getb67 GETB67 getb67; do
25134    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25135ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
25136if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25137
25138cat >>confdefs.h <<_ACEOF
25139#define CRAY_STACKSEG_END $ac_func
25140_ACEOF
25141
25142    break
25143fi
25144
25145  done
25146fi
25147
25148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
25149$as_echo_n "checking stack direction for C alloca... " >&6; }
25150if ${ac_cv_c_stack_direction+:} false; then :
25151  $as_echo_n "(cached) " >&6
25152else
25153  if test "$cross_compiling" = yes; then :
25154  ac_cv_c_stack_direction=0
25155else
25156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25157/* end confdefs.h.  */
25158$ac_includes_default
25159int
25160find_stack_direction (int *addr, int depth)
25161{
25162  int dir, dummy = 0;
25163  if (! addr)
25164    addr = &dummy;
25165  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
25166  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
25167  return dir + dummy;
25168}
25169
25170int
25171main (int argc, char **argv)
25172{
25173  return find_stack_direction (0, argc + !argv + 20) < 0;
25174}
25175_ACEOF
25176if ac_fn_cxx_try_run "$LINENO"; then :
25177  ac_cv_c_stack_direction=1
25178else
25179  ac_cv_c_stack_direction=-1
25180fi
25181rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25182  conftest.$ac_objext conftest.beam conftest.$ac_ext
25183fi
25184
25185fi
25186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
25187$as_echo "$ac_cv_c_stack_direction" >&6; }
25188cat >>confdefs.h <<_ACEOF
25189#define STACK_DIRECTION $ac_cv_c_stack_direction
25190_ACEOF
25191
25192
25193fi
25194
25195ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
25196if test "x$ac_cv_type_pid_t" = xyes; then :
25197
25198else
25199
25200cat >>confdefs.h <<_ACEOF
25201#define pid_t int
25202_ACEOF
25203
25204fi
25205
25206for ac_header in vfork.h
25207do :
25208  ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
25209if test "x$ac_cv_header_vfork_h" = xyes; then :
25210  cat >>confdefs.h <<_ACEOF
25211#define HAVE_VFORK_H 1
25212_ACEOF
25213
25214fi
25215
25216done
25217
25218for ac_func in fork vfork
25219do :
25220  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25221ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
25222if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25223  cat >>confdefs.h <<_ACEOF
25224#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25225_ACEOF
25226
25227fi
25228done
25229
25230if test "x$ac_cv_func_fork" = xyes; then
25231  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
25232$as_echo_n "checking for working fork... " >&6; }
25233if ${ac_cv_func_fork_works+:} false; then :
25234  $as_echo_n "(cached) " >&6
25235else
25236  if test "$cross_compiling" = yes; then :
25237  ac_cv_func_fork_works=cross
25238else
25239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25240/* end confdefs.h.  */
25241$ac_includes_default
25242int
25243main ()
25244{
25245
25246	  /* By Ruediger Kuhlmann. */
25247	  return fork () < 0;
25248
25249  ;
25250  return 0;
25251}
25252_ACEOF
25253if ac_fn_cxx_try_run "$LINENO"; then :
25254  ac_cv_func_fork_works=yes
25255else
25256  ac_cv_func_fork_works=no
25257fi
25258rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25259  conftest.$ac_objext conftest.beam conftest.$ac_ext
25260fi
25261
25262fi
25263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
25264$as_echo "$ac_cv_func_fork_works" >&6; }
25265
25266else
25267  ac_cv_func_fork_works=$ac_cv_func_fork
25268fi
25269if test "x$ac_cv_func_fork_works" = xcross; then
25270  case $host in
25271    *-*-amigaos* | *-*-msdosdjgpp*)
25272      # Override, as these systems have only a dummy fork() stub
25273      ac_cv_func_fork_works=no
25274      ;;
25275    *)
25276      ac_cv_func_fork_works=yes
25277      ;;
25278  esac
25279  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25280$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25281fi
25282ac_cv_func_vfork_works=$ac_cv_func_vfork
25283if test "x$ac_cv_func_vfork" = xyes; then
25284  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
25285$as_echo_n "checking for working vfork... " >&6; }
25286if ${ac_cv_func_vfork_works+:} false; then :
25287  $as_echo_n "(cached) " >&6
25288else
25289  if test "$cross_compiling" = yes; then :
25290  ac_cv_func_vfork_works=cross
25291else
25292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25293/* end confdefs.h.  */
25294/* Thanks to Paul Eggert for this test.  */
25295$ac_includes_default
25296#include <sys/wait.h>
25297#ifdef HAVE_VFORK_H
25298# include <vfork.h>
25299#endif
25300/* On some sparc systems, changes by the child to local and incoming
25301   argument registers are propagated back to the parent.  The compiler
25302   is told about this with #include <vfork.h>, but some compilers
25303   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
25304   static variable whose address is put into a register that is
25305   clobbered by the vfork.  */
25306static void
25307#ifdef __cplusplus
25308sparc_address_test (int arg)
25309# else
25310sparc_address_test (arg) int arg;
25311#endif
25312{
25313  static pid_t child;
25314  if (!child) {
25315    child = vfork ();
25316    if (child < 0) {
25317      perror ("vfork");
25318      _exit(2);
25319    }
25320    if (!child) {
25321      arg = getpid();
25322      write(-1, "", 0);
25323      _exit (arg);
25324    }
25325  }
25326}
25327
25328int
25329main ()
25330{
25331  pid_t parent = getpid ();
25332  pid_t child;
25333
25334  sparc_address_test (0);
25335
25336  child = vfork ();
25337
25338  if (child == 0) {
25339    /* Here is another test for sparc vfork register problems.  This
25340       test uses lots of local variables, at least as many local
25341       variables as main has allocated so far including compiler
25342       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
25343       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
25344       reuse the register of parent for one of the local variables,
25345       since it will think that parent can't possibly be used any more
25346       in this routine.  Assigning to the local variable will thus
25347       munge parent in the parent process.  */
25348    pid_t
25349      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25350      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25351    /* Convince the compiler that p..p7 are live; otherwise, it might
25352       use the same hardware register for all 8 local variables.  */
25353    if (p != p1 || p != p2 || p != p3 || p != p4
25354	|| p != p5 || p != p6 || p != p7)
25355      _exit(1);
25356
25357    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25358       from child file descriptors.  If the child closes a descriptor
25359       before it execs or exits, this munges the parent's descriptor
25360       as well.  Test for this by closing stdout in the child.  */
25361    _exit(close(fileno(stdout)) != 0);
25362  } else {
25363    int status;
25364    struct stat st;
25365
25366    while (wait(&status) != child)
25367      ;
25368    return (
25369	 /* Was there some problem with vforking?  */
25370	 child < 0
25371
25372	 /* Did the child fail?  (This shouldn't happen.)  */
25373	 || status
25374
25375	 /* Did the vfork/compiler bug occur?  */
25376	 || parent != getpid()
25377
25378	 /* Did the file descriptor bug occur?  */
25379	 || fstat(fileno(stdout), &st) != 0
25380	 );
25381  }
25382}
25383_ACEOF
25384if ac_fn_cxx_try_run "$LINENO"; then :
25385  ac_cv_func_vfork_works=yes
25386else
25387  ac_cv_func_vfork_works=no
25388fi
25389rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25390  conftest.$ac_objext conftest.beam conftest.$ac_ext
25391fi
25392
25393fi
25394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
25395$as_echo "$ac_cv_func_vfork_works" >&6; }
25396
25397fi;
25398if test "x$ac_cv_func_fork_works" = xcross; then
25399  ac_cv_func_vfork_works=$ac_cv_func_vfork
25400  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25401$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25402fi
25403
25404if test "x$ac_cv_func_vfork_works" = xyes; then
25405
25406$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
25407
25408else
25409
25410$as_echo "#define vfork fork" >>confdefs.h
25411
25412fi
25413if test "x$ac_cv_func_fork_works" = xyes; then
25414
25415$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
25416
25417fi
25418
25419for ac_header in stdlib.h
25420do :
25421  ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
25422if test "x$ac_cv_header_stdlib_h" = xyes; then :
25423  cat >>confdefs.h <<_ACEOF
25424#define HAVE_STDLIB_H 1
25425_ACEOF
25426
25427fi
25428
25429done
25430
25431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
25432$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
25433if ${ac_cv_func_malloc_0_nonnull+:} false; then :
25434  $as_echo_n "(cached) " >&6
25435else
25436  if test "$cross_compiling" = yes; then :
25437  ac_cv_func_malloc_0_nonnull=no
25438else
25439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25440/* end confdefs.h.  */
25441#if defined STDC_HEADERS || defined HAVE_STDLIB_H
25442# include <stdlib.h>
25443#else
25444char *malloc ();
25445#endif
25446
25447int
25448main ()
25449{
25450return ! malloc (0);
25451  ;
25452  return 0;
25453}
25454_ACEOF
25455if ac_fn_cxx_try_run "$LINENO"; then :
25456  ac_cv_func_malloc_0_nonnull=yes
25457else
25458  ac_cv_func_malloc_0_nonnull=no
25459fi
25460rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25461  conftest.$ac_objext conftest.beam conftest.$ac_ext
25462fi
25463
25464fi
25465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
25466$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
25467if test $ac_cv_func_malloc_0_nonnull = yes; then :
25468
25469$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
25470
25471else
25472  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
25473
25474   case " $LIBOBJS " in
25475  *" malloc.$ac_objext "* ) ;;
25476  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
25477 ;;
25478esac
25479
25480
25481$as_echo "#define malloc rpl_malloc" >>confdefs.h
25482
25483fi
25484
25485
25486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
25487$as_echo_n "checking for working memcmp... " >&6; }
25488if ${ac_cv_func_memcmp_working+:} false; then :
25489  $as_echo_n "(cached) " >&6
25490else
25491  if test "$cross_compiling" = yes; then :
25492  ac_cv_func_memcmp_working=no
25493else
25494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25495/* end confdefs.h.  */
25496$ac_includes_default
25497int
25498main ()
25499{
25500
25501  /* Some versions of memcmp are not 8-bit clean.  */
25502  char c0 = '\100', c1 = '\200', c2 = '\201';
25503  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25504    return 1;
25505
25506  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25507     or more and with at least one buffer not starting on a 4-byte boundary.
25508     William Lewis provided this test program.   */
25509  {
25510    char foo[21];
25511    char bar[21];
25512    int i;
25513    for (i = 0; i < 4; i++)
25514      {
25515	char *a = foo + i;
25516	char *b = bar + i;
25517	strcpy (a, "--------01111111");
25518	strcpy (b, "--------10000000");
25519	if (memcmp (a, b, 16) >= 0)
25520	  return 1;
25521      }
25522    return 0;
25523  }
25524
25525  ;
25526  return 0;
25527}
25528_ACEOF
25529if ac_fn_cxx_try_run "$LINENO"; then :
25530  ac_cv_func_memcmp_working=yes
25531else
25532  ac_cv_func_memcmp_working=no
25533fi
25534rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25535  conftest.$ac_objext conftest.beam conftest.$ac_ext
25536fi
25537
25538fi
25539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
25540$as_echo "$ac_cv_func_memcmp_working" >&6; }
25541test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25542  *" memcmp.$ac_objext "* ) ;;
25543  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25544 ;;
25545esac
25546
25547
25548for ac_header in stdlib.h
25549do :
25550  ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
25551if test "x$ac_cv_header_stdlib_h" = xyes; then :
25552  cat >>confdefs.h <<_ACEOF
25553#define HAVE_STDLIB_H 1
25554_ACEOF
25555
25556fi
25557
25558done
25559
25560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
25561$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
25562if ${ac_cv_func_realloc_0_nonnull+:} false; then :
25563  $as_echo_n "(cached) " >&6
25564else
25565  if test "$cross_compiling" = yes; then :
25566  ac_cv_func_realloc_0_nonnull=no
25567else
25568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25569/* end confdefs.h.  */
25570#if defined STDC_HEADERS || defined HAVE_STDLIB_H
25571# include <stdlib.h>
25572#else
25573char *realloc ();
25574#endif
25575
25576int
25577main ()
25578{
25579return ! realloc (0, 0);
25580  ;
25581  return 0;
25582}
25583_ACEOF
25584if ac_fn_cxx_try_run "$LINENO"; then :
25585  ac_cv_func_realloc_0_nonnull=yes
25586else
25587  ac_cv_func_realloc_0_nonnull=no
25588fi
25589rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25590  conftest.$ac_objext conftest.beam conftest.$ac_ext
25591fi
25592
25593fi
25594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
25595$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
25596if test $ac_cv_func_realloc_0_nonnull = yes; then :
25597
25598$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
25599
25600else
25601  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
25602
25603   case " $LIBOBJS " in
25604  *" realloc.$ac_objext "* ) ;;
25605  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
25606 ;;
25607esac
25608
25609
25610$as_echo "#define realloc rpl_realloc" >>confdefs.h
25611
25612fi
25613
25614
25615for ac_header in sys/select.h sys/socket.h
25616do :
25617  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25618ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25619if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25620  cat >>confdefs.h <<_ACEOF
25621#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25622_ACEOF
25623
25624fi
25625
25626done
25627
25628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
25629$as_echo_n "checking types of arguments for select... " >&6; }
25630if ${ac_cv_func_select_args+:} false; then :
25631  $as_echo_n "(cached) " >&6
25632else
25633  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25634 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25635  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25637/* end confdefs.h.  */
25638$ac_includes_default
25639#ifdef HAVE_SYS_SELECT_H
25640# include <sys/select.h>
25641#endif
25642#ifdef HAVE_SYS_SOCKET_H
25643# include <sys/socket.h>
25644#endif
25645
25646int
25647main ()
25648{
25649extern int select ($ac_arg1,
25650					    $ac_arg234, $ac_arg234, $ac_arg234,
25651					    $ac_arg5);
25652  ;
25653  return 0;
25654}
25655_ACEOF
25656if ac_fn_cxx_try_compile "$LINENO"; then :
25657  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25658fi
25659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25660  done
25661 done
25662done
25663# Provide a safe default value.
25664: "${ac_cv_func_select_args=int,int *,struct timeval *}"
25665
25666fi
25667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
25668$as_echo "$ac_cv_func_select_args" >&6; }
25669ac_save_IFS=$IFS; IFS=','
25670set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25671IFS=$ac_save_IFS
25672shift
25673
25674cat >>confdefs.h <<_ACEOF
25675#define SELECT_TYPE_ARG1 $1
25676_ACEOF
25677
25678
25679cat >>confdefs.h <<_ACEOF
25680#define SELECT_TYPE_ARG234 ($2)
25681_ACEOF
25682
25683
25684cat >>confdefs.h <<_ACEOF
25685#define SELECT_TYPE_ARG5 ($3)
25686_ACEOF
25687
25688rm -f conftest*
25689
25690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
25691$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
25692if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
25693  $as_echo_n "(cached) " >&6
25694else
25695  rm -f conftest.sym conftest.file
25696echo >conftest.file
25697if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25698  if test "$cross_compiling" = yes; then :
25699  ac_cv_func_lstat_dereferences_slashed_symlink=no
25700else
25701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25702/* end confdefs.h.  */
25703$ac_includes_default
25704int
25705main ()
25706{
25707struct stat sbuf;
25708     /* Linux will dereference the symlink and fail, as required by POSIX.
25709	That is better in the sense that it means we will not
25710	have to compile and use the lstat wrapper.  */
25711     return lstat ("conftest.sym/", &sbuf) == 0;
25712  ;
25713  return 0;
25714}
25715_ACEOF
25716if ac_fn_cxx_try_run "$LINENO"; then :
25717  ac_cv_func_lstat_dereferences_slashed_symlink=yes
25718else
25719  ac_cv_func_lstat_dereferences_slashed_symlink=no
25720fi
25721rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25722  conftest.$ac_objext conftest.beam conftest.$ac_ext
25723fi
25724
25725else
25726  # If the `ln -s' command failed, then we probably don't even
25727  # have an lstat function.
25728  ac_cv_func_lstat_dereferences_slashed_symlink=no
25729fi
25730rm -f conftest.sym conftest.file
25731
25732fi
25733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25734$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25735
25736test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25737
25738cat >>confdefs.h <<_ACEOF
25739#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25740_ACEOF
25741
25742
25743if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
25744  case " $LIBOBJS " in
25745  *" lstat.$ac_objext "* ) ;;
25746  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
25747 ;;
25748esac
25749
25750fi
25751
25752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
25753$as_echo_n "checking whether stat accepts an empty string... " >&6; }
25754if ${ac_cv_func_stat_empty_string_bug+:} false; then :
25755  $as_echo_n "(cached) " >&6
25756else
25757  if test "$cross_compiling" = yes; then :
25758  ac_cv_func_stat_empty_string_bug=yes
25759else
25760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25761/* end confdefs.h.  */
25762$ac_includes_default
25763int
25764main ()
25765{
25766struct stat sbuf;
25767  return stat ("", &sbuf) == 0;
25768  ;
25769  return 0;
25770}
25771_ACEOF
25772if ac_fn_cxx_try_run "$LINENO"; then :
25773  ac_cv_func_stat_empty_string_bug=no
25774else
25775  ac_cv_func_stat_empty_string_bug=yes
25776fi
25777rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25778  conftest.$ac_objext conftest.beam conftest.$ac_ext
25779fi
25780
25781fi
25782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
25783$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
25784if test $ac_cv_func_stat_empty_string_bug = yes; then
25785  case " $LIBOBJS " in
25786  *" stat.$ac_objext "* ) ;;
25787  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
25788 ;;
25789esac
25790
25791
25792cat >>confdefs.h <<_ACEOF
25793#define HAVE_STAT_EMPTY_STRING_BUG 1
25794_ACEOF
25795
25796fi
25797
25798ac_fn_cxx_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25799if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25800  ac_have_decl=1
25801else
25802  ac_have_decl=0
25803fi
25804
25805cat >>confdefs.h <<_ACEOF
25806#define HAVE_DECL_STRERROR_R $ac_have_decl
25807_ACEOF
25808
25809for ac_func in strerror_r
25810do :
25811  ac_fn_cxx_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25812if test "x$ac_cv_func_strerror_r" = xyes; then :
25813  cat >>confdefs.h <<_ACEOF
25814#define HAVE_STRERROR_R 1
25815_ACEOF
25816
25817fi
25818done
25819
25820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25821$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25822if ${ac_cv_func_strerror_r_char_p+:} false; then :
25823  $as_echo_n "(cached) " >&6
25824else
25825
25826    ac_cv_func_strerror_r_char_p=no
25827    if test $ac_cv_have_decl_strerror_r = yes; then
25828      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25829/* end confdefs.h.  */
25830$ac_includes_default
25831int
25832main ()
25833{
25834
25835	  char buf[100];
25836	  char x = *strerror_r (0, buf, sizeof buf);
25837	  char *p = strerror_r (0, buf, sizeof buf);
25838	  return !p || x;
25839
25840  ;
25841  return 0;
25842}
25843_ACEOF
25844if ac_fn_cxx_try_compile "$LINENO"; then :
25845  ac_cv_func_strerror_r_char_p=yes
25846fi
25847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25848    else
25849      # strerror_r is not declared.  Choose between
25850      # systems that have relatively inaccessible declarations for the
25851      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
25852      # former has a strerror_r that returns char*, while the latter
25853      # has a strerror_r that returns `int'.
25854      # This test should segfault on the DEC system.
25855      if test "$cross_compiling" = yes; then :
25856  :
25857else
25858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25859/* end confdefs.h.  */
25860$ac_includes_default
25861	extern char *strerror_r ();
25862int
25863main ()
25864{
25865char buf[100];
25866	  char x = *strerror_r (0, buf, sizeof buf);
25867	  return ! isalpha (x);
25868  ;
25869  return 0;
25870}
25871_ACEOF
25872if ac_fn_cxx_try_run "$LINENO"; then :
25873  ac_cv_func_strerror_r_char_p=yes
25874fi
25875rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25876  conftest.$ac_objext conftest.beam conftest.$ac_ext
25877fi
25878
25879    fi
25880
25881fi
25882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25883$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25884if test $ac_cv_func_strerror_r_char_p = yes; then
25885
25886$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25887
25888fi
25889
25890for ac_func in strftime
25891do :
25892  ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
25893if test "x$ac_cv_func_strftime" = xyes; then :
25894  cat >>confdefs.h <<_ACEOF
25895#define HAVE_STRFTIME 1
25896_ACEOF
25897
25898else
25899  # strftime is in -lintl on SCO UNIX.
25900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
25901$as_echo_n "checking for strftime in -lintl... " >&6; }
25902if ${ac_cv_lib_intl_strftime+:} false; then :
25903  $as_echo_n "(cached) " >&6
25904else
25905  ac_check_lib_save_LIBS=$LIBS
25906LIBS="-lintl  $LIBS"
25907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25908/* end confdefs.h.  */
25909
25910/* Override any GCC internal prototype to avoid an error.
25911   Use char because int might match the return type of a GCC
25912   builtin and then its argument prototype would still apply.  */
25913#ifdef __cplusplus
25914extern "C"
25915#endif
25916char strftime ();
25917int
25918main ()
25919{
25920return strftime ();
25921  ;
25922  return 0;
25923}
25924_ACEOF
25925if ac_fn_cxx_try_link "$LINENO"; then :
25926  ac_cv_lib_intl_strftime=yes
25927else
25928  ac_cv_lib_intl_strftime=no
25929fi
25930rm -f core conftest.err conftest.$ac_objext \
25931    conftest$ac_exeext conftest.$ac_ext
25932LIBS=$ac_check_lib_save_LIBS
25933fi
25934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
25935$as_echo "$ac_cv_lib_intl_strftime" >&6; }
25936if test "x$ac_cv_lib_intl_strftime" = xyes; then :
25937  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
25938
25939LIBS="-lintl $LIBS"
25940fi
25941
25942fi
25943done
25944
25945for ac_func in vprintf
25946do :
25947  ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
25948if test "x$ac_cv_func_vprintf" = xyes; then :
25949  cat >>confdefs.h <<_ACEOF
25950#define HAVE_VPRINTF 1
25951_ACEOF
25952
25953ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
25954if test "x$ac_cv_func__doprnt" = xyes; then :
25955
25956$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
25957
25958fi
25959
25960fi
25961done
25962
25963
25964for ac_func in strtoul
25965do :
25966  ac_fn_cxx_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
25967if test "x$ac_cv_func_strtoul" = xyes; then :
25968  cat >>confdefs.h <<_ACEOF
25969#define HAVE_STRTOUL 1
25970_ACEOF
25971
25972fi
25973done
25974
25975for ac_func in bzero
25976do :
25977  ac_fn_cxx_check_func "$LINENO" "bzero" "ac_cv_func_bzero"
25978if test "x$ac_cv_func_bzero" = xyes; then :
25979  cat >>confdefs.h <<_ACEOF
25980#define HAVE_BZERO 1
25981_ACEOF
25982
25983fi
25984done
25985
25986for ac_func in ftruncate
25987do :
25988  ac_fn_cxx_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
25989if test "x$ac_cv_func_ftruncate" = xyes; then :
25990  cat >>confdefs.h <<_ACEOF
25991#define HAVE_FTRUNCATE 1
25992_ACEOF
25993
25994fi
25995done
25996
25997for ac_func in gethostbyname
25998do :
25999  ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
26000if test "x$ac_cv_func_gethostbyname" = xyes; then :
26001  cat >>confdefs.h <<_ACEOF
26002#define HAVE_GETHOSTBYNAME 1
26003_ACEOF
26004
26005fi
26006done
26007
26008for ac_func in gethostbyname_r
26009do :
26010  ac_fn_cxx_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
26011if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
26012  cat >>confdefs.h <<_ACEOF
26013#define HAVE_GETHOSTBYNAME_R 1
26014_ACEOF
26015
26016fi
26017done
26018
26019for ac_func in gettimeofday
26020do :
26021  ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
26022if test "x$ac_cv_func_gettimeofday" = xyes; then :
26023  cat >>confdefs.h <<_ACEOF
26024#define HAVE_GETTIMEOFDAY 1
26025_ACEOF
26026
26027fi
26028done
26029
26030for ac_func in memmove
26031do :
26032  ac_fn_cxx_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
26033if test "x$ac_cv_func_memmove" = xyes; then :
26034  cat >>confdefs.h <<_ACEOF
26035#define HAVE_MEMMOVE 1
26036_ACEOF
26037
26038fi
26039done
26040
26041for ac_func in memset
26042do :
26043  ac_fn_cxx_check_func "$LINENO" "memset" "ac_cv_func_memset"
26044if test "x$ac_cv_func_memset" = xyes; then :
26045  cat >>confdefs.h <<_ACEOF
26046#define HAVE_MEMSET 1
26047_ACEOF
26048
26049fi
26050done
26051
26052for ac_func in mkdir
26053do :
26054  ac_fn_cxx_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
26055if test "x$ac_cv_func_mkdir" = xyes; then :
26056  cat >>confdefs.h <<_ACEOF
26057#define HAVE_MKDIR 1
26058_ACEOF
26059
26060fi
26061done
26062
26063for ac_func in realpath
26064do :
26065  ac_fn_cxx_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
26066if test "x$ac_cv_func_realpath" = xyes; then :
26067  cat >>confdefs.h <<_ACEOF
26068#define HAVE_REALPATH 1
26069_ACEOF
26070
26071fi
26072done
26073
26074for ac_func in select
26075do :
26076  ac_fn_cxx_check_func "$LINENO" "select" "ac_cv_func_select"
26077if test "x$ac_cv_func_select" = xyes; then :
26078  cat >>confdefs.h <<_ACEOF
26079#define HAVE_SELECT 1
26080_ACEOF
26081
26082fi
26083done
26084
26085for ac_func in setlocale
26086do :
26087  ac_fn_cxx_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
26088if test "x$ac_cv_func_setlocale" = xyes; then :
26089  cat >>confdefs.h <<_ACEOF
26090#define HAVE_SETLOCALE 1
26091_ACEOF
26092
26093fi
26094done
26095
26096for ac_func in socket
26097do :
26098  ac_fn_cxx_check_func "$LINENO" "socket" "ac_cv_func_socket"
26099if test "x$ac_cv_func_socket" = xyes; then :
26100  cat >>confdefs.h <<_ACEOF
26101#define HAVE_SOCKET 1
26102_ACEOF
26103
26104fi
26105done
26106
26107for ac_func in strchr
26108do :
26109  ac_fn_cxx_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
26110if test "x$ac_cv_func_strchr" = xyes; then :
26111  cat >>confdefs.h <<_ACEOF
26112#define HAVE_STRCHR 1
26113_ACEOF
26114
26115fi
26116done
26117
26118for ac_func in strdup
26119do :
26120  ac_fn_cxx_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
26121if test "x$ac_cv_func_strdup" = xyes; then :
26122  cat >>confdefs.h <<_ACEOF
26123#define HAVE_STRDUP 1
26124_ACEOF
26125
26126fi
26127done
26128
26129for ac_func in strerror
26130do :
26131  ac_fn_cxx_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
26132if test "x$ac_cv_func_strerror" = xyes; then :
26133  cat >>confdefs.h <<_ACEOF
26134#define HAVE_STRERROR 1
26135_ACEOF
26136
26137fi
26138done
26139
26140for ac_func in strstr
26141do :
26142  ac_fn_cxx_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
26143if test "x$ac_cv_func_strstr" = xyes; then :
26144  cat >>confdefs.h <<_ACEOF
26145#define HAVE_STRSTR 1
26146_ACEOF
26147
26148fi
26149done
26150
26151for ac_func in strtol
26152do :
26153  ac_fn_cxx_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
26154if test "x$ac_cv_func_strtol" = xyes; then :
26155  cat >>confdefs.h <<_ACEOF
26156#define HAVE_STRTOL 1
26157_ACEOF
26158
26159fi
26160done
26161
26162for ac_func in sqrt
26163do :
26164  ac_fn_cxx_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
26165if test "x$ac_cv_func_sqrt" = xyes; then :
26166  cat >>confdefs.h <<_ACEOF
26167#define HAVE_SQRT 1
26168_ACEOF
26169
26170fi
26171done
26172
26173for ac_func in alarm
26174do :
26175  ac_fn_cxx_check_func "$LINENO" "alarm" "ac_cv_func_alarm"
26176if test "x$ac_cv_func_alarm" = xyes; then :
26177  cat >>confdefs.h <<_ACEOF
26178#define HAVE_ALARM 1
26179_ACEOF
26180
26181fi
26182done
26183
26184for ac_func in clock_gettime
26185do :
26186  ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
26187if test "x$ac_cv_func_clock_gettime" = xyes; then :
26188  cat >>confdefs.h <<_ACEOF
26189#define HAVE_CLOCK_GETTIME 1
26190_ACEOF
26191
26192fi
26193done
26194
26195for ac_func in sched_get_priority_min
26196do :
26197  ac_fn_cxx_check_func "$LINENO" "sched_get_priority_min" "ac_cv_func_sched_get_priority_min"
26198if test "x$ac_cv_func_sched_get_priority_min" = xyes; then :
26199  cat >>confdefs.h <<_ACEOF
26200#define HAVE_SCHED_GET_PRIORITY_MIN 1
26201_ACEOF
26202
26203fi
26204done
26205
26206for ac_func in sched_get_priority_max
26207do :
26208  ac_fn_cxx_check_func "$LINENO" "sched_get_priority_max" "ac_cv_func_sched_get_priority_max"
26209if test "x$ac_cv_func_sched_get_priority_max" = xyes; then :
26210  cat >>confdefs.h <<_ACEOF
26211#define HAVE_SCHED_GET_PRIORITY_MAX 1
26212_ACEOF
26213
26214fi
26215done
26216
26217for ac_func in inet_ntoa
26218do :
26219  ac_fn_cxx_check_func "$LINENO" "inet_ntoa" "ac_cv_func_inet_ntoa"
26220if test "x$ac_cv_func_inet_ntoa" = xyes; then :
26221  cat >>confdefs.h <<_ACEOF
26222#define HAVE_INET_NTOA 1
26223_ACEOF
26224
26225fi
26226done
26227
26228for ac_func in pow
26229do :
26230  ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
26231if test "x$ac_cv_func_pow" = xyes; then :
26232  cat >>confdefs.h <<_ACEOF
26233#define HAVE_POW 1
26234_ACEOF
26235
26236fi
26237done
26238
26239
26240if test "$cross_compiling" = "no" ; then
26241
26242
26243          { $as_echo "$as_me:${as_lineno-$LINENO}: checking the behavior of a signed right shift" >&5
26244$as_echo_n "checking the behavior of a signed right shift... " >&6; }
26245
26246          success_arithmetic=no
26247          if test "$cross_compiling" = yes; then :
26248  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26249$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26250as_fn_error $? "cannot run test program while cross compiling
26251See \`config.log' for more details" "$LINENO" 5; }
26252else
26253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26254/* end confdefs.h.  */
26255
26256int
26257main ()
26258{
26259
26260          return
26261            /* 0xffffffff */
26262            -1 >>  1 != -1 ||
26263            -1 >>  2 != -1 ||
26264            -1 >>  3 != -1 ||
26265            -1 >>  4 != -1 ||
26266            -1 >>  8 != -1 ||
26267            -1 >> 16 != -1 ||
26268            -1 >> 24 != -1 ||
26269            -1 >> 31 != -1 ||
26270            /* 0x80000000 */
26271            (-2147483647 - 1) >>  1 != -1073741824 ||
26272            (-2147483647 - 1) >>  2 != -536870912  ||
26273            (-2147483647 - 1) >>  3 != -268435456  ||
26274            (-2147483647 - 1) >>  4 != -134217728  ||
26275            (-2147483647 - 1) >>  8 != -8388608    ||
26276            (-2147483647 - 1) >> 16 != -32768      ||
26277            (-2147483647 - 1) >> 24 != -128        ||
26278            (-2147483647 - 1) >> 31 != -1          ||
26279            /* 0x90800000 */
26280            -1870659584 >>  1 != -935329792 ||
26281            -1870659584 >>  2 != -467664896 ||
26282            -1870659584 >>  3 != -233832448 ||
26283            -1870659584 >>  4 != -116916224 ||
26284            -1870659584 >>  8 != -7307264   ||
26285            -1870659584 >> 16 != -28544     ||
26286            -1870659584 >> 24 != -112       ||
26287            -1870659584 >> 31 != -1         ||
26288            0;
26289
26290  ;
26291  return 0;
26292}
26293_ACEOF
26294if ac_fn_cxx_try_run "$LINENO"; then :
26295
26296          success_arithmetic=yes
26297
26298fi
26299rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26300  conftest.$ac_objext conftest.beam conftest.$ac_ext
26301fi
26302
26303
26304
26305          success_logical=no
26306          if test "$cross_compiling" = yes; then :
26307  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26309as_fn_error $? "cannot run test program while cross compiling
26310See \`config.log' for more details" "$LINENO" 5; }
26311else
26312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26313/* end confdefs.h.  */
26314
26315int
26316main ()
26317{
26318
26319          return
26320            /* 0xffffffff */
26321            -1 >>  1 != (signed)((unsigned)-1 >>  1) ||
26322            -1 >>  2 != (signed)((unsigned)-1 >>  2) ||
26323            -1 >>  3 != (signed)((unsigned)-1 >>  3) ||
26324            -1 >>  4 != (signed)((unsigned)-1 >>  4) ||
26325            -1 >>  8 != (signed)((unsigned)-1 >>  8) ||
26326            -1 >> 16 != (signed)((unsigned)-1 >> 16) ||
26327            -1 >> 24 != (signed)((unsigned)-1 >> 24) ||
26328            -1 >> 31 != (signed)((unsigned)-1 >> 31) ||
26329            /* 0x80000000 */
26330            (-2147483647 - 1) >>  1 != (signed)((unsigned)(-2147483647 - 1) >>  1) ||
26331            (-2147483647 - 1) >>  2 != (signed)((unsigned)(-2147483647 - 1) >>  2) ||
26332            (-2147483647 - 1) >>  3 != (signed)((unsigned)(-2147483647 - 1) >>  3) ||
26333            (-2147483647 - 1) >>  4 != (signed)((unsigned)(-2147483647 - 1) >>  4) ||
26334            (-2147483647 - 1) >>  8 != (signed)((unsigned)(-2147483647 - 1) >>  8) ||
26335            (-2147483647 - 1) >> 16 != (signed)((unsigned)(-2147483647 - 1) >> 16) ||
26336            (-2147483647 - 1) >> 24 != (signed)((unsigned)(-2147483647 - 1) >> 24) ||
26337            (-2147483647 - 1) >> 31 != (signed)((unsigned)(-2147483647 - 1) >> 31) ||
26338            /* 0x90800000 */
26339            -1870659584 >>  1 != (signed)((unsigned)-1870659584 >>  1) ||
26340            -1870659584 >>  2 != (signed)((unsigned)-1870659584 >>  2) ||
26341            -1870659584 >>  3 != (signed)((unsigned)-1870659584 >>  3) ||
26342            -1870659584 >>  4 != (signed)((unsigned)-1870659584 >>  4) ||
26343            -1870659584 >>  8 != (signed)((unsigned)-1870659584 >>  8) ||
26344            -1870659584 >> 16 != (signed)((unsigned)-1870659584 >> 16) ||
26345            -1870659584 >> 24 != (signed)((unsigned)-1870659584 >> 24) ||
26346            -1870659584 >> 31 != (signed)((unsigned)-1870659584 >> 31) ||
26347            0;
26348
26349  ;
26350  return 0;
26351}
26352_ACEOF
26353if ac_fn_cxx_try_run "$LINENO"; then :
26354
26355          success_logical=yes
26356
26357fi
26358rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26359  conftest.$ac_objext conftest.beam conftest.$ac_ext
26360fi
26361
26362
26363
26364
26365$as_echo "#define ARITHMETIC_RIGHT_SHIFT 1" >>confdefs.h
26366
26367
26368$as_echo "#define LOGICAL_RIGHT_SHIFT 2" >>confdefs.h
26369
26370
26371$as_echo "#define UNKNOWN_RIGHT_SHIFT 3" >>confdefs.h
26372
26373
26374          if test "$success_arithmetic" = "yes" && test "$success_logical" = "yes" ; then
26375            as_fn_error $? "\"Right shift appears to be both arithmetic and logical!\"" "$LINENO" 5
26376          elif test "$success_arithmetic" = "yes" ; then
26377            ax_signed_right_shift=arithmetic
26378
26379$as_echo "#define SIGNED_RIGHT_SHIFT_IS 1" >>confdefs.h
26380
26381          elif test "$success_logical" = "yes" ; then
26382            ax_signed_right_shift=logical
26383
26384$as_echo "#define SIGNED_RIGHT_SHIFT_IS 2" >>confdefs.h
26385
26386          else
26387            ax_signed_right_shift=unknown
26388
26389$as_echo "#define SIGNED_RIGHT_SHIFT_IS 3" >>confdefs.h
26390
26391          fi
26392
26393          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_signed_right_shift" >&5
26394$as_echo "$ax_signed_right_shift" >&6; }
26395
26396fi
26397
26398if false ; then
26399  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
26400$as_echo_n "checking for error_at_line... " >&6; }
26401if ${ac_cv_lib_error_at_line+:} false; then :
26402  $as_echo_n "(cached) " >&6
26403else
26404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26405/* end confdefs.h.  */
26406#include <error.h>
26407int
26408main ()
26409{
26410error_at_line (0, 0, "", 0, "an error occurred");
26411  ;
26412  return 0;
26413}
26414_ACEOF
26415if ac_fn_cxx_try_link "$LINENO"; then :
26416  ac_cv_lib_error_at_line=yes
26417else
26418  ac_cv_lib_error_at_line=no
26419fi
26420rm -f core conftest.err conftest.$ac_objext \
26421    conftest$ac_exeext conftest.$ac_ext
26422fi
26423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
26424$as_echo "$ac_cv_lib_error_at_line" >&6; }
26425if test $ac_cv_lib_error_at_line = no; then
26426  case " $LIBOBJS " in
26427  *" error.$ac_objext "* ) ;;
26428  *) LIBOBJS="$LIBOBJS error.$ac_objext"
26429 ;;
26430esac
26431
26432fi
26433
26434fi
26435
26436# --- Coverage hooks ---
26437
26438# Check whether --enable-coverage was given.
26439if test "${enable_coverage+set}" = set; then :
26440  enableval=$enable_coverage; case "${enableval}" in
26441                yes) ENABLE_COVERAGE=1 ;;
26442                no) ENABLE_COVERAGE=0 ;;
26443                *) as_fn_error $? "bad value ${enableval} for --enable-cov" "$LINENO" 5 ;;
26444              esac
26445else
26446  ENABLE_COVERAGE=2
26447fi
26448
26449
26450if test "x$ENABLE_COVERAGE" = "x1"; then
26451  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable coverage" >&5
26452$as_echo "$as_me: WARNING: enable coverage" >&2;}
26453  GCOV_CFLAGS="`echo \"$CFLAGS\" | perl -pe 's/-O\d+//g;'` -fprofile-arcs -ftest-coverage"
26454  GCOV_CXXFLAGS="`echo \"$CXXFLAGS\" | perl -pe 's/-O\d+//g;'` -fprofile-arcs -ftest-coverage"
26455  GCOV_LDFLAGS="-XCClinker -fprofile-arcs -XCClinker -ftest-coverage"
26456fi
26457
26458
26459
26460
26461
26462
26463ac_config_headers="$ac_config_headers config.h:config.hin"
26464
26465ac_config_headers="$ac_config_headers lib/cpp/src/thrift/config.h:config.hin"
26466
26467ac_config_headers="$ac_config_headers lib/c_glib/src/thrift/config.h:config.hin"
26468
26469# guard against pre defined config.h
26470
26471
26472
26473
26474ac_config_files="$ac_config_files Makefile compiler/cpp/Makefile compiler/cpp/src/Makefile compiler/cpp/test/Makefile lib/Makefile lib/as3/Makefile lib/cl/Makefile lib/cpp/Makefile lib/cpp/test/Makefile lib/cpp/thrift-nb.pc lib/cpp/thrift-z.pc lib/cpp/thrift-qt5.pc lib/cpp/thrift.pc lib/c_glib/Makefile lib/c_glib/thrift_c_glib.pc lib/c_glib/test/Makefile lib/d/Makefile lib/d/test/Makefile lib/erl/Makefile lib/go/Makefile lib/go/test/Makefile lib/haxe/test/Makefile lib/hs/Makefile lib/java/Makefile lib/js/Makefile lib/js/test/Makefile lib/json/Makefile lib/json/test/Makefile lib/netstd/Makefile lib/nodejs/Makefile lib/nodets/Makefile lib/perl/Makefile lib/perl/t/Makefile lib/php/Makefile lib/php/test/Makefile lib/dart/Makefile lib/py/Makefile lib/rb/Makefile lib/rs/Makefile lib/rs/test/Makefile lib/lua/Makefile lib/swift/Makefile lib/ts/Makefile lib/xml/Makefile lib/xml/test/Makefile test/Makefile test/features/Makefile test/c_glib/Makefile test/cl/Makefile test/cpp/Makefile test/erl/Makefile test/go/Makefile test/haxe/Makefile test/hs/Makefile test/lua/Makefile test/netstd/Makefile test/php/Makefile test/dart/Makefile test/perl/Makefile test/py/Makefile test/py.twisted/Makefile test/py.tornado/Makefile test/rb/Makefile test/rs/Makefile tutorial/Makefile tutorial/c_glib/Makefile tutorial/cl/Makefile tutorial/cpp/Makefile tutorial/d/Makefile tutorial/go/Makefile tutorial/haxe/Makefile tutorial/hs/Makefile tutorial/java/Makefile tutorial/js/Makefile tutorial/netstd/Makefile tutorial/nodejs/Makefile tutorial/dart/Makefile tutorial/perl/Makefile tutorial/php/Makefile tutorial/py/Makefile tutorial/py.twisted/Makefile tutorial/py.tornado/Makefile tutorial/rb/Makefile tutorial/rs/Makefile"
26475
26476
26477if test "$have_as3" = "yes" ; then MAYBE_AS3="as3" ; else MAYBE_AS3="" ; fi
26478
26479if test "$have_cpp" = "yes" ; then MAYBE_CPP="cpp" ; else MAYBE_CPP="" ; fi
26480
26481if test "$have_c_glib" = "yes" ; then MAYBE_C_GLIB="c_glib" ; else MAYBE_C_GLIB="" ; fi
26482
26483if test "$have_d" = "yes" -a "$have_deimos_event2" = "yes" -a "$have_deimos_openssl" = "yes"; then MAYBE_D="d" ; else MAYBE_D="" ; fi
26484
26485if test "$have_java" = "yes" ; then MAYBE_JAVA="java" ; else MAYBE_JAVA="" ; fi
26486
26487if test "$have_python" = "yes" ; then MAYBE_PYTHON="py" ; else MAYBE_PYTHON="" ; fi
26488
26489if test "$have_py3" = "yes" ; then MAYBE_PY3="py3" ; else MAYBE_PY3="" ; fi
26490
26491if test "$have_ruby" = "yes" ; then MAYBE_RUBY="rb" ; else MAYBE_RUBY="" ; fi
26492
26493if test "$have_haskell" = "yes" ; then MAYBE_HASKELL="hs" ; else MAYBE_HASKELL="" ; fi
26494
26495if test "$have_perl" = "yes" ; then MAYBE_PERL="perl" ; else MAYBE_PERL="" ; fi
26496
26497if test "$have_php" = "yes" ; then MAYBE_PHP="php" ; else MAYBE_PHP="" ; fi
26498
26499if test "$have_dart" = "yes" ; then MAYBE_DART="dart" ; else MAYBE_DART="" ; fi
26500
26501if test "$have_go" = "yes" ; then MAYBE_GO="go" ; else MAYBE_GO="" ; fi
26502
26503if test "$have_nodejs" = "yes" ; then MAYBE_NODEJS="nodejs" ; else MAYBE_NODEJS="" ; fi
26504
26505if test "$have_nodets" = "yes" ; then MAYBE_NODETS="nodets" ; else MAYBE_NODETS="" ; fi
26506
26507if test "$have_erlang" = "yes" ; then MAYBE_ERLANG="erl" ; else MAYBE_ERLANG="" ; fi
26508
26509if test "$have_lua" = "yes" ; then MAYBE_LUA="lua" ; else MAYBE_LUA="" ; fi
26510
26511if test "$have_rs" = "yes" ; then MAYBE_RS="rs" ; else MAYBE_RS="" ; fi
26512
26513if test "$have_swift" = "yes" ; then MAYBE_SWIFT="swift" ; else MAYBE_SWIFT="" ; fi
26514
26515if test "$have_netstd" = "yes" ; then MAYBE_NETSTD="netstd" ; else MAYBE_NETSTD="" ; fi
26516
26517if test "$have_cl" = "yes" ; then MAYBE_CL="cl" ; else MAYBE_CL="" ; fi
26518
26519
26520cat >confcache <<\_ACEOF
26521# This file is a shell script that caches the results of configure
26522# tests run on this system so they can be shared between configure
26523# scripts and configure runs, see configure's option --config-cache.
26524# It is not useful on other systems.  If it contains results you don't
26525# want to keep, you may remove or edit it.
26526#
26527# config.status only pays attention to the cache file if you give it
26528# the --recheck option to rerun configure.
26529#
26530# `ac_cv_env_foo' variables (set or unset) will be overridden when
26531# loading this file, other *unset* `ac_cv_foo' will be assigned the
26532# following values.
26533
26534_ACEOF
26535
26536# The following way of writing the cache mishandles newlines in values,
26537# but we know of no workaround that is simple, portable, and efficient.
26538# So, we kill variables containing newlines.
26539# Ultrix sh set writes to stderr and can't be redirected directly,
26540# and sets the high bit in the cache file unless we assign to the vars.
26541(
26542  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26543    eval ac_val=\$$ac_var
26544    case $ac_val in #(
26545    *${as_nl}*)
26546      case $ac_var in #(
26547      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26548$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26549      esac
26550      case $ac_var in #(
26551      _ | IFS | as_nl) ;; #(
26552      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26553      *) { eval $ac_var=; unset $ac_var;} ;;
26554      esac ;;
26555    esac
26556  done
26557
26558  (set) 2>&1 |
26559    case $as_nl`(ac_space=' '; set) 2>&1` in #(
26560    *${as_nl}ac_space=\ *)
26561      # `set' does not quote correctly, so add quotes: double-quote
26562      # substitution turns \\\\ into \\, and sed turns \\ into \.
26563      sed -n \
26564	"s/'/'\\\\''/g;
26565	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26566      ;; #(
26567    *)
26568      # `set' quotes correctly as required by POSIX, so do not add quotes.
26569      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26570      ;;
26571    esac |
26572    sort
26573) |
26574  sed '
26575     /^ac_cv_env_/b end
26576     t clear
26577     :clear
26578     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26579     t end
26580     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26581     :end' >>confcache
26582if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26583  if test -w "$cache_file"; then
26584    if test "x$cache_file" != "x/dev/null"; then
26585      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26586$as_echo "$as_me: updating cache $cache_file" >&6;}
26587      if test ! -f "$cache_file" || test -h "$cache_file"; then
26588	cat confcache >"$cache_file"
26589      else
26590        case $cache_file in #(
26591        */* | ?:*)
26592	  mv -f confcache "$cache_file"$$ &&
26593	  mv -f "$cache_file"$$ "$cache_file" ;; #(
26594        *)
26595	  mv -f confcache "$cache_file" ;;
26596	esac
26597      fi
26598    fi
26599  else
26600    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26601$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26602  fi
26603fi
26604rm -f confcache
26605
26606test "x$prefix" = xNONE && prefix=$ac_default_prefix
26607# Let make expand exec_prefix.
26608test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26609
26610DEFS=-DHAVE_CONFIG_H
26611
26612ac_libobjs=
26613ac_ltlibobjs=
26614U=
26615for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26616  # 1. Remove the extension, and $U if already installed.
26617  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26618  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26619  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26620  #    will be set to the directory where LIBOBJS objects are built.
26621  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26622  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26623done
26624LIBOBJS=$ac_libobjs
26625
26626LTLIBOBJS=$ac_ltlibobjs
26627
26628
26629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26630$as_echo_n "checking that generated files are newer than configure... " >&6; }
26631   if test -n "$am_sleep_pid"; then
26632     # Hide warnings about reused PIDs.
26633     wait $am_sleep_pid 2>/dev/null
26634   fi
26635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26636$as_echo "done" >&6; }
26637 if test -n "$EXEEXT"; then
26638  am__EXEEXT_TRUE=
26639  am__EXEEXT_FALSE='#'
26640else
26641  am__EXEEXT_TRUE='#'
26642  am__EXEEXT_FALSE=
26643fi
26644
26645if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26646  as_fn_error $? "conditional \"AMDEP\" was never defined.
26647Usually this means the macro was only invoked conditionally." "$LINENO" 5
26648fi
26649if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26650  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26651Usually this means the macro was only invoked conditionally." "$LINENO" 5
26652fi
26653if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26654  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
26655Usually this means the macro was only invoked conditionally." "$LINENO" 5
26656fi
26657if test -z "${BISON_USE_PARSER_H_EXTENSION_TRUE}" && test -z "${BISON_USE_PARSER_H_EXTENSION_FALSE}"; then
26658  as_fn_error $? "conditional \"BISON_USE_PARSER_H_EXTENSION\" was never defined.
26659Usually this means the macro was only invoked conditionally." "$LINENO" 5
26660fi
26661if test -z "${WITH_AS3_TRUE}" && test -z "${WITH_AS3_FALSE}"; then
26662  as_fn_error $? "conditional \"WITH_AS3\" was never defined.
26663Usually this means the macro was only invoked conditionally." "$LINENO" 5
26664fi
26665if test -z "${WITH_CPP_TRUE}" && test -z "${WITH_CPP_FALSE}"; then
26666  as_fn_error $? "conditional \"WITH_CPP\" was never defined.
26667Usually this means the macro was only invoked conditionally." "$LINENO" 5
26668fi
26669if test -z "${AMX_HAVE_LIBEVENT_TRUE}" && test -z "${AMX_HAVE_LIBEVENT_FALSE}"; then
26670  as_fn_error $? "conditional \"AMX_HAVE_LIBEVENT\" was never defined.
26671Usually this means the macro was only invoked conditionally." "$LINENO" 5
26672fi
26673if test -z "${AMX_HAVE_ZLIB_TRUE}" && test -z "${AMX_HAVE_ZLIB_FALSE}"; then
26674  as_fn_error $? "conditional \"AMX_HAVE_ZLIB\" was never defined.
26675Usually this means the macro was only invoked conditionally." "$LINENO" 5
26676fi
26677if test -z "${AMX_HAVE_QT5_TRUE}" && test -z "${AMX_HAVE_QT5_FALSE}"; then
26678  as_fn_error $? "conditional \"AMX_HAVE_QT5\" was never defined.
26679Usually this means the macro was only invoked conditionally." "$LINENO" 5
26680fi
26681if test -z "${QT5_REDUCE_RELOCATIONS_TRUE}" && test -z "${QT5_REDUCE_RELOCATIONS_FALSE}"; then
26682  as_fn_error $? "conditional \"QT5_REDUCE_RELOCATIONS\" was never defined.
26683Usually this means the macro was only invoked conditionally." "$LINENO" 5
26684fi
26685if test -z "${WITH_C_GLIB_TRUE}" && test -z "${WITH_C_GLIB_FALSE}"; then
26686  as_fn_error $? "conditional \"WITH_C_GLIB\" was never defined.
26687Usually this means the macro was only invoked conditionally." "$LINENO" 5
26688fi
26689if test -z "${WITH_JAVA_TRUE}" && test -z "${WITH_JAVA_FALSE}"; then
26690  as_fn_error $? "conditional \"WITH_JAVA\" was never defined.
26691Usually this means the macro was only invoked conditionally." "$LINENO" 5
26692fi
26693if test -z "${WITH_ERLANG_TRUE}" && test -z "${WITH_ERLANG_FALSE}"; then
26694  as_fn_error $? "conditional \"WITH_ERLANG\" was never defined.
26695Usually this means the macro was only invoked conditionally." "$LINENO" 5
26696fi
26697if test -z "${ERLANG_OTP16_TRUE}" && test -z "${ERLANG_OTP16_FALSE}"; then
26698  as_fn_error $? "conditional \"ERLANG_OTP16\" was never defined.
26699Usually this means the macro was only invoked conditionally." "$LINENO" 5
26700fi
26701if test -z "${WITH_NODEJS_TRUE}" && test -z "${WITH_NODEJS_FALSE}"; then
26702  as_fn_error $? "conditional \"WITH_NODEJS\" was never defined.
26703Usually this means the macro was only invoked conditionally." "$LINENO" 5
26704fi
26705if test -z "${HAVE_NPM_TRUE}" && test -z "${HAVE_NPM_FALSE}"; then
26706  as_fn_error $? "conditional \"HAVE_NPM\" was never defined.
26707Usually this means the macro was only invoked conditionally." "$LINENO" 5
26708fi
26709if test -z "${WITH_NODETS_TRUE}" && test -z "${WITH_NODETS_FALSE}"; then
26710  as_fn_error $? "conditional \"WITH_NODETS\" was never defined.
26711Usually this means the macro was only invoked conditionally." "$LINENO" 5
26712fi
26713if test -z "${HAVE_NPM_TRUE}" && test -z "${HAVE_NPM_FALSE}"; then
26714  as_fn_error $? "conditional \"HAVE_NPM\" was never defined.
26715Usually this means the macro was only invoked conditionally." "$LINENO" 5
26716fi
26717if test -z "${WITH_LUA_TRUE}" && test -z "${WITH_LUA_FALSE}"; then
26718  as_fn_error $? "conditional \"WITH_LUA\" was never defined.
26719Usually this means the macro was only invoked conditionally." "$LINENO" 5
26720fi
26721if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
26722  as_fn_error $? "conditional \"WITH_PYTHON\" was never defined.
26723Usually this means the macro was only invoked conditionally." "$LINENO" 5
26724fi
26725if test -z "${WITH_TWISTED_TEST_TRUE}" && test -z "${WITH_TWISTED_TEST_FALSE}"; then
26726  as_fn_error $? "conditional \"WITH_TWISTED_TEST\" was never defined.
26727Usually this means the macro was only invoked conditionally." "$LINENO" 5
26728fi
26729if test -z "${WITH_PY3_TRUE}" && test -z "${WITH_PY3_FALSE}"; then
26730  as_fn_error $? "conditional \"WITH_PY3\" was never defined.
26731Usually this means the macro was only invoked conditionally." "$LINENO" 5
26732fi
26733if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
26734  as_fn_error $? "conditional \"WITH_PERL\" was never defined.
26735Usually this means the macro was only invoked conditionally." "$LINENO" 5
26736fi
26737if test -z "${WITH_PHP_TRUE}" && test -z "${WITH_PHP_FALSE}"; then
26738  as_fn_error $? "conditional \"WITH_PHP\" was never defined.
26739Usually this means the macro was only invoked conditionally." "$LINENO" 5
26740fi
26741if test -z "${WITH_PHP_EXTENSION_TRUE}" && test -z "${WITH_PHP_EXTENSION_FALSE}"; then
26742  as_fn_error $? "conditional \"WITH_PHP_EXTENSION\" was never defined.
26743Usually this means the macro was only invoked conditionally." "$LINENO" 5
26744fi
26745if test -z "${WITH_DART_TRUE}" && test -z "${WITH_DART_FALSE}"; then
26746  as_fn_error $? "conditional \"WITH_DART\" was never defined.
26747Usually this means the macro was only invoked conditionally." "$LINENO" 5
26748fi
26749if test -z "${WITH_RUBY_TRUE}" && test -z "${WITH_RUBY_FALSE}"; then
26750  as_fn_error $? "conditional \"WITH_RUBY\" was never defined.
26751Usually this means the macro was only invoked conditionally." "$LINENO" 5
26752fi
26753if test -z "${HAVE_BUNDLER_TRUE}" && test -z "${HAVE_BUNDLER_FALSE}"; then
26754  as_fn_error $? "conditional \"HAVE_BUNDLER\" was never defined.
26755Usually this means the macro was only invoked conditionally." "$LINENO" 5
26756fi
26757if test -z "${WITH_HASKELL_TRUE}" && test -z "${WITH_HASKELL_FALSE}"; then
26758  as_fn_error $? "conditional \"WITH_HASKELL\" was never defined.
26759Usually this means the macro was only invoked conditionally." "$LINENO" 5
26760fi
26761if test -z "${WITH_GO_TRUE}" && test -z "${WITH_GO_FALSE}"; then
26762  as_fn_error $? "conditional \"WITH_GO\" was never defined.
26763Usually this means the macro was only invoked conditionally." "$LINENO" 5
26764fi
26765if test -z "${GOVERSION_LT_17_TRUE}" && test -z "${GOVERSION_LT_17_FALSE}"; then
26766  as_fn_error $? "conditional \"GOVERSION_LT_17\" was never defined.
26767Usually this means the macro was only invoked conditionally." "$LINENO" 5
26768fi
26769if test -z "${WITH_SWIFT_TRUE}" && test -z "${WITH_SWIFT_FALSE}"; then
26770  as_fn_error $? "conditional \"WITH_SWIFT\" was never defined.
26771Usually this means the macro was only invoked conditionally." "$LINENO" 5
26772fi
26773if test -z "${WITH_RS_TRUE}" && test -z "${WITH_RS_FALSE}"; then
26774  as_fn_error $? "conditional \"WITH_RS\" was never defined.
26775Usually this means the macro was only invoked conditionally." "$LINENO" 5
26776fi
26777if test -z "${WITH_CL_TRUE}" && test -z "${WITH_CL_FALSE}"; then
26778  as_fn_error $? "conditional \"WITH_CL\" was never defined.
26779Usually this means the macro was only invoked conditionally." "$LINENO" 5
26780fi
26781if test -z "${WITH_HAXE_TRUE}" && test -z "${WITH_HAXE_FALSE}"; then
26782  as_fn_error $? "conditional \"WITH_HAXE\" was never defined.
26783Usually this means the macro was only invoked conditionally." "$LINENO" 5
26784fi
26785if test -z "${WITH_DOTNET_TRUE}" && test -z "${WITH_DOTNET_FALSE}"; then
26786  as_fn_error $? "conditional \"WITH_DOTNET\" was never defined.
26787Usually this means the macro was only invoked conditionally." "$LINENO" 5
26788fi
26789if test -z "${WITH_D_TRUE}" && test -z "${WITH_D_FALSE}"; then
26790  as_fn_error $? "conditional \"WITH_D\" was never defined.
26791Usually this means the macro was only invoked conditionally." "$LINENO" 5
26792fi
26793if test -z "${DMD_OPTLINK_TRUE}" && test -z "${DMD_OPTLINK_FALSE}"; then
26794  as_fn_error $? "conditional \"DMD_OPTLINK\" was never defined.
26795Usually this means the macro was only invoked conditionally." "$LINENO" 5
26796fi
26797if test -z "${HAVE_DEIMOS_EVENT2_TRUE}" && test -z "${HAVE_DEIMOS_EVENT2_FALSE}"; then
26798  as_fn_error $? "conditional \"HAVE_DEIMOS_EVENT2\" was never defined.
26799Usually this means the macro was only invoked conditionally." "$LINENO" 5
26800fi
26801if test -z "${WITH_D_EVENT_TESTS_TRUE}" && test -z "${WITH_D_EVENT_TESTS_FALSE}"; then
26802  as_fn_error $? "conditional \"WITH_D_EVENT_TESTS\" was never defined.
26803Usually this means the macro was only invoked conditionally." "$LINENO" 5
26804fi
26805if test -z "${HAVE_DEIMOS_OPENSSL_TRUE}" && test -z "${HAVE_DEIMOS_OPENSSL_FALSE}"; then
26806  as_fn_error $? "conditional \"HAVE_DEIMOS_OPENSSL\" was never defined.
26807Usually this means the macro was only invoked conditionally." "$LINENO" 5
26808fi
26809if test -z "${WITH_D_SSL_TESTS_TRUE}" && test -z "${WITH_D_SSL_TESTS_FALSE}"; then
26810  as_fn_error $? "conditional \"WITH_D_SSL_TESTS\" was never defined.
26811Usually this means the macro was only invoked conditionally." "$LINENO" 5
26812fi
26813if test -z "${WITH_TESTS_TRUE}" && test -z "${WITH_TESTS_FALSE}"; then
26814  as_fn_error $? "conditional \"WITH_TESTS\" was never defined.
26815Usually this means the macro was only invoked conditionally." "$LINENO" 5
26816fi
26817if test -z "${WITH_TUTORIAL_TRUE}" && test -z "${WITH_TUTORIAL_FALSE}"; then
26818  as_fn_error $? "conditional \"WITH_TUTORIAL\" was never defined.
26819Usually this means the macro was only invoked conditionally." "$LINENO" 5
26820fi
26821if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
26822  as_fn_error $? "conditional \"MINGW\" was never defined.
26823Usually this means the macro was only invoked conditionally." "$LINENO" 5
26824fi
26825if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
26826  as_fn_error $? "conditional \"MINGW\" was never defined.
26827Usually this means the macro was only invoked conditionally." "$LINENO" 5
26828fi
26829
26830: "${CONFIG_STATUS=./config.status}"
26831ac_write_fail=0
26832ac_clean_files_save=$ac_clean_files
26833ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26834{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26835$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26836as_write_fail=0
26837cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26838#! $SHELL
26839# Generated by $as_me.
26840# Run this file to recreate the current configuration.
26841# Compiler output produced by configure, useful for debugging
26842# configure, is in config.log if it exists.
26843
26844debug=false
26845ac_cs_recheck=false
26846ac_cs_silent=false
26847
26848SHELL=\${CONFIG_SHELL-$SHELL}
26849export SHELL
26850_ASEOF
26851cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26852## -------------------- ##
26853## M4sh Initialization. ##
26854## -------------------- ##
26855
26856# Be more Bourne compatible
26857DUALCASE=1; export DUALCASE # for MKS sh
26858if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26859  emulate sh
26860  NULLCMD=:
26861  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26862  # is contrary to our usage.  Disable this feature.
26863  alias -g '${1+"$@"}'='"$@"'
26864  setopt NO_GLOB_SUBST
26865else
26866  case `(set -o) 2>/dev/null` in #(
26867  *posix*) :
26868    set -o posix ;; #(
26869  *) :
26870     ;;
26871esac
26872fi
26873
26874
26875as_nl='
26876'
26877export as_nl
26878# Printing a long string crashes Solaris 7 /usr/bin/printf.
26879as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26880as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26881as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26882# Prefer a ksh shell builtin over an external printf program on Solaris,
26883# but without wasting forks for bash or zsh.
26884if test -z "$BASH_VERSION$ZSH_VERSION" \
26885    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26886  as_echo='print -r --'
26887  as_echo_n='print -rn --'
26888elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26889  as_echo='printf %s\n'
26890  as_echo_n='printf %s'
26891else
26892  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26893    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26894    as_echo_n='/usr/ucb/echo -n'
26895  else
26896    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26897    as_echo_n_body='eval
26898      arg=$1;
26899      case $arg in #(
26900      *"$as_nl"*)
26901	expr "X$arg" : "X\\(.*\\)$as_nl";
26902	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26903      esac;
26904      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26905    '
26906    export as_echo_n_body
26907    as_echo_n='sh -c $as_echo_n_body as_echo'
26908  fi
26909  export as_echo_body
26910  as_echo='sh -c $as_echo_body as_echo'
26911fi
26912
26913# The user is always right.
26914if test "${PATH_SEPARATOR+set}" != set; then
26915  PATH_SEPARATOR=:
26916  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26917    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26918      PATH_SEPARATOR=';'
26919  }
26920fi
26921
26922
26923# IFS
26924# We need space, tab and new line, in precisely that order.  Quoting is
26925# there to prevent editors from complaining about space-tab.
26926# (If _AS_PATH_WALK were called with IFS unset, it would disable word
26927# splitting by setting IFS to empty value.)
26928IFS=" ""	$as_nl"
26929
26930# Find who we are.  Look in the path if we contain no directory separator.
26931as_myself=
26932case $0 in #((
26933  *[\\/]* ) as_myself=$0 ;;
26934  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26935for as_dir in $PATH
26936do
26937  IFS=$as_save_IFS
26938  test -z "$as_dir" && as_dir=.
26939    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26940  done
26941IFS=$as_save_IFS
26942
26943     ;;
26944esac
26945# We did not find ourselves, most probably we were run as `sh COMMAND'
26946# in which case we are not to be found in the path.
26947if test "x$as_myself" = x; then
26948  as_myself=$0
26949fi
26950if test ! -f "$as_myself"; then
26951  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26952  exit 1
26953fi
26954
26955# Unset variables that we do not need and which cause bugs (e.g. in
26956# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26957# suppresses any "Segmentation fault" message there.  '((' could
26958# trigger a bug in pdksh 5.2.14.
26959for as_var in BASH_ENV ENV MAIL MAILPATH
26960do eval test x\${$as_var+set} = xset \
26961  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26962done
26963PS1='$ '
26964PS2='> '
26965PS4='+ '
26966
26967# NLS nuisances.
26968LC_ALL=C
26969export LC_ALL
26970LANGUAGE=C
26971export LANGUAGE
26972
26973# CDPATH.
26974(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26975
26976
26977# as_fn_error STATUS ERROR [LINENO LOG_FD]
26978# ----------------------------------------
26979# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26980# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26981# script with STATUS, using 1 if that was 0.
26982as_fn_error ()
26983{
26984  as_status=$1; test $as_status -eq 0 && as_status=1
26985  if test "$4"; then
26986    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26987    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26988  fi
26989  $as_echo "$as_me: error: $2" >&2
26990  as_fn_exit $as_status
26991} # as_fn_error
26992
26993
26994# as_fn_set_status STATUS
26995# -----------------------
26996# Set $? to STATUS, without forking.
26997as_fn_set_status ()
26998{
26999  return $1
27000} # as_fn_set_status
27001
27002# as_fn_exit STATUS
27003# -----------------
27004# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27005as_fn_exit ()
27006{
27007  set +e
27008  as_fn_set_status $1
27009  exit $1
27010} # as_fn_exit
27011
27012# as_fn_unset VAR
27013# ---------------
27014# Portably unset VAR.
27015as_fn_unset ()
27016{
27017  { eval $1=; unset $1;}
27018}
27019as_unset=as_fn_unset
27020# as_fn_append VAR VALUE
27021# ----------------------
27022# Append the text in VALUE to the end of the definition contained in VAR. Take
27023# advantage of any shell optimizations that allow amortized linear growth over
27024# repeated appends, instead of the typical quadratic growth present in naive
27025# implementations.
27026if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27027  eval 'as_fn_append ()
27028  {
27029    eval $1+=\$2
27030  }'
27031else
27032  as_fn_append ()
27033  {
27034    eval $1=\$$1\$2
27035  }
27036fi # as_fn_append
27037
27038# as_fn_arith ARG...
27039# ------------------
27040# Perform arithmetic evaluation on the ARGs, and store the result in the
27041# global $as_val. Take advantage of shells that can avoid forks. The arguments
27042# must be portable across $(()) and expr.
27043if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27044  eval 'as_fn_arith ()
27045  {
27046    as_val=$(( $* ))
27047  }'
27048else
27049  as_fn_arith ()
27050  {
27051    as_val=`expr "$@" || test $? -eq 1`
27052  }
27053fi # as_fn_arith
27054
27055
27056if expr a : '\(a\)' >/dev/null 2>&1 &&
27057   test "X`expr 00001 : '.*\(...\)'`" = X001; then
27058  as_expr=expr
27059else
27060  as_expr=false
27061fi
27062
27063if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27064  as_basename=basename
27065else
27066  as_basename=false
27067fi
27068
27069if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27070  as_dirname=dirname
27071else
27072  as_dirname=false
27073fi
27074
27075as_me=`$as_basename -- "$0" ||
27076$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27077	 X"$0" : 'X\(//\)$' \| \
27078	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27079$as_echo X/"$0" |
27080    sed '/^.*\/\([^/][^/]*\)\/*$/{
27081	    s//\1/
27082	    q
27083	  }
27084	  /^X\/\(\/\/\)$/{
27085	    s//\1/
27086	    q
27087	  }
27088	  /^X\/\(\/\).*/{
27089	    s//\1/
27090	    q
27091	  }
27092	  s/.*/./; q'`
27093
27094# Avoid depending upon Character Ranges.
27095as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27096as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27097as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27098as_cr_digits='0123456789'
27099as_cr_alnum=$as_cr_Letters$as_cr_digits
27100
27101ECHO_C= ECHO_N= ECHO_T=
27102case `echo -n x` in #(((((
27103-n*)
27104  case `echo 'xy\c'` in
27105  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
27106  xy)  ECHO_C='\c';;
27107  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
27108       ECHO_T='	';;
27109  esac;;
27110*)
27111  ECHO_N='-n';;
27112esac
27113
27114rm -f conf$$ conf$$.exe conf$$.file
27115if test -d conf$$.dir; then
27116  rm -f conf$$.dir/conf$$.file
27117else
27118  rm -f conf$$.dir
27119  mkdir conf$$.dir 2>/dev/null
27120fi
27121if (echo >conf$$.file) 2>/dev/null; then
27122  if ln -s conf$$.file conf$$ 2>/dev/null; then
27123    as_ln_s='ln -s'
27124    # ... but there are two gotchas:
27125    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27126    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27127    # In both cases, we have to default to `cp -pR'.
27128    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27129      as_ln_s='cp -pR'
27130  elif ln conf$$.file conf$$ 2>/dev/null; then
27131    as_ln_s=ln
27132  else
27133    as_ln_s='cp -pR'
27134  fi
27135else
27136  as_ln_s='cp -pR'
27137fi
27138rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27139rmdir conf$$.dir 2>/dev/null
27140
27141
27142# as_fn_mkdir_p
27143# -------------
27144# Create "$as_dir" as a directory, including parents if necessary.
27145as_fn_mkdir_p ()
27146{
27147
27148  case $as_dir in #(
27149  -*) as_dir=./$as_dir;;
27150  esac
27151  test -d "$as_dir" || eval $as_mkdir_p || {
27152    as_dirs=
27153    while :; do
27154      case $as_dir in #(
27155      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27156      *) as_qdir=$as_dir;;
27157      esac
27158      as_dirs="'$as_qdir' $as_dirs"
27159      as_dir=`$as_dirname -- "$as_dir" ||
27160$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27161	 X"$as_dir" : 'X\(//\)[^/]' \| \
27162	 X"$as_dir" : 'X\(//\)$' \| \
27163	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27164$as_echo X"$as_dir" |
27165    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27166	    s//\1/
27167	    q
27168	  }
27169	  /^X\(\/\/\)[^/].*/{
27170	    s//\1/
27171	    q
27172	  }
27173	  /^X\(\/\/\)$/{
27174	    s//\1/
27175	    q
27176	  }
27177	  /^X\(\/\).*/{
27178	    s//\1/
27179	    q
27180	  }
27181	  s/.*/./; q'`
27182      test -d "$as_dir" && break
27183    done
27184    test -z "$as_dirs" || eval "mkdir $as_dirs"
27185  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27186
27187
27188} # as_fn_mkdir_p
27189if mkdir -p . 2>/dev/null; then
27190  as_mkdir_p='mkdir -p "$as_dir"'
27191else
27192  test -d ./-p && rmdir ./-p
27193  as_mkdir_p=false
27194fi
27195
27196
27197# as_fn_executable_p FILE
27198# -----------------------
27199# Test if FILE is an executable regular file.
27200as_fn_executable_p ()
27201{
27202  test -f "$1" && test -x "$1"
27203} # as_fn_executable_p
27204as_test_x='test -x'
27205as_executable_p=as_fn_executable_p
27206
27207# Sed expression to map a string onto a valid CPP name.
27208as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27209
27210# Sed expression to map a string onto a valid variable name.
27211as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27212
27213
27214exec 6>&1
27215## ----------------------------------- ##
27216## Main body of $CONFIG_STATUS script. ##
27217## ----------------------------------- ##
27218_ASEOF
27219test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27220
27221cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27222# Save the log message, to keep $0 and so on meaningful, and to
27223# report actual input values of CONFIG_FILES etc. instead of their
27224# values after options handling.
27225ac_log="
27226This file was extended by thrift $as_me 0.14.0, which was
27227generated by GNU Autoconf 2.69.  Invocation command line was
27228
27229  CONFIG_FILES    = $CONFIG_FILES
27230  CONFIG_HEADERS  = $CONFIG_HEADERS
27231  CONFIG_LINKS    = $CONFIG_LINKS
27232  CONFIG_COMMANDS = $CONFIG_COMMANDS
27233  $ $0 $@
27234
27235on `(hostname || uname -n) 2>/dev/null | sed 1q`
27236"
27237
27238_ACEOF
27239
27240case $ac_config_files in *"
27241"*) set x $ac_config_files; shift; ac_config_files=$*;;
27242esac
27243
27244case $ac_config_headers in *"
27245"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27246esac
27247
27248
27249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27250# Files that config.status was made for.
27251config_files="$ac_config_files"
27252config_headers="$ac_config_headers"
27253config_commands="$ac_config_commands"
27254
27255_ACEOF
27256
27257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27258ac_cs_usage="\
27259\`$as_me' instantiates files and other configuration actions
27260from templates according to the current configuration.  Unless the files
27261and actions are specified as TAGs, all are instantiated by default.
27262
27263Usage: $0 [OPTION]... [TAG]...
27264
27265  -h, --help       print this help, then exit
27266  -V, --version    print version number and configuration settings, then exit
27267      --config     print configuration, then exit
27268  -q, --quiet, --silent
27269                   do not print progress messages
27270  -d, --debug      don't remove temporary files
27271      --recheck    update $as_me by reconfiguring in the same conditions
27272      --file=FILE[:TEMPLATE]
27273                   instantiate the configuration file FILE
27274      --header=FILE[:TEMPLATE]
27275                   instantiate the configuration header FILE
27276
27277Configuration files:
27278$config_files
27279
27280Configuration headers:
27281$config_headers
27282
27283Configuration commands:
27284$config_commands
27285
27286Report bugs to the package provider."
27287
27288_ACEOF
27289cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27290ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27291ac_cs_version="\\
27292thrift config.status 0.14.0
27293configured by $0, generated by GNU Autoconf 2.69,
27294  with options \\"\$ac_cs_config\\"
27295
27296Copyright (C) 2012 Free Software Foundation, Inc.
27297This config.status script is free software; the Free Software Foundation
27298gives unlimited permission to copy, distribute and modify it."
27299
27300ac_pwd='$ac_pwd'
27301srcdir='$srcdir'
27302INSTALL='$INSTALL'
27303MKDIR_P='$MKDIR_P'
27304AWK='$AWK'
27305test -n "\$AWK" || AWK=awk
27306_ACEOF
27307
27308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27309# The default lists apply if the user does not specify any file.
27310ac_need_defaults=:
27311while test $# != 0
27312do
27313  case $1 in
27314  --*=?*)
27315    ac_option=`expr "X$1" : 'X\([^=]*\)='`
27316    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27317    ac_shift=:
27318    ;;
27319  --*=)
27320    ac_option=`expr "X$1" : 'X\([^=]*\)='`
27321    ac_optarg=
27322    ac_shift=:
27323    ;;
27324  *)
27325    ac_option=$1
27326    ac_optarg=$2
27327    ac_shift=shift
27328    ;;
27329  esac
27330
27331  case $ac_option in
27332  # Handling of the options.
27333  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27334    ac_cs_recheck=: ;;
27335  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27336    $as_echo "$ac_cs_version"; exit ;;
27337  --config | --confi | --conf | --con | --co | --c )
27338    $as_echo "$ac_cs_config"; exit ;;
27339  --debug | --debu | --deb | --de | --d | -d )
27340    debug=: ;;
27341  --file | --fil | --fi | --f )
27342    $ac_shift
27343    case $ac_optarg in
27344    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27345    '') as_fn_error $? "missing file argument" ;;
27346    esac
27347    as_fn_append CONFIG_FILES " '$ac_optarg'"
27348    ac_need_defaults=false;;
27349  --header | --heade | --head | --hea )
27350    $ac_shift
27351    case $ac_optarg in
27352    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27353    esac
27354    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27355    ac_need_defaults=false;;
27356  --he | --h)
27357    # Conflict between --help and --header
27358    as_fn_error $? "ambiguous option: \`$1'
27359Try \`$0 --help' for more information.";;
27360  --help | --hel | -h )
27361    $as_echo "$ac_cs_usage"; exit ;;
27362  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27363  | -silent | --silent | --silen | --sile | --sil | --si | --s)
27364    ac_cs_silent=: ;;
27365
27366  # This is an error.
27367  -*) as_fn_error $? "unrecognized option: \`$1'
27368Try \`$0 --help' for more information." ;;
27369
27370  *) as_fn_append ac_config_targets " $1"
27371     ac_need_defaults=false ;;
27372
27373  esac
27374  shift
27375done
27376
27377ac_configure_extra_args=
27378
27379if $ac_cs_silent; then
27380  exec 6>/dev/null
27381  ac_configure_extra_args="$ac_configure_extra_args --silent"
27382fi
27383
27384_ACEOF
27385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27386if \$ac_cs_recheck; then
27387  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27388  shift
27389  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27390  CONFIG_SHELL='$SHELL'
27391  export CONFIG_SHELL
27392  exec "\$@"
27393fi
27394
27395_ACEOF
27396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27397exec 5>>config.log
27398{
27399  echo
27400  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27401## Running $as_me. ##
27402_ASBOX
27403  $as_echo "$ac_log"
27404} >&5
27405
27406_ACEOF
27407cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27408#
27409# INIT-COMMANDS
27410#
27411AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27412
27413
27414# The HP-UX ksh and POSIX shell print the target directory to stdout
27415# if CDPATH is set.
27416(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27417
27418sed_quote_subst='$sed_quote_subst'
27419double_quote_subst='$double_quote_subst'
27420delay_variable_subst='$delay_variable_subst'
27421macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27422macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27423enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27424enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27425pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27426enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27427shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
27428SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27429ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27430PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27431host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27432host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27433host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27434build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27435build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27436build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27437SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27438Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27439GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27440EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27441FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27442LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27443NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27444LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27445max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27446ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27447exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27448lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27449lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27450lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27451lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27452lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27453reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27454reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27455OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27456deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27457file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27458file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27459want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27460DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27461sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27462AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27463AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27464archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27465STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27466RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27467old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27468old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27469old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27470lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27471CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27472CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27473compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27474GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27475lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27476lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27477lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
27478lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27479lt_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"`'
27480lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
27481nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27482lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27483lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
27484objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27485MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27486lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27487lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27488lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27489lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27490lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27491need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27492MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27493DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27494NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27495LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27496OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27497OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27498libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27499shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27500extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27501archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27502enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27503export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27504whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27505compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27506old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27507old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27508archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27509archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27510module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27511module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27512with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27513allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27514no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27515hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27516hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27517hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27518hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27519hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27520hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27521hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27522inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27523link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27524always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27525export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27526exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27527include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27528prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27529postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27530file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27531variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27532need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27533need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27534version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27535runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27536shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27537shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27538libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27539library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27540soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27541install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27542postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27543postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27544finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27545finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27546hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27547sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27548configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
27549configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
27550hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27551enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27552enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27553enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27554old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27555striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27556compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27557predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27558postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27559predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27560postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27561compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27562LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
27563reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
27564reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27565old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27566compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
27567GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
27568lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
27569lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
27570lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
27571lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
27572lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
27573archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
27574enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
27575export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27576whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27577compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
27578old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27579old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27580archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27581archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27582module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27583module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27584with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
27585allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27586no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27587hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27588hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
27589hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
27590hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
27591hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
27592hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
27593hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
27594inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
27595link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
27596always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
27597export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27598exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27599include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27600prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27601postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27602file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
27603hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
27604compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
27605predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27606postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27607predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
27608postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
27609compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
27610
27611LTCC='$LTCC'
27612LTCFLAGS='$LTCFLAGS'
27613compiler='$compiler_DEFAULT'
27614
27615# A function that is used when there is no print builtin or printf.
27616func_fallback_echo ()
27617{
27618  eval 'cat <<_LTECHO_EOF
27619\$1
27620_LTECHO_EOF'
27621}
27622
27623# Quote evaled strings.
27624for var in SHELL \
27625ECHO \
27626PATH_SEPARATOR \
27627SED \
27628GREP \
27629EGREP \
27630FGREP \
27631LD \
27632NM \
27633LN_S \
27634lt_SP2NL \
27635lt_NL2SP \
27636reload_flag \
27637OBJDUMP \
27638deplibs_check_method \
27639file_magic_cmd \
27640file_magic_glob \
27641want_nocaseglob \
27642DLLTOOL \
27643sharedlib_from_linklib_cmd \
27644AR \
27645AR_FLAGS \
27646archiver_list_spec \
27647STRIP \
27648RANLIB \
27649CC \
27650CFLAGS \
27651compiler \
27652lt_cv_sys_global_symbol_pipe \
27653lt_cv_sys_global_symbol_to_cdecl \
27654lt_cv_sys_global_symbol_to_import \
27655lt_cv_sys_global_symbol_to_c_name_address \
27656lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27657lt_cv_nm_interface \
27658nm_file_list_spec \
27659lt_cv_truncate_bin \
27660lt_prog_compiler_no_builtin_flag \
27661lt_prog_compiler_pic \
27662lt_prog_compiler_wl \
27663lt_prog_compiler_static \
27664lt_cv_prog_compiler_c_o \
27665need_locks \
27666MANIFEST_TOOL \
27667DSYMUTIL \
27668NMEDIT \
27669LIPO \
27670OTOOL \
27671OTOOL64 \
27672shrext_cmds \
27673export_dynamic_flag_spec \
27674whole_archive_flag_spec \
27675compiler_needs_object \
27676with_gnu_ld \
27677allow_undefined_flag \
27678no_undefined_flag \
27679hardcode_libdir_flag_spec \
27680hardcode_libdir_separator \
27681exclude_expsyms \
27682include_expsyms \
27683file_list_spec \
27684variables_saved_for_relink \
27685libname_spec \
27686library_names_spec \
27687soname_spec \
27688install_override_mode \
27689finish_eval \
27690old_striplib \
27691striplib \
27692compiler_lib_search_dirs \
27693predep_objects \
27694postdep_objects \
27695predeps \
27696postdeps \
27697compiler_lib_search_path \
27698LD_CXX \
27699reload_flag_CXX \
27700compiler_CXX \
27701lt_prog_compiler_no_builtin_flag_CXX \
27702lt_prog_compiler_pic_CXX \
27703lt_prog_compiler_wl_CXX \
27704lt_prog_compiler_static_CXX \
27705lt_cv_prog_compiler_c_o_CXX \
27706export_dynamic_flag_spec_CXX \
27707whole_archive_flag_spec_CXX \
27708compiler_needs_object_CXX \
27709with_gnu_ld_CXX \
27710allow_undefined_flag_CXX \
27711no_undefined_flag_CXX \
27712hardcode_libdir_flag_spec_CXX \
27713hardcode_libdir_separator_CXX \
27714exclude_expsyms_CXX \
27715include_expsyms_CXX \
27716file_list_spec_CXX \
27717compiler_lib_search_dirs_CXX \
27718predep_objects_CXX \
27719postdep_objects_CXX \
27720predeps_CXX \
27721postdeps_CXX \
27722compiler_lib_search_path_CXX; do
27723    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27724    *[\\\\\\\`\\"\\\$]*)
27725      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27726      ;;
27727    *)
27728      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27729      ;;
27730    esac
27731done
27732
27733# Double-quote double-evaled strings.
27734for var in reload_cmds \
27735old_postinstall_cmds \
27736old_postuninstall_cmds \
27737old_archive_cmds \
27738extract_expsyms_cmds \
27739old_archive_from_new_cmds \
27740old_archive_from_expsyms_cmds \
27741archive_cmds \
27742archive_expsym_cmds \
27743module_cmds \
27744module_expsym_cmds \
27745export_symbols_cmds \
27746prelink_cmds \
27747postlink_cmds \
27748postinstall_cmds \
27749postuninstall_cmds \
27750finish_cmds \
27751sys_lib_search_path_spec \
27752configure_time_dlsearch_path \
27753configure_time_lt_sys_library_path \
27754reload_cmds_CXX \
27755old_archive_cmds_CXX \
27756old_archive_from_new_cmds_CXX \
27757old_archive_from_expsyms_cmds_CXX \
27758archive_cmds_CXX \
27759archive_expsym_cmds_CXX \
27760module_cmds_CXX \
27761module_expsym_cmds_CXX \
27762export_symbols_cmds_CXX \
27763prelink_cmds_CXX \
27764postlink_cmds_CXX; do
27765    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27766    *[\\\\\\\`\\"\\\$]*)
27767      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27768      ;;
27769    *)
27770      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27771      ;;
27772    esac
27773done
27774
27775ac_aux_dir='$ac_aux_dir'
27776
27777# See if we are running on zsh, and set the options that allow our
27778# commands through without removal of \ escapes INIT.
27779if test -n "\${ZSH_VERSION+set}"; then
27780   setopt NO_GLOB_SUBST
27781fi
27782
27783
27784    PACKAGE='$PACKAGE'
27785    VERSION='$VERSION'
27786    RM='$RM'
27787    ofile='$ofile'
27788
27789
27790
27791
27792
27793
27794_ACEOF
27795
27796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27797
27798# Handling of arguments.
27799for ac_config_target in $ac_config_targets
27800do
27801  case $ac_config_target in
27802    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27803    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27804    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
27805    "lib/cpp/src/thrift/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/cpp/src/thrift/config.h:config.hin" ;;
27806    "lib/c_glib/src/thrift/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/c_glib/src/thrift/config.h:config.hin" ;;
27807    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27808    "compiler/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES compiler/cpp/Makefile" ;;
27809    "compiler/cpp/src/Makefile") CONFIG_FILES="$CONFIG_FILES compiler/cpp/src/Makefile" ;;
27810    "compiler/cpp/test/Makefile") CONFIG_FILES="$CONFIG_FILES compiler/cpp/test/Makefile" ;;
27811    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27812    "lib/as3/Makefile") CONFIG_FILES="$CONFIG_FILES lib/as3/Makefile" ;;
27813    "lib/cl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/cl/Makefile" ;;
27814    "lib/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/cpp/Makefile" ;;
27815    "lib/cpp/test/Makefile") CONFIG_FILES="$CONFIG_FILES lib/cpp/test/Makefile" ;;
27816    "lib/cpp/thrift-nb.pc") CONFIG_FILES="$CONFIG_FILES lib/cpp/thrift-nb.pc" ;;
27817    "lib/cpp/thrift-z.pc") CONFIG_FILES="$CONFIG_FILES lib/cpp/thrift-z.pc" ;;
27818    "lib/cpp/thrift-qt5.pc") CONFIG_FILES="$CONFIG_FILES lib/cpp/thrift-qt5.pc" ;;
27819    "lib/cpp/thrift.pc") CONFIG_FILES="$CONFIG_FILES lib/cpp/thrift.pc" ;;
27820    "lib/c_glib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/c_glib/Makefile" ;;
27821    "lib/c_glib/thrift_c_glib.pc") CONFIG_FILES="$CONFIG_FILES lib/c_glib/thrift_c_glib.pc" ;;
27822    "lib/c_glib/test/Makefile") CONFIG_FILES="$CONFIG_FILES lib/c_glib/test/Makefile" ;;
27823    "lib/d/Makefile") CONFIG_FILES="$CONFIG_FILES lib/d/Makefile" ;;
27824    "lib/d/test/Makefile") CONFIG_FILES="$CONFIG_FILES lib/d/test/Makefile" ;;
27825    "lib/erl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/erl/Makefile" ;;
27826    "lib/go/Makefile") CONFIG_FILES="$CONFIG_FILES lib/go/Makefile" ;;
27827    "lib/go/test/Makefile") CONFIG_FILES="$CONFIG_FILES lib/go/test/Makefile" ;;
27828    "lib/haxe/test/Makefile") CONFIG_FILES="$CONFIG_FILES lib/haxe/test/Makefile" ;;
27829    "lib/hs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hs/Makefile" ;;
27830    "lib/java/Makefile") CONFIG_FILES="$CONFIG_FILES lib/java/Makefile" ;;
27831    "lib/js/Makefile") CONFIG_FILES="$CONFIG_FILES lib/js/Makefile" ;;
27832    "lib/js/test/Makefile") CONFIG_FILES="$CONFIG_FILES lib/js/test/Makefile" ;;
27833    "lib/json/Makefile") CONFIG_FILES="$CONFIG_FILES lib/json/Makefile" ;;
27834    "lib/json/test/Makefile") CONFIG_FILES="$CONFIG_FILES lib/json/test/Makefile" ;;
27835    "lib/netstd/Makefile") CONFIG_FILES="$CONFIG_FILES lib/netstd/Makefile" ;;
27836    "lib/nodejs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/nodejs/Makefile" ;;
27837    "lib/nodets/Makefile") CONFIG_FILES="$CONFIG_FILES lib/nodets/Makefile" ;;
27838    "lib/perl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/perl/Makefile" ;;
27839    "lib/perl/t/Makefile") CONFIG_FILES="$CONFIG_FILES lib/perl/t/Makefile" ;;
27840    "lib/php/Makefile") CONFIG_FILES="$CONFIG_FILES lib/php/Makefile" ;;
27841    "lib/php/test/Makefile") CONFIG_FILES="$CONFIG_FILES lib/php/test/Makefile" ;;
27842    "lib/dart/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dart/Makefile" ;;
27843    "lib/py/Makefile") CONFIG_FILES="$CONFIG_FILES lib/py/Makefile" ;;
27844    "lib/rb/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rb/Makefile" ;;
27845    "lib/rs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rs/Makefile" ;;
27846    "lib/rs/test/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rs/test/Makefile" ;;
27847    "lib/lua/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lua/Makefile" ;;
27848    "lib/swift/Makefile") CONFIG_FILES="$CONFIG_FILES lib/swift/Makefile" ;;
27849    "lib/ts/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ts/Makefile" ;;
27850    "lib/xml/Makefile") CONFIG_FILES="$CONFIG_FILES lib/xml/Makefile" ;;
27851    "lib/xml/test/Makefile") CONFIG_FILES="$CONFIG_FILES lib/xml/test/Makefile" ;;
27852    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
27853    "test/features/Makefile") CONFIG_FILES="$CONFIG_FILES test/features/Makefile" ;;
27854    "test/c_glib/Makefile") CONFIG_FILES="$CONFIG_FILES test/c_glib/Makefile" ;;
27855    "test/cl/Makefile") CONFIG_FILES="$CONFIG_FILES test/cl/Makefile" ;;
27856    "test/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES test/cpp/Makefile" ;;
27857    "test/erl/Makefile") CONFIG_FILES="$CONFIG_FILES test/erl/Makefile" ;;
27858    "test/go/Makefile") CONFIG_FILES="$CONFIG_FILES test/go/Makefile" ;;
27859    "test/haxe/Makefile") CONFIG_FILES="$CONFIG_FILES test/haxe/Makefile" ;;
27860    "test/hs/Makefile") CONFIG_FILES="$CONFIG_FILES test/hs/Makefile" ;;
27861    "test/lua/Makefile") CONFIG_FILES="$CONFIG_FILES test/lua/Makefile" ;;
27862    "test/netstd/Makefile") CONFIG_FILES="$CONFIG_FILES test/netstd/Makefile" ;;
27863    "test/php/Makefile") CONFIG_FILES="$CONFIG_FILES test/php/Makefile" ;;
27864    "test/dart/Makefile") CONFIG_FILES="$CONFIG_FILES test/dart/Makefile" ;;
27865    "test/perl/Makefile") CONFIG_FILES="$CONFIG_FILES test/perl/Makefile" ;;
27866    "test/py/Makefile") CONFIG_FILES="$CONFIG_FILES test/py/Makefile" ;;
27867    "test/py.twisted/Makefile") CONFIG_FILES="$CONFIG_FILES test/py.twisted/Makefile" ;;
27868    "test/py.tornado/Makefile") CONFIG_FILES="$CONFIG_FILES test/py.tornado/Makefile" ;;
27869    "test/rb/Makefile") CONFIG_FILES="$CONFIG_FILES test/rb/Makefile" ;;
27870    "test/rs/Makefile") CONFIG_FILES="$CONFIG_FILES test/rs/Makefile" ;;
27871    "tutorial/Makefile") CONFIG_FILES="$CONFIG_FILES tutorial/Makefile" ;;
27872    "tutorial/c_glib/Makefile") CONFIG_FILES="$CONFIG_FILES tutorial/c_glib/Makefile" ;;
27873    "tutorial/cl/Makefile") CONFIG_FILES="$CONFIG_FILES tutorial/cl/Makefile" ;;
27874    "tutorial/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES tutorial/cpp/Makefile" ;;
27875    "tutorial/d/Makefile") CONFIG_FILES="$CONFIG_FILES tutorial/d/Makefile" ;;
27876    "tutorial/go/Makefile") CONFIG_FILES="$CONFIG_FILES tutorial/go/Makefile" ;;
27877    "tutorial/haxe/Makefile") CONFIG_FILES="$CONFIG_FILES tutorial/haxe/Makefile" ;;
27878    "tutorial/hs/Makefile") CONFIG_FILES="$CONFIG_FILES tutorial/hs/Makefile" ;;
27879    "tutorial/java/Makefile") CONFIG_FILES="$CONFIG_FILES tutorial/java/Makefile" ;;
27880    "tutorial/js/Makefile") CONFIG_FILES="$CONFIG_FILES tutorial/js/Makefile" ;;
27881    "tutorial/netstd/Makefile") CONFIG_FILES="$CONFIG_FILES tutorial/netstd/Makefile" ;;
27882    "tutorial/nodejs/Makefile") CONFIG_FILES="$CONFIG_FILES tutorial/nodejs/Makefile" ;;
27883    "tutorial/dart/Makefile") CONFIG_FILES="$CONFIG_FILES tutorial/dart/Makefile" ;;
27884    "tutorial/perl/Makefile") CONFIG_FILES="$CONFIG_FILES tutorial/perl/Makefile" ;;
27885    "tutorial/php/Makefile") CONFIG_FILES="$CONFIG_FILES tutorial/php/Makefile" ;;
27886    "tutorial/py/Makefile") CONFIG_FILES="$CONFIG_FILES tutorial/py/Makefile" ;;
27887    "tutorial/py.twisted/Makefile") CONFIG_FILES="$CONFIG_FILES tutorial/py.twisted/Makefile" ;;
27888    "tutorial/py.tornado/Makefile") CONFIG_FILES="$CONFIG_FILES tutorial/py.tornado/Makefile" ;;
27889    "tutorial/rb/Makefile") CONFIG_FILES="$CONFIG_FILES tutorial/rb/Makefile" ;;
27890    "tutorial/rs/Makefile") CONFIG_FILES="$CONFIG_FILES tutorial/rs/Makefile" ;;
27891
27892  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27893  esac
27894done
27895
27896
27897# If the user did not use the arguments to specify the items to instantiate,
27898# then the envvar interface is used.  Set only those that are not.
27899# We use the long form for the default assignment because of an extremely
27900# bizarre bug on SunOS 4.1.3.
27901if $ac_need_defaults; then
27902  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27903  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27904  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27905fi
27906
27907# Have a temporary directory for convenience.  Make it in the build tree
27908# simply because there is no reason against having it here, and in addition,
27909# creating and moving files from /tmp can sometimes cause problems.
27910# Hook for its removal unless debugging.
27911# Note that there is a small window in which the directory will not be cleaned:
27912# after its creation but before its name has been assigned to `$tmp'.
27913$debug ||
27914{
27915  tmp= ac_tmp=
27916  trap 'exit_status=$?
27917  : "${ac_tmp:=$tmp}"
27918  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27919' 0
27920  trap 'as_fn_exit 1' 1 2 13 15
27921}
27922# Create a (secure) tmp directory for tmp files.
27923
27924{
27925  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27926  test -d "$tmp"
27927}  ||
27928{
27929  tmp=./conf$$-$RANDOM
27930  (umask 077 && mkdir "$tmp")
27931} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27932ac_tmp=$tmp
27933
27934# Set up the scripts for CONFIG_FILES section.
27935# No need to generate them if there are no CONFIG_FILES.
27936# This happens for instance with `./config.status config.h'.
27937if test -n "$CONFIG_FILES"; then
27938
27939
27940ac_cr=`echo X | tr X '\015'`
27941# On cygwin, bash can eat \r inside `` if the user requested igncr.
27942# But we know of no other shell where ac_cr would be empty at this
27943# point, so we can use a bashism as a fallback.
27944if test "x$ac_cr" = x; then
27945  eval ac_cr=\$\'\\r\'
27946fi
27947ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27948if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27949  ac_cs_awk_cr='\\r'
27950else
27951  ac_cs_awk_cr=$ac_cr
27952fi
27953
27954echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27955_ACEOF
27956
27957
27958{
27959  echo "cat >conf$$subs.awk <<_ACEOF" &&
27960  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27961  echo "_ACEOF"
27962} >conf$$subs.sh ||
27963  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27964ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27965ac_delim='%!_!# '
27966for ac_last_try in false false false false false :; do
27967  . ./conf$$subs.sh ||
27968    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27969
27970  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27971  if test $ac_delim_n = $ac_delim_num; then
27972    break
27973  elif $ac_last_try; then
27974    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27975  else
27976    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27977  fi
27978done
27979rm -f conf$$subs.sh
27980
27981cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27982cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27983_ACEOF
27984sed -n '
27985h
27986s/^/S["/; s/!.*/"]=/
27987p
27988g
27989s/^[^!]*!//
27990:repl
27991t repl
27992s/'"$ac_delim"'$//
27993t delim
27994:nl
27995h
27996s/\(.\{148\}\)..*/\1/
27997t more1
27998s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27999p
28000n
28001b repl
28002:more1
28003s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28004p
28005g
28006s/.\{148\}//
28007t nl
28008:delim
28009h
28010s/\(.\{148\}\)..*/\1/
28011t more2
28012s/["\\]/\\&/g; s/^/"/; s/$/"/
28013p
28014b
28015:more2
28016s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28017p
28018g
28019s/.\{148\}//
28020t delim
28021' <conf$$subs.awk | sed '
28022/^[^""]/{
28023  N
28024  s/\n//
28025}
28026' >>$CONFIG_STATUS || ac_write_fail=1
28027rm -f conf$$subs.awk
28028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28029_ACAWK
28030cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28031  for (key in S) S_is_set[key] = 1
28032  FS = ""
28033
28034}
28035{
28036  line = $ 0
28037  nfields = split(line, field, "@")
28038  substed = 0
28039  len = length(field[1])
28040  for (i = 2; i < nfields; i++) {
28041    key = field[i]
28042    keylen = length(key)
28043    if (S_is_set[key]) {
28044      value = S[key]
28045      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28046      len += length(value) + length(field[++i])
28047      substed = 1
28048    } else
28049      len += 1 + keylen
28050  }
28051
28052  print line
28053}
28054
28055_ACAWK
28056_ACEOF
28057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28058if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28059  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28060else
28061  cat
28062fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28063  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28064_ACEOF
28065
28066# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28067# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28068# trailing colons and then remove the whole line if VPATH becomes empty
28069# (actually we leave an empty line to preserve line numbers).
28070if test "x$srcdir" = x.; then
28071  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
28072h
28073s///
28074s/^/:/
28075s/[	 ]*$/:/
28076s/:\$(srcdir):/:/g
28077s/:\${srcdir}:/:/g
28078s/:@srcdir@:/:/g
28079s/^:*//
28080s/:*$//
28081x
28082s/\(=[	 ]*\).*/\1/
28083G
28084s/\n//
28085s/^[^=]*=[	 ]*$//
28086}'
28087fi
28088
28089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28090fi # test -n "$CONFIG_FILES"
28091
28092# Set up the scripts for CONFIG_HEADERS section.
28093# No need to generate them if there are no CONFIG_HEADERS.
28094# This happens for instance with `./config.status Makefile'.
28095if test -n "$CONFIG_HEADERS"; then
28096cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
28097BEGIN {
28098_ACEOF
28099
28100# Transform confdefs.h into an awk script `defines.awk', embedded as
28101# here-document in config.status, that substitutes the proper values into
28102# config.h.in to produce config.h.
28103
28104# Create a delimiter string that does not exist in confdefs.h, to ease
28105# handling of long lines.
28106ac_delim='%!_!# '
28107for ac_last_try in false false :; do
28108  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28109  if test -z "$ac_tt"; then
28110    break
28111  elif $ac_last_try; then
28112    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28113  else
28114    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28115  fi
28116done
28117
28118# For the awk script, D is an array of macro values keyed by name,
28119# likewise P contains macro parameters if any.  Preserve backslash
28120# newline sequences.
28121
28122ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28123sed -n '
28124s/.\{148\}/&'"$ac_delim"'/g
28125t rset
28126:rset
28127s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
28128t def
28129d
28130:def
28131s/\\$//
28132t bsnl
28133s/["\\]/\\&/g
28134s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
28135D["\1"]=" \3"/p
28136s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
28137d
28138:bsnl
28139s/["\\]/\\&/g
28140s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
28141D["\1"]=" \3\\\\\\n"\\/p
28142t cont
28143s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28144t cont
28145d
28146:cont
28147n
28148s/.\{148\}/&'"$ac_delim"'/g
28149t clear
28150:clear
28151s/\\$//
28152t bsnlc
28153s/["\\]/\\&/g; s/^/"/; s/$/"/p
28154d
28155:bsnlc
28156s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28157b cont
28158' <confdefs.h | sed '
28159s/'"$ac_delim"'/"\\\
28160"/g' >>$CONFIG_STATUS || ac_write_fail=1
28161
28162cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28163  for (key in D) D_is_set[key] = 1
28164  FS = ""
28165}
28166/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28167  line = \$ 0
28168  split(line, arg, " ")
28169  if (arg[1] == "#") {
28170    defundef = arg[2]
28171    mac1 = arg[3]
28172  } else {
28173    defundef = substr(arg[1], 2)
28174    mac1 = arg[2]
28175  }
28176  split(mac1, mac2, "(") #)
28177  macro = mac2[1]
28178  prefix = substr(line, 1, index(line, defundef) - 1)
28179  if (D_is_set[macro]) {
28180    # Preserve the white space surrounding the "#".
28181    print prefix "define", macro P[macro] D[macro]
28182    next
28183  } else {
28184    # Replace #undef with comments.  This is necessary, for example,
28185    # in the case of _POSIX_SOURCE, which is predefined and required
28186    # on some systems where configure will not decide to define it.
28187    if (defundef == "undef") {
28188      print "/*", prefix defundef, macro, "*/"
28189      next
28190    }
28191  }
28192}
28193{ print }
28194_ACAWK
28195_ACEOF
28196cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28197  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
28198fi # test -n "$CONFIG_HEADERS"
28199
28200
28201eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
28202shift
28203for ac_tag
28204do
28205  case $ac_tag in
28206  :[FHLC]) ac_mode=$ac_tag; continue;;
28207  esac
28208  case $ac_mode$ac_tag in
28209  :[FHL]*:*);;
28210  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
28211  :[FH]-) ac_tag=-:-;;
28212  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28213  esac
28214  ac_save_IFS=$IFS
28215  IFS=:
28216  set x $ac_tag
28217  IFS=$ac_save_IFS
28218  shift
28219  ac_file=$1
28220  shift
28221
28222  case $ac_mode in
28223  :L) ac_source=$1;;
28224  :[FH])
28225    ac_file_inputs=
28226    for ac_f
28227    do
28228      case $ac_f in
28229      -) ac_f="$ac_tmp/stdin";;
28230      *) # Look for the file first in the build tree, then in the source tree
28231	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
28232	 # because $ac_f cannot contain `:'.
28233	 test -f "$ac_f" ||
28234	   case $ac_f in
28235	   [\\/$]*) false;;
28236	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28237	   esac ||
28238	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28239      esac
28240      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28241      as_fn_append ac_file_inputs " '$ac_f'"
28242    done
28243
28244    # Let's still pretend it is `configure' which instantiates (i.e., don't
28245    # use $as_me), people would be surprised to read:
28246    #    /* config.h.  Generated by config.status.  */
28247    configure_input='Generated from '`
28248	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28249	`' by configure.'
28250    if test x"$ac_file" != x-; then
28251      configure_input="$ac_file.  $configure_input"
28252      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28253$as_echo "$as_me: creating $ac_file" >&6;}
28254    fi
28255    # Neutralize special characters interpreted by sed in replacement strings.
28256    case $configure_input in #(
28257    *\&* | *\|* | *\\* )
28258       ac_sed_conf_input=`$as_echo "$configure_input" |
28259       sed 's/[\\\\&|]/\\\\&/g'`;; #(
28260    *) ac_sed_conf_input=$configure_input;;
28261    esac
28262
28263    case $ac_tag in
28264    *:-:* | *:-) cat >"$ac_tmp/stdin" \
28265      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28266    esac
28267    ;;
28268  esac
28269
28270  ac_dir=`$as_dirname -- "$ac_file" ||
28271$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28272	 X"$ac_file" : 'X\(//\)[^/]' \| \
28273	 X"$ac_file" : 'X\(//\)$' \| \
28274	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28275$as_echo X"$ac_file" |
28276    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28277	    s//\1/
28278	    q
28279	  }
28280	  /^X\(\/\/\)[^/].*/{
28281	    s//\1/
28282	    q
28283	  }
28284	  /^X\(\/\/\)$/{
28285	    s//\1/
28286	    q
28287	  }
28288	  /^X\(\/\).*/{
28289	    s//\1/
28290	    q
28291	  }
28292	  s/.*/./; q'`
28293  as_dir="$ac_dir"; as_fn_mkdir_p
28294  ac_builddir=.
28295
28296case "$ac_dir" in
28297.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28298*)
28299  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28300  # A ".." for each directory in $ac_dir_suffix.
28301  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28302  case $ac_top_builddir_sub in
28303  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28304  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28305  esac ;;
28306esac
28307ac_abs_top_builddir=$ac_pwd
28308ac_abs_builddir=$ac_pwd$ac_dir_suffix
28309# for backward compatibility:
28310ac_top_builddir=$ac_top_build_prefix
28311
28312case $srcdir in
28313  .)  # We are building in place.
28314    ac_srcdir=.
28315    ac_top_srcdir=$ac_top_builddir_sub
28316    ac_abs_top_srcdir=$ac_pwd ;;
28317  [\\/]* | ?:[\\/]* )  # Absolute name.
28318    ac_srcdir=$srcdir$ac_dir_suffix;
28319    ac_top_srcdir=$srcdir
28320    ac_abs_top_srcdir=$srcdir ;;
28321  *) # Relative name.
28322    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28323    ac_top_srcdir=$ac_top_build_prefix$srcdir
28324    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28325esac
28326ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28327
28328
28329  case $ac_mode in
28330  :F)
28331  #
28332  # CONFIG_FILE
28333  #
28334
28335  case $INSTALL in
28336  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28337  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28338  esac
28339  ac_MKDIR_P=$MKDIR_P
28340  case $MKDIR_P in
28341  [\\/$]* | ?:[\\/]* ) ;;
28342  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28343  esac
28344_ACEOF
28345
28346cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28347# If the template does not know about datarootdir, expand it.
28348# FIXME: This hack should be removed a few years after 2.60.
28349ac_datarootdir_hack=; ac_datarootdir_seen=
28350ac_sed_dataroot='
28351/datarootdir/ {
28352  p
28353  q
28354}
28355/@datadir@/p
28356/@docdir@/p
28357/@infodir@/p
28358/@localedir@/p
28359/@mandir@/p'
28360case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28361*datarootdir*) ac_datarootdir_seen=yes;;
28362*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28363  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28364$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28365_ACEOF
28366cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28367  ac_datarootdir_hack='
28368  s&@datadir@&$datadir&g
28369  s&@docdir@&$docdir&g
28370  s&@infodir@&$infodir&g
28371  s&@localedir@&$localedir&g
28372  s&@mandir@&$mandir&g
28373  s&\\\${datarootdir}&$datarootdir&g' ;;
28374esac
28375_ACEOF
28376
28377# Neutralize VPATH when `$srcdir' = `.'.
28378# Shell code in configure.ac might set extrasub.
28379# FIXME: do we really want to maintain this feature?
28380cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28381ac_sed_extra="$ac_vpsub
28382$extrasub
28383_ACEOF
28384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28385:t
28386/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28387s|@configure_input@|$ac_sed_conf_input|;t t
28388s&@top_builddir@&$ac_top_builddir_sub&;t t
28389s&@top_build_prefix@&$ac_top_build_prefix&;t t
28390s&@srcdir@&$ac_srcdir&;t t
28391s&@abs_srcdir@&$ac_abs_srcdir&;t t
28392s&@top_srcdir@&$ac_top_srcdir&;t t
28393s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28394s&@builddir@&$ac_builddir&;t t
28395s&@abs_builddir@&$ac_abs_builddir&;t t
28396s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28397s&@INSTALL@&$ac_INSTALL&;t t
28398s&@MKDIR_P@&$ac_MKDIR_P&;t t
28399$ac_datarootdir_hack
28400"
28401eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28402  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28403
28404test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28405  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28406  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
28407      "$ac_tmp/out"`; test -z "$ac_out"; } &&
28408  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28409which seems to be undefined.  Please make sure it is defined" >&5
28410$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28411which seems to be undefined.  Please make sure it is defined" >&2;}
28412
28413  rm -f "$ac_tmp/stdin"
28414  case $ac_file in
28415  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28416  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28417  esac \
28418  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28419 ;;
28420  :H)
28421  #
28422  # CONFIG_HEADER
28423  #
28424  if test x"$ac_file" != x-; then
28425    {
28426      $as_echo "/* $configure_input  */" \
28427      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28428    } >"$ac_tmp/config.h" \
28429      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28430    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28431      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28432$as_echo "$as_me: $ac_file is unchanged" >&6;}
28433    else
28434      rm -f "$ac_file"
28435      mv "$ac_tmp/config.h" "$ac_file" \
28436	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
28437    fi
28438  else
28439    $as_echo "/* $configure_input  */" \
28440      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28441      || as_fn_error $? "could not create -" "$LINENO" 5
28442  fi
28443# Compute "$ac_file"'s index in $config_headers.
28444_am_arg="$ac_file"
28445_am_stamp_count=1
28446for _am_header in $config_headers :; do
28447  case $_am_header in
28448    $_am_arg | $_am_arg:* )
28449      break ;;
28450    * )
28451      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28452  esac
28453done
28454echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28455$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28456	 X"$_am_arg" : 'X\(//\)[^/]' \| \
28457	 X"$_am_arg" : 'X\(//\)$' \| \
28458	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28459$as_echo X"$_am_arg" |
28460    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28461	    s//\1/
28462	    q
28463	  }
28464	  /^X\(\/\/\)[^/].*/{
28465	    s//\1/
28466	    q
28467	  }
28468	  /^X\(\/\/\)$/{
28469	    s//\1/
28470	    q
28471	  }
28472	  /^X\(\/\).*/{
28473	    s//\1/
28474	    q
28475	  }
28476	  s/.*/./; q'`/stamp-h$_am_stamp_count
28477 ;;
28478
28479  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28480$as_echo "$as_me: executing $ac_file commands" >&6;}
28481 ;;
28482  esac
28483
28484
28485  case $ac_file$ac_mode in
28486    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28487  # Older Autoconf quotes --file arguments for eval, but not when files
28488  # are listed without --file.  Let's play safe and only enable the eval
28489  # if we detect the quoting.
28490  case $CONFIG_FILES in
28491  *\'*) eval set x "$CONFIG_FILES" ;;
28492  *)   set x $CONFIG_FILES ;;
28493  esac
28494  shift
28495  for mf
28496  do
28497    # Strip MF so we end up with the name of the file.
28498    mf=`echo "$mf" | sed -e 's/:.*$//'`
28499    # Check whether this is an Automake generated Makefile or not.
28500    # We used to match only the files named 'Makefile.in', but
28501    # some people rename them; so instead we look at the file content.
28502    # Grep'ing the first line is not enough: some people post-process
28503    # each Makefile.in and add a new line on top of each file to say so.
28504    # Grep'ing the whole file is not good either: AIX grep has a line
28505    # limit of 2048, but all sed's we know have understand at least 4000.
28506    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28507      dirpart=`$as_dirname -- "$mf" ||
28508$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28509	 X"$mf" : 'X\(//\)[^/]' \| \
28510	 X"$mf" : 'X\(//\)$' \| \
28511	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28512$as_echo X"$mf" |
28513    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28514	    s//\1/
28515	    q
28516	  }
28517	  /^X\(\/\/\)[^/].*/{
28518	    s//\1/
28519	    q
28520	  }
28521	  /^X\(\/\/\)$/{
28522	    s//\1/
28523	    q
28524	  }
28525	  /^X\(\/\).*/{
28526	    s//\1/
28527	    q
28528	  }
28529	  s/.*/./; q'`
28530    else
28531      continue
28532    fi
28533    # Extract the definition of DEPDIR, am__include, and am__quote
28534    # from the Makefile without running 'make'.
28535    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28536    test -z "$DEPDIR" && continue
28537    am__include=`sed -n 's/^am__include = //p' < "$mf"`
28538    test -z "$am__include" && continue
28539    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28540    # Find all dependency output files, they are included files with
28541    # $(DEPDIR) in their names.  We invoke sed twice because it is the
28542    # simplest approach to changing $(DEPDIR) to its actual value in the
28543    # expansion.
28544    for file in `sed -n "
28545      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28546	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
28547      # Make sure the directory exists.
28548      test -f "$dirpart/$file" && continue
28549      fdir=`$as_dirname -- "$file" ||
28550$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28551	 X"$file" : 'X\(//\)[^/]' \| \
28552	 X"$file" : 'X\(//\)$' \| \
28553	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28554$as_echo X"$file" |
28555    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28556	    s//\1/
28557	    q
28558	  }
28559	  /^X\(\/\/\)[^/].*/{
28560	    s//\1/
28561	    q
28562	  }
28563	  /^X\(\/\/\)$/{
28564	    s//\1/
28565	    q
28566	  }
28567	  /^X\(\/\).*/{
28568	    s//\1/
28569	    q
28570	  }
28571	  s/.*/./; q'`
28572      as_dir=$dirpart/$fdir; as_fn_mkdir_p
28573      # echo "creating $dirpart/$file"
28574      echo '# dummy' > "$dirpart/$file"
28575    done
28576  done
28577}
28578 ;;
28579    "libtool":C)
28580
28581    # See if we are running on zsh, and set the options that allow our
28582    # commands through without removal of \ escapes.
28583    if test -n "${ZSH_VERSION+set}"; then
28584      setopt NO_GLOB_SUBST
28585    fi
28586
28587    cfgfile=${ofile}T
28588    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28589    $RM "$cfgfile"
28590
28591    cat <<_LT_EOF >> "$cfgfile"
28592#! $SHELL
28593# Generated automatically by $as_me ($PACKAGE) $VERSION
28594# NOTE: Changes made to this file will be lost: look at ltmain.sh.
28595
28596# Provide generalized library-building support services.
28597# Written by Gordon Matzigkeit, 1996
28598
28599# Copyright (C) 2014 Free Software Foundation, Inc.
28600# This is free software; see the source for copying conditions.  There is NO
28601# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
28602
28603# GNU Libtool is free software; you can redistribute it and/or modify
28604# it under the terms of the GNU General Public License as published by
28605# the Free Software Foundation; either version 2 of of the License, or
28606# (at your option) any later version.
28607#
28608# As a special exception to the GNU General Public License, if you
28609# distribute this file as part of a program or library that is built
28610# using GNU Libtool, you may include this file under the  same
28611# distribution terms that you use for the rest of that program.
28612#
28613# GNU Libtool is distributed in the hope that it will be useful, but
28614# WITHOUT ANY WARRANTY; without even the implied warranty of
28615# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28616# GNU General Public License for more details.
28617#
28618# You should have received a copy of the GNU General Public License
28619# along with this program.  If not, see <http://www.gnu.org/licenses/>.
28620
28621
28622# The names of the tagged configurations supported by this script.
28623available_tags='CXX '
28624
28625# Configured defaults for sys_lib_dlsearch_path munging.
28626: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
28627
28628# ### BEGIN LIBTOOL CONFIG
28629
28630# Which release of libtool.m4 was used?
28631macro_version=$macro_version
28632macro_revision=$macro_revision
28633
28634# Whether or not to build shared libraries.
28635build_libtool_libs=$enable_shared
28636
28637# Whether or not to build static libraries.
28638build_old_libs=$enable_static
28639
28640# What type of objects to build.
28641pic_mode=$pic_mode
28642
28643# Whether or not to optimize for fast installation.
28644fast_install=$enable_fast_install
28645
28646# Shared archive member basename,for filename based shared library versioning on AIX.
28647shared_archive_member_spec=$shared_archive_member_spec
28648
28649# Shell to use when invoking shell scripts.
28650SHELL=$lt_SHELL
28651
28652# An echo program that protects backslashes.
28653ECHO=$lt_ECHO
28654
28655# The PATH separator for the build system.
28656PATH_SEPARATOR=$lt_PATH_SEPARATOR
28657
28658# The host system.
28659host_alias=$host_alias
28660host=$host
28661host_os=$host_os
28662
28663# The build system.
28664build_alias=$build_alias
28665build=$build
28666build_os=$build_os
28667
28668# A sed program that does not truncate output.
28669SED=$lt_SED
28670
28671# Sed that helps us avoid accidentally triggering echo(1) options like -n.
28672Xsed="\$SED -e 1s/^X//"
28673
28674# A grep program that handles long lines.
28675GREP=$lt_GREP
28676
28677# An ERE matcher.
28678EGREP=$lt_EGREP
28679
28680# A literal string matcher.
28681FGREP=$lt_FGREP
28682
28683# A BSD- or MS-compatible name lister.
28684NM=$lt_NM
28685
28686# Whether we need soft or hard links.
28687LN_S=$lt_LN_S
28688
28689# What is the maximum length of a command?
28690max_cmd_len=$max_cmd_len
28691
28692# Object file suffix (normally "o").
28693objext=$ac_objext
28694
28695# Executable file suffix (normally "").
28696exeext=$exeext
28697
28698# whether the shell understands "unset".
28699lt_unset=$lt_unset
28700
28701# turn spaces into newlines.
28702SP2NL=$lt_lt_SP2NL
28703
28704# turn newlines into spaces.
28705NL2SP=$lt_lt_NL2SP
28706
28707# convert \$build file names to \$host format.
28708to_host_file_cmd=$lt_cv_to_host_file_cmd
28709
28710# convert \$build files to toolchain format.
28711to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28712
28713# An object symbol dumper.
28714OBJDUMP=$lt_OBJDUMP
28715
28716# Method to check whether dependent libraries are shared objects.
28717deplibs_check_method=$lt_deplibs_check_method
28718
28719# Command to use when deplibs_check_method = "file_magic".
28720file_magic_cmd=$lt_file_magic_cmd
28721
28722# How to find potential files when deplibs_check_method = "file_magic".
28723file_magic_glob=$lt_file_magic_glob
28724
28725# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28726want_nocaseglob=$lt_want_nocaseglob
28727
28728# DLL creation program.
28729DLLTOOL=$lt_DLLTOOL
28730
28731# Command to associate shared and link libraries.
28732sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28733
28734# The archiver.
28735AR=$lt_AR
28736
28737# Flags to create an archive.
28738AR_FLAGS=$lt_AR_FLAGS
28739
28740# How to feed a file listing to the archiver.
28741archiver_list_spec=$lt_archiver_list_spec
28742
28743# A symbol stripping program.
28744STRIP=$lt_STRIP
28745
28746# Commands used to install an old-style archive.
28747RANLIB=$lt_RANLIB
28748old_postinstall_cmds=$lt_old_postinstall_cmds
28749old_postuninstall_cmds=$lt_old_postuninstall_cmds
28750
28751# Whether to use a lock for old archive extraction.
28752lock_old_archive_extraction=$lock_old_archive_extraction
28753
28754# A C compiler.
28755LTCC=$lt_CC
28756
28757# LTCC compiler flags.
28758LTCFLAGS=$lt_CFLAGS
28759
28760# Take the output of nm and produce a listing of raw symbols and C names.
28761global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28762
28763# Transform the output of nm in a proper C declaration.
28764global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28765
28766# Transform the output of nm into a list of symbols to manually relocate.
28767global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
28768
28769# Transform the output of nm in a C name address pair.
28770global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28771
28772# Transform the output of nm in a C name address pair when lib prefix is needed.
28773global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28774
28775# The name lister interface.
28776nm_interface=$lt_lt_cv_nm_interface
28777
28778# Specify filename containing input files for \$NM.
28779nm_file_list_spec=$lt_nm_file_list_spec
28780
28781# The root where to search for dependent libraries,and where our libraries should be installed.
28782lt_sysroot=$lt_sysroot
28783
28784# Command to truncate a binary pipe.
28785lt_truncate_bin=$lt_lt_cv_truncate_bin
28786
28787# The name of the directory that contains temporary libtool files.
28788objdir=$objdir
28789
28790# Used to examine libraries when file_magic_cmd begins with "file".
28791MAGIC_CMD=$MAGIC_CMD
28792
28793# Must we lock files when doing compilation?
28794need_locks=$lt_need_locks
28795
28796# Manifest tool.
28797MANIFEST_TOOL=$lt_MANIFEST_TOOL
28798
28799# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28800DSYMUTIL=$lt_DSYMUTIL
28801
28802# Tool to change global to local symbols on Mac OS X.
28803NMEDIT=$lt_NMEDIT
28804
28805# Tool to manipulate fat objects and archives on Mac OS X.
28806LIPO=$lt_LIPO
28807
28808# ldd/readelf like tool for Mach-O binaries on Mac OS X.
28809OTOOL=$lt_OTOOL
28810
28811# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28812OTOOL64=$lt_OTOOL64
28813
28814# Old archive suffix (normally "a").
28815libext=$libext
28816
28817# Shared library suffix (normally ".so").
28818shrext_cmds=$lt_shrext_cmds
28819
28820# The commands to extract the exported symbol list from a shared archive.
28821extract_expsyms_cmds=$lt_extract_expsyms_cmds
28822
28823# Variables whose values should be saved in libtool wrapper scripts and
28824# restored at link time.
28825variables_saved_for_relink=$lt_variables_saved_for_relink
28826
28827# Do we need the "lib" prefix for modules?
28828need_lib_prefix=$need_lib_prefix
28829
28830# Do we need a version for libraries?
28831need_version=$need_version
28832
28833# Library versioning type.
28834version_type=$version_type
28835
28836# Shared library runtime path variable.
28837runpath_var=$runpath_var
28838
28839# Shared library path variable.
28840shlibpath_var=$shlibpath_var
28841
28842# Is shlibpath searched before the hard-coded library search path?
28843shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28844
28845# Format of library name prefix.
28846libname_spec=$lt_libname_spec
28847
28848# List of archive names.  First name is the real one, the rest are links.
28849# The last name is the one that the linker finds with -lNAME
28850library_names_spec=$lt_library_names_spec
28851
28852# The coded name of the library, if different from the real name.
28853soname_spec=$lt_soname_spec
28854
28855# Permission mode override for installation of shared libraries.
28856install_override_mode=$lt_install_override_mode
28857
28858# Command to use after installation of a shared archive.
28859postinstall_cmds=$lt_postinstall_cmds
28860
28861# Command to use after uninstallation of a shared archive.
28862postuninstall_cmds=$lt_postuninstall_cmds
28863
28864# Commands used to finish a libtool library installation in a directory.
28865finish_cmds=$lt_finish_cmds
28866
28867# As "finish_cmds", except a single script fragment to be evaled but
28868# not shown.
28869finish_eval=$lt_finish_eval
28870
28871# Whether we should hardcode library paths into libraries.
28872hardcode_into_libs=$hardcode_into_libs
28873
28874# Compile-time system search path for libraries.
28875sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28876
28877# Detected run-time system search path for libraries.
28878sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
28879
28880# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
28881configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
28882
28883# Whether dlopen is supported.
28884dlopen_support=$enable_dlopen
28885
28886# Whether dlopen of programs is supported.
28887dlopen_self=$enable_dlopen_self
28888
28889# Whether dlopen of statically linked programs is supported.
28890dlopen_self_static=$enable_dlopen_self_static
28891
28892# Commands to strip libraries.
28893old_striplib=$lt_old_striplib
28894striplib=$lt_striplib
28895
28896
28897# The linker used to build libraries.
28898LD=$lt_LD
28899
28900# How to create reloadable object files.
28901reload_flag=$lt_reload_flag
28902reload_cmds=$lt_reload_cmds
28903
28904# Commands used to build an old-style archive.
28905old_archive_cmds=$lt_old_archive_cmds
28906
28907# A language specific compiler.
28908CC=$lt_compiler
28909
28910# Is the compiler the GNU compiler?
28911with_gcc=$GCC
28912
28913# Compiler flag to turn off builtin functions.
28914no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28915
28916# Additional compiler flags for building library objects.
28917pic_flag=$lt_lt_prog_compiler_pic
28918
28919# How to pass a linker flag through the compiler.
28920wl=$lt_lt_prog_compiler_wl
28921
28922# Compiler flag to prevent dynamic linking.
28923link_static_flag=$lt_lt_prog_compiler_static
28924
28925# Does compiler simultaneously support -c and -o options?
28926compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28927
28928# Whether or not to add -lc for building shared libraries.
28929build_libtool_need_lc=$archive_cmds_need_lc
28930
28931# Whether or not to disallow shared libs when runtime libs are static.
28932allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28933
28934# Compiler flag to allow reflexive dlopens.
28935export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28936
28937# Compiler flag to generate shared objects directly from archives.
28938whole_archive_flag_spec=$lt_whole_archive_flag_spec
28939
28940# Whether the compiler copes with passing no objects directly.
28941compiler_needs_object=$lt_compiler_needs_object
28942
28943# Create an old-style archive from a shared archive.
28944old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28945
28946# Create a temporary old-style archive to link instead of a shared archive.
28947old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28948
28949# Commands used to build a shared archive.
28950archive_cmds=$lt_archive_cmds
28951archive_expsym_cmds=$lt_archive_expsym_cmds
28952
28953# Commands used to build a loadable module if different from building
28954# a shared archive.
28955module_cmds=$lt_module_cmds
28956module_expsym_cmds=$lt_module_expsym_cmds
28957
28958# Whether we are building with GNU ld or not.
28959with_gnu_ld=$lt_with_gnu_ld
28960
28961# Flag that allows shared libraries with undefined symbols to be built.
28962allow_undefined_flag=$lt_allow_undefined_flag
28963
28964# Flag that enforces no undefined symbols.
28965no_undefined_flag=$lt_no_undefined_flag
28966
28967# Flag to hardcode \$libdir into a binary during linking.
28968# This must work even if \$libdir does not exist
28969hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28970
28971# Whether we need a single "-rpath" flag with a separated argument.
28972hardcode_libdir_separator=$lt_hardcode_libdir_separator
28973
28974# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28975# DIR into the resulting binary.
28976hardcode_direct=$hardcode_direct
28977
28978# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28979# DIR into the resulting binary and the resulting library dependency is
28980# "absolute",i.e impossible to change by setting \$shlibpath_var if the
28981# library is relocated.
28982hardcode_direct_absolute=$hardcode_direct_absolute
28983
28984# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28985# into the resulting binary.
28986hardcode_minus_L=$hardcode_minus_L
28987
28988# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28989# into the resulting binary.
28990hardcode_shlibpath_var=$hardcode_shlibpath_var
28991
28992# Set to "yes" if building a shared library automatically hardcodes DIR
28993# into the library and all subsequent libraries and executables linked
28994# against it.
28995hardcode_automatic=$hardcode_automatic
28996
28997# Set to yes if linker adds runtime paths of dependent libraries
28998# to runtime path list.
28999inherit_rpath=$inherit_rpath
29000
29001# Whether libtool must link a program against all its dependency libraries.
29002link_all_deplibs=$link_all_deplibs
29003
29004# Set to "yes" if exported symbols are required.
29005always_export_symbols=$always_export_symbols
29006
29007# The commands to list exported symbols.
29008export_symbols_cmds=$lt_export_symbols_cmds
29009
29010# Symbols that should not be listed in the preloaded symbols.
29011exclude_expsyms=$lt_exclude_expsyms
29012
29013# Symbols that must always be exported.
29014include_expsyms=$lt_include_expsyms
29015
29016# Commands necessary for linking programs (against libraries) with templates.
29017prelink_cmds=$lt_prelink_cmds
29018
29019# Commands necessary for finishing linking programs.
29020postlink_cmds=$lt_postlink_cmds
29021
29022# Specify filename containing input files.
29023file_list_spec=$lt_file_list_spec
29024
29025# How to hardcode a shared library path into an executable.
29026hardcode_action=$hardcode_action
29027
29028# The directories searched by this compiler when creating a shared library.
29029compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
29030
29031# Dependencies to place before and after the objects being linked to
29032# create a shared library.
29033predep_objects=$lt_predep_objects
29034postdep_objects=$lt_postdep_objects
29035predeps=$lt_predeps
29036postdeps=$lt_postdeps
29037
29038# The library search path used internally by the compiler when linking
29039# a shared library.
29040compiler_lib_search_path=$lt_compiler_lib_search_path
29041
29042# ### END LIBTOOL CONFIG
29043
29044_LT_EOF
29045
29046    cat <<'_LT_EOF' >> "$cfgfile"
29047
29048# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
29049
29050# func_munge_path_list VARIABLE PATH
29051# -----------------------------------
29052# VARIABLE is name of variable containing _space_ separated list of
29053# directories to be munged by the contents of PATH, which is string
29054# having a format:
29055# "DIR[:DIR]:"
29056#       string "DIR[ DIR]" will be prepended to VARIABLE
29057# ":DIR[:DIR]"
29058#       string "DIR[ DIR]" will be appended to VARIABLE
29059# "DIRP[:DIRP]::[DIRA:]DIRA"
29060#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
29061#       "DIRA[ DIRA]" will be appended to VARIABLE
29062# "DIR[:DIR]"
29063#       VARIABLE will be replaced by "DIR[ DIR]"
29064func_munge_path_list ()
29065{
29066    case x$2 in
29067    x)
29068        ;;
29069    *:)
29070        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
29071        ;;
29072    x:*)
29073        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
29074        ;;
29075    *::*)
29076        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
29077        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
29078        ;;
29079    *)
29080        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
29081        ;;
29082    esac
29083}
29084
29085
29086# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
29087func_cc_basename ()
29088{
29089    for cc_temp in $*""; do
29090      case $cc_temp in
29091        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
29092        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
29093        \-*) ;;
29094        *) break;;
29095      esac
29096    done
29097    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
29098}
29099
29100
29101# ### END FUNCTIONS SHARED WITH CONFIGURE
29102
29103_LT_EOF
29104
29105  case $host_os in
29106  aix3*)
29107    cat <<\_LT_EOF >> "$cfgfile"
29108# AIX sometimes has problems with the GCC collect2 program.  For some
29109# reason, if we set the COLLECT_NAMES environment variable, the problems
29110# vanish in a puff of smoke.
29111if test set != "${COLLECT_NAMES+set}"; then
29112  COLLECT_NAMES=
29113  export COLLECT_NAMES
29114fi
29115_LT_EOF
29116    ;;
29117  esac
29118
29119
29120ltmain=$ac_aux_dir/ltmain.sh
29121
29122
29123  # We use sed instead of cat because bash on DJGPP gets confused if
29124  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
29125  # text mode, it properly converts lines to CR/LF.  This bash problem
29126  # is reportedly fixed, but why not run on old versions too?
29127  sed '$q' "$ltmain" >> "$cfgfile" \
29128     || (rm -f "$cfgfile"; exit 1)
29129
29130   mv -f "$cfgfile" "$ofile" ||
29131    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29132  chmod +x "$ofile"
29133
29134
29135    cat <<_LT_EOF >> "$ofile"
29136
29137# ### BEGIN LIBTOOL TAG CONFIG: CXX
29138
29139# The linker used to build libraries.
29140LD=$lt_LD_CXX
29141
29142# How to create reloadable object files.
29143reload_flag=$lt_reload_flag_CXX
29144reload_cmds=$lt_reload_cmds_CXX
29145
29146# Commands used to build an old-style archive.
29147old_archive_cmds=$lt_old_archive_cmds_CXX
29148
29149# A language specific compiler.
29150CC=$lt_compiler_CXX
29151
29152# Is the compiler the GNU compiler?
29153with_gcc=$GCC_CXX
29154
29155# Compiler flag to turn off builtin functions.
29156no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
29157
29158# Additional compiler flags for building library objects.
29159pic_flag=$lt_lt_prog_compiler_pic_CXX
29160
29161# How to pass a linker flag through the compiler.
29162wl=$lt_lt_prog_compiler_wl_CXX
29163
29164# Compiler flag to prevent dynamic linking.
29165link_static_flag=$lt_lt_prog_compiler_static_CXX
29166
29167# Does compiler simultaneously support -c and -o options?
29168compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
29169
29170# Whether or not to add -lc for building shared libraries.
29171build_libtool_need_lc=$archive_cmds_need_lc_CXX
29172
29173# Whether or not to disallow shared libs when runtime libs are static.
29174allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
29175
29176# Compiler flag to allow reflexive dlopens.
29177export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
29178
29179# Compiler flag to generate shared objects directly from archives.
29180whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
29181
29182# Whether the compiler copes with passing no objects directly.
29183compiler_needs_object=$lt_compiler_needs_object_CXX
29184
29185# Create an old-style archive from a shared archive.
29186old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
29187
29188# Create a temporary old-style archive to link instead of a shared archive.
29189old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
29190
29191# Commands used to build a shared archive.
29192archive_cmds=$lt_archive_cmds_CXX
29193archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
29194
29195# Commands used to build a loadable module if different from building
29196# a shared archive.
29197module_cmds=$lt_module_cmds_CXX
29198module_expsym_cmds=$lt_module_expsym_cmds_CXX
29199
29200# Whether we are building with GNU ld or not.
29201with_gnu_ld=$lt_with_gnu_ld_CXX
29202
29203# Flag that allows shared libraries with undefined symbols to be built.
29204allow_undefined_flag=$lt_allow_undefined_flag_CXX
29205
29206# Flag that enforces no undefined symbols.
29207no_undefined_flag=$lt_no_undefined_flag_CXX
29208
29209# Flag to hardcode \$libdir into a binary during linking.
29210# This must work even if \$libdir does not exist
29211hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
29212
29213# Whether we need a single "-rpath" flag with a separated argument.
29214hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
29215
29216# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29217# DIR into the resulting binary.
29218hardcode_direct=$hardcode_direct_CXX
29219
29220# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29221# DIR into the resulting binary and the resulting library dependency is
29222# "absolute",i.e impossible to change by setting \$shlibpath_var if the
29223# library is relocated.
29224hardcode_direct_absolute=$hardcode_direct_absolute_CXX
29225
29226# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29227# into the resulting binary.
29228hardcode_minus_L=$hardcode_minus_L_CXX
29229
29230# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29231# into the resulting binary.
29232hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
29233
29234# Set to "yes" if building a shared library automatically hardcodes DIR
29235# into the library and all subsequent libraries and executables linked
29236# against it.
29237hardcode_automatic=$hardcode_automatic_CXX
29238
29239# Set to yes if linker adds runtime paths of dependent libraries
29240# to runtime path list.
29241inherit_rpath=$inherit_rpath_CXX
29242
29243# Whether libtool must link a program against all its dependency libraries.
29244link_all_deplibs=$link_all_deplibs_CXX
29245
29246# Set to "yes" if exported symbols are required.
29247always_export_symbols=$always_export_symbols_CXX
29248
29249# The commands to list exported symbols.
29250export_symbols_cmds=$lt_export_symbols_cmds_CXX
29251
29252# Symbols that should not be listed in the preloaded symbols.
29253exclude_expsyms=$lt_exclude_expsyms_CXX
29254
29255# Symbols that must always be exported.
29256include_expsyms=$lt_include_expsyms_CXX
29257
29258# Commands necessary for linking programs (against libraries) with templates.
29259prelink_cmds=$lt_prelink_cmds_CXX
29260
29261# Commands necessary for finishing linking programs.
29262postlink_cmds=$lt_postlink_cmds_CXX
29263
29264# Specify filename containing input files.
29265file_list_spec=$lt_file_list_spec_CXX
29266
29267# How to hardcode a shared library path into an executable.
29268hardcode_action=$hardcode_action_CXX
29269
29270# The directories searched by this compiler when creating a shared library.
29271compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
29272
29273# Dependencies to place before and after the objects being linked to
29274# create a shared library.
29275predep_objects=$lt_predep_objects_CXX
29276postdep_objects=$lt_postdep_objects_CXX
29277predeps=$lt_predeps_CXX
29278postdeps=$lt_postdeps_CXX
29279
29280# The library search path used internally by the compiler when linking
29281# a shared library.
29282compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
29283
29284# ### END LIBTOOL TAG CONFIG: CXX
29285_LT_EOF
29286
29287 ;;
29288
29289  esac
29290done # for ac_tag
29291
29292
29293as_fn_exit 0
29294_ACEOF
29295ac_clean_files=$ac_clean_files_save
29296
29297test $ac_write_fail = 0 ||
29298  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29299
29300
29301# configure is writing to config.log, and then calls config.status.
29302# config.status does its own redirection, appending to config.log.
29303# Unfortunately, on DOS this fails, as config.log is still kept open
29304# by configure, so config.status won't be able to write to it; its
29305# output is simply discarded.  So we exec the FD to /dev/null,
29306# effectively closing config.log, so it can be properly (re)opened and
29307# appended to by config.status.  When coming back to configure, we
29308# need to make the FD available again.
29309if test "$no_create" != yes; then
29310  ac_cs_success=:
29311  ac_config_status_args=
29312  test "$silent" = yes &&
29313    ac_config_status_args="$ac_config_status_args --quiet"
29314  exec 5>/dev/null
29315  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29316  exec 5>>config.log
29317  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29318  # would make configure fail if this is the last instruction.
29319  $ac_cs_success || as_fn_exit 1
29320fi
29321
29322#
29323# CONFIG_SUBDIRS section.
29324#
29325if test "$no_recursion" != yes; then
29326
29327  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
29328  # so they do not pile up.
29329  ac_sub_configure_args=
29330  ac_prev=
29331  eval "set x $ac_configure_args"
29332  shift
29333  for ac_arg
29334  do
29335    if test -n "$ac_prev"; then
29336      ac_prev=
29337      continue
29338    fi
29339    case $ac_arg in
29340    -cache-file | --cache-file | --cache-fil | --cache-fi \
29341    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
29342      ac_prev=cache_file ;;
29343    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
29344    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
29345    | --c=*)
29346      ;;
29347    --config-cache | -C)
29348      ;;
29349    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
29350      ac_prev=srcdir ;;
29351    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
29352      ;;
29353    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
29354      ac_prev=prefix ;;
29355    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
29356      ;;
29357    --disable-option-checking)
29358      ;;
29359    *)
29360      case $ac_arg in
29361      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
29362      esac
29363      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
29364    esac
29365  done
29366
29367  # Always prepend --prefix to ensure using the same prefix
29368  # in subdir configurations.
29369  ac_arg="--prefix=$prefix"
29370  case $ac_arg in
29371  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
29372  esac
29373  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
29374
29375  # Pass --silent
29376  if test "$silent" = yes; then
29377    ac_sub_configure_args="--silent $ac_sub_configure_args"
29378  fi
29379
29380  # Always prepend --disable-option-checking to silence warnings, since
29381  # different subdirs can have different --enable and --with options.
29382  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
29383
29384  ac_popdir=`pwd`
29385  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
29386
29387    # Do not complain, so a configure script can configure whichever
29388    # parts of a large source tree are present.
29389    test -d "$srcdir/$ac_dir" || continue
29390
29391    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
29392    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
29393    $as_echo "$ac_msg" >&6
29394    as_dir="$ac_dir"; as_fn_mkdir_p
29395    ac_builddir=.
29396
29397case "$ac_dir" in
29398.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29399*)
29400  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29401  # A ".." for each directory in $ac_dir_suffix.
29402  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29403  case $ac_top_builddir_sub in
29404  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29405  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29406  esac ;;
29407esac
29408ac_abs_top_builddir=$ac_pwd
29409ac_abs_builddir=$ac_pwd$ac_dir_suffix
29410# for backward compatibility:
29411ac_top_builddir=$ac_top_build_prefix
29412
29413case $srcdir in
29414  .)  # We are building in place.
29415    ac_srcdir=.
29416    ac_top_srcdir=$ac_top_builddir_sub
29417    ac_abs_top_srcdir=$ac_pwd ;;
29418  [\\/]* | ?:[\\/]* )  # Absolute name.
29419    ac_srcdir=$srcdir$ac_dir_suffix;
29420    ac_top_srcdir=$srcdir
29421    ac_abs_top_srcdir=$srcdir ;;
29422  *) # Relative name.
29423    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29424    ac_top_srcdir=$ac_top_build_prefix$srcdir
29425    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29426esac
29427ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29428
29429
29430    cd "$ac_dir"
29431
29432    # Check for guested configure; otherwise get Cygnus style configure.
29433    if test -f "$ac_srcdir/configure.gnu"; then
29434      ac_sub_configure=$ac_srcdir/configure.gnu
29435    elif test -f "$ac_srcdir/configure"; then
29436      ac_sub_configure=$ac_srcdir/configure
29437    elif test -f "$ac_srcdir/configure.in"; then
29438      # This should be Cygnus configure.
29439      ac_sub_configure=$ac_aux_dir/configure
29440    else
29441      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
29442$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
29443      ac_sub_configure=
29444    fi
29445
29446    # The recursion is here.
29447    if test -n "$ac_sub_configure"; then
29448      # Make the cache file name correct relative to the subdirectory.
29449      case $cache_file in
29450      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
29451      *) # Relative name.
29452	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
29453      esac
29454
29455      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
29456$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
29457      # The eval makes quoting arguments work.
29458      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
29459	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
29460	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
29461    fi
29462
29463    cd "$ac_popdir"
29464  done
29465fi
29466if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29467  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29468$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29469fi
29470
29471
29472
29473echo
29474echo "$PACKAGE $VERSION"
29475echo
29476echo "Building ActionScript3 Library : $have_as3"
29477echo "Building C (GLib) Library .... : $have_c_glib"
29478echo "Building C++ Library ......... : $have_cpp"
29479echo "Building Common Lisp Library.. : $have_cl"
29480echo "Building D Library ........... : $have_d"
29481echo "Building Dart Library ........ : $have_dart"
29482echo "Building .NET Standard Library : $have_netstd"
29483echo "Building Erlang Library ...... : $have_erlang"
29484echo "Building Go Library .......... : $have_go"
29485echo "Building Haskell Library ..... : $have_haskell"
29486echo "Building Haxe Library ........ : $have_haxe"
29487echo "Building Java Library ........ : $have_java"
29488echo "Building Lua Library ......... : $have_lua"
29489echo "Building NodeJS Library ...... : $have_nodejs"
29490echo "Building Perl Library ........ : $have_perl"
29491echo "Building PHP Library ......... : $have_php"
29492echo "Building Python Library ...... : $have_python"
29493echo "Building Py3 Library ......... : $have_py3"
29494echo "Building Ruby Library ........ : $have_ruby"
29495echo "Building Rust Library ........ : $have_rs"
29496echo "Building Swift Library ....... : $have_swift"
29497
29498if test "$have_as3" = "yes" ; then
29499  echo
29500  echo "ActionScript Library:"
29501  echo "   FLEX_HOME ................. : $FLEX_HOME"
29502  echo "   Using compc version ....... : $($FLEX_COMPC --version)"
29503fi
29504if test "$have_c_glib" = "yes" ; then
29505  echo
29506  echo "C (glib):"
29507  echo "   Using glib version ........ : $($GSETTINGS --version)"
29508fi
29509if test "$have_cpp" = "yes" ; then
29510  echo
29511  echo "C++ Library:"
29512  echo "   C++ compiler .............. : $CXX"
29513  echo "   Build TZlibTransport ...... : $have_zlib"
29514  echo "   Build TNonblockingServer .. : $have_libevent"
29515  echo "   Build TQTcpServer (Qt5) ... : $have_qt5"
29516  echo "   C++ compiler version ...... : $($CXX --version | head -1)"
29517fi
29518if test "$have_cl" = "yes" ; then
29519  echo
29520  echo "Common Lisp Library:"
29521  echo "   Using Common Lisp ......... : $SBCL"
29522  echo "   Using Common Lisp version . : $($SBCL --version)"
29523fi
29524if test "$have_d" = "yes" ; then
29525  echo
29526  echo "D Library:"
29527  echo "   Using D Compiler .......... : $DMD"
29528  echo "   Building D libevent tests . : $with_d_event_tests"
29529  echo "   Building D SSL tests ...... : $with_d_ssl_tests"
29530  echo "   Using D version ........... : $($DMD --version | head -1)"
29531fi
29532if test "$have_dart" = "yes" ; then
29533  echo
29534  echo "Dart Library:"
29535  echo "   Using Dart ................ : $DART"
29536  echo "   Using Pub ................. : $DARTPUB"
29537  echo "   Using Dart version ........ : $($DART --version 2>&1)"
29538fi
29539if test "$have_netstd" = "yes" ; then
29540  echo
29541  echo ".NET Standard Library:"
29542  echo "   Using dotnet .............. : $DOTNETCORE"
29543  echo "   Using dotnet version ...... : $DOTNETCORE_VERSION"
29544fi
29545if test "$have_erlang" = "yes" ; then
29546  echo
29547  echo "Erlang Library:"
29548  echo "   Using erlc ................ : $ERLC"
29549  echo "   Using rebar ............... : $REBAR"
29550  echo "   Using erlc version ........ : $($ERL -eval 'erlang:display(erlang:system_info(otp_release)), halt().' -noshell | tr -d '\"')"
29551fi
29552if test "$have_go" = "yes" ; then
29553  echo
29554  echo "Go Library:"
29555  echo "   Using Go................... : $GO"
29556  echo "   Using Go version........... : $($GO version)"
29557fi
29558if test "$have_haskell" = "yes" ; then
29559  echo
29560  echo "Haskell Library:"
29561  echo "   Using Cabal ............... : $CABAL"
29562  echo "   Using Haskell ............. : $RUNHASKELL"
29563  echo "   Using Haskell version ..... : $($RUNHASKELL --version)"
29564fi
29565if test "$have_haxe" = "yes" ; then
29566  echo
29567  echo "Haxe Library:"
29568  echo "   Using Haxe ................ : $HAXE"
29569  echo "   Using Haxe version ........ : $HAXE_VERSION"
29570fi
29571if test "$have_java" = "yes" ; then
29572  echo
29573  echo "Java Library:"
29574  echo "   Using gradlew ............. : lib/java/gradlew"
29575  echo "   Using java ................ : $JAVA"
29576  echo "   Using javac ............... : $JAVAC"
29577  echo "   Using Gradle version ...... : $(lib/java/gradlew --version --quiet | grep Gradle 2>&1)"
29578  echo "   Using java version ........ : $($JAVA -version 2>&1 | grep 'version ')"
29579fi
29580if test "$have_lua" = "yes" ; then
29581  echo
29582  echo "Lua Library:"
29583  echo "   Using Lua ................. : $LUA"
29584  echo "   Using Lua version.......... : $($LUA -v)"
29585fi
29586if test "$have_nodejs" = "yes" ; then
29587  echo
29588  echo "NodeJS Library:"
29589  echo "   Using NodeJS .............. : $NODEJS"
29590  echo "   Using NodeJS version....... : $($NODEJS --version)"
29591fi
29592if test "$have_perl" = "yes" ; then
29593  echo
29594  echo "Perl Library:"
29595  echo "   Using Perl ................ : $PERL"
29596  echo "   Using Perl version ........ : $($PERL -v | grep 'version ')"
29597fi
29598if test "$have_php" = "yes" ; then
29599  echo
29600  echo "PHP Library:"
29601  echo "   Using php-config .......... : $PHP_CONFIG"
29602  echo "   Using php version ......... : $($PHP --version | head -1)"
29603fi
29604if test "$have_python" = "yes" ; then
29605  echo
29606  echo "Python Library:"
29607  echo "   Using Python .............. : $PYTHON"
29608  echo "   Using Python version ...... : $($PYTHON --version 2>&1)"
29609  if test "$have_py3" = "yes" ; then
29610  echo "   Using Python3 ............. : $PYTHON3"
29611  echo "   Using Python3 version ..... : $($PYTHON3 --version)"
29612  fi
29613  if test "$have_trial" = "yes"; then
29614  echo "   Using trial ............... : $TRIAL"
29615  fi
29616fi
29617if test "$have_ruby" = "yes" ; then
29618  echo
29619  echo "Ruby Library:"
29620  echo "   Using Ruby ................ : $RUBY"
29621  echo "   Using Ruby version ........ : $($RUBY --version)"
29622fi
29623if test "$have_rs" = "yes" ; then
29624  echo
29625  echo "Rust Library:"
29626  echo "   Using Cargo................ : $CARGO"
29627  echo "   Using rustc................ : $RUSTC"
29628  echo "   Using Rust version......... : $($RUSTC --version)"
29629fi
29630if test "$have_swift" = "yes" ; then
29631  echo
29632  echo "Swift Library:"
29633  echo "   Using Swift ............... : $SWIFT"
29634  echo "   Using Swift version ....... : $($SWIFT --version | head -1)"
29635fi
29636echo
29637echo "If something is missing that you think should be present,"
29638echo "please skim the output of configure to find the missing"
29639echo "component.  Details are present in config.log."
29640echo
29641